Record Query
Last Updated:2020-09-17
Interface
This interface is used to query records.
| Method | Path | Description |
|---|---|---|
| GET | /v2/abroad/cache/purge | Query the cache refreshing records |
Request parameter
| Parameter | Optional | Type | Description |
|---|---|---|---|
| startTime | Optional | Timestamp | Start time |
| endTime | Optional | Timestamp | End time |
| marker | Optional | string | nextMarker returned for last query |
| id | Optional | string | Task ID |
Response code(Http Status Code)
| Http Status Code | Description |
|---|---|
| 200 | Successfully queried |
Response body
| Parameter | Type | Description |
|---|---|---|
| details | list | Task details |
| isTruncated | boolean | True means there are additional data in the following pages and false means the current page is the last page. |
| nextMarker | string | The domain doesn't appear when isTruncated is false. The user can access the subsequent lists by specifying the marker the next time this interface is called. |
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
} Explanation: Different from the domestic version, here is no progress concept, but three statuses, namely completed, failed and in-progress.
