查询云盘加密可选择的Kms密钥。
接口说明
查询到的密钥仅适用于云盘加密。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
dds:DescribeKmsKeys |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
否 |
地域 ID,您可以调用 DescribeRegions 查询。 |
cn-hangzhou |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
60EEBD77-227C-5B39-86EA-D89163C5**** |
| KmsKeys |
array |
KMS 的密钥列表。 |
|
|
object |
KMS 的密钥对象。 |
||
| KeyAlias |
string |
密钥别名。 |
key-shh656820f4mh9qxxxxx alias/test1 |
| KeyId |
string |
密钥 ID。 |
37291352-xxxx-xxxx-adbf-fd0630a95583 |
示例
正常返回示例
JSON格式
{
"RequestId": "60EEBD77-227C-5B39-86EA-D89163C5****",
"KmsKeys": [
{
"KeyAlias": "key-shh656820f4mh9qxxxxx alias/test1",
"KeyId": "37291352-xxxx-xxxx-adbf-fd0630a95583"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 404 | EntityNotExistUser | The User does not exist. | |
| 404 | EntityNotExistService | The Service mongodb.aliyuncs.com does not exist. | |
| 404 | NoPermissionService | The Account NoPermission Error! Please Authorize The Account! Service Name: mongodb.aliyuncs.com, SLR Role:AliyunServiceRoleForMongoDB. | |
| 409 | EntityAlreadyExistsRole | The Role already exists:AliyunServiceRoleForMongoDB. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?