vSAN Management API


Managed Object - VsanSiteMaintenanceSystem(vim.vsan.VsanSiteMaintenanceSystem)

See also
ClusterComputeResource, Task, VsanSiteMaintenanceInfo, VsanSiteMaintenancePrecheckStatus, VsanSiteMaintenanceSpec
Since
vSphere API Release 9.1.0.0


Managed Object Description

This managed object type provides the vSAN fault domain maintenance operations. Fault domain maintenance is a vSAN specific operation that allows all hosts within a fault domain to enter maintenance mode while ensuring object consistency. This managed object provides the functionalities to run precheck, enter maintenance mode and exit maintenance mode. It can be accessed through MOID of 'vsan-cluster-site-maintenance-system', through vSAN service on vCenter at cluster level.

Properties

Name Type Description
None

Methods

Methods defined in this Managed Object
VsanEnterSiteMaintenanceMode, VsanExitSiteMaintenanceMode, VsanGetSiteMaintenancePrecheckStatus, VsanPerformSiteMaintenancePrecheck, VsanQueryClusterSiteMaintenanceState

VsanEnterSiteMaintenanceMode(enterSiteMaintenanceMode)

Put all hosts in a fault domain into maintenance mode. This operation puts the hosts on this fault domain into the maintenance mode, and guarantees the consistencies for all objects within this fault domain. A precheck will be performed as part of this fault domain maintenance workflow. Upon success, all VMs in this fault domain will be powered off or migrated to the other fault domain.
Required Privileges
Host.Config.Storage

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanSiteMaintenanceSystem used to make the method call.
faultDomainNamexsd:string

The fault domain name to enter maintenance mode.

Since 9.0.0.0
clusterManagedObjectReference
to a ClusterComputeResource

The cluster containing the fault domain to enter maintenance mode.

Since 9.0.0.0

Return Value

Type Description
ManagedObjectReference
to a Task
The task tracking the enter fault domain maintenance workflow.

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.
VsanFault

Events

Type
None

Show WSDL type definition



VsanExitSiteMaintenanceMode(exitSiteMaintenanceMode)

Exit the fault domain maintenance mode. This operation exits the maintenance mode for all hosts in the specified fault domain. The objects will start the data resync during the host exit maintenance workflow. When the exit maintenance mode operation is successful, users can enable the intended workloads.
Required Privileges
Host.Config.Storage

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanSiteMaintenanceSystem used to make the method call.
faultDomainNamexsd:string

The fault domain name to exit maintenance mode.

Since 9.0.0.0
clusterManagedObjectReference
to a ClusterComputeResource

The cluster containing the fault domain to exit maintenance mode.

Since 9.0.0.0

Return Value

Type Description
ManagedObjectReference
to a Task
The task tracking the exit fault domain maintenance mode workflow.

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.
VsanFault

Events

Type
None

Show WSDL type definition



VsanGetSiteMaintenancePrecheckStatus(getSiteMaintenancePrecheckStatus)

Retrieves the result of the latest fault domain maintenance check. If a precheck task is running, its status will be returned. Otherwise the status of the last fault domain maintenance precheck will be returned.
Required Privileges
System.Read

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanSiteMaintenanceSystem used to make the method call.
clusterManagedObjectReference
to a ClusterComputeResource

The specified cluster to query.

Since 9.0.0.0
faultDomainNamexsd:string

The fault domain to query.

Since 9.0.0.0

Return Value

Type Description
VsanSiteMaintenancePrecheckStatus

Faults

Type Description
InvalidArgument
ManagedObjectNotFoundThrown if the cluster cannot be found.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.
VsanFault

Events

Type
None

Show WSDL type definition



VsanPerformSiteMaintenancePrecheck(performSiteMaintenancePrecheck)

Initiates a precheck to determine if the target fault domain can enter maintenance mode. The precheck performs a health check and a "what-if" query to assess the impact on cluster resources (objects, VMs) once the proposed maintenance action is executed. Only one precheck should run in a vSAN cluster at a time.
Required Privileges
System.Read

Parameters

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

The cluster on which to run the precheck.

Since 9.0.0.0
specVsanSiteMaintenanceSpec

The specification of the queried fault domain maintenance action.

Since 9.0.0.0
P Required privilege: Host.Config.Maintenance

Return Value

Type Description
ManagedObjectReference
to a Task

Faults

Type Description
InvalidArgument
ManagedObjectNotFoundThrown if the cluster cannot be found.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.
VsanFault

Events

Type
None

Show WSDL type definition



VsanQueryClusterSiteMaintenanceState(queryClusterSiteMaintenanceState)

Query the maintenance state of all fault domains in the specified cluster.
Required Privileges
System.Read

Parameters

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

The target cluster to query.

Since 9.0.0.0
P Required privilege: System.Read

Return Value

Type Description
VsanSiteMaintenanceInfo[]A list of SiteMaintenanceInfo objects, each representing the maintenance state of a fault domain in the target cluster. If the target cluster is not a stretched cluster, an empty list is returned.

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.
VsanFaultThrown if any unexpected runtime fault occurs.

Events

Type
None

Show WSDL type definition