查询限额
更新时间:2019-06-14
本接口用于查询用户当前的限额(Quota)值。
Method | Path | 说明 |
---|---|---|
GET | /v2/cache/quota | 查询quota限额值 |
响应码 (Http Status Code)
HTTP Status Code | 说明 |
---|---|
200 | 成功 |
响应体 (Response Body)
参数 | 类型 | 说明 |
---|---|---|
dirRemain | int | 当日刷新目录限额余量 |
urlRemain | int | 当日刷新(含预热)URL限额余量 |
dirQuota | int | 刷新目录限额总量 |
urlQuota | int | 刷新(含预热)URL限额总量 |
请求示例
GET /v2/cache/quota HTTP/1.1
Host: cdn.baidubce.com
响应示例
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
}