As a VMware vRealize® Automation™ user or customer, you can perform vRealize Automation Cloud Assembly, vRealize Automation Service Broker, and vRealize Automation Code Stream functions programmatically by using REST API service calls.
API Services
vRealize Automation includes the following APIs. API documentation is available with the product. To access all Swagger specifications from a single landing page, go to https://<vRA-HOSTNAME>/automation-ui/api-docs
where vRA-HOSTNAME is the FQDN of your vRealize Automation appliance.
Main Service | Service Name and Description |
---|---|
ABX | |
Service Broker | |
Cloud Assembly | |
Service Broker | |
CMX | |
Code Stream | |
Cloud Assembly | |
Forms | |
User Profile | |
Service Broker | |
Identity | |
Cloud Assembly | |
Migration | |
Relocation | |
Service Broker | |
Project |
API versioning
- For the IaaS APIs, the latest version is 2021-07-15. If you consume the IaaS APIs without versioning or if you assign a value other than 2021-07-15, requests use the version 2019-01-15.
As a best practice, lock your IaaS API requests with the apiVersion query parameter assigned to 2021-07-15 so that you ensure a smooth transition to the latest version before the version 2019-01-15 reaches its end of life. See Working with Cloud Assembly APIs.
- For other APIs, you can specify any date you choose for the apiVersion query parameter. If you leave the value unspecified, requests use the latest API version by default. However backward compatibility is not preserved and if the API changes, you might encounter an unexpected change in the API response.
As a best practice, use the apiVersion query parameter in your API requests and lock your API to the latest version listed in the Swagger specification. Then if a new API version is announced, you control when to opt-in to that version by changing the apiVersion query parameter to the new version value.
GET https://appliance.domain.com/catalog/api/sources?apiVersion=2020-01-30
GET https://appliance.domain.com/catalog/api/sources?apiVersion=2020-08-25Setting the apiVersion query parameter to the latest version ensures that you will also get updates to the catalog API that occur after 2020-08-25. However, no breaking changes will occur until a new version is announced and you will only experience those changes if you change the value of the apiVersion query parameter to a date that is equivalent to the new version or later.
https://<vRA-HOSTNAME>/automation-ui/api-docs
and click the cards to open the Swagger specifications.
How Developers Use the vRealize Automation APIs
To make API service calls, you use a browser application or an HTTP client application to send requests and review responses. The following open-source applications are commonly used:
- cURL. http://curl.haxx.se
- jq parser. https://stedolan.github.io/jq/
- Postman application. https://www.getpostman.com/
To learn how to use the API, you can start by performing the steps outlined in the following use cases:
- Working with Cloud Assembly APIs
- Managing Your Projects Using the Project APIs
- Working with Blueprints/Cloud Templates
- Requesting a Deployment from a Catalog Item Using Service Broker APIs
- Managing Your Deployment
The use cases include curl commands in request examples. To use the commands, ensure that the jq command-line JSON processor is installed with curl. The jq parser ensures that responses are formatted for optimum readability. For information about jq installation, see https://stedolan.github.io/jq/.