{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-robotapi-robot-node-job-get-req-schema.json",
  "title": "robotapiRobotNodeJobGetReq",
  "description": "Job Request data",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-get-inventory-jobs-api-openapi.yml#/components/schemas/robotapiRobotNodeJobGetReq",
  "type": "object",
  "properties": {
    "job_id": {
      "type": "string",
      "description": "job_id or State would be supported filter\ncreation_time would be used for offset and sorting"
    },
    "state": {
      "$ref": "#/$defs/robotapiRobotJobState"
    },
    "creation_time": {
      "type": "string",
      "format": "int64"
    },
    "limit": {
      "type": "integer",
      "format": "int64",
      "description": "Page size. Max limit 100 per req"
    },
    "filter": {
      "$ref": "#/$defs/robotapiRobotNodeJob"
    },
    "filterData": {
      "$ref": "#/$defs/robotapiRobotFilterData"
    }
  },
  "$defs": {
    "robotapiRobotFilterData": {
      "description": "Request body with filter options",
      "type": "object",
      "properties": {
        "SortBy": {
          "type": "string"
        },
        "PageSize": {
          "type": "integer",
          "format": "int64"
        },
        "PageNum": {
          "type": "integer",
          "format": "int64"
        },
        "Descending": {
          "type": "boolean",
          "format": "boolean"
        },
        "MatchCase": {
          "type": "boolean",
          "format": "boolean"
        },
        "Criteria": {
          "type": "string"
        }
      }
    },
    "robotapiRobotJobState": {
      "description": "Various Job Resulting states.",
      "type": "string",
      "enum": [
        "JOB_INVALID",
        "JOB_REJECTED",
        "JOB_ACCEPTED",
        "JOB_DB_UPDATED",
        "JOB_NOTIFICATION_PUBLISHED",
        "JOB_COMPLETED",
        "JOB_FAILED"
      ],
      "default": "JOB_INVALID"
    },
    "robotapiRobotNodeJob": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "string",
          "description": "Job id"
        },
        "inst_id": {
          "type": "string",
          "description": "Server instance identifier"
        },
        "state": {
          "$ref": "#/$defs/robotapiRobotJobState",
          "description": "Current State of the Job"
        },
        "type": {
          "type": "string",
          "description": "Job type. Debug purpose"
        },
        "error": {
          "type": "string",
          "description": "If any error"
        },
        "completion_time": {
          "type": "string",
          "format": "int64",
          "description": "Remaining time to complete"
        },
        "creation_time": {
          "type": "string",
          "format": "int64",
          "description": "Job creation time in epoch seconds"
        },
        "created_by": {
          "type": "string",
          "description": "User"
        },
        "impacted_count": {
          "type": "integer",
          "format": "int64",
          "description": "Impacted nodes/tags, provider or profiles"
        }
      },
      "impacted": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "title": "Impacted elements list"
      },
      "description": "Every Action related to Inventory will have a Job"
    }
  }
}