Mengaktifkan enkripsi default tingkat akun untuk penyimpanan blok di wilayah tertentu.
Deskripsi operasi
Fitur enkripsi default tingkat akun EBS saat ini hanya tersedia di wilayah tertentu dan untuk pengguna tertentu. Jika Anda memerlukan fitur ini, ajukan tiket.
-
Sebelum memulai
Pengguna Resource Access Management (RAM) harus memiliki izin
AliyunECSFullAccess. Untuk detail otorisasi, lihat Berikan izin kepada pengguna RAM.Sebelum mengaktifkan enkripsi default tingkat akun untuk penyimpanan blok, aktifkan Key Management Service (KMS).
Setelah enkripsi default tingkat akun untuk penyimpanan blok diaktifkan, hanya disk cloud terenkripsi yang dapat dibuat. Untuk detailnya, lihat Disk cloud terenkripsi - Batasan.
-
Peringatan
-
Setelah enkripsi default tingkat akun untuk penyimpanan blok diaktifkan, semua disk cloud pay-as-you-go atau subscription yang baru dibuat harus dienkripsi. Anda dapat menggunakan ID kunci KMS yang dikonfigurasi untuk enkripsi default tingkat akun penyimpanan blok atau menentukan ID kunci KMS yang berbeda.
-
Saat enkripsi default tingkat akun untuk penyimpanan blok diaktifkan pertama kali, kunci layanan digunakan secara default.
-
-
Rekomendasi
Panggil DescribeDiskEncryptionByDefaultStatus dan DescribeDiskDefaultKMSKeyId untuk memeriksa apakah enkripsi default tingkat akun untuk penyimpanan blok telah diaktifkan di wilayah tertentu serta ID kunci KMS yang sedang digunakan.
Panggil ModifyDiskDefaultKMSKeyId atau ResetDiskDefaultKMSKeyId untuk mengubah atau mengatur ulang kunci KMS untuk enkripsi default tingkat akun penyimpanan blok.
Panggil DisableDiskEncryptionByDefault untuk menonaktifkan enkripsi default tingkat akun untuk penyimpanan blok di wilayah tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:EnableDiskEncryptionByDefault |
none |
*Semua resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. Anda dapat memanggil DescribeRegions untuk mengecek daftar wilayah terbaru. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.Encrypted.KmsNotEnabled | KMS must be enabled for encrypted disks. | Key Management Service (KMS) harus diaktifkan untuk disk terenkripsi. |
| 400 | InvalidParameter.KmsNotEnabled | The operation failed because KMS is not activated. Please activate KMS in the KMS console and try again. | |
| 403 | Abs.InvalidAction.RegionNotSupport | This region does not support this action. | Wilayah tidak mendukung operasi ini. |
| 403 | InvalidOperation.DefaultEncryptionAlreadyEnabled | The specified region is already default encryption settings. | Enkripsi disk secara default sudah diaktifkan di wilayah ini. |
| 403 | InvalidParameter.RegionIdNotExists | The specified region does not exist. | |
| 403 | InvalidParameter.KMSKeyId.KMSUnauthorized | ECS service does not have permission to access your KMS key. Please verify that the specified KMS key has authorized the ECS service. | |
| 403 | InvalidOperation.KMSKeyIdNotFound | The specified KMSKeyId does not exist. Please verify that the key ID is correct and that the key resides in the current region. | |
| 403 | InvalidOperation.KMSServiceNotOpen | KMS service is currently not open. | Key Management Service (KMS) belum diaktifkan. |
| 403 | UserNotInTheWhiteList | The user is not in disk white list. | Pengguna tidak berada dalam daftar putih Shared Block Storage. Ajukan tiket untuk mendaftar ke daftar putih. |
| 403 | InvalidParameter.KMSKeyId.CMKNotEnabled | The specified KMS key must be in an enabled state. Please enable the key in the KMS console and try again. | |
| 403 | InvalidParameter.KMSKeyId.CMKUnauthorized | The specified KMS key is not authorized for the ECS service. Please grant the ECS service permission to use the key in the KMS console and try again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.