Queries the quota information for an instance.
Try it now
Test
RAM authorization
Request parameters
Parameter | Type | Required | Description | Example |
KmsInstanceId | string | No | The ID of the KMS instance to query. | kst-bjj62f5ba3dnpb6v8**** |
ResourceType | string | No | The resource type. Valid values:
Valid values:
| key |
Response elements
Element | Type | Description | Example |
object | Schema of response. | ||
RequestId | string | The ID of the request. | f1fdfa9d-bd49-418b-942f-8f3e3ec00a4f |
KmsInstanceId | string | The ID of the KMS instance. | kst-hzz6**** |
| KmsInstanceQuotaInfos | array<object> | An array of instance quota information. | |
object | |||
ResourceQuota | integer | The quota. | 12 |
ResourceType | string | The resource type. | key |
UsedQuantity | integer | The used quota. | 10 |
Examples
Success response
JSON format
{
"RequestId": "f1fdfa9d-bd49-418b-942f-8f3e3ec00a4f",
"KmsInstanceId": "kst-hzz6****",
"KmsInstanceQuotaInfos": [
{
"ResourceQuota": 12,
"ResourceType": "key",
"UsedQuantity": 10
}
]
}Error codes
HTTP status code | Error code | Error message | Description |
400 | InvalidParameter | The specified parameter is not valid. | An invalid value is specified for the parameter. |
403 | Forbidden.DKMSInstanceStateInvalid | The DKMS instance state is invalid. | Your dedicated KMS instance is invalid. |
403 | Forbidden.DKMSInstanceNotFound | The specified DKMS Instance is not found. | Your dedicated KMS instance is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.