查詢刷新任務額度
更新時間 2022-11-29 14:22:43
最近更新時間: 2022-11-29 14:22:43
分享文章
接口描述:調用本接口查詢刷新任務額度
請求方式:get
請求路徑:/refresh-task/query-refresh-task-quota
使用說明: 單個用戶一分鐘限制調用10000次,并發不超過100
請求參數說明:
無
返回參數說明:
| 參數 | 類型 | 是否必傳 | 名稱及描述 |
|---|---|---|---|
| code | int | 是 | 狀態碼 |
| message | string | 是 | 描述信息 |
| result | object | 否 | 返回結果數組 |
| result.quotas | list< object> | 否 | 每日配額使用信息 |
| result.quotas[*].domains | list< string> | 否 | 域名列表,按配置分組,如果域名沒有配置,將使用default的配額 |
| result.quotas[*].dir_used | int | 否 | 每日刷新目錄已使用條數 |
| result.quotas[*].dir_max | int | 否 | 每日刷新目錄最大條數 |
| result.quotas[*].dir_surplus | int | 否 | 每日刷新目錄剩余條數 |
| result.quotas[*].url_used | int | 否 | 每日刷新url已使用條數 |
| result.quotas[*].url_surplus | int | 否 | 每日刷新url剩余條數 |
| result.quotas[*].url_max | int | 否 | 每日刷新url最大條數 |
示例:
請求路徑://cdnapi-global.ctapi.daliqc.cn/refresh-task/query-refresh-task-quota
示例1:
請求://cdnapi-global.ctapi.daliqc.cn/refresh-task/query-refresh-task-quota
返回結果:
{
"code": 100000,
"message": "success",
"result": {
"quotas": [
{
"url_used": 0,
"dir_used": 0,
"url_max": 10000000,
"dir_surplus": 100000,
"domains": [
"default"
],
"url_surplus": 10000000,
"dir_max": 100000
}
]
}
}
錯誤碼請參考:參數code和message含義