vSAN Management API
| Local Methods | ||
Managed Object Types | Data Object Types | All Properties | All Methods |
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
VsanClusterCreateFsDomain(createFileServiceDomain)
Creates a file service domain in the vSAN cluster. A vSAN file service domain is designed with the following properties:- A file service domain has a FQDN domain name (e.g., fs.mycompany.com) that client can mount.
- It can join an Active Directory domain and use Kerberos for authentication and user ID mapping, or use AUTH_SYS to trust user ID sent from clients.
- One more more file shares can be created in a file service domain and all these file shares have the same security/network properties of this file service domain. These file shares can be accessed from a certain network (e.g., VM Network).
- Required Privileges
- None
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
domainConfig | VsanFileServiceDomainConfig |
Domain configuration information.
Since vSAN API 7.0 |
cluster* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API 7.0 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | A task tracking the domain creation progress. |
Faults
Type | Description |
---|---|
InvalidArgument | Exception for invalid input arguments, for example, if the domain name already configured in the cluster. |
InvalidState | Exception when vSAN file service is not enabled in this cluster. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
config | VsanFileShareSnapshotConfig |
The snapshot configuration.
Since vSAN API vSAN 7.0U2 |
cluster* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API vSAN 7.0U2 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | A task tracking the snapshot creation progress. |
Faults
Type | Description |
---|---|
InvalidArgument | Exception for invalid input arguments, for example, if the file share to create a snapshot does not exist in this cluster. |
InvalidState | Exception for invalid states, for example, if vSAN file service is not enabled in this cluster. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
querySpec | VsanFileShareQuerySpec |
The specifications of the file shares to be queried.
Since vSAN API 7.0 |
cluster* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API 7.0 |
Return Value
Type | Description |
---|---|
FileShareQueryResult | Result of the file share query. |
Faults
Type | Description |
---|---|
InvalidArgument | Exception for invalid input arguments, for example, if the domain does not exist in this cluster. |
InvalidState | Exception when vSAN file service is not enabled in this cluster. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
querySpec* | VsanFileServiceDomainQuerySpec |
The specifications of the file service domains to be
queried.
Since vSAN API 7.0 |
cluster* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API 7.0 |
Return Value
Type | Description |
---|---|
VsanFileServiceDomain[] | List of all the domain information on this host. |
Faults
Type | Description |
---|---|
InvalidState | Exception when the file service is not enabled in this cluster. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
querySpec | VsanFileShareSnapshotQuerySpec |
The specification of the snapshots to be queried.
Since vSAN API vSAN 7.0U2 |
cluster* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API vSAN 7.0U2 |
Return Value
Type | Description |
---|---|
VsanFileShareSnapshotQueryResult | Result of the snapshot query. |
Faults
Type | Description |
---|---|
InvalidArgument | Exception for invalid input arguments, for example, if the share does not exist in this cluster. |
InvalidState | Exception for invalid states, for example, if vSAN file service is not enabled in this cluster. |
RuntimeFault | Thrown 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.- Required Privileges
- None
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
domainUuid | xsd:string |
The UUID of the domain to be reconfigured.
Since vSAN API 7.0 |
domainConfig | VsanFileServiceDomainConfig |
New configuration of the domain. Only set the fields that
require reconfiguration, and leave others unset.
Since vSAN API 7.0 |
cluster* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API 7.0 |
deleteDomainConfigFields* | xsd: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:
|
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | A task tracking the domain reconfiguration progress. |
Faults
Type | Description |
---|---|
InvalidArgument | Exception for invalid input arguments, for example, if the domain does not exist in this cluster. |
InvalidState | Exception when vSAN file service is not enabled in this cluster. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
domainUuid | xsd: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* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API 7.0 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | A task tracking the domain remove progress. |
Faults
Type | Description |
---|---|
InvalidArgument | Exception for invalid input arguments, for example, if the domain does not exist in this cluster. |
InvalidState | Exception when vSAN file service is not enabled in this cluster, or it still has file shares. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
shareUuid | xsd:string |
The UUID of the file share to be removed.
Since vSAN API 7.0 |
cluster* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API 7.0 |
force* | xsd: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 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | A task tracking the file share remove progress. |
Faults
Type | Description |
---|---|
InvalidArgument | Exception for invalid input arguments, for example, if the file share does not exist in this cluster. |
InvalidState | Exception when vSAN file service is not enabled in this cluster. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
shareUuid | xsd:string |
UUID of the file share to delete the snapshots.
Since vSAN API vSAN 7.0U2 |
snapshotName | xsd:string |
Name of the snapshot to be deleted.
Since vSAN API vSAN 7.0U2 |
cluster* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API vSAN 7.0U2 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | A task tracking the snapshot remove progress. |
Faults
Type | Description |
---|---|
InvalidArgument | Exception for invalid input arguments, for example, if the snapshot does not exist in this cluster. |
InvalidState | Exception for invalid states, for example, if vSAN file service is not enabled in this cluster. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
config | VsanFileShareConfig |
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* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API 7.0 |
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 |
---|---|
InvalidArgument | Exception for invalid input arguments, for example, if the domain for this new file share does not exist in this cluster. |
InvalidState | Exception when vSAN file service is not enabled in this cluster. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
downloadUrl | xsd:string |
URL to download the vSAN file service OVF.
Since vSAN API 7.0 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | Task for tracking the OVF installation. |
Faults
Type | Description |
---|---|
InvalidArgument | Exception if the OVF of the specified version does not exist as specified in the source URL. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
cluster P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to download OVF files.
Since vSAN API 7.0 |
Return Value
Type | Description |
---|---|
xsd:string | The OVF download URL. Return an empty string if no proper OVF download URL could be found. |
Faults
Type | Description |
---|---|
RuntimeFault | Thrown 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 preflight check on a cluster for enabling vSAN file service and/or for the new file service domain configuration. The preflight check items includes:- Basic check
- Network partition check
- vSAN datastore presence to each host
- The versions of the ESXi hosts match in this cluster
- NTP configuration check in ESXi hosts if vSAN file service version is 8.0 or newer
- Domain configuration format check
- Running OVF information check
- If a DVS portgroup is passed as network, it checks if DVS version is older than 6.6
- Advanced check
- Checks covered in 'basic' scope
- File server domain configuration validation in live environment when vSAN file service has been enabled
- Required Privileges
- None
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
cluster P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to perform preflight check.
Since vSAN API 7.0 |
domainConfig* | VsanFileServiceDomainConfig |
The domain configuration to be validated.
If not specified, the validation for the
domain will be skipped.
Since vSAN API 7.0 |
network* | ManagedObjectReference
to a Network |
The network which will be used for fs containers
Since vSAN API 7.0 |
scope* | xsd:string |
The scope that preflight check will cover. Valid inputs are
listed in the VsanFileServicePreflightCheckScope
field. Defaults to "basic".
Since vSAN API 7.0 |
domainUuid* | xsd:string |
The file service domain UUID. It is required when
the advanced preflight check is performed on an
existing domain. If a new file service domain is
to be created, leave it empty.
Since vSAN API 7.0 |
Return Value
Type | Description |
---|---|
VsanFileServicePreflightCheckResult | Preflight check result. |
Faults
Type | Description |
---|---|
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | 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 |
---|---|
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
cluster* | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to do rebalance.
Since vSAN API vSAN 7.0U1 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | The task tracking the rebalance progress. |
Faults
Type | Description |
---|---|
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
shareUuid | xsd:string |
The UUID of the file share to be reconfigured.
Since vSAN API 7.0 |
config | VsanFileShareConfig |
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* P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster. Ignored when called on ESXi hosts.
Since vSAN API 7.0 |
deleteLabelKeys* | xsd: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* | xsd: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 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | A task tracking the share reconfiguring progress. |
Faults
Type | Description |
---|---|
InvalidArgument | Exception for invalid input arguments, for example, if the file share does not exist in this cluster. |
InvalidState | Exception when vSAN file service is not enabled in this cluster. |
RuntimeFault | Thrown 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
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VsanFileServiceSystem used to make the method call. |
cluster P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster in which FSVM deployed.
Since vSAN API 7.0 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | None |
Faults
Type | Description |
---|---|
InvalidState | Exception 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. |
RuntimeFault | Thrown 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
Top of page | Local Methods | ||
Managed Object Types | Data Object Types | All Properties | All Methods |