{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-robotapi-robot-node-job-list-schema.json",
  "title": "robotapiRobotNodeJobList",
  "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/robotapiRobotNodeJobList",
  "type": "object",
  "properties": {
    "jobs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/robotapiRobotNodeJob"
      },
      "description": "creation time based sorted list of RobotNodeJob"
    },
    "total_count": {
      "type": "integer",
      "format": "int32",
      "description": "Number of total jobs available at present"
    }
  },
  "$defs": {
    "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"
    }
  }
}