Crypto Manager Add Keys

Crypto Manager Add Keys

Add multiple existing keys.

Required privileges: Cryptographer.ManageKeys

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/CryptoManager/{moId}/AddKeys
COPY
Path Parameters
string
moId
Required

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 CryptoManager/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Request Body
AddKeysRequestType of type(s) application/json
Required
"AddKeysRequestType Object"
array of object
keys
Optional

[in] List of cryptographic keys to add.

Authentication
This operation uses the following authentication methods.
Responses
200

the result for each key operation.

Returns Array of CryptoKeyResult of type(s) application/json
[
    "CryptoKeyResult Object"
]

500

InvalidState: in case the host is not Crypto Safe

Returns InvalidState of type(s) application/json
"InvalidState Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/CryptoManager/{moId}/AddKeys