Vim Cluster Vsan Vc Stretched Cluster System VSAN Vc Get Witness Hosts
Query witness host configuration of specified cluster.
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case VimClusterVsanVcStretchedClusterSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"VSANVcGetWitnessHostsRequestType Object"
The target cluster to query;
Required privileges: System.Read
VSANWitnessHostInfo[] which contains witness host's UUID, ManagedEntity instance, preferred Fault Domain's user friendly name and UUID, IP address of unicast agent, and name of the Fault Domain that witness host resides in. If specified cluster in vSAN stretched cluster, all fields above will be set to actual setting, otherwise all fields will be unset.
[
"VimClusterVSANWitnessHostInfo Object"
]
InvalidState: If any host in target cluster is not connected to vCenter server;
VsanFault: If any unexpected runtime fault is met.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VimClusterVsanVcStretchedClusterSystem/{moId}/VSANVcGetWitnessHosts