automation-cancel

Purpose

This automation cancels one automation based on the provided automation ID.

automation-cancel

API used:

/operations-manager/jobs/cancel/

Input

InputsData TypeSample InputDescription
instance_nameDropdown (String)SE Lab Prod 2023.1The Itential Platform instance name
automation_idString4278c701b83943b08a98***The Automation ID of the Automation that needs to be cancelled.
token (optional)String9f0999c2-7054-4820-8eeb-c3052d30acaaAuthentication token or empty if an API key is used

Output

OutputData TypeSample OutputDescription
MessageStringSuccessfully canceled job 24fe09ed634a461b987***Success Message

Error Output

Error OutputData TypeSample OutputDescription
error_messageString{"metadata":{},"data":{"4f874bd834174ae78a56f3**":"Cannot cancel job 4f874bd834174ae78a56f** that is canceled"},"message":"Failed to cancel all jobs"}Error Message