GET Vsphere
Get all vCenter Server integration configurations.
Successfully retrieved vCenter Server integration configurations.
{
"vCenterServers": [
{
"hostname": "vSphere-hostname1",
"username": "vSphere-username1",
"syslogProtocol": "tcp",
"esxiHostsConfigured": true,
"configureNewEsxiHostsAutomatically": true,
"passwordSet": true,
"vsphereEventsEnabled": true,
"target": "exampleVIP.ip.or.fqdn",
"collectionStatus": "Error",
"collectionStatusDetails": "vCenter Server SSL Certificate is not trusted",
"uuid": "00000000-0000-0000-0000-000000000000",
"userTags": "tag1=value1,tag2=value2"
},
{
"hostname": "vSphere-hostname2",
"username": "vSphere-username2",
"syslogProtocol": "udp",
"esxiHostsConfigured": false,
"configureNewEsxiHostsAutomatically": false,
"passwordSet": true,
"vsphereEventsEnabled": true,
"target": "exampleVIP1.ip.or.fqdn",
"collectionStatus": "Collecting",
"uuid": "00000000-0000-0000-0000-000000000000",
"userTags": "tag1=value1,tag2=value2"
}
]
}
The request was refused because it lacks valid authentication
credentials. This can happen if the Authorization header
was missing, or if it contained an invalid session ID.
Obtain a new session ID and retry the request,
or make an unauthenticated request without the Authorization header.
"Invalid session ID"
The request was refused because the session ID has
expired. Obtain a new session ID from /api/v1/sessions.
"Login Timeout"
Internal error while processing the client request
{
"errorMessage": "The operation failed due to an internal error."
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
curl -H 'Authorization: <value>' https://{api_host}/api/v1/vsphere