As a VMware Aria® Suite Lifecycle™ user or customer, you can perform VMware Aria Suite Lifecycle functions programmatically by using REST API service calls. The API follows the REST style and is available to all licensed users.
About the API Reference
- For the VMware Aria Suite Lifecycle APIs, go to
https://$url/api/swagger-ui.html
- For the Content Management APIs, go to
https://$url/lcm/cms/api/swagger-ui.html
The VMware Aria Suite Lifecycle Swagger docs are also publicly available at from the VMware Developer site. See VMware Aria Suite Lifecycle REST API.
How Developers Use the 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 APIs, you can start by performing the steps outlined in the following use cases:
- Installing and Importing Products Using VMware Aria Suite Lifecycle APIs
- Managing SDDC Content Using Content Management APIs
All 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/.
VMware Aria Suite Lifecycle Postman collections are available from https://github.com/vmware/vrealize-suite-lifecycle-manager-sdk.
Postman collections for VMware Aria Suite Lifecycle are provided as samples on the Documentation tab of the VMware Aria Suite Lifecycle REST API.
Authentication
curl -H "Authorization: Basic <token>" -k https://<LCM_hostname>/lcm/lcops/api/settings/systemsettings
- LCM_hostname is the hostname or IP address of the VMware Aria Suite Lifecycle server that manages the VMware Workspace ONE Access cluster.
- token is the Base64 encoded value of "username:password", with username admin@local and the password for admin@local. To encode to Base64 format, you can use a web application such as https://www.base64encode.org/.
curl -H "Authorization: Basic YWRtaW5AbG9jYWw6VGhpc0lzUGFzc3dvcmQ=" -k https://vrlcm.vrack.local/lcm/lcops/api/settings/systemsettings