{"type":"api","title":"Get Job details by Id","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/773d8c2d-0de2-3906-8d3f-8a19d6895750","info":{"title":"Crosswork Workflow Manager Solutions - Automations","description":"The automation service acts as an orchestrator, handling the scheduling, execution,\nbatch processing, and monitoring of MOPs and their activities. The API provides endpoints for managing these operations.","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"https://www.cisco.com/public/sw-license-agreement.html"},"version":"7.1.0"},"x-parser-conf":{"overview":{"markdownPath":"reference/CWM-SOLUTIONS/automations-api.overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://crosswork-ip:30603/crosswork/cwms/automations/v1"}]},"spec":{"tags":["MOP Jobs"],"summary":"Get Job details by Id","description":"API to retrieve the status of a job by its ID.","operationId":"describeJob","parameters":[{"name":"job-id","in":"path","description":"Job ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns the job execution status","content":{"application/json":{"schema":{"type":"object","description":"A structure to hold the job details","properties":{"app":{"type":"string","description":"Application name"},"endDateTime":{"type":"string","description":"End date and time of the job"},"jobId":{"type":"string","description":"Job ID"},"jobName":{"type":"string","description":"Job name"},"jobStages":{"type":"array","description":"List of stages associated with the job","items":{"type":"string","description":"Stage name"}},"jobStatus":{"type":"string","description":"Job status enum of success, failure, running, schedule, cancelled, and pending"},"jobTags":{"type":"array","description":"List of tags associated with the job","items":{"type":"string","description":"Tag name"}},"mop":{"type":"string","description":"MOP name"},"nextRun":{"type":"string","description":"Next run date and time of the job"},"resourceCount":{"type":"integer","description":"Number of resources associated with the job"},"resourceResults":{"type":"object","description":"Summary of resource results","additionalProperties":{"type":"integer","description":"Number of resources in the result"}},"startDateTime":{"type":"string","description":"Start date and time of the job"},"updateTo":{"type":"object","description":"job workload"},"createdBy":{"type":"string","description":"User who created the job"}},"$$ref":"#/components/schemas/DescribeJobResponse"}}}},"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","description":"A structure to hold the standard response","properties":{"code":{"type":"integer","description":"HTTP status code"},"key":{"type":"string","description":"Key to retrieve the job details"},"message":{"type":"string","description":"Message"},"status":{"type":"string","description":"Status"},"statusInt":{"type":"integer","description":"Status integer"}},"$$ref":"#/components/schemas/StandardResponse"}}}},"406":{"description":"API requests are not acceptable at this time","content":{"application/json":{"schema":{"type":"object","description":"A structure to hold the standard response","properties":{"code":{"type":"integer","description":"HTTP status code"},"key":{"type":"string","description":"Key to retrieve the job details"},"message":{"type":"string","description":"Message"},"status":{"type":"string","description":"Status"},"statusInt":{"type":"integer","description":"Status integer"}},"$$ref":"#/components/schemas/StandardResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","description":"A structure to hold the standard response","properties":{"code":{"type":"integer","description":"HTTP status code"},"key":{"type":"string","description":"Key to retrieve the job details"},"message":{"type":"string","description":"Message"},"status":{"type":"string","description":"Status"},"statusInt":{"type":"integer","description":"Status integer"}},"$$ref":"#/components/schemas/StandardResponse"}}}}},"__originalOperationId":"describeJob","method":"get","path":"/status/job/{job-id}"}}