VmHardwareDiskCreateSpec

The Disk.CreateSpec structure provides a specification for the configuration of a newly-created virtual disk.


Properties

backing Optional

Existing physical resource backing for the virtual disk. Exactly one of Disk.CreateSpec.backing or Disk.CreateSpec.new-vmdk must be specified. If unset, the virtual disk will not be connected to an existing backing.


ide Optional

Address for attaching the device to a virtual IDE adapter. If unset, the server will choose an available address; if none is available, the request will fail.


new_vmdk Optional

Specification for creating a new VMDK backing for the virtual disk. Exactly one of Disk.CreateSpec.backing or Disk.CreateSpec.new-vmdk must be specified. If unset, a new VMDK backing will not be created.


nvme Optional

Address for attaching the device to a virtual NVMe adapter. If unset, the server will choose an available address; if none is available, the request will fail.


sata Optional

Address for attaching the device to a virtual SATA adapter. If unset, the server will choose an available address; if none is available, the request will fail.


scsi Optional

Address for attaching the device to a virtual SCSI adapter. If unset, the server will choose an available address; if none is available, the request will fail.


type Optional

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.

Possible values are: IDESCSISATANVME

JSON Example

{
	"backing": {
		"type": "VMDK_FILE",
		"vmdk_file": "string"
	},
	"ide": {
		"master": false,
		"primary": false
	},
	"new_vmdk": {
		"capacity": 0,
		"name": "string",
		"storage_policy": {
			"policy": "string"
		}
	},
	"nvme": {
		"bus": 0,
		"unit": 0
	},
	"sata": {
		"bus": 0,
		"unit": 0
	},
	"scsi": {
		"bus": 0,
		"unit": 0
	},
	"type": "IDE"
}
Parameter To

Create Hardware Disk

Feedback

Was this page helpful?