Creating SAP Key
Use the post /v1/cckm/sap/keys
API to create a SAP key.
Syntax
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
group | string | Name or ID of the group where the key is to be created. |
name | string | Name for the key. |
operations | array of strings | Cryptographic operations allowed to the key. Possible values are: • ENCRYPT • DECRYPT • SIGN • VERIFY • WRAP • UNWRAP |
type | string | Type of the key. Possible values are: • AES • RSA • EC |
curve | string | Elliptic curve to be used to create the key. Possible values are: • NistP192 • NistP224 • NistP256 • NistP384 • NistP521 • SecP192K1 • SecP224K1 • SecP256K1 |
description (optional) | string | Description of the key. |
exportable (optional) | boolean | Whether the key is exportable. Set to true to make the key exportable. Set to false to make the key non-exportable. |
role (optional) | string | Specifies the role for the key. MASTER_KEY value provides a default value for key role. If provided in request, where possible, it will automatically be converted to the appropriate key roles based on the application context and key type. |
size | integer | Size of the key. |
Example Request
Example Response
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.