记录查询
更新时间:2020-07-15
接口
本接口用于记录查询。
Method | Path | 说明 |
---|---|---|
GET | /v2/abroad/cache/purge | 缓存刷新记录查询 |
请求参数
参数 | 可选 | 类型 | 说明 |
---|---|---|---|
startTime | 可选 | Timestamp | 起始时间 |
endTime | 可选 | Timestamp | 结束时间 |
marker | 可选 | string | 上次查询返回的nextMarker |
id | 可选 | string | 任务ID |
响应码(Http Status Code)
Http Status Code | 说明 |
---|---|
200 | 查询成功 |
响应体(Response Body)
参数 | 类型 | 说明 |
---|---|---|
details | list | 任务详情 |
isTruncated | boolean | true表示后面还有数据,false表示已经是最后一页。 |
nextMarker | string | 当isTruncated为false时,该域不出现。用户通过在下次调用本接口时指定该marker标记来获取后续的列表。 |
GET /v2/abroad/cache/purge HTTP/1.1
Host: cdn.baidubce.com
Content-Type: application/json
Authorization: xxx
Accept: */*
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
HTTP/1.1 200 OK
Server: nginx/1.1.10
Date: Wed, 08 Jul 2020 03:13:55 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
x-bce-request-id: b63d9e7d-6dd7-9f29-1cc1-9727e3bd2c97
{
"details": [
{
"task": {
"url": "http://www.example.com/test.jpg",
"type": "file"
},
"createdAt": "2020-07-07T09:46:58Z",
"finishedAt": "2020-07-07T09:46:58Z",
"status": "completed"
},
{
"task": {
"url": "http://www.example.com/a/",
"type": "file"
},
"createdAt": "2020-07-07T09:45:32Z",
"finishedAt": "2020-07-07T09:45:32Z",
"status": "completed"
}
],
"isTruncated": false
}
说明: 和国内版不同,此处没有进度的概念,只有completed、failed和in-progress这3个状态。