You can cancel the run of a workflow by
using the vRealize
Orchestrator REST API.
Procedure
-
Retrieve the definition
of the workflow by making a
GET
request at the URL of the workflow's definition:
GET https://{orchestrator_fqdn}/vco/api/workflows/{workflowID}/
The
workflow definition contains a link to the available runnable objects of the workflow.
-
Get the available workflow runs by making a
GET request to the URL
that holds the available runnable objects for the workflow:
GET https://{orchestrator_fqdn}/vco/api/workflows/{workflowID}/executions/
-
From the list of the available workflow runs,
select the run that you want to cancel and make a DELETE request at its URL:
DELETE https://{orchestrator_fqdn}/vco/api/workflows/{workflowID}/executions/{runID}/state