# Data Object - VirtualMachineRelocateSpecDiskLocator(vim.vm.RelocateSpec.DiskLocator)

Property of
  VirtualMachineRelocateSpec
Extends
  DynamicData
See also
  Datastore, VirtualDeviceBackingInfo, VirtualMachineProfileSpec

## Data Object Description

The DiskLocator data object type specifies a virtual disk device (by ID) and a datastore locator for the disk's storage.

Properties

Name | Type | Description
--- | --- | ---
datastore | ManagedObjectReference to a Datastore | Target datastore.
diskBackingInfo* | VirtualDeviceBackingInfo | Backing information for the virtual disk at the destination. This can be used, for instance, to change the format of the virtual disk. If the specified backing is invalid or not supported at the destination, InvalidDeviceBacking is thrown. Specific property changes may be ignored if they are not supported. Supported BackingInfo types and properties: VirtualDiskFlatVer2BackingInfo thinProvisioned eagerlyScrub VirtualDiskSeSparseBackingInfo (ESX 5.1 or later) Since vSphere API 5.0
diskId | xsd:int | Device ID of the virtual disk.
diskMoveType* | xsd:string | Manner in which to move the virtual disk to the target datastore. The set of possible values is described in VirtualMachineRelocateDiskMoveOptions. This property can only be set if deltaDiskBackingsSupported is true. If left unset then moveAllDiskBackingsAndDisallowSharing is assumed. Since vSphere API 4.0
profile* | VirtualMachineProfileSpec[] | Virtual Disk Profile requirement. Profiles are solution specific. Profile Based Storage Management is a vSphere server extension. The API users who want to provision VMs using Storage Profiles, need to interact with it. This is an optional parameter and if user doesn't specify profile, the default behavior will apply. Since vSphere API 5.5
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:pbm="urn:pbm" name="VirtualMachineRelocateSpecDiskLocator"> <complexContent> <extension base="pbm:DynamicData"> <sequence> <element name="diskId" type="xsd:int"/> <element name="datastore" type="pbm:ManagedObjectReference"/> <element name="diskMoveType" type="xsd:string" minOccurs="0"/> <element name="diskBackingInfo" type="pbm:VirtualDeviceBackingInfo" minOccurs="0"/> <element name="profile" type="pbm:VirtualMachineProfileSpec" minOccurs="0" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType>