{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-robotapi-robot-node-job-schema.json",
  "title": "robotapiRobotNodeJob",
  "description": "Every Action related to Inventory will have a Job",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-add-credentials-api-openapi.yml#/components/schemas/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"
  },
  "$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"
    }
  }
}