vcenter vm template library items: deploy spec vm home storage

The deploy_spec_vm_home_storage structure defines the storage specification for a deployed virtual machine's configuration and log files. 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 configuration and log files. This attribute was added in vSphere API 6.8.

Policy type for the deployed virtual machine's configuration and log files. 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 source virtual machine template's configuration and log files. This constant was added in vSphere API 6.8.

Optional
datastore string Identifier of the datastore for the deployed virtual machine's configuration and log files. This attribute was added in vSphere API 6.8.

Optional. This field is currently required.

When storage_policy is also specified and is incompatible with the datastore, then the deployed virtual machine 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_vm_home_storage_policy Storage policy for the deployed virtual machine's configuration and log files. This attribute was added in vSphere API 6.8.

Optional. If unset, datastore must be specified and the deployed virtual machine's configuration and log files are 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.