Scripting Object - VcStoragePlacementSpec

Parameter to
recommendDatastores

Scripting Object Description

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

Attributes

Name Type Description
cloneName*string

Name for cloned virtual machine.
cloneSpec*VcVirtualMachineCloneSpec

Specification for a virtual machine cloning operation.
configSpec*VcVirtualMachineConfigSpec

Configuration for the virtual machine.
disallowPrerequisiteMoves*boolean

Specification for whether to disable pre-requisite storage vmotions for storage placements. If unset, default behavior is to allow such prerequisite moves.
folder*VcFolder

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 VcFolder method is invoked on.
host*VcHostSystem

The target host for the virtual machine.
podSelectionSpecVcStorageDrsPodSelectionSpec

Specification for moving a virtual machine or a set of virtual disks to a different storage pod.
priority*VcVirtualMachineMovePriority

Priority of this placement operation.
relocateSpec*VcVirtualMachineRelocateSpec

Specification for relocating a virtual machine.
resourceLeaseDurationSec*number

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.
resourcePool*VcResourcePool

The resource pool to which this virtual machine should be attached.
typestring

The storage placement type. The set of possible values is described in VcStoragePlacementSpecPlacementType
vm*VcVirtualMachine

The relevant virtual machine.
*May not be present

Methods

Methods defined in this Scripting Object
None