Datacenter Query Connection Info Via Spec
This method provides a way of getting basic information about a host without adding it to a datacenter.
This method is similar to QueryConnectionInfo, but it takes a HostConnectSpec as argument, instead of list of parameters.
Required privileges: System.View
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 Datacenter/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"QueryConnectionInfoViaSpecRequestType Object"
The connection spec for the host to be queried. It must contain values for all parameters required by Datacenter.QueryConnectionInfo See Datacenter.QueryConnectionInfo or a list of thrown expections.
OK
"HostConnectInfo Object"
The IP address of the VirtualCenter already managing this host, if any.
If the host is already being managed by a vCenter Server, this property reports true if the host is also part of a vSphere HA enabled cluster.
If this is the case, remove or disconnect the host from this cluster before adding it to another vCenter Server.
Summary information about the host.
The status fields and managed object reference is not set when an object of this type is created. These fields and references are typically set later when these objects are associated with a host.
The list of virtual machines on the host.
Whether or not the host requires a vimAccountName and password to be set in the ConnectSpec.
This is normally only required for VMware Server hosts.
Whether or not the host supports clustering capabilities such as HA or DRS and therefore can be added to a cluster.
If false, the host must be added as a standalone host.
The list of network information for networks configured on this host.
The list of datastores on the host.
License manager information on the host
Host capabilities.
InvalidArgument: if the spec argument does not provide values for all needed connection parameters.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/Datacenter/{moId}/QueryConnectionInfoViaSpec