Crypto Manager Kmip Generate Key
Generate new encryption key.
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.
{
"keyProvider": {
"_typeName": "string",
"id": "string"
},
"spec": {
"_typeName": "string",
"attributes": [
{
"_typeName": "string",
"key": "string",
"value": "string"
}
]
},
"keySpec": {
"_typeName": "string",
"keyType": "string"
}
}
[in] Which provider will generate the key. If omitted, will use the default key provider.
[in] The spec that contains custom attributes key/value pairs.
Since: vSphere API Release 8.0.1.0
[in] The keySpec that contains key generation options. If unset, key will be generated with default settings of the key provider.
Since: vSphere API Release 9.0.0.0
the generated key.
{
"_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 '{}' https://{api_host}/sdk/vim25/{release}/CryptoManagerKmip/{moId}/GenerateKey