Membuat alias untuk customer master key (CMK).
Deskripsi operasi
-
Untuk detail kebijakan akses yang harus diberikan kepada pengguna RAM atau peran RAM untuk memanggil operasi API ini, lihat Kontrol akses.
-
Setiap alias hanya dapat mewakili satu CMK.
-
Alias CMK harus unik dalam satu wilayah.
Topik ini menyediakan contoh pembuatan alias bernama alias/example untuk kunci 7906979c-8e06-46a2-be2d-68e3ccbc****.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kms:CreateAlias |
create |
*Semua resource.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| KeyId |
string |
Yes |
ID unik global CMK. |
7906979c-8e06-46a2-be2d-68e3ccbc**** |
| AliasName |
string |
Yes |
Alias CMK. Alias harus memiliki panjang 1 hingga 255 karakter, harus mengandung awalan |
alias/example |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. Ini adalah pengenal unik yang dihasilkan oleh Alibaba Cloud untuk permintaan dan dapat digunakan untuk memecahkan serta melacak 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. | |
| 404 | InvalidAccessKeyId.NotFound | The Access Key ID provided does not exist in our records. | |
| 404 | Forbidden.KeyNotFound | The specified Key is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.