{"type":"api","title":"Get resources summary","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 resources summary","description":"Get summary of resources associated with a job in a paginated format.","operationId":"getAllJobResources","parameters":[{"name":"job-id","in":"path","description":"Job ID","required":true,"schema":{"type":"string"}},{"name":"page_number","in":"query","description":"page_number value","required":true,"schema":{"type":"integer"}},{"name":"page_size","in":"query","description":"page_size value","required":true,"schema":{"type":"integer"}},{"name":"result","in":"query","description":"result value","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns the list of resources","content":{"application/json":{"schema":{"type":"object","description":"A structure to hold the list of resources in pagenated format","properties":{"jobId":{"type":"string","description":"Job ID"},"jobName":{"type":"string","description":"Job name"},"pagination":{"type":"object","description":"A structure to hold the pagination details","properties":{"pageNumber":{"type":"integer","description":"Page number"},"pageSize":{"type":"integer","description":"Page size"},"total":{"type":"integer","description":"Total number of records"}},"$$ref":"#/components/schemas/Pagination"},"resources":{"type":"array","description":"List of resources","items":{"type":"object","description":"A structure to hold summary of resource details","properties":{"cwmJobURI":{"type":"string","description":"URI to the CWM job details"},"describeURI":{"type":"string","description":"A downstream URI to retrieve resource details"},"lastAction":{"type":"string","description":"Last stage performed on the resource"},"model":{"type":"string","description":"Model of the resource"},"name":{"type":"string","description":"Resource name"},"result":{"type":"string","description":"enum of success, warning, failure, running, pending"},"startDateTime":{"type":"string","description":"Start date and time of the resource"},"endDateTime":{"type":"string","description":"End date and time of the resource"}},"$$ref":"#/components/schemas/ResourceRowData"}}},"$$ref":"#/components/schemas/ResourcesOfAJobResponse"}}}},"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":"getAllJobResources","method":"get","path":"/status/job/{job-id}/resources"}}