{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OperationResponse",
  "description": "OperationResponse schema from Prisma Cloud: Managed Security Service Provider (MSSP)",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/prisma-cloud-mssp-api-operation-response-schema.json",
  "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": {
        "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"
          }
        }
      }
    },
    "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"
    }
  }
}
