[{"label":"Latest (1.3.0)","version":"latest"}]
vrealize-suite-lifecycle-manager

Validate vCenter V2

Description

This API is used to validate vCenter details.

Request

Request

URL

URL


post
https://localhost:8080/lcm/lcops/api/v2/datacenters/{dataCenterVmid}/vcenters/validate
Copy

Path Parameters

Path Parameters

string
dataCenterVmid Required

dataCenterVmid


Request Body

Request Body

VCenterRequestDTO of type(s) application/json Required

vCenterRequestDTO

{
	"vCenterHost": "vcenter-1.example.com",
	"vCenterName": "vCenter-1",
	"vcDataCollectionStatus": "SUCCESS",
	"vcPassword": "locker:password:<vmid>:<alias>",
	"vcUsedAs": "MANAGEMENT",
	"vcUsername": "administrator@vsphere.local"
}
string
vCenterHost Optional

vCenter Server Host


string
vCenterName Optional

vCenter Server Name


string
vcDataCollectionStatus Optional

vCenter Data Collection Status


string
vcPassword Optional

vCenter Server Password


string
vcUsedAs Optional

vCenter Server Used As


string
vcUsername Optional

vCenter Server Username

Authentication

Authentication

This operation uses the following authentication methods.

Authorization

Scopes: global

Response

Response

Response Body

Response Body

201 Created returns array of GenericRequestResponse of type(s) application/json
{
	"requestId": "a0d8d8cd-ac87-4b5c-ba8b-7a0173c56b55"
}
string
requestId Optional

Request ID

Errors

Errors

400

Bad Request


401

Unauthorized


403

Forbidden


404

Not Found


500

Internal Server Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"vCenterHost":"vcenter-1.example.com","vCenterName":"vCenter-1","vcDataCollectionStatus":"SUCCESS","vcPassword":"locker:password:<vmid>:<alias>","vcUsedAs":"MANAGEMENT","vcUsername":"administrator@vsphere.local"}' https://localhost:8080/lcm/lcops/api/v2/datacenters/{dataCenterVmid}/vcenters/validate


Feedback

Was this page helpful?