{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/main/json-schema/palo-alto-networks-operation-response-schema.json",
  "title": "OperationResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-mssp-operations-retry-api-openapi.yml#/components/schemas/OperationResponse",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "format": "uuid"
    },
    "msspId": {
      "type": "string",
      "format": "uuid"
    },
    "operationType": {
      "type": "string",
      "enum": [
        "MESSAGE_FAN_OUT",
        "ORCHESTRATOR_REQUEST"
      ]
    },
    "operationName": {
      "type": "string",
      "enum": [
        "PROVISION_TENANT",
        "UPDATE_TENANT",
        "DELETE_TENANT",
        "OFFBOARD_TENANT",
        "REPLICATE_ACTION",
        "CREATE_USER",
        "UPDATE_USER",
        "DELETE_USER",
        "POLICY_MAP",
        "POLICY_UNMAP",
        "SYNC_POLICIES"
      ]
    },
    "operationDescription": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "SUCCESS",
        "FAILURE"
      ]
    },
    "tenantChanges": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TenantChangeResponse"
      }
    },
    "startedBy": {
      "type": "string"
    },
    "startedAt": {
      "type": "integer",
      "format": "int64"
    },
    "updatedAt": {
      "type": "integer",
      "format": "int64"
    },
    "isRetryable": {
      "type": "boolean"
    },
    "retryOf": {
      "type": "string",
      "format": "uuid"
    },
    "retriedBy": {
      "type": "string",
      "format": "uuid"
    }
  },
  "$defs": {
    "TenantChangeResponse": {
      "type": "object",
      "properties": {
        "tenantChangeId": {
          "type": "string",
          "format": "uuid"
        },
        "externalTenantId": {
          "type": "string"
        },
        "tenantPrismaId": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "IN_PROGRESS",
            "SUCCESS",
            "FAILURE"
          ]
        },
        "updatedAt": {
          "type": "integer",
          "format": "int64"
        }
      }
    }
  }
}