5.5

Table Of Contents
Delete an SSL Certificate by Using the REST API
You can delete an SSL certificate by running the Delete trusted certificate workflow of the Configuration
plug-in or by using the REST API.
Procedure
1 Make a GET request at the URL of the Workflow service of the Delete trusted certificate workflow.
GET https://{vcoHost}:{port}/vco/api/workflows?conditions=name=Delete trusted certificate
2 Retrieve the definition of the Delete trusted certificate workflow by making a GET request at the URL of
the definition.
GET https://{vcoHost}:{port}/vco/api/workflows/8a70a326-ffd7-4fef-97e0-2002ac49f5bd
3 Make a POST request at the URL that holds the execution objects of the Delete trusted certificate
workflow.
POST https://{vcoHost}:{port}/vco/api/workflows/8a70a326-
ffd7-4fef-97e0-2002ac49f5bd/executions/
4 Provide the name of the certificate you want to delete as an input parameter of the Delete trusted
certificate workflow in an execution-context element in the request body.
Import SSL Certificates by Using the REST API
You can import SSL certificates by running a workflow from the Configuration plug-in or by using the REST
API.
You can import a trusted certificate from a file or a URL. For information about importing the
vCenter Server SSL certificate by using the Orchestrator configuration interface, see “Import the vCenter
Server SSL Certificate,” on page 39.
Procedure
1 Make a GET request at the URL of the Workflow service.
Option Description
Import trusted certificate from a file
Imports a trusted certificate from a file
Import trusted certificate from URL
Imports a trusted certificate from a URL address
To import a trusted certificate from a file, make the following GET request:
GET https://{vcoHost}:{port}/vco/api/workflows?conditions=name=Import
trusted certificate from a file
2 Retrieve the definition of the workflow by making a GET request at the URL of the definition.
To retrieve the definition of the Import trusted certificate from a file workflow, make the following GET
request:
GET https://{vcoHost}:{port}/vco/api/workflows/93a7bb21-0255-4750-9293-2437abe9d2e5
3 Make a POST request at the URL that holds the execution objects of the workflow.
For the Import trusted certificate from a file workflow, make the following POST request:
POST https://{vcoHost}:
{port}/vco/api/workflows/93a7bb21-0255-4750-9293-2437abe9d2e5/executions
Chapter 7 Configuring Orchestrator by Using the Configuration Plug-In and the REST API
VMware, Inc. 77