Vm_Hardware_Disk_CreateSpec
The Disk.CreateSpec structure provides a specification for the configuration of a newly-created virtual disk.
{
"type": "string",
"ide": {
"primary": false,
"master": false
},
"scsi": {
"bus": 0,
"unit": 0
},
"sata": {
"bus": 0,
"unit": 0
},
"nvme": {
"bus": 0,
"unit": 0
},
"backing": {
"type": "string",
"vmdk_file": "string"
},
"new_vmdk": {
"name": "string",
"capacity": 0,
"storage_policy": {
"policy": "string"
}
}
}
The Disk.HostBusAdapterType enumerated type defines the valid types of host bus adapters that may be used for attaching a virtual storage device to a virtual machine.
IDE : Disk is attached to an IDE adapter.
SCSI : Disk is attached to a SCSI adapter.
SATA : Disk is attached to a SATA adapter.
NVME : Disk is attached to a NVMe adapter.
The IdeAddressSpec structure contains information for specifying the address of a virtual device that is attached to a virtual IDE adapter of a virtual machine.
The ScsiAddressSpec structure contains information for specifying the address of a virtual device that is attached to a virtual SCSI adapter of a virtual machine.
The SataAddressSpec structure contains information for specifying the address of a virtual device that is attached to a virtual SATA adapter of a virtual machine.
The NvmeAddressSpec structure contains information for specifying the address of a virtual device that is attached to a virtual NVMe adapter of a virtual machine.
The Disk.BackingSpec structure provides a specification of the physical resource backing a virtual disk.
The Disk.VmdkCreateSpec structure provides a specification for creating a new VMDK file to be used as a backing for a virtual disk. The virtual disk will be stored in the same directory as the virtual machine's configuration file.