You can use the vRealize Automation REST API catalog service to request a vCloud Air machine.
Log in to vRealize Automation as a consumer and current business group user.
Verify that the host name and fully qualified domain name of the vRealize Automation instance are available.
If you are not using the API Explorer, verify that you have a valid HTTP bearer token that matches your login credentials. See REST API Authentication.
View a list of catalog items. See List Shared and Private Catalog Items.
Construct a JSON File for a vCloud Air machine request. See Syntax for Constructing a JSON File for a vCloud Air Machine Request.
Obtain the request ID ($requestId) of the request for which to view status. See View All Your Requests.
- Find the catalog item that corresponds to the vCloud Air blueprint to use for the machine request by retrieving a page of published blueprint catalog items.
curl --insecure -H "Content-Type: application/json" -H "Authorization: Bearer $token” https://$host/catalog-service/api/consumer/catalogItems?limit=10&page=1
- Construct a JSON file that contains the work item ID information to approve a machine request.
- Copy the appropriate JSON input file template to a new file in an XML editor that maintains formatting.
- Substitute the input variables in the template with the values obtained for specific ID.
- Save the file with a new name, for example, request.json.
- Request a machine as defined in the chosen blueprint or override the default values of the blueprint by adding properties to the JSON input file to override default values.
curl --insecure -H "Content-Type: application/json" -H "Authorization: Bearer $token” https://$host/catalog-service/api/consumer/requests --verbose --data @C:/Temp/requestMachine.json
- View the details of the machine request by using the catalog service.
curl --insecure -H "Content-Type: application/json" -H "Authorization: Bearer $token" https://$host/catalog-service/api/consumer/requests/510051b5-52ce-45db-8889-d4eeabf68da1