All Products
Search
Document Center

Key Management Service:CreateAlias

Last Updated:Dec 21, 2025

Membuat alias untuk sebuah kunci.

Deskripsi operasi

  • Setiap alias hanya dapat dikaitkan dengan satu CMK dalam satu waktu.

  • Alias CMK dalam Wilayah yang sama harus unik.

Dalam topik ini, sebuah alias bernama alias/example dibuat untuk CMK dengan ID 7906979c-8e06-46a2-be2d-68e3ccbc****.

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 CMK. ID tersebut harus unik secara global.

7906979c-8e06-46a2-be2d-68e3ccbc****

AliasName

string

Yes

Alias CMK.

Panjang alias harus antara 1 hingga 255 karakter dan harus mengandung awalan alias/. Alias tidak boleh diawali dengan kata tercadang alias/acs.

alias/example

Elemen respons

Element

Type

Description

Example

object

RequestId

string

ID permintaan, yang digunakan untuk melacak dan memecahkan masalah.

1d2baaf3-d357-46c2-832e-13560c2bd9cd

Contoh

Respons sukses

JSONformat

{
  "RequestId": "1d2baaf3-d357-46c2-832e-13560c2bd9cd"
}

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 InvalidAccessKeyId.NotFound The Access Key ID provided does not exist in our records.
404 Forbidden.KeyNotFound The specified Key is not found. The error message returned because the specified CMK does not exist.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.