Update protection key
- Print
- PDF
Update protection key
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
Change the protection key of a secret.
The protection key of a secret in the REVOKE
(deletion requested) status can't be changed.
PUT https://secretmanager.apigw.ntruss.com/api/v1/secrets/{secretId}/protection-key
Request
Request parameters
Parameter name | Type | Description |
---|---|---|
secretId | String | Secret ID |
Request body
{
"protectionKeyType": "DEFAULT",
"kmsKeyTag": "string"
}
Parameter name | Type | Description |
---|---|---|
protectionKeyType | String | Secret protection key type (DEFAULT , USER_MANAGED_KEY ) |
kmsKeyTag | String | KMS key tag |
Response
Response body
{
"code": "SUCCESS",
"data": {
"secretId": "string",
"protectionKey": {
"type": "DEFAULT",
"kmsKeyTag": "string",
"kmsKeyName": "string"
}
}
}
Parameter name | Type | Description |
---|---|---|
secretId | String | Secret ID |
protectionKey.type | String | Protection key type (DEFAULT , USER_MANAGED_KEY ) |
protectionKey.kmsKeyTag | String | KMS key tag |
protectionKey.kmsKeyName | String | KMS key name |
Was this article helpful?