vcenter vm storage policy: disk policy spec

The disk_policy_spec structure provides a specification for the storage policy to be associated with the virtual disks. This structure was added in vSphere API 6.7.

Representation:

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

Attributes:

Name Type Description
Required
type string Policy type to be used while performing update operation on the virtual disks. This attribute was added in vSphere API 6.7.

Defines the choices for how to specify the policy to be associated with a virtual disk. This enumeration was added in vSphere API 6.7. Value is one of:
USE_SPECIFIED_POLICY: Use the specified policy (see vcenter.vm.storage.policy.disk_policy_spec.policy). This constant was added in vSphere API 6.7.
USE_DEFAULT_POLICY: Use the default storage policy of the datastore. This constant was added in vSphere API 6.7.

Optional
policy string Storage Policy identification. This attribute was added in vSphere API 6.7.

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.vcenter.StoragePolicy. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.StoragePolicy.