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.
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}.
The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.
{
"querySpec": {
"_typeName": "string",
"uuids": [
"string"
],
"names": [
"string"
]
},
"cluster": {
"_typeName": "string",
"type": "string",
"value": "string"
}
}
The specifications of the file service domains to be queried.
The target cluster. Ignored when called on ESXi hosts.
Required privileges: System.Read
List of all the domain information on this host.
[
{
"_typeName": "string",
"uuid": "string",
"config": {
"_typeName": "string",
"name": "string",
"dnsServerAddresses": [
"string"
],
"dnsSuffixes": [
"string"
],
"fileServerIpConfig": [
{
"_typeName": "string",
"dhcp": false,
"ipAddress": "string",
"subnetMask": "string",
"ipV6Config": {
"_typeName": "string",
"ipV6Address": [
{
"_typeName": "string",
"ipAddress": "string",
"prefixLength": 0,
"origin": "string",
"dadState": "string",
"lifetime": "string",
"operation": "string"
}
],
"autoConfigurationEnabled": false,
"dhcpV6Enabled": false
},
"fqdn": "string",
"isPrimary": false,
"gateway": "string",
"affinityLocation": "string",
"ipv6Gateway": "string"
}
],
"directoryServerConfig": {
"_typeName": "string"
},
"version": "string"
}
}
]
VsanFileServiceDomain is the data object type reflecting the properties of a vSAN file service domain.
This type provides the UUID of the file service domain, and its configuration.
This structure may be used only with operations rendered under /vsan.
InvalidState: Exception when the file service is not enabled in this cluster.
{
"_typeName": "string",
"faultCause": {
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
},
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/sdk/vim25/{release}/vsan/VsanFileServiceSystem/{moId}/VsanClusterQueryFsDomains