{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-api-management/json-schema/microsoft-azure-api-management-operation-status-result-schema.json",
  "title": "OperationStatusResult",
  "description": "The current status of an async operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-api-management-subscriptions-api-openapi.yml#/components/schemas/OperationStatusResult",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "arm-id",
      "description": "Fully qualified ID for the async operation."
    },
    "resourceId": {
      "type": "string",
      "format": "arm-id",
      "description": "Fully qualified ID of the resource against which the original async operation was started.",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Name of the async operation."
    },
    "status": {
      "type": "string",
      "description": "Operation status."
    },
    "percentComplete": {
      "type": "number",
      "description": "Percent of the operation that is complete.",
      "minimum": 0,
      "maximum": 100
    },
    "startTime": {
      "type": "string",
      "format": "date-time",
      "description": "The start time of the operation."
    },
    "endTime": {
      "type": "string",
      "format": "date-time",
      "description": "The end time of the operation."
    },
    "operations": {
      "type": "array",
      "description": "The operations list.",
      "items": {
        "$ref": "#/$defs/OperationStatusResult"
      }
    },
    "error": {
      "$ref": "#/$defs/ErrorDetail",
      "description": "If present, details of the operation error."
    }
  },
  "required": [
    "status"
  ],
  "$defs": {
    "ErrorDetail": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "OperationStatusResult": {
      "type": "object",
      "description": "The current status of an async operation.",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified ID for the async operation."
        },
        "resourceId": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified ID of the resource against which the original async operation was started.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Name of the async operation."
        },
        "status": {
          "type": "string",
          "description": "Operation status."
        },
        "percentComplete": {
          "type": "number",
          "description": "Percent of the operation that is complete.",
          "minimum": 0,
          "maximum": 100
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time of the operation."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "The end time of the operation."
        },
        "operations": {
          "type": "array",
          "description": "The operations list.",
          "items": {
            "$ref": "#/$defs/OperationStatusResult"
          }
        },
        "error": {
          "$ref": "#/$defs/ErrorDetail",
          "description": "If present, details of the operation error."
        }
      },
      "required": [
        "status"
      ]
    }
  }
}