VslmCreateSpec

VslmCreateSpec
VslmCreateSpec

Specification to create a virtual storage object.

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

Descriptive name of this virtual storage object.

boolean
keepAfterDeleteVm
Optional

Choice of the deletion behavior of this virtual storage object.

If not set, the default value is true.

backingSpec
Required

Specification of the backing of a virtual storage object.

integer As int64 As int64
capacityInMB
Required

Size in MB of the virtual storage object.

profile
Optional

Virtual storage object Profile requirement.

If unset, the default behavior will apply.

crypto
Optional

This data object type encapsulates virtual machine or disk encryption settings.

array of KeyValue
metadata
Optional

The metadata KV pairs that are supposed to be created on the newly created virtual storage object.

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