VirtualDisk
This data object type contains information about a disk in a virtual machine.
The virtual disk backing object types describe the different virtual disk backings available. The disk format version in each case describes the version of the format that is used.
Supported virtual disk backings:
- Sparse disk format, version 1 and 2
- The virtual disk backing grows when needed. Supported only for VMware Server.
- Flat disk format, version 1 and 2
- The virtual disk backing is preallocated. Version 1 is supported only for VMware Server.
- Space efficient sparse disk format
- The virtual disk backing grows on demand and incorporates additional space optimizations.
- Raw disk format, version 2
- The virtual disk backing uses a full physical disk drive to back the virtual disk. Supported only for VMware Server.
- Partitioned raw disk format, version 2
- The virtual disk backing uses one or more partitions on a physical disk drive to back a virtual disk. Supported only for VMware Server.
- Raw disk mapping, version 1
- The virtual disk backing uses a raw device mapping to back the virtual disk. Supported for ESX Server 2.5 and 3.x.
{
"_typeName": "string",
"key": 0,
"deviceInfo": {
"_typeName": "string",
"label": "string",
"summary": "string"
},
"backing": {
"_typeName": "string"
},
"connectable": {
"_typeName": "string",
"migrateConnect": "string",
"startConnected": false,
"allowGuestControl": false,
"connected": false,
"status": "string"
},
"slotInfo": {
"_typeName": "string"
},
"controllerKey": 0,
"unitNumber": 0,
"numaNode": 0,
"deviceGroupInfo": {
"_typeName": "string",
"groupInstanceKey": 0,
"sequenceId": 0
},
"capacityInKB": 0,
"capacityInBytes": 0,
"shares": {
"_typeName": "string",
"shares": 0,
"level": "string"
},
"storageIOAllocation": {
"_typeName": "string",
"limit": 0,
"shares": {
"_typeName": "string",
"shares": 0,
"level": "string"
},
"reservation": 0
},
"diskObjectId": "string",
"vFlashCacheConfigInfo": {
"_typeName": "string",
"vFlashModule": "string",
"reservationInMB": 0,
"cacheConsistencyType": "string",
"cacheMode": "string",
"blockSizeInKB": 0
},
"iofilter": [
"string"
],
"vDiskId": {
"_typeName": "string",
"id": "string"
},
"vDiskVersion": 0,
"virtualDiskFormat": "string",
"nativeUnmanagedLinkedClone": false,
"independentFilters": [
{
"_typeName": "string"
}
],
"guestReadOnly": false
}
Deprecated as of vSphere API 5.5, use capacityInBytes.
Capacity of this virtual disk in kilobytes.
Information might be lost when actual disk size is rounded off to kilobytes. If the disk is on a Virtual Volume datastore the disk size must be a multiple of a megabyte.
Capacity of this virtual disk in bytes.
Server will always populate this property. Clients must initialize it when creating a new non -RDM disk or in case they want to change the current capacity of an existing virtual disk, but can omit it otherwise. If the disk is on a Virtual Volume datastore the disk size must be a multiple of a megabyte.
Deprecated as of vSphere API 4.1, use shares.
Disk shares, used for resource scheduling.
Deprecated as of vSphere API 6.5, use.
Resource allocation for storage I/O.
Deprecated as of vSphere API 6.5, use vDiskId.
Virtual disk durable and unmutable identifier.
Virtual disk has a UUID field but that can be set through VirtualDiskManager APIs. This identifier is a universally unique identifier which is not settable. VirtualDisk can remain in existence even if it is not associated with VM.
Deprecated since vSphere 7.0 because vFlash Read Cache end of availability.
vFlash cache configuration supported on this virtual disk.
IDs of the IO Filters associated with the virtual disk.
See id. This information is provided when retrieving configuration information for an existing virtual machine. The client cannot modify this information on a virtual machine.
ID of the virtual disk object as the first class entity.
See ID The ID is a universally unique identifier for the disk lifecycle, even if the virtual disk is not associated with VM.
Disk descriptor version of the virtual disk.
Since: vSphere API Release 8.0.1.0
Indicates the disk format of the virtual disk.
The supported values are native_4k and native_512. If unset during virtual machine creation CreateVM_Task, the default value will be based on supportedVDiskFormats. If supportedVDiskFormats has only one value then the default value will be the same. If supportedVDiskFormats has both the values native_512 and native_4k then default value will be native_512. If unset when returned as part of a VirtualMachineConfigInfo then the default value is native_512.
Since: vSphere API Release 9.0.0.0
Indicates whether a disk with VirtualDiskFlatVer2BackingInfo backing is a linked clone from an unmanaged delta disk and hence the parent chain to this delta disk will not be available.
The IDs of the independent filters associated with the virtual disk.
This information is provided when retrieving configuration information for an existing virtual machine. The client cannot modify this information on a virtual machine.
Since: vSphere API Release 7.0.2.1
Flag to indicate whether a disk should be presented to the guest in read-only mode (limited by choice of adapter).
Since: vSphere API Release 8.0.2.0