获取实例配额信息
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| KmsInstanceId |
string |
否 |
要查询的 KMS 实例的 ID。 |
kst-bjj62f5ba3dnpb6v8**** |
| ResourceType |
string |
否 |
资源类型。取值:
枚举值:
|
key |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
f1fdfa9d-bd49-418b-942f-8f3e3ec00a4f |
| KmsInstanceId |
string |
KMS 实例 ID。 |
kst-hzz6**** |
| KmsInstanceQuotaInfos |
array<object> |
实例配额信息数组 |
|
|
object |
|||
| ResourceQuota |
integer |
配额。 |
12 |
| ResourceType |
string |
资源类型 |
key |
| UsedQuantity |
integer |
已使用的额度 |
10 |
示例
正常返回示例
JSON格式
{
"RequestId": "f1fdfa9d-bd49-418b-942f-8f3e3ec00a4f",
"KmsInstanceId": "kst-hzz6****",
"KmsInstanceQuotaInfos": [
{
"ResourceQuota": 12,
"ResourceType": "key",
"UsedQuantity": 10
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is not valid. | 参数非法。 |
| 403 | Forbidden.DKMSInstanceStateInvalid | The DKMS instance state is invalid. | 您的专属KMS状态为无效状态。 |
| 403 | Forbidden.DKMSInstanceNotFound | The specified DKMS Instance is not found. | 您指定的专属kms实例未找到。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?