Vsan File Service System Vsan Cluster Query Fs Domains

Vsan File Service System Vsan Cluster Query Fs Domains

Lists all file service domains in the vSAN cluster.

To list all the file service domains, leave both the uuids and names field empty. Otherwise the return result will be a set of file service domains matches the domain UUID or domain name provided in the parameters. If both fields are provided, only those file service domain with both domain name and domain UUID matched will be returned.

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/vsan/VsanFileServiceSystem/{moId}/VsanClusterQueryFsDomains
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 VsanFileServiceSystem/{moId}.

string
release
Required

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


Request Body
VsanClusterQueryFsDomainsRequestType of type(s) application/json
Required
"VsanClusterQueryFsDomainsRequestType Object"
querySpec
Optional

The specifications of the file service domains to be queried.

cluster
Optional

The target cluster. Ignored when called on ESXi hosts.

Required privileges: System.Read

Authentication
This operation uses the following authentication methods.
Responses
200

List of all the domain information on this host.

[
    "VsanFileServiceDomain Object"
]
Optional

500

InvalidState: Exception when the file service is not enabled in this cluster.

Returns InvalidState of type(s) application/json
"InvalidState Object"

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