查詢指定PolarDB執行個體的密鑰使用詳情。
介面說明
請求說明
該 API 用於擷取 PolarDB 執行個體的密鑰使用詳情,包括金鑰識別碼、狀態、類型等資訊。
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 |
金鑰識別碼。 |
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。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。