Cancels the scheduled deletion of a CMK and restores it to the Enabled state.
Operation description
After the scheduled deletion is canceled, the CMK returns to the Enabled state.
For the access policy required for a RAM user or RAM role to call this operation, see Resource Access Management.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| KeyId |
string |
Yes |
The ID of the CMK. The ID must be globally unique. |
1234abcd-12ab-34cd-56ef-12345678**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
3da5b8cc-8107-40ac-a170-793cd181d7b7 |
Examples
Success response
JSON format
{
"RequestId": "3da5b8cc-8107-40ac-a170-793cd181d7b7"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is not valid. | An invalid value is specified for the parameter. |
| 404 | Forbidden.KeyNotFound | The specified Key is not found. | The error message returned because the specified CMK does not exist. |
| 404 | InvalidAccessKeyId.NotFound | The Access Key ID provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.