To view details
about all vCenter servers associated with a data center, you get the data
center ID then request the details for that ID.
Prerequisites
Satisfy the following
conditions before performing the tasks for this use case.
Procedure
- Request the name and ID
of the data center in
vRealize
Suite Lifecycle Manager.
curl -X GET "https://LCM-HostName/lcm/api/v1/view/datacenter" -H "accept: application/json" -H "x-xenon-auth-token: $token"
- Examine the response for
the request.
The output of the
request includes:
id = Data Center ID
name = Data Center
Name
- Use the Data Center ID
to request details about the data center.
curl -X GET "https://LCM-HostName/lcm/api/v1/view/datacenter?datacenterId=<Datacenter-ID>" -H "accept: application/json" -H "x-xenon-auth-token: $token"
- Examine the response to
view information about all vCenter servers for the specified data center.
The output of the
request includes: