Retrieves a list of Key Management Service (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 number of entries per page. |
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
| DBClusterId |
string |
No |
The cluster ID. Note
Call the DescribeDBClusters operation to query information about all clusters in the destination region, including cluster IDs. |
pc-************ |
| RegionId |
string |
No |
The region ID. Note
Call the DescribeRegions operation to query information about the available regions of the destination account, including region IDs. |
cn-hangzhou |
| TDERegion |
string |
No |
The region of the transparent data encryption (TDE) key. |
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 entries. |
1 |
| PageRecordCount |
integer |
The number of entries on the current page. |
1 |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
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.