This API is used to query the maximum number of instances that a tenant can create, the number of created instances, and the maximum number of tags that can be created for each instance.
GET /v2/{project_id}/quotas
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Definition Project ID. For details about how to obtain it, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
includeTagsQuota |
No |
String |
Definition Whether a tag quota flag is included. Constraints N/A Range
Default Value true |
onlyQuota |
No |
String |
Definition Queries a specified quota engine. Constraints N/A Range
Default Value N/A |
None
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
quotas |
quotas object |
Definition Quota information. Constraints N/A Range N/A Default Value N/A |
Parameter |
Type |
Description |
|---|---|---|
resources |
Array of QuotaResourceEntity objects |
Definition Quota list. Constraints N/A Range N/A Default Value N/A |
Parameter |
Type |
Description |
|---|---|---|
type |
String |
Definition Supports kafkaInstance, rocketmqInstance, and tags.
Constraints N/A Range N/A Default Value N/A |
quota |
Integer |
Definition The maximum number of instances that a tenant can create, or the maximum number of tags that can be created for each instance. Constraints N/A Range N/A Default Value N/A |
used |
Integer |
Definition Number of created instances. Constraints N/A Range N/A Default Value N/A |
GET https://{endpoint}/v2/{project_id}/quotas?includeTagsQuota=false&onlyQuota=reliability
Status code: 200
Successful
{
"quotas" : {
"resources" : [ {
"type" : "rocketmqInstance",
"quota" : 100,
"used" : 17
} ]
}
}
Status Code |
Description |
|---|---|
200 |
Successful |
See Error Codes.