Datacenter Batch Query Connect Info

Datacenter Batch Query Connect Info

This interface returns a list of information about the specified hosts without adding them to the vCenter inventory.

It does so by calling QueryConnectionInfoViaSpec.

Required privileges: System.View

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/Datacenter/{moId}/BatchQueryConnectInfo
COPY
Path Parameters
string
moId
Required

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}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Request Body
BatchQueryConnectInfoRequestType of type(s) application/json
Required
"BatchQueryConnectInfoRequestType Object"
array of object
hostSpecs
Optional

Information about the set of hosts to query.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns Array of DatacenterBasicConnectInfo of type(s) application/json
[
    "DatacenterBasicConnectInfo Object"
]

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/Datacenter/{moId}/BatchQueryConnectInfo