Disables a key.
Operation description
If a customer master key (CMK) is disabled, the ciphertext encrypted by using this CMK cannot be decrypted until you re-enable it. You can call the EnableKey operation to enable the CMK.
In this example, the CMK whose ID is 1234abcd-12ab-34cd-56ef-12345678**** is disabled.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
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**** |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "2fe70ce2-3303-4fd6-b3ac-472fb2705c62"
}Error codes
For a list of error codes, visit the Service error codes.
