vcenter VM: disk clone spec

Document-based disk clone spec. This structure was added in vSphere API 7.0.0.0.

Representation:

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

Attributes:

Name Type Description
Required
storage_policy.policy string Identifier of the storage policy which should be associated with the VMDK file. This attribute was added in vSphere API 6.7.

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.

Optional
datastore string Destination datastore to clone disk. This attribute was added in vSphere API 7.0.0.0.

Optional. This field is currently required. In the future, if this field is unset disk will be copied to the datastore specified in the vcenter.VM.clone_placement_spec.datastore field of vcenter.VM.clone_spec.placement.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 storage_policy_spec Storage policy to be associated with cloned disk. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Optional. If unset, the cloned disk will be associated with a storage policy based the rules described for the clone operation.