You can list all the environments managed by vRealize Suite Lifecycle Manager and get information about the products in a specific environment.
Prerequisites
Satisfy the following conditions before performing the tasks for this use case.
Procedure
- List all environments managed by vRealize Suite Lifecycle Manager.
curl -X GET "https://LCM-HostName/lcm/api/v1/view/environment" -H "accept: application/json" -H "x-xenon-auth-token: $token"
- Examine the response.
The output of the request includes:
id = Environment ID
name = Environment Name
- Using the Environment ID, list information for all the products installed the environment.
curl -X GET "https://LCM-Hostname/lcm/api/v1/view/product?environmentId=<Environment-ID>" \
-H "accept: application/json" \
-H "x-xenon-auth-token: $token"
- Examine the response.
The output of the request includes the following information:
For example, the following response lists information about vRealize Automation installed in the environment.
{
"name": "vra",
"id": "d7ca8663e452e27556df33e7c14eb",
"version": "7.3.1"
}