7.1

Table Of Contents
Export a Workflow
You can export a workow by using the Orchestrator REST API and download the workow as a le.
Procedure
1 In a REST client application, add a request header with the following values.
n
Name: accept
n
Value: application/zip
2 Make a GET request at the URL of the workow that you want to export:
GET http://{orchestrator_host}:{port}/vco/api/workflows/{workflowID}/
If the GET request is successful, you receive the status code 200. The workow binary content is available as
an aachment with a default le name workflow_name.workflow. You can save the le with a REST client
application.
Import an Action
You can import an action by using the Orchestrator REST API.
Depending on the library of your REST client application, you can use custom code that denes the
properties of the action.
Prerequisites
The action binary content should be available as multi-part content. For details, see RFC 2387.
Procedure
1 In a REST client application, add request headers to dene the properties of the action that you want to
import.
2 Make a POST request at the URL of the action objects:
POST http://{orchestrator_host}:{port}/vco/api/actions/
If the POST request is successful, you receive the status code 202.
Export an Action
You can export an action by using the Orchestrator REST API and download the action as a le.
Procedure
1 In a REST client application, add a request header with the following values.
n
Name: accept
n
Value: application/zip
2 Make a GET request at the URL of the action that you want to export:
GET http://{orchestrator_host}:{port}/vco/api/actions/{actionID}/
If the GET request is successful, you receive the status code 200. The action binary content is available as an
aachment with a default le name action_name.action. You can save the le with a REST client
application.
Chapter 3 Using the vRealize Orchestrator REST API
VMware, Inc. 35