vcenter vm hardware disk: vmdk create spec
The
vmdk_create_spec
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.Representation:
{
"capacity": 1,
"name": "string",
"storage_policy": {
"policy": "obj-103"
}
}
"capacity": 1,
"name": "string",
"storage_policy": {
"policy": "obj-103"
}
}
Attributes:
Name | Type | Description |
---|---|---|
Optional | ||
name | string | Base name of the VMDK file. The name should not include the '.vmdk' file extension. Optional. If unset, a name (derived from the name of the virtual machine) will be chosen by the server. |
capacity | long | Capacity of the virtual disk backing in bytes. Optional. If unset, defaults to a guest-specific capacity. |
storage_policy | storage_policy_spec | The storage_policy_spec structure contains information about the storage policy that is to be associated the with VMDK file. This attribute was added in vSphere API 6.7 Optional. If unset the default storage policy of the target datastore (if applicable) is applied. Currently a default storage policy is only supported by object based datastores : VVol & vSAN. For non- object datastores, if unset then no storage policy would be associated with the VMDK file. |