VmHardwareDiskCreateSpec

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


Properties

Required Property Name Type Description
optional backing VmHardwareDiskBackingSpec

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.

optional ide VmHardwareIdeAddressSpec

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.

optional new_vmdk VmHardwareDiskVmdkCreateSpec

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.

optional sata VmHardwareSataAddressSpec

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.

optional scsi VmHardwareScsiAddressSpec

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.

optional type VmHardwareDiskHostBusAdapterType Enum

Type of host bus adapter to which the device should be attached. If unset, guest-specific default values will be used

JSON Example

{
    "backing": {
        "type": "enum",
        "vmdk_file": "string"
    },
    "ide": {
        "master": false,
        "primary": false
    },
    "new_vmdk": {
        "capacity": 0,
        "name": "string",
        "storage_policy": {
            "policy": "string"
        }
    },
    "sata": {
        "bus": 0,
        "unit": 0
    },
    "scsi": {
        "bus": 0,
        "unit": 0
    },
    "type": "enum"
}
Feedback

Was this page helpful?