Queries the list of KMS keys.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeUserEncryptionKeyList |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageSize |
integer |
No |
The page size. Valid values:
|
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
| DBClusterId |
string |
No |
The cluster ID. Note
You can call the DescribeDBClusters operation to query information about all clusters in the specified region, including the cluster ID. |
pc-************ |
| RegionId |
string |
No |
The region ID. Note
You can call the DescribeRegions operation to query the available regions for the current account, including the region ID. |
cn-hangzhou |
| TDERegion |
string |
No |
The region where the TDE key resides. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A7E6A8FD-C50B-46B2-BA85-D8B8D3****** |
| KeyList |
array |
The list of cluster keys. |
|
|
string |
The list of keys. |
0275bd3f-fdbb-4d8c-846b-71b211****** |
|
| TotalRecordCount |
integer |
The total number of records. |
1 |
| PageRecordCount |
integer |
The number of records on the current page. |
1 |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The page size. |
30 |
| DBClusterId |
string |
The cluster ID. |
pc-************ |
Examples
Success response
JSON format
{
"RequestId": "A7E6A8FD-C50B-46B2-BA85-D8B8D3******",
"KeyList": [
"0275bd3f-fdbb-4d8c-846b-71b211******"
],
"TotalRecordCount": 1,
"PageRecordCount": 1,
"PageNumber": 1,
"PageSize": 30,
"DBClusterId": "pc-************"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ByokRoleArnNotFound | The roleArn can't be null. | |
| 401 | ByokNotAuthorizedToRds | This user is not Authorized Rds. | This user is not authorized by ApsaraDB RDS. |
| 403 | UnsupportedKmsService.NotEnabled | KMS service is not enabled. | Key Management Service is not enabled. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.