All Products
Search
Document Center

Key Management Service:DisableKey

Last Updated:Dec 21, 2025

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

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

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.