Create an authentication key
Creates an authentication key to establish secure access with an external key manager. This key is essential for encrypting and decrypting data, ensuring the security of your storage environment.
HTTP method and endpoint
POST /security/key-managers/{security_key_manager.uuid}/auth-keys
Introduced in
ONTAP 9.12
Related ONTAP commands
-
security key-manager key create
Required properties
-
security_key_manager.uuid- UUID of the external key manager.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
security_key_manager.uuid |
string |
path |
True |
External key manager UUID |
return_records |
boolean |
query |
False |
The default is false. If set to true, the records are returned.
|
Request Body
| Name | Type | Description |
|---|---|---|
key_id |
string |
Key identifier. |
key_tag |
string |
Optional parameter to define key-tag for the authentication key, length 0-32 characters. |
passphrase |
string |
Authentication passphrase, length 20-32 characters. May contain the '=' character. |
Example request
{
"key_id": "00000000000000000100000000000123456789asdfghjklqwertyuio123456780000000000000090",
"key_tag": "Authentication Key-01",
"passphrase": "AuthenticationKey_01"
}
Response
Status: 201, Created
| Name | Type | Description |
|---|---|---|
num_records |
integer |
Number of records |
records |
array[key_manager_auth_key] |
Example response
{
"records": [
{
"key_id": "00000000000000000100000000000123456789asdfghjklqwertyuio123456780000000000000090",
"key_tag": "Authentication Key-01",
"passphrase": "AuthenticationKey_01"
}
]
}
Headers
| Name | Description | Type |
|---|---|---|
Location |
Useful for tracking the resource location |
string |
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description |
|---|---|
65536048 |
The maximum number of authentication keys are already configured. |
65536053 |
Invalid passphrase length; passphrase must be 20-32 ASCII-range characters. |
65536056 |
The key tag value provided contains invalid characters. |
65536056 |
The key-tag option cannot contain any spaces, tabs or new lines. |
65536074 |
No key servers found. |
65536076 |
Failed to push authentication key to any registered key servers. |
65536160 |
Unable to determine the current number of configured authentication keys. |
65536264 |
Failed to create authentication key. |
65536265 |
Failed to create a key-id for the authentication key. |
65536828 |
External key management is not enabled for the SVM. |
65536856 |
No key servers found. |
65536872 |
Error cleaning up key database after key creation error. |
65536896 |
External key management is not configured on the partner site. |
65538800 |
External KMIP DKMIP keymanager not configured on administrative Vserver. |
65538801 |
Internal error while accessing keymanager database. |
65538802 |
The UUID provided is not associated with the administrator SVM key manager. |
66060289 |
Failed to store authentication key on key server. |
66060302 |
Failed to create authentication key. |
66060304 |
Invalid key length. |
Definitions
See Definitions
href
| Name | Type | Description |
|---|---|---|
href |
string |
self_link
key_manager_auth_key
| Name | Type | Description |
|---|---|---|
key_id |
string |
Key identifier. |
key_tag |
string |
Optional parameter to define key-tag for the authentication key, length 0-32 characters. |
passphrase |
string |
Authentication passphrase, length 20-32 characters. May contain the '=' character. |
_links
error_arguments
| Name | Type | Description |
|---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
error
| Name | Type | Description |
|---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |