
This external documentation for pyVmomi was generated using Googly Docs (aka Google Standard Documentation) which renders very cleanly in GitHub. Internal documentation for a class should be done in Sphinx format because tools like pyCharm and Eclipse can use that documentation as a hint for code completion. Note: External docs as Googly Docs, internal docs as Sphinx. Closes bug#15
3.3 KiB
vim.storageDrs.StoragePlacementSpec
StoragePlacementSpec encapsulates all of the inputs passed to the RecommendDatastores method.
- extends
- since
- Attributes:
-
type (str):
The storage placement type. The set of possible values is described in StoragePlacementSpecPlacementType
priority (vim.VirtualMachine.MovePriority, optional):
Priority of this placement operation.
vm (vim.VirtualMachine, optional):
The relevant virtual machine.
podSelectionSpec (vim.storageDrs.PodSelectionSpec):
Specification for moving a virtual machine or a set of virtual disks to a different storage pod.
cloneSpec (vim.vm.CloneSpec, optional):
Specification for a virtual machine cloning operation.
cloneName (str, optional):
Name for cloned virtual machine.
configSpec (vim.vm.ConfigSpec, optional):
Configuration for the virtual machine.
relocateSpec (vim.vm.RelocateSpec, optional):
Specification for relocating a virtual machine.
resourcePool (vim.ResourcePool, optional):
The resource pool to which this virtual machine should be attached.
host (vim.HostSystem, optional):
The target host for the virtual machine.
folder (vim.Folder, optional):
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.
disallowPrerequisiteMoves (bool, optional):
Specification for whether to disable pre-requisite storage vmotions for storage placements. If unset, default behavior is to allow such prerequisite moves.
resourceLeaseDurationSec (int, optional):
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.