Add a vCenter to a Data Center before using that vCenter to create a private cloud environment.
Prerequisites
- Verify that you have a valid authentication token that matches your login credentials.
- Verify that you have added a data center and the request has completed successfully. See Create a Data Center.
- Ensure that you have the vCenter fully qualified domain name, user name, and password.
Procedure
- Log in to vRealize Suite Lifecycle Manager.
curl POST "https://LCM-Hostname/lcm/api/v1/login" \
- Submit a request to add a vCenter to vRealize Suite Lifecycle Manager with parameters inline.
curl -X POST "https://LCM-Hostname/lcm/api/v1/action/add/vc" \
-H "accept: application/json" \
-H "x-xenon-auth-token: $token" \
-H "content-type: application/json" \
-d '{
"datacenterName": "$DataCenterName",
"vCenterName": "&vCenterFQDN",
"userName": "admin@localhost",
"password": "$adminPassword!",
"type": 3}'
Results
If the vCenter is successfully added,
vRealize Suite Lifecycle Manager returns the following response:
200 Operation successful