Querying a Quota
Function
This API is used to query quota details.
This API is an out-of-date version and may not be maintained in the future.
Call Method
For details, see How to Call an API.
URI
GET /v1.0/{project_id}/quotas/dms
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
Request
None
Response
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
quotas |
quotas object |
Quota information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
resources |
Array of QuotaResourceEntity objects |
Quota list. |
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
Values: rabbitmqInstance, kafkaInstance, rocketmqInstance, and tags
|
|
quota |
Integer |
The maximum number of instances that a tenant can create, or the maximum number of tags that can be created for each instance. |
|
used |
Integer |
Number of created instances. |
Example Request
GET https://{endpoint}/v1.0/{project_id}/quotas/dms
Example Response
Status code: 200
The query is successful.
{
"quotas" : {
"resources" : [ {
"type" : "rabbitmqInstance",
"quota" : 100,
"used" : 3
}, {
"type" : "kafkaInstance",
"quota" : 100,
"used" : 17
}, {
"type" : "rocketmqInstance",
"quota" : 100,
"used" : 17
}, {
"type" : "tags",
"quota" : 20
} ]
}
}
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
The query is successful. |
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot