Menonaktifkan sebuah kunci.
Deskripsi operasi
Jika customer master key (CMK) dinonaktifkan, ciphertext yang dienkripsi menggunakan CMK tersebut tidak dapat didekripsi hingga CMK diaktifkan kembali. Anda dapat memanggil operasi EnableKey untuk mengaktifkan CMK tersebut.
Dalam contoh ini, CMK dengan ID 1234abcd-12ab-34cd-56ef-12345678**** dinonaktifkan.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| KeyId |
string |
Yes |
ID dari CMK. ID tersebut harus unik secara global. |
1234abcd-12ab-34cd-56ef-12345678**** |
Untuk informasi selengkapnya mengenai parameter permintaan umum, lihat Common parameters.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID dari permintaan. |
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.