vcenter vm template library items: create spec disk storage

The create_spec_disk_storage structure defines the storage specification for a virtual machine template's disks. 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 a virtual machine template's disk. This attribute was added in vSphere API 6.8.

Policy type for a virtual machine template'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.

Optional
datastore string Identifier for the datastore associated with a virtual machine template'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 create_spec_disk_storage_policy Storage policy for a virtual machine template's disk. This attribute was added in vSphere API 6.8.

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

storage_policy.policy string Identifier for 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.