# Enum - VirtualMachineConfigInfoSwapPlacementType(vim.vm.ConfigInfo.SwapPlacementType)

Since
  VI API 2.5

## Enum Description

Available choices for virtual machine swapfile placement policy. This is the set of legal values for the virtual machine configuration's swapPlacement property. All values except for "inherit" and "vmConfigured" are also valid values for a compute resource configuration's vmSwapPlacement property.

Enum Constants

Name | Description
--- | ---
hostLocal | Store the swapfile in the datastore specified by the localSwapDatastore property of the virtual machine's host, if that property is set and indicates a datastore with sufficient free space. Otherwise store the swapfile in the same directory as the virtual machine. Note: This setting may degrade VMotion performance.
inherit | Honor the virtual machine swapfile placement policy of the compute resource that contains this virtual machine.
vmDirectory | Store the swapfile in the same directory as the virtual machine.

Show WSDL type definition
<simpleType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="VirtualMachineConfigInfoSwapPlacementType"> <restriction base="xsd:string"> <enumeration value="inherit"/> <enumeration value="vmDirectory"/> <enumeration value="hostLocal"/> </restriction> </simpleType>