Queries a list of Key Management Service (KMS) keys.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeKmsKeys |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ZoneId |
string |
No |
The zone ID. Note
You can call the DescribeRegions operation to query the most recent zone list. |
cn-hangzhou-k |
| RegionId |
string |
Yes |
The region ID. Note
You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
8F91F25F-8BCF-59E3-AF67-3806DB41FD09 |
| KmsKeys |
object |
||
| KmsKey |
array<object> |
The queried KMS keys. |
|
|
object |
The queried KMS key. |
||
| KeyAlias |
string |
The alias of the key. |
mykey |
| KeyId |
string |
The ID of the key. |
2e81355b-f8e7-4090-8082-a8f8124a621c |
Examples
Success response
JSON format
{
"RequestId": "8F91F25F-8BCF-59E3-AF67-3806DB41FD09",
"KmsKeys": {
"KmsKey": [
{
"KeyAlias": "mykey",
"KeyId": "2e81355b-f8e7-4090-8082-a8f8124a621c"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.