Querying File Share Information
You can query the file share information using the vSAN Management API.
Here is an example based on the code in the vsanfssamples.py sample file located under the Python sample code directory.
# Query file share information print("Query file share information: %s" % fileShareName) fileShareQuerySpec = vim.vsan.FileShareQuerySpec() fileShareQuerySpec.domainName = domainName fileShareQuerySpec.names = [fileShareName] QueryResult = vcfs.QueryFileShares(fileShareQuerySpec, cluster)