Querying Quotas
Function
This API is used to query quotas.
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
Metrics queried successfully.
{ "quotas" : { "resources" : [ { "type" : "rabbitmqInstance", "quota" : 100, "used" : 3 }, { "type" : "kafkaInstance", "quota" : 100, "used" : 17 }, { "type" : "rocketmqInstance", "quota" : 100, "used" : 17 }, { "tpye" : "tags", "quota" : 20 } ] } }
Status Code
Status Code |
Description |
---|---|
200 |
Metrics queried successfully. |
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