Managed Object - VsanFileServiceSystem(vim.vsan.VsanFileServiceSystem)

See also
ClusterComputeResource, FileShareQueryResult, Network, Task, VsanFileServiceDomain, VsanFileServiceDomainConfig, VsanFileServiceDomainQuerySpec, VsanFileServiceOvfSpec, VsanFileServicePreflightCheckResult, VsanFileShareConfig, VsanFileShareQuerySpec, VsanFileShareSnapshotConfig, VsanFileShareSnapshotQueryResult, VsanFileShareSnapshotQuerySpec
Since
vSAN API 7.0


Managed Object Description

This managed object type provides the file service related configuration and query APIs. It can be accessed through MOID of 'vsan-cluster-file-service-system', through vSAN service on vCenter at cluster level, or accessed through MOID of 'vsan-file-service-system' on ESXi host for the detailed operation.

Properties

Name Type Description
None

Methods

Methods defined in this Managed Object
VsanClusterCreateFsDomain, VsanClusterCreateShareSnapshot, VsanClusterQueryFileShares, VsanClusterQueryFsDomains, VsanClusterQueryShareSnapshots, VsanClusterReconfigureFsDomain, VsanClusterRemoveFsDomain, VsanClusterRemoveShare, VsanClusterRemoveShareSnapshot, VsanCreateFileShare, VsanDownloadFileServiceOvf, VsanFindOvfDownloadUrl, VsanPerformFileServiceEnablePreflightCheck, VsanQueryFileServiceOvfs, VsanRebalanceFileService, VsanReconfigureFileShare, VsanUpgradeFsvm

VsanClusterCreateFsDomain(createFileServiceDomain)

Creates a file service domain in the vSAN cluster. A vSAN file service domain is designed with the following properties: In current version, only one file service domain can be created per cluster, which can be initiated when the file service is enabled.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
domainConfig PVsanFileServiceDomainConfig

Domain configuration information.

Since vSAN API 7.0
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API 7.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a Task
A task tracking the domain creation progress.

Faults

Type Description
InvalidArgumentException for invalid input arguments, for example, if the domain name already configured in the cluster.
InvalidStateException when vSAN file service is not enabled in this cluster.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanClusterCreateShareSnapshot(createFileShareSnapshot)

Create a snapshot for a file share in this vSAN cluster.
Required Privileges
None
Since
vSAN API vSAN 7.0U2

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
config PVsanFileShareSnapshotConfig

The snapshot configuration.

Since vSAN API vSAN 7.0U2
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API vSAN 7.0U2
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a Task
A task tracking the snapshot creation progress.

Faults

Type Description
InvalidArgumentException for invalid input arguments, for example, if the file share to create a snapshot does not exist in this cluster.
InvalidStateException for invalid states, for example, if vSAN file service is not enabled in this cluster.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanClusterQueryFileShares(queryFileShares)

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.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
querySpec PVsanFileShareQuerySpec

The specifications of the file shares to be queried.

Since vSAN API 7.0
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API 7.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
FileShareQueryResultResult of the file share query.

Faults

Type Description
InvalidArgumentException for invalid input arguments, for example, if the domain does not exist in this cluster.
InvalidStateException when vSAN file service is not enabled in this cluster.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanClusterQueryFsDomains(queryFileServiceDomains)

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.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
querySpec* PVsanFileServiceDomainQuerySpec

The specifications of the file service domains to be queried.

Since vSAN API 7.0
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API 7.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
VsanFileServiceDomain[]List of all the domain information on this host.

Faults

Type Description
InvalidStateException when the file service is not enabled in this cluster.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanClusterQueryShareSnapshots(queryFileShareSnapshots)

List all the snapshots that match the query spec.
Required Privileges
None
Since
vSAN API vSAN 7.0U2

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
querySpec PVsanFileShareSnapshotQuerySpec

The specification of the snapshots to be queried.

Since vSAN API vSAN 7.0U2
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API vSAN 7.0U2
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
VsanFileShareSnapshotQueryResultResult of the snapshot query.

Faults

Type Description
InvalidArgumentException for invalid input arguments, for example, if the share does not exist in this cluster.
InvalidStateException for invalid states, for example, if vSAN file service is not enabled in this cluster.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanClusterReconfigureFsDomain(reconfigureFileServiceDomain)

Updates a file service domain in the vSAN cluster. As for file service domain IP configuration, it is only allowed to extend IP addresses but not to shrink IP addresses.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
domainUuid Pxsd:string

The UUID of the domain to be reconfigured.

Since vSAN API 7.0
domainConfig PVsanFileServiceDomainConfig

New configuration of the domain. Only set the fields that require reconfiguration, and leave others unset.

Since vSAN API 7.0
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API 7.0
deleteDomainConfigFields* Pxsd:string[]

The domain config fields to be deleted. For example to remove directoryServerConfig from the domainConfig provide ["directoryServerConfig"] here and keep the same unset in provided domainConfig. Do note removing directoryServerConfig is only allowed when there are no active shares. Here is the list of currently supported field:
  • directoryServerConfig since 7.0U1
Providing any other value here will cause InvalidArgumentError fault.

Since vSAN API 7.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a Task
A task tracking the domain reconfiguration progress.

Faults

Type Description
InvalidArgumentException for invalid input arguments, for example, if the domain does not exist in this cluster.
InvalidStateException when vSAN file service is not enabled in this cluster.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanClusterRemoveFsDomain(removeFileServiceDomain)

Removes a file service domain in the vSAN cluster. A file service domain is not allowed to be removed if it still has any file shares.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
domainUuid Pxsd:string

The unique domain uuid that is configured in the directory service, for example, Active Directory (AD) from Microsoft.

Since vSAN API 7.0
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API 7.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a Task
A task tracking the domain remove progress.

Faults

Type Description
InvalidArgumentException for invalid input arguments, for example, if the domain does not exist in this cluster.
InvalidStateException when vSAN file service is not enabled in this cluster, or it still has file shares.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanClusterRemoveShare(removeFileShare)

Removes a file share in the domain.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
shareUuid Pxsd:string

The UUID of the file share to be removed.

Since vSAN API 7.0
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API 7.0
force* Pxsd:boolean

The force flag is to force the removal of a vSphere managed file share, for example, the file share managed by Cloud Native Storage (CNS) service.

Since vSAN API 7.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a Task
A task tracking the file share remove progress.

Faults

Type Description
InvalidArgumentException for invalid input arguments, for example, if the file share does not exist in this cluster.
InvalidStateException when vSAN file service is not enabled in this cluster.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanClusterRemoveShareSnapshot(removeFileShareSnapshot)

Remove a snapshot of a file share in this vSAN cluster. Note: due to the limitation, it's not allowed to remove the latest snapshot for file service in 70U2 and an InvalidState exception will be thrown for this case.
Required Privileges
None
Since
vSAN API vSAN 7.0U2

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
shareUuid Pxsd:string

UUID of the file share to delete the snapshots.

Since vSAN API vSAN 7.0U2
snapshotName Pxsd:string

Name of the snapshot to be deleted.

Since vSAN API vSAN 7.0U2
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API vSAN 7.0U2
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a Task
A task tracking the snapshot remove progress.

Faults

Type Description
InvalidArgumentException for invalid input arguments, for example, if the snapshot does not exist in this cluster.
InvalidStateException for invalid states, for example, if vSAN file service is not enabled in this cluster.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanCreateFileShare(createFileShare)

Creates a file share in this vSAN cluster.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
config PVsanFileShareConfig

The file share configuration, as specified in {@vim.vsan.FileShareConfig}. Note that the backing vSAN object for the file share will be by default 1TB if the file share is thin provisioned. Otherwise the backing vSAN object is set to 255GB if quota is not set.

Since vSAN API 7.0
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API 7.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a Task
A task tracking the share creation progress. The UUID of the file share will be set to the task result field if the task succeeds.

Faults

Type Description
InvalidArgumentException for invalid input arguments, for example, if the domain for this new file share does not exist in this cluster.
InvalidStateException when vSAN file service is not enabled in this cluster.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanDownloadFileServiceOvf(downloadFileServiceOvf)

Downloads a file service OVF file of the specified version from VMware website and install it to the OVF repository in vCenter.
Required Privileges
Global.VCServer

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
downloadUrl Pxsd:string

URL to download the vSAN file service OVF.

Since vSAN API 7.0
P Required privilege: downloadUrl

Return Value

Type Description
ManagedObjectReference
to a Task
Task for tracking the OVF installation.

Faults

Type Description
InvalidArgumentException if the OVF of the specified version does not exist as specified in the source URL.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanFindOvfDownloadUrl(findOvfDownloadUrl)

Find a compatible vSAN File Service OVF download URL for the target cluster. This API needs internet access to fetch the latest OVF download URL for the specified cluster.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
cluster PManagedObjectReference
to a ClusterComputeResource

The target cluster to download OVF files.

Since vSAN API 7.0
P Required privilege: cluster

Return Value

Type Description
xsd:stringThe OVF download URL. Return an empty string if no proper OVF download URL could be found.

Faults

Type Description
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanPerformFileServiceEnablePreflightCheck(performFileServicePreflightCheck)

Perform a upgrade preflight check on a cluster for enabling for vSAN file service. The preflight check items for enabling file service includes:
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
cluster PManagedObjectReference
to a ClusterComputeResource

The target cluster to enable file service.

Since vSAN API 7.0
domainConfig* PVsanFileServiceDomainConfig

The domain configuration. If not specified, the validation for the domain will be skipped.

Since vSAN API 7.0
network* PManagedObjectReference
to a Network

The network which will be used for fs containers

Since vSAN API 7.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
VsanFileServicePreflightCheckResultPreflight check result.

Faults

Type Description
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanQueryFileServiceOvfs(queryFileServiceOvfs)

Lists all available vSAN File Service OVF in this vCenter.
Required Privileges
Global.VCServer

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.

Return Value

Type Description
VsanFileServiceOvfSpec[]List of the file services OVFs available in this vCenter.

Faults

Type Description
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanRebalanceFileService(rebalanceFileService)

This API is to rebalance file service in cluster.
Required Privileges
Host.Config.Storage
Since
vSAN API vSAN 7.0U1

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster to do rebalance.

Since vSAN API vSAN 7.0U1
*Need not be set P Required privilege: cluster

Return Value

Type Description
ManagedObjectReference
to a Task
The task tracking the rebalance progress.

Faults

Type Description
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanReconfigureFileShare(reconfigureFileShare)

Reconfigures a file share in this vSAN cluster. All the configurations of a vSAN file share can be reconfigured through this API, except the file service domain.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
shareUuid Pxsd:string

The UUID of the file share to be reconfigured.

Since vSAN API 7.0
config PVsanFileShareConfig

The file services configuration. Only set the fields that require reconfiguration, and leave the others unset. This API will update or create the labels specified in the config. Labels to be deleted should be specified in the 'deleteLabelKeys' parameter. Other labels will remain intact.

Since vSAN API 7.0
cluster* PManagedObjectReference
to a ClusterComputeResource

The target cluster. Ignored when called on ESXi hosts.

Since vSAN API 7.0
deleteLabelKeys* Pxsd:string[]

The keys of share labels to be deleted. If a specified label key does not exist in the file share, the deletion of this label will be ignored.

Since vSAN API 7.0
force* Pxsd:boolean

The force flag is to force the reconfiguration of a vSphere managed file share, for example, the file share managed by Cloud Native Storage (CNS) service.

Since vSAN API 7.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a Task
A task tracking the share reconfiguring progress.

Faults

Type Description
InvalidArgumentException for invalid input arguments, for example, if the file share does not exist in this cluster.
InvalidStateException when vSAN file service is not enabled in this cluster.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanUpgradeFsvm(upgradeFsvm)

Upgrade FSVM to latest ovf that is compatible with cluster's host version. A compatible OVF is expected be uploaded before calling this API. A preflight check will be conducted before the upgrade on the following API.
Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanFileServiceSystem used to make the method call.
cluster PManagedObjectReference
to a ClusterComputeResource

The target cluster in which FSVM deployed.

Since vSAN API 7.0
P Required privilege: cluster

Return Value

Type Description
ManagedObjectReference
to a Task
None

Faults

Type Description
InvalidStateException if the OVF of the compatible version for the hosts cannot be found on the corresponding vCenter server, or file service is not running in a valid state.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition