Vsan File Service System Vsan Cluster Query File Shares
Lists all file shares in the domain.
To list all the file shares in the domain, leave both the shareUuids and shareNames field empty. Otherwise the return result will be a set of file shares matches the share UUID or share name provided in the parameters. If both fields are provided, only those file shares with both share name and share UUID matched will be returned. Note that if none of file shares matches the querySpec, the return value is None.
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.0.0.0 APIs.
"VsanClusterQueryFileSharesRequestType Object"
The specifications of the file shares to be queried.
The target cluster. Ignored when called on ESXi hosts.
Required privileges: System.Read
Result of the file share query.
{
"0": "F",
"1": "i",
"2": "l",
"3": "e",
"4": "S",
"5": "h",
"6": "a",
"7": "r",
"8": "e",
"9": "Q",
"10": "u",
"11": "e",
"12": "r",
"13": "y",
"14": "R",
"15": "e",
"16": "s",
"17": "u",
"18": "l",
"19": "t",
"20": " ",
"21": "O",
"22": "b",
"23": "j",
"24": "e",
"25": "c",
"26": "t"
}
InvalidState: Exception when vSAN file service is not enabled in this cluster.
InvalidArgument: Exception for invalid input arguments, for example, if the domain does not exist in this cluster.
"MethodFault Object"
Fault which is the cause of this fault.
Message which has details about the error Message can also contain a key to message catalog which can be used to generate better localized messages.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VsanFileServiceSystem/{moId}/VsanClusterQueryFileShares