Log Interface
Last Updated:2020-09-17
Interface
This interface is used to get domain name logs.
Method | Path | Description |
---|---|---|
GET | /v2/abroad/log/{domain} | Query the log download address of a domain name |
Request parameter
Parameter | Optional | Type | Description |
---|---|---|---|
startTime | Optional | Timestamp | Time to start getting logs |
endTime | Optional | Timestamp | Time to end getting logs |
Response code (Http Status Code)
Http Status Code | Description |
---|---|
200 | Successfully queried |
Response body(Response Body)
Parameter | Type | Description |
---|---|---|
logs | list <LogEntry> | Log list |
LogEntry structure description:
Parameter | Type | Description |
---|---|---|
url | String | Download logs |
name | String | The log file name |
size | Int | File size |
startTime | Timestamp | Start time of logs in the file |
endTime | Timestamp | End time of logs in the file |
Request example
GET /v2/abroad/log/test.com?startTime=2018-11-21T08:00:00Z&endTime=2018-11-21T09:00:00Z HTTP/1.1
Host: cdn.baidubce.com
Content-Length: 0
Response example
{
"logs": [
{
"url": "log_download_url",
"name": "test.com_2018_11_21_16_00.gz",
"size": 123434560,
"startTime": "2018-11-21T08:00:00Z",
"endTime": "2018-11-21T09:00:00Z"
},
]
}