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

Extends
  ClusterAction
See also
  HostSystem, VirtualMachine, VirtualMachineRelocateSpec
Since
  vSphere API 6.0

## Data Object Description

Describes a placement action of a single virtual machine. One or more of such actions can be included in a placement recommendation, and such recommendations can be generated by the PlaceVm method.

Properties

Name | Type | Description
--- | --- | ---
relocateSpec* | VirtualMachineRelocateSpec | Specification for placing the configuration files and the virtual disks of the virtual machine on one or more datastores. Unset if no datastore recommendation is provided.
targetHost* | ManagedObjectReference to a HostSystem | The host where the virtual machine should be placed. Unset if no host recommendation is provided.
vm* | ManagedObjectReference to a VirtualMachine | Virtual machine reference. Unset if the VM has not been created.
Properties inherited from ClusterAction
target, type
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="PlacementAction"> <complexContent> <extension base="sms:ClusterAction"> <sequence> <element name="vm" type="sms:ManagedObjectReference" minOccurs="0"/> <element name="targetHost" type="sms:ManagedObjectReference" minOccurs="0"/> <element name="relocateSpec" type="sms:VirtualMachineRelocateSpec" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>