Cns Volume Manager Cns Update Volume Crypto
Updates volume crypto, namely encrypt, deep recrypt, shallow recrypt, and decrypt for the container block volumes and all the disks in the chain.
Following privileges will be required on specified entities, to perform this operation:
- Datastore.FileManagement on all involved datastores, required for block volumes only
- Cryptographer.Encrypt on all involved datastores and on the virtual machines volumes are attached to, required for block volumes update encrypt
- Cryptographer.Recrypt on all involved datastores and on the virtual machines volumes are attached to, required for block volumes update deep or shallow recrypt
- Cryptographer.Decrypt on all involved datastores and on the virtual machines volumes are attached to, required for block volumes update decrypt
Faults that can be set in individual result entry, corresponding to each VolumeCryptoUpdateSpec instance in input:
- vmodl.fault.InvalidArgument set in case of invalid but non-empty volume id.
- vim.fault.NotFound set in case of the volume can not be found.
- vim.fault.CnsFault set in case of any other failure scenario.
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case CnsVolumeManager/{moId}.
The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.
{
"updateSpecs": [
{
"_typeName": "string",
"volumeId": {
"_typeName": "string",
"id": "string"
},
"profile": [
{
"_typeName": "string"
}
],
"disksCrypto": {
"_typeName": "string",
"parent": {
"_typeName": "string",
"parent": "DiskCryptoSpec Object",
"crypto": {
"_typeName": "string"
}
},
"crypto": {
"_typeName": "string"
}
}
}
]
}
Specifications for volumes to be crypted.
Task vCenter Task to track the progress and overall state of this operation.
{
"_typeName": "string",
"type": "string",
"value": "string"
}
InvalidArgument: if:
- Input size is not equal to 1
- Volume id in input spec is empty.
- VolumeCryptoUpdateSpec.disksCrypto.crypto is unset.
- VolumeCryptoUpdateSpec.disksCrypto.parent is set.
NotFound: if the volume can not be found.
CnsNotRegisteredFault: if the volume exists in VC but not registered as CNS volume.
CnsFault: Thrown for all other failure scenario.
{
"_typeName": "string",
"faultCause": {
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
},
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}
Fault which is the cause of this fault.
Message which has details about the error Message can also contain a key to message catalog which can be used to generate better localized messages.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/sdk/vim25/{release}/vsan/CnsVolumeManager/{moId}/CnsUpdateVolumeCrypto