{
  "$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-jobs-schema.json",
  "title": "jobs",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-jobs-api-openapi.yml#/components/schemas/jobs",
  "type": "object",
  "properties": {
    "device_name": {
      "type": "string",
      "description": "The name of the device"
    },
    "end_ts": {
      "type": "string",
      "description": "The timestamp indicating when the job was finished"
    },
    "id": {
      "type": "string",
      "description": "The job ID"
    },
    "job_result": {
      "type": "string",
      "description": "The job result"
    },
    "job_status": {
      "type": "string",
      "description": "The current status of the job"
    },
    "job_type": {
      "type": "string",
      "description": "The job type"
    },
    "parent_id": {
      "type": "string",
      "description": "The parent job ID"
    },
    "percent": {
      "type": "string",
      "description": "Job completion percentage"
    },
    "result_str": {
      "type": "string",
      "enum": [
        "OK",
        "FAIL",
        "PEND",
        "WAIT",
        "CANCELLED",
        "TIMEOUT"
      ],
      "description": "The result of the job"
    },
    "start_ts": {
      "type": "string",
      "description": "The timestamp indicating when the job was created"
    },
    "status_str": {
      "type": "string",
      "enum": [
        "ACT",
        "FIN",
        "PEND",
        "PUSHSENT",
        "PUSHFAIL",
        "PUSHABORT",
        "PUSHTIMEOUT"
      ],
      "description": "The current status of the job"
    },
    "summary": {
      "type": "string",
      "description": "The completion summary of the job"
    },
    "type_str": {
      "type": "string",
      "enum": [
        "CommitAll",
        "CommitAndPush",
        "NGFW-Bootstrap-Push",
        "Validate"
      ],
      "description": "The job type"
    },
    "uname": {
      "type": "string",
      "description": "The administrator or service account that created the job",
      "format": "email"
    },
    "description": {
      "type": "string",
      "description": "A description provided by the administrator or service account"
    },
    "details": {
      "type": "string",
      "description": "JSON string with detailed errors or info"
    }
  },
  "required": [
    "device_name",
    "end_ts",
    "id",
    "job_result",
    "job_status",
    "job_type",
    "parent_id",
    "percent",
    "result_str",
    "start_ts",
    "status_str",
    "summary",
    "type_str",
    "uname"
  ]
}