查询指定PolarDB实例的密钥使用详情。
接口说明
请求说明
该 API 用于获取 PolarDB 实例的密钥使用详情,包括密钥 ID、状态、类型等信息。
DBClusterId
参数是必需的,用于指定要查询的 PolarDB 实例 ID。请确保在调用此接口前已经正确配置了相关的 RAM 角色和策略。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
polardb:DescribeDBClusterEncryptionKey |
get |
*全部资源
|
无 | 无 |
请求语法
POST HTTP/1.1
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
ClientToken |
string |
否 |
幂等参数 |
6000170000591aed949d0f****************** |
DBClusterId |
string |
否 |
集群 ID。 说明
您可以通过 DescribeDBClusters 接口查看账号下所有集群的详细信息,包括集群 ID。 |
pc-*** |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
Schema of Response |
||
RequestId |
string |
请求 ID。 |
137ECCC0-920E-5B3B-9F8E-B81632108BBE |
EncryptionKeyList |
array<object> |
密钥列表。 |
|
object |
密钥详情。 |
||
AliasName |
string |
密钥别名。 |
alias/your_default_key |
Creator |
string |
密钥创建者主账号的 UID。 |
1****1 |
DeleteDate |
string |
预计删除密钥时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。
|
2026-05-08T08:14:16Z |
Description |
string |
密钥描述。 |
Description of the key |
EncryptionKey |
string |
密钥 ID。 |
51858179-afb3-4369-8329-********* |
EncryptionKeyStatus |
string |
密钥的状态。返回值:
|
Enabled |
KeyType |
string |
Key 的类型。返回值说明:
|
ServiceKey |
KeyUsage |
string |
密钥用途。 |
ENCRYPT/DECRYPT |
MaterialExpireTime |
string |
密钥过期时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。 |
2025-10-18T08:14:16Z |
Origin |
string |
密钥的来源。 |
Aliyun_KMS |
UsedBy |
string |
密钥的使用途径:
|
DiskEncryption |
示例
正常返回示例
JSON
格式
{
"RequestId": "137ECCC0-920E-5B3B-9F8E-B81632108BBE",
"EncryptionKeyList": [
{
"AliasName": "alias/your_default_key",
"Creator": "1****1",
"DeleteDate": "2026-05-08T08:14:16Z",
"Description": "Description of the key",
"EncryptionKey": "51858179-afb3-4369-8329-*********",
"EncryptionKeyStatus": "Enabled",
"KeyType": "ServiceKey",
"KeyUsage": "ENCRYPT/DECRYPT",
"MaterialExpireTime": "2025-10-18T08:14:16Z",
"Origin": "Aliyun_KMS",
"UsedBy": "DiskEncryption"
}
]
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. | |
404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | 指定的参数DBClusterId无效 |
404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | 当前的记录中不存在提供的DBClusterId。 |
404 | InvalidDBInstance.NotFound | The DBClusterId provided does not exist in our records. | 我们的记录中不存在提供的DBClusterId。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。