{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "JobStatus",
  "description": "JobStatus schema from Palo Alto Networks Prisma Access Configuration API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/prisma-access-api-job-status-schema.json",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique job identifier."
    },
    "type": {
      "type": "string",
      "description": "Type of asynchronous job."
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "running",
        "completed",
        "failed"
      ],
      "description": "Current status of the job."
    },
    "result": {
      "type": "string",
      "enum": [
        "OK",
        "FAIL"
      ],
      "description": "Final result of the job once completed."
    },
    "start_ts": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the job started."
    },
    "end_ts": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the job completed."
    },
    "description": {
      "type": "string",
      "description": "Job description."
    },
    "details": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Job status detail messages."
    }
  }
}
