Crypto Manager Kmip Set Key Custom Attributes
Set crypto key's custom attributes.
Since: vSphere API Release 8.0.1.0
Required privileges: Cryptographer.ManageKeys
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 CryptoManagerKmip/{moId}.
The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.
Show optional properties
{
"keyId": {},
"spec": {}
}
{
"keyId": {
"_typeName": "string",
"keyId": "string",
"providerId": {
"_typeName": "string",
"id": "string"
}
},
"spec": {
"_typeName": "string",
"attributes": [
{
"_typeName": "string",
"key": "string",
"value": "string"
}
]
}
}
[in] The crypto Key Id.
[in] The spec that contains custom attributes key/value pairs.
The structure combined with status and fail reason.
{
"_typeName": "string",
"keyId": {
"_typeName": "string",
"keyId": "string",
"providerId": {
"_typeName": "string",
"id": "string"
}
},
"success": false,
"reason": "string",
"fault": {
"_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"
}
]
}
}
Data Object representing a cryptographic key.
success
reason
Fault which includes details about the error.
Since: vSphere API Release 7.0.1.0
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"keyId":"{}","spec":"{}"}' https://{api_host}/sdk/vim25/{release}/CryptoManagerKmip/{moId}/SetKeyCustomAttributes