VslmCloneSpec

VslmCloneSpec
VslmCloneSpec

Specification of cloning a virtual storage object.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "backingSpec": {
        "_typeName": "string",
        "datastore": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "path": "string"
    },
    "profile": [
        {
            "_typeName": "string"
        }
    ],
    "consolidate": false,
    "disksCrypto": {
        "_typeName": "string",
        "parent": "DiskCryptoSpec Object",
        "crypto": {
            "_typeName": "string"
        }
    },
    "name": "string",
    "keepAfterDeleteVm": false,
    "metadata": [
        {
            "_typeName": "string",
            "key": "string",
            "value": "string"
        }
    ]
}
string
name
Required

Descriptive name of the cloned virtual storage object.

boolean
keepAfterDeleteVm
Optional

Choice of the deletion behavior of this virtual storage object.

If not set, the default value is false.

array of KeyValue
metadata
Optional

The metadata KV pairs that are supposed to be updated on the destination virtual storage object.

The clone task is atomic by design. That being said, failing to update the specified metadata pairs leads to the failure of the clone task. If unset, no metadata will be updated. An empty string value is indicative of a vcenter tag.