7.1

Table Of Contents
2 Get the available workow runs by making a GET request to the URL that holds the available execution
objects for the workow:
GET https://{orchestrator_host}:{port}/vco/api/workflows/{workflowID}/executions/
3 From the list of the available workow executions, select the one that you want to cancel and make a
DELETE request at its URL:
DELETE https://{orchestrator_host}:
{port}/vco/api/workflows/{workflowID}/executions/{executionID}/
Retrieve a Workflow's Interactions
You can retrieve the list of all user interactions for a workow by using the Orchestrator REST API.
Procedure
1 Retrieve the denition of the workow by making a GET request at the URL of the workow's denition:
GET https://{orchestrator_host}:{port}/vco/api/workflows/{workflowID}/
2 Get the list of workow interactions by making a GET request to the URL of the workow's interactions:
GET https://{orchestrator_host}:{port}/vco/api/workflows/{workflowID}/interactions/
If the GET request is successful, you receive the status code 200 and a list of all user interactions available for
the workow.
Access a Workflow's Schema
You can access the schema image of a workow by using the Orchestrator REST API.
Procedure
1 Retrieve the denition of the workow by making a GET request at the URL of the workow's denition:
GET https://{orchestrator_host}:{port}/vco/api/workflows/{workflowID}/
2 Get the workow's schema image by making a GET request to the URL of the workow's schema:
GET https://{orchestrator_host}:{port}/vco/api/workflows/{workflowID}/schema/
If the GET request is successful, you receive the status code 200 and the binary data of the image,
representing the workow schema. The response content type is set to a correct media type, for example
Content-Type:image/png.
Working with Tasks
Using the Task service of the Orchestrator REST API, you can perform any operation that is related to
managing tasks in Orchestrator. You can create a task for scheduling a workow, modify the properties of an
already existing task, delete a task, and so on.
The maximum number of scheduled tasks supported by Orchestrator is 50.
Create a Task
You can create a task for scheduling a workow by using the Orchestrator REST API.
Prerequisites
Verify that you have imported the sample workows package in Orchestrator. The package is included in
the Orchestrator sample applications ZIP le that you can download from the Orchestrator documentation
page.
Chapter 3 Using the vRealize Orchestrator REST API
VMware, Inc. 29