{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-functions/json-schema/microsoft-azure-functions-operation-schema.json",
  "title": "Operation",
  "description": "An operation on a resource.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-functions-appserviceenvironments-api-openapi.yml#/components/schemas/Operation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Operation ID."
    },
    "name": {
      "type": "string",
      "description": "Operation name."
    },
    "status": {
      "$ref": "#/$defs/OperationStatus",
      "description": "The current status of the operation."
    },
    "errors": {
      "type": "array",
      "description": "Any errors associate with the operation.",
      "items": {
        "$ref": "#/$defs/ErrorEntity"
      },
      "x-ms-identifiers": []
    },
    "createdTime": {
      "type": "string",
      "format": "date-time",
      "description": "Time when operation has started."
    },
    "modifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "Time when operation has been updated."
    },
    "expirationTime": {
      "type": "string",
      "format": "date-time",
      "description": "Time when operation will expire."
    },
    "geoMasterOperationId": {
      "type": "string",
      "format": "uuid",
      "description": "Applicable only for stamp operation ids."
    }
  },
  "$defs": {
    "ErrorEntity": {
      "type": "object",
      "description": "Body of the error response returned from the API.",
      "properties": {
        "extendedCode": {
          "type": "string",
          "description": "Type of error."
        },
        "messageTemplate": {
          "type": "string",
          "description": "Message template."
        },
        "parameters": {
          "type": "array",
          "description": "Parameters for the template.",
          "items": {
            "type": "string"
          }
        },
        "innerErrors": {
          "type": "array",
          "description": "Inner errors.",
          "items": {
            "$ref": "#/$defs/ErrorEntity"
          },
          "x-ms-identifiers": []
        },
        "details": {
          "type": "array",
          "description": "Error Details.",
          "items": {
            "$ref": "#/$defs/ErrorEntity"
          },
          "x-ms-identifiers": []
        },
        "target": {
          "type": "string",
          "description": "The error target."
        },
        "code": {
          "type": "string",
          "description": "Basic error code."
        },
        "message": {
          "type": "string",
          "description": "Any details of the error."
        }
      }
    },
    "OperationStatus": {
      "type": "string",
      "description": "The current status of the operation.",
      "enum": [
        "InProgress",
        "Failed",
        "Succeeded",
        "TimedOut",
        "Created"
      ],
      "x-ms-enum": {
        "name": "OperationStatus",
        "modelAsString": false
      }
    }
  }
}