Create a data center to back vRealize Suite environments in vRealize Suite Lifecycle Manager.
Procedure
- Log in to vRealize Suite Lifecycle Manager.
curl POST "http://localhost:8000/lcm/api/v1/login" \
- Submit a request for a new data center with parameters inline.
curl -X POST "http://localhost:8000/lcm/api/v1/action/create/datacenter" \
-H "accept: application/json" \
-H "x-xenon-auth-token: $token" \
-H "content-type: application/json" \
-d '{"datacenterName": "$name",
"city": "$city",
"country": "$country",
"latitude": "$latitude",
"longitude": "$longitude",
"state": "$state"}'
- Examine the response to verify that the request is successful.
- (Optional) View data center details.
curl GET "http://localhost:8000/lcm/api/v1/view/datacenter?datacenterId={datacenterId}"
Create a Data Center Response
When the data center is successfully completed, vRealize Suite Lifecycle Manager returns a response similar to the following:
{
"id": "$DataCenterID",
"type": null,
"state": null,
"status": "SUCCESS",
"isRetriable": null,
"retryParameters": null
}