VslmCreateSpec
Specification to create a virtual storage object.
{
"_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"
}
]
}
Descriptive name of this virtual storage object.
Choice of the deletion behavior of this virtual storage object.
If not set, the default value is true.
Specification of the backings of the virtual storage object.
Size in MB of the virtual storage object.
Virtual storage object Profile requirement.
If unset, the default behavior will apply.
Crypto operation of the disk.
If unset and if profile contains an encryption iofilter, then crypto will be of type CryptoSpecEncrypt, and filled with keyId that is automatically generated and keyProviderId that is the default kms cluster.
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.