# Data Object - HostMaintenanceSpec(vim.host.MaintenanceSpec)

Property of
  VsanDeleteStoragePoolDiskSpec, VsanResourceCheckSpec, VsanResourceCheckTaskDetails
Parameter to
  EnterMaintenanceMode_Task, EvacuateVsanNode_Task, RebuildDiskMapping, RemoveDisk_Task, RemoveDiskEx, RemoveDiskMapping_Task, RemoveDiskMappingEx, UnmountDiskMappingEx, VsanUnmountDiskMappingEx, VsanVibInstall_Task
Extends
  DynamicData
See also
  VsanHostDecommissionMode
Since
  vSphere API 5.5

## Data Object Description

The HostMaintenanceSpec data object may be used to specify actions to be taken by a host upon entering maintenance mode. If the HostMaintenanceSpec or any of its fields are omitted in a call to EnterMaintenanceMode_Task, default actions will be chosen as documented for each field's type.
See EnterMaintenanceMode_Task
See VsanHostDecommissionMode

Properties

Name | Type | Description
--- | --- | ---
purpose* | xsd:string | Maintenance mode reason code. See Purpose for valid values. Since vSphere API 7.0
vsanMode* | VsanHostDecommissionMode | The VsanHostDecommissionMode for this MaintenanceSpec.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="HostMaintenanceSpec"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="vsanMode" type="vsan:VsanHostDecommissionMode" minOccurs="0"/> <element name="purpose" type="xsd:string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>