Attach Virtual Center
Attach a Virtual Center server.
Request
URI
POST
https://{api_host}/cloudapi/1.0.0/virtualCenters
COPY
Request Body
VCenterServer
of type(s)
application/json
Optional
Show optional properties
{
"name": "vCenter Sample Name",
"username": "string",
"url": "https://sampleVc.vmware.com"
}
{
"vcId": "urn:vcloud:vimserver:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "vCenter Sample Name",
"description": "vCenter Sample Description",
"username": "string",
"password": "string",
"url": "https://sampleVc.vmware.com",
"isEnabled": false,
"vsphereWebClientServerUrl": "string",
"hasProxy": false,
"rootFolder": "string",
"vcNoneNetwork": "string",
"vcNoneNetworkMoref": "string",
"tenantVisibleName": "string",
"isConnected": false,
"mode": "string",
"listenerState": "string",
"clusterHealthStatus": "string",
"vcVersion": "6.7.0",
"buildNumber": "12345",
"uuid": "string",
"nsxVManager": {
"username": "string",
"password": "string",
"url": "https://sampleVsm.vmware.com",
"softwareVersion": "string"
},
"proxyConfigurationUrn": "string"
}
Responses
202
The request have been accepted and the task to monitor the request is in the Location header.
Operation doesn't return any data structure
400
Invalid configuration.
Returns
Error
of type(s)
*/*;version=39.1
"Error Object"
string
minorErrorCode
Required
minorErrorCode
string
message
Required
message
string
stackTrace
Optional
stackTrace
401
Unauthorized
Operation doesn't return any data structure
404
The specified resource was not found
Returns
Error
of type(s)
*/*;version=39.1
"Error Object"
string
minorErrorCode
Required
minorErrorCode
string
message
Required
message
string
stackTrace
Optional
stackTrace
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","url:"string","username:"string"}' https://{api_host}/cloudapi/1.0.0/virtualCenters
Availability
Added in 34.0
Virtual Center Operations
GET
Query Virtual Centers
POST
Attach Virtual Center
GET
Get Virtual Center
PUT
Update Virtual Center
DELETE
Delete Virtual Center
GET
Get Virtual Center Metrics
GET
Get Nsx V Manager Settings
PUT
Update Nsx V Manager Settings
GET
Get Root Resource Pools
GET
Get Child Resource Pools
GET
Get All Resource Pools
GET
Get Supported Hardware Versions
GET
Get Resource Pool Kubernetes Config
GET
Query Virtual Machine Classes
GET
Get Storage Profiles
GET
Get Vc Storage Policy Capabilities
GET
Get Unmanaged Virtual Machines
GET
Get Unmanaged Virtual Disks
GET
Retrieve Vsphere Vmca