VirtualDiskConfigSpec

VirtualDiskConfigSpec
VirtualDiskConfigSpec

The VirtualDiskSpec data object type encapsulates change specifications for an individual virtual disk device.

The virtual disk being added or modified must be fully specified.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "operation": "string",
    "fileOperation": "string",
    "device": {
        "_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
        }
    },
    "profile": [
        {
            "_typeName": "string"
        }
    ],
    "backing": {
        "_typeName": "string",
        "parent": "VirtualDeviceConfigSpecBackingSpec Object",
        "crypto": {
            "_typeName": "string"
        }
    },
    "filterSpec": [
        {
            "_typeName": "string"
        }
    ],
    "changeMode": "string",
    "diskMoveType": "string",
    "migrateCache": false
}
string
diskMoveType
Optional

Manner in which to move the virtual disk to the target datastore.

The set of possible values is described in VirtualMachineRelocateDiskMoveOptionsEnum.

This property can only be set if deltaDiskBackingsSupported is true.

If left unset then moveAllDiskBackingsAndDisallowSharing is assumed.

boolean
migrateCache
Optional

Deprecated since vSphere 7.0 because vFlash Read Cache end of availability.

Manner in which to transfer the cache associated with the virtual disk to the target host.

If left unset then migrate is used when virtual flash resource on the source host is accessible and when the backing vFlash module version is compatible with the specific vFalsh module on the target host; otherwise flush is used for write back cache, or a no-op for write through cache. This setting can avoid VM migration failure due to incompatibility. If true then migrate is always used. VM migration may fail if the backing vFlash module version is incompatible with the module on the target host. If false then flush is used for write back cache. It is a no-op for write through cache. This setting can avoid VM migration failure due to incompatibility, but cache files have to be rebuilt on the target host. Default is unset.

See also HostVFlashManagerVFlashCacheConfigInfoVFlashModuleConfigOption.