vcenter vm storage policy: update spec

The update_spec structure describes the updates to be made to the storage policies associated with the virtual machine home and/or its virtual disks. This structure was added in vSphere API 6.7.

Representation:

{
    "disks"{
        "obj-103"{
            "type""USE_SPECIFIED_POLICY",
            "policy""obj-103"
        }
    },
    "vm_home"{
        "type""USE_SPECIFIED_POLICY",
        "policy""obj-103"
    }
}
{
    "disks"[
        {
            "value"{
                "type""USE_SPECIFIED_POLICY",
                "policy""obj-103"
            },
            "key""obj-103"
        }
    ],
    "vm_home"{
        "type""USE_SPECIFIED_POLICY",
        "policy""obj-103"
    }
}

Attributes:

Name Type Description
Required
-.vm_home.type string Policy type to be used while performing update operation on the virtual machine home's directory. This attribute was added in vSphere API 6.7.

Defines the choices for how to specify the policy to be associated with the virtual machine home's directory. 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.vm_home_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.

-.disks.* disk_policy_spec
-.disks.*.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
-.vm_home vm_home_policy_spec Storage policy to be used when reconfiguring the virtual machine home. This attribute was added in vSphere API 6.7.

Optional. if unset the current storage policy is retained.

-.vm_home.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.

-.disks object Storage policy or policies to be used when reconfiguring virtual machine diks. This attribute was added in vSphere API 6.7.

Optional. if unset the current storage policy is retained.When clients pass a value of this structure as a parameter, the key in the field key/value pairs must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk. When operations return a value of this structure as a result, the key in the field key/value pairs will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk.

-.disks.*.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.