Cisco Cisco Process Orchestrator 3.1 User Guide
13-46
Cisco Process Orchestrator 3.1 User Guide
Appendix 13 Using Adapters
OpenStack Adapter
•
OpenStack server name—Enter the host name or the IP address of the OpenStack server.
•
Override default URL—Select this option to enter an appropriate URL to use to override the default
URL.
URL.
•
API Version—Select the appropriate API version to which your automation content is associated.
•
Ignore Secure Socket Layer (SSL) certificate error—Check this check box to indicate the target
should ignore certificate errors when attempting to connect to the service portal.
should ignore certificate errors when attempting to connect to the service portal.
•
Runtime user—Select this radio button to specify the runtime user required to execute a process or
activity against this target.
activity against this target.
Step 4
Verify the information on the Completing the New OpenStack Server Wizard panel and click Finish to
close the wizard.
close the wizard.
Automating OpenStack Adapter Activity
Defining the Execute OpenStack Command Activity
Use the Execute OpenStack Command activity to execute OpenStack RESTful API command against an
OpenStack server. The Execute OpenStack Command activity provides a flexible way to automatically
track authentication tokens and renew them as needed. Responses for common information are scanned
and displayed as activity results in the Operations Workspace activity instance view.
OpenStack server. The Execute OpenStack Command activity provides a flexible way to automatically
track authentication tokens and renew them as needed. Responses for common information are scanned
and displayed as activity results in the Operations Workspace activity instance view.
Step 1
In the Process Editor Toolbox, choose OpenStack > Execute OpenStack Command and drag and drop
the activity onto the Workflow pane.
the activity onto the Workflow pane.
Step 2
Click the General tab and enter the appropriate information.
Step 3
Click the Request tab and enter the following information:
•
Project—The project or an organizational unit in the cloud that is used to scope the command. It is
also known as tenant.
also known as tenant.
•
Base URL—Select the appropriate service and the endpoints through which you can access the
resources and perform operations.
resources and perform operations.
–
Service—The OpenStack services supported by the OpenStack server.
–
Endpoint—The endpoint to access the OpenStack service.
•
Relative URL—Enter the URL to be requested. The Relative URL is case-sensitive.
From the Insert Variable Reference dialog box, select the reference variable and then enter the rest
of the URL to be requested. For example, if you want to request for all the tenants available in the
OpenStack service, you can enter [Process.Target.IDentity Endpoints
FirstRowAdminURL]/tenants.
of the URL to be requested. For example, if you want to request for all the tenants available in the
OpenStack service, you can enter [Process.Target.IDentity Endpoints
FirstRowAdminURL]/tenants.
•
Method—The method to be performed on the resource identified by the Request-URI. For a list of
common header methods, see HTTP Header Methods.
common header methods, see HTTP Header Methods.
•
Request Content Type—The value for the content type used to define the structure of the request.
•
Request—Enter any additional HTTP request details using JSON or XML format.
•
Response Content Type—The value for the content type used to define the structure of the response.