Menonaktifkan kunci.
Deskripsi operasi
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.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| KeyId |
string |
Yes |
ID CMK. ID harus unik secara global. |
1234abcd-12ab-34cd-56ef-12345678**** |
Untuk informasi lebih lanjut tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
2fe70ce2-3303-4fd6-b3ac-472fb2705c62 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2fe70ce2-3303-4fd6-b3ac-472fb2705c62"
}
Respons error
JSONformat
//xml response
2fe70ce2-3303-4fd6-b3ac-472fb2705c62
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.