Memeriksa apakah pengguna diotorisasi untuk menggunakan Key Management Service (KMS).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CheckKMSAuthorized |
get |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID region. Catatan
Panggil operasi DescribeRegions untuk mengkueri informasi tentang region yang tersedia di akun tujuan, termasuk ID region. |
cn-hangzhou |
| DBClusterId |
string |
Yes |
ID cluster. Catatan
Panggil operasi DescribeDBClusters untuk mengkueri informasi tentang semua cluster di region tujuan, termasuk ID cluster. |
pc-************ |
| TDERegion |
string |
No |
Region tempat kunci transparent data encryption (TDE) berada. |
cn-beijing |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| AuthorizationState |
integer |
Status otorisasi. Nilai yang valid:
|
0 |
| RequestId |
string |
ID permintaan. |
A7E6A8FD-C50B-46B2-BA85-D8B8D3****** |
| RoleArn |
string |
Global Resource Descriptor dari role. Ini menentukan role. Untuk informasi lebih lanjut, lihat Ikhtisar role RAM. |
acs:ram::1406926*****:role/aliyunrdsinstanceencryptiondefaultrole |
| DBClusterId |
string |
ID cluster. |
pc-************ |
Contoh
Respons sukses
JSONformat
{
"AuthorizationState": 0,
"RequestId": "A7E6A8FD-C50B-46B2-BA85-D8B8D3******",
"RoleArn": "acs:ram::1406926*****:role/aliyunrdsinstanceencryptiondefaultrole",
"DBClusterId": "pc-************"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | UnsupportedKmsService.NotEnabled | KMS service is not enabled. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.