查询刷新预热额度
更新时间:2023-07-17
接口描述
本接口用于查询用户当前的刷新预热额度。
请求结构
Plain Text
1GET /v2/cache/quota HTTP/1.1
2Host: cdn.baidubce.com
3Authorization: authorization string
响应头域
除公共头域外,无其它特殊头域。
响应参数
响应码
HTTP Status Code | 描述 |
---|---|
200 | 成功。 |
响应体
参数名称 | 类型 | 描述 |
---|---|---|
dirRemain | int | 当日目录刷新剩余额度。 |
urlRemain | int | 当日url刷新(含预热)剩余额度。 |
dirQuota | int | 目录刷新额度总量。 |
urlQuota | int | url刷新(含预热)额度总量。 |
请求示例
JSON
1GET /v2/cache/quota HTTP/1.1
2Host: cdn.baidubce.com
响应示例
JSON
1HTTP/1.1 200
2Content-Length: 190
3Content-Type: application/json;utf-8
4x-bce-request-id: 81d0b05f-5ad4-1f22-8068-d5c9de60a1d7
5Server: BCE-CDN
6
7{
8 "dirRemain":200,
9 "urlRemain":2000,
10 "dirQuota":200,
11 "urlQuota":20000
12}