Query Limit
Last Updated:2020-09-17
This interface is used to query the user’s current quota.
| Method | Path | Description |
|---|---|---|
| GET | /v2/cache/quota | Query quota value |
Response code (Http Status Code)
| HTTP Status Code | Description |
|---|---|
| 200 | Success |
Response body
| Parameter | Type | Description |
|---|---|---|
| dirRemain | int | Balance of the directory purge quota in the day |
| urlRemain | int | Refresh (including warm-up) URL residual quota in the current day |
| dirQuota | int | Purge directory total quota |
| urlQuota | int | Refresh (including prefetch) URL total quota |
Request example
GET /v2/cache/quota HTTP/1.1
Host: cdn.baidubce.com Response example
HTTP/1.1 200
Content-Length: 190
Content-Type: application/json;utf-8
x-bce-request-id: 81d0b05f-5ad4-1f22-8068-d5c9de60a1d7
Server: BCE-CDN
{
"dirRemain":200,
"urlRemain":2000,
"dirQuota":200,
"urlQuota":20000
}