vcenter vm template library items: deploy spec disk storage

The deploy_spec_disk_storage structure contains the storage specification for disks in the virtual machine. This structure was added in vSphere API 6.8.

Representation:

{
    "datastore""obj-103",
    "storage_policy"{
        "type""USE_SPECIFIED_POLICY",
        "policy""obj-103"
    }
}

Attributes:

Name Type Description
Required
storage_policy.type string Policy type to be used when creating the deployed virtual machine's disk. This attribute was added in vSphere API 6.8.

Policy type for the deployed virtual machine's disk. This enumeration was added in vSphere API 6.8. Value is one of:
USE_SPECIFIED_POLICY: Use the specified policy. This constant was added in vSphere API 6.8.
USE_SOURCE_POLICY: Use the storage policy that is associated with the corresponding disk in the source virtual machine template. This constant was added in vSphere API 6.8.

Optional
datastore string Identifier for the datastore associated the deployed virtual machine's disk. This attribute was added in vSphere API 6.8.

Optional. This field is currently required.

If storage_policy is also specified and is incompatible with the datastore, then the disk will be flagged as being out of compliance with the specified storage policy.

. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: Datastore. When operations return a value of this structure as a result, the field will be an identifier for the resource type: Datastore.
storage_policy deploy_spec_disk_storage_policy Storage policy for the deployed virtual machine's disk. This attribute was added in vSphere API 6.8.

Optional. If unset, datastore must be specified and the deployed virtual machine's disk is created with the default storage policy associated with the datastore.

storage_policy.policy string Identifier of the storage policy to use. This attribute was added in vSphere API 6.8.

Optional. It is only relevant when type has value USE_SPECIFIED_POLICY. This field is optional and it is only relevant when the value of type is USE_SPECIFIED_POLICY.When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.spbm.StorageProfile. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.spbm.StorageProfile.