# Data Object - ClusterPowerContext(vim.cluster.ClusterPowerContext)

Returned by
  QueryClusterPowerContext
Extends
  DynamicData
See also
  LocalizableMessage, Task
Since
  vSAN API vSAN 7.0U3

## Data Object Description

Contains the current cluster power context including current ClusterPowerStatus, all needed intermediate ClusterPowerStatus to the final clusterPoweredOff or clusterPoweredOn status and the executing task.

Properties

Name | Type | Description
--- | --- | ---
currentClusterPowerStatus | xsd:string | The current ClusterPowerStatus. See ClusterPowerStatus
lastErrorMessage* | LocalizableMessage | The description of error message if the previous task failed.
lastErrorMOs* | ManagedObjectReference[] | The MO list that causes the previous task to fail. i.e. if previous task failed because of having not powered-off VMs during power off cluster, the list contains some of the not powered-off VMs.
orderedClusterPowerStatus* | xsd:string[] | A full list of ClusterPowerStatus with its corresponding executing order to final status. It contains only the relevant actions based on the target ClusterPowerStatus. See ClusterPowerStatus
trackingTask* | ManagedObjectReference to a Task | A task that is executing the power action. None is returned if there is no on-going task
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="ClusterPowerContext"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="currentClusterPowerStatus" type="xsd:string"/> <element name="orderedClusterPowerStatus" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> <element name="trackingTask" type="vsan:ManagedObjectReference" minOccurs="0"/> <element name="lastErrorMessage" type="vsan:LocalizableMessage" minOccurs="0"/> <element name="lastErrorMOs" type="vsan:ManagedObjectReference" minOccurs="0" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType>