Querying Tag Quotas¶
Function¶
This API is used to query tag quotas.
URI¶
GET /v1.0/tms/quotas
Request¶
Parameter | Mandatory | Type | Description |
---|---|---|---|
X-Auth-Token | Yes | String | Specifies the user token. TMS is a global service. So you need to set scope to domain when calling an IAM API to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Response¶
Status code: 200
Parameter | Type | Description |
---|---|---|
quota_key | String | Specifies the quota key. |
quota_limit | Integer | Specifies the quota value. |
used | Integer | Specifies the used quota. |
unit | String | Specifies the unit. |
Example Request¶
Querying tag quotas
GET https://{Endpoint}/v1.0/tms/quotas
Example Response¶
Status code: 200
Successful operation
{
"quotas" : [ {
"used" : 4,
"unit" : "count",
"quota_key" : "predefine_tag",
"quota_limit" : 500
} ]
}
Status Codes¶
See Status Codes.
Error Codes¶
See Error Codes.