GET /lcm/api/v1/view/environment?environmentId={environmentid} displays details for an existing environment.

Prerequisites

Satisfy the following conditions before performing any 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.

  • Verify that you have the environment ID for the environment to view.

curl Command

The following example requests full environment details for the specified environment.

curl -X GET "http://localhost:8000/lcm/api/v1/view/environment?environmentId=78b45f299cbdc2755585cc2bb88f8" \
        -H "accept: application/json" \
        -H "x-xenon-auth-token: $token" \

JSON Output

The following JSON output is returned based on the command output.

[
  {
    "name": "vra",
    "id": "$environmentID",
    "version": "7.2.0"
  }
]