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.

  • Use POST /lcm/api/v1/login to log in to vRealize Suite Lifecycle Manager.

  • Verify that you have a valid authentication token that matches your login credentials. See Request an Authentication Token.

Procedure

  1. 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"
  2. Examine the response.

    The output of the request includes:

    • id = Environment ID

    • name = Environment Name

  3. 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"
  4. Examine the response.

    The output of the request includes the following information:

    • name = product name

    • id = product ID

    • version = product version

    For example, the following response lists information about vRealize Automation installed in the environment.

    {
       "name": "vra",
       "id": "d7ca8663e452e27556df33e7c14eb",
       "version": "7.3.1"
    }