{"type":"model","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/c0404d8d-ff8e-36e9-bb59-ee336d247534","info":{"title":"Crosswork Change Automation API","version":"7.1.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"description":"A web server dedicated to RESTful queries into the Crosswork Change Automation application."},"x-parser-conf":{"overview":{"markdownPath":"reference/CAHI/change_automation.overview.md"}},"openapi":"3.1.0","servers":[{"url":"https://{server_ip}:30603/crosswork/nca/v1","description":"Generated server url"}]},"spec":{"type":"object","description":"Change Automation Mop Jobs Read Response","properties":{"result":{"type":"array","items":{"type":"object","description":"Change Automation Mop Job","properties":{"execution_id":{"type":"string","title":"A unique ID to track the execution of MOP","description":"A unique ID to track the execution"},"mop_id":{"type":"string","title":"ID of the mop to be executed","description":"ID of the mop to be executed"},"check_start_time":{"type":"integer","format":"uint64","description":"Time at which pre-checks should start for the job. Default is now, i.e. as\nsoon as possible."},"exec_start_time":{"type":"integer","format":"uint64","description":"Time at which the actual execution, i.e. maintenance tasks should begin.\nDefault is now, i.e. as soon as possible."},"execution_params":{"type":"string","description":"JSON object specifying the execution parameters for the MoP job."},"execution_policy":{"title":"JSON object specifying the execution policy in key-value format","type":"object","description":"Change Automation Mop Execution Policy","properties":{"execution_strategy":{"title":"Type of execution of playbook","type":"string","enum":["STRATEGY_UNKNOWN","STRATEGY_CONTINUOUS","STRATEGY_SINGLE_STEP","STRATEGY_DRY_RUN"],"default":"STRATEGY_UNKNOWN","description":"Mop Execution Policy Exec Strategy Type","$$ref":"#/components/schemas/MopExecutionPolicyExecStrategyType"},"pause_on_tasks":{"type":"array","description":"ID's of the tasks on which the execution should pause when in single\nstepping mode","items":{"type":"integer","format":"int64"},"title":"ID's of the tasks on which the execution should pause when in single\nstepping mode"},"on_failure":{"title":"Action that the user wishes to take on task failure","type":"string","enum":["ON_FAILURE_UNKNOWN","ON_FAILURE_PAUSE","ON_FAILURE_COMPLETE_ROLLBACK","ON_FAILURE_ABORT"],"default":"ON_FAILURE_UNKNOWN","description":"Mop Execution Policy On Failure Action Type","$$ref":"#/components/schemas/MopExecutionPolicyOnFailureActionType"},"collect_syslog":{"type":"boolean","title":"Denotes whether to collect device syslogs or not","description":"Denotes whether to collect device syslogs or not"},"timeout":{"type":"string","title":"MoP timeout","description":"MoP timeout"}},"$$ref":"#/components/schemas/change_automationMopExecutionPolicy"},"devices":{"type":"array","items":{"type":"string"},"description":"List of devices on which the mop is executed."},"status":{"type":"string","title":"Current Status of the mop execution","description":"Current Status of the mop execution"},"exec_end_time":{"type":"integer","format":"uint64","description":"Denotes the time at which mop execution was completed. This field will be\npopulated only after the execition is complete."},"created_at":{"type":"integer","format":"uint64","title":"Time at which mop got scheduled for execution with infra","description":"Time at which mop got scheduled for execution with infra"},"update_time":{"type":"integer","format":"uint64","title":"Update time is a rolling field which stores the time of the latest update\nto the mopjob instance. If can be a reflection of any of the time fields","description":"Update time is a rolling field which stores the time of the latest update\nto the mopjob instance. If can be a reflection of any of the time fields"},"update_desc":{"type":"string","title":"Update desc contains the description of the rolling update_time field.\nExample, when update_time reflects created_at, update_desc can contain\nsomething like, \"Time at which mopjob was created\"","description":"Update desc contains the description of the rolling update_time field.\nExample, when update_time reflects created_at, update_desc can contain\nsomething like, \"Time at which mopjob was created\""},"created_by":{"type":"string","description":"The user who submitted the request."},"last_updated_task":{"type":"integer","format":"int64","title":"ID of the last task that was executed. If the MOP is in running state, this\nfield will contain the ID of the task that is being executed currently","description":"ID of the last task that was executed. If the MOP is in running state, this\nfield will contain the ID of the task that is being executed currently"},"parsed_pb":{"description":"A detailed task level breakdown of the playbook.","type":"object","properties":{"continuous":{"type":"array","items":{"type":"object","description":"Change Automation Playbook Task","properties":{"idx":{"type":"integer","format":"int64","title":"ID of the task","description":"ID of the task"},"name":{"type":"string","title":"Name of the task","description":"Name of the task"},"verb":{"type":"string","description":"ID of the verb the task invokes."}},"$$ref":"#/components/schemas/change_automationPlaybookTask"},"title":"List of all continuous tasks in the playbook","description":"List of all continuous tasks in the playbook"},"pre_maintenance":{"type":"array","items":{"type":"object","description":"Change Automation Playbook Task","properties":{"idx":{"type":"integer","format":"int64","title":"ID of the task","description":"ID of the task"},"name":{"type":"string","title":"Name of the task","description":"Name of the task"},"verb":{"type":"string","description":"ID of the verb the task invokes."}},"$$ref":"#/components/schemas/change_automationPlaybookTask"},"title":"List of all pre-maintenance tasks in the playbook","description":"List of all pre-maintenance tasks in the playbook"},"maintenance":{"type":"array","items":{"type":"object","description":"Change Automation Playbook Task","properties":{"idx":{"type":"integer","format":"int64","title":"ID of the task","description":"ID of the task"},"name":{"type":"string","title":"Name of the task","description":"Name of the task"},"verb":{"type":"string","description":"ID of the verb the task invokes."}},"$$ref":"#/components/schemas/change_automationPlaybookTask"},"title":"List of all maintenance tasks in the playbook","description":"List of all maintenance tasks in the playbook"},"post_maintenance":{"type":"array","items":{"type":"object","description":"Change Automation Playbook Task","properties":{"idx":{"type":"integer","format":"int64","title":"ID of the task","description":"ID of the task"},"name":{"type":"string","title":"Name of the task","description":"Name of the task"},"verb":{"type":"string","description":"ID of the verb the task invokes."}},"$$ref":"#/components/schemas/change_automationPlaybookTask"},"title":"List of all post-maintenance tasks in the playbook","description":"List of all post-maintenance tasks in the playbook"}},"$$ref":"#/components/schemas/change_automationPlaybookPhases"},"set_id":{"type":"string","description":"An identifier for a job set to which this job belongs."},"mop_name":{"type":"string","title":"Name of the MoP executed","description":"Name of the MoP executed"}},"$$ref":"#/components/schemas/change_automationMopJob"},"title":"List of mopjobs that were retrieved as a result of the query","description":"List of mopjobs that were retrieved as a result of the query"},"count":{"type":"integer","format":"int64","title":"Count of total number of mop jobs returned","description":"Count of total number of mop jobs returned"},"current_count":{"type":"integer","format":"int64","title":"Count of current number of mop jobs returned","description":"Count of current number of mop jobs returned"}},"example":{"result":[{"execution_id":"1687426280907-75acbf9b-044b-44fe-bc5f-7b9cf107b825","mop_id":"router_check_accessibility","check_start_time":1687426641,"exec_start_time":1687426641,"execution_params":"{\"1\":{},\"2\":{}}","execution_policy":{"execution_strategy":"STRATEGY_CONTINUOUS","on_failure":"ON_FAILURE_ABORT","timeout":"3600s"},"devices":["xrv9k-1"],"status":"COMPLETED","exec_end_time":1687426659,"created_at":1687426641,"update_time":1687426659,"update_desc":"MoP job completed","created_by":"admin","parsed_pb":{"maintenance":[{"idx":1,"name":"Check IP connectivity","verb":"op_check_ip_connectivity"},{"idx":2,"name":"Check JsonRpc connectivity to managing NSO","verb":"op_check_nso_connectivity"}]},"mop_name":"Check accessibility to router"}],"count":1,"current_count":1},"$$ref":"#/components/schemas/change_automationMopJobsReadResp","title":"change_automationMopJobsReadResp"}}