# Data Object - StoragePlacementSpec(vim.storageDrs.StoragePlacementSpec)

Parameter to
  RecommendDatastores
Extends
  DynamicData
See also
  Folder, HostSystem, ResourcePool, StorageDrsPodSelectionSpec, VirtualMachine, VirtualMachineCloneSpec, VirtualMachineConfigSpec, VirtualMachineMovePriority, VirtualMachineRelocateSpec
Since
  vSphere API 5.0

## Data Object Description

StoragePlacementSpec encapsulates all of the inputs passed to the RecommendDatastores method.

Properties

Name | Type | Description
--- | --- | ---
cloneName* | xsd:string | Name for cloned virtual machine.
cloneSpec* | VirtualMachineCloneSpec | Specification for a virtual machine cloning operation.
configSpec* | VirtualMachineConfigSpec | Configuration for the virtual machine.
disallowPrerequisiteMoves* | xsd:boolean | Specification for whether to disable pre-requisite storage vmotions for storage placements. If unset, default behavior is to allow such prerequisite moves. Since vSphere API 5.1
folder* | ManagedObjectReference to a Folder | The target virtual machine folder for the virtual machine. Note that this is a different folder than the pod(s) that the virtual machine belongs to. The pod mapping represents the storage view of the virtual machine, while the virtual machine folder mapping represents an inventory view of the virtual machine. For manual VM provisioning operations, this is specified implicitly as the object that the CreateVM_Task method is invoked on.
host* | ManagedObjectReference to a HostSystem | The target host for the virtual machine.
podSelectionSpec | StorageDrsPodSelectionSpec | Specification for moving a virtual machine or a set of virtual disks to a different storage pod.
priority* | VirtualMachineMovePriority | Priority of this placement operation.
relocateSpec* | VirtualMachineRelocateSpec | Specification for relocating a virtual machine.
resourceLeaseDurationSec* | xsd:int | Resource lease duration in seconds. If the duration is within bounds, Storage DRS will hold onto resources needed for applying recommendations generated as part of that call. Only initial placement recommendations generated by storage DRS can reserve resources this way. Since vSphere API 5.1
resourcePool* | ManagedObjectReference to a ResourcePool | The resource pool to which this virtual machine should be attached.
type | xsd:string | The storage placement type. The set of possible values is described in StoragePlacementSpecPlacementType
vm* | ManagedObjectReference to a VirtualMachine | The relevant virtual machine.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="StoragePlacementSpec"> <complexContent> <extension base="vim25:DynamicData"> <sequence> <element name="type" type="xsd:string"/> <element name="priority" type="vim25:VirtualMachineMovePriority" minOccurs="0"/> <element name="vm" type="vim25:ManagedObjectReference" minOccurs="0"/> <element name="podSelectionSpec" type="vim25:StorageDrsPodSelectionSpec"/> <element name="cloneSpec" type="vim25:VirtualMachineCloneSpec" minOccurs="0"/> <element name="cloneName" type="xsd:string" minOccurs="0"/> <element name="configSpec" type="vim25:VirtualMachineConfigSpec" minOccurs="0"/> <element name="relocateSpec" type="vim25:VirtualMachineRelocateSpec" minOccurs="0"/> <element name="resourcePool" type="vim25:ManagedObjectReference" minOccurs="0"/> <element name="host" type="vim25:ManagedObjectReference" minOccurs="0"/> <element name="folder" type="vim25:ManagedObjectReference" minOccurs="0"/> <element name="disallowPrerequisiteMoves" type="xsd:boolean" minOccurs="0"/> <element name="resourceLeaseDurationSec" type="xsd:int" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>