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

Parameter to
  EnterMaintenanceMode_Task, EvacuateVsanNode_Task, RemoveDisk_Task, RemoveDiskMapping_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:sms="urn:sms" name="HostMaintenanceSpec"> <complexContent> <extension base="sms:DynamicData"> <sequence> <element name="vsanMode" type="sms:VsanHostDecommissionMode" minOccurs="0"/> <element name="purpose" type="xsd:string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>