List Log Shipper Records
Updated at:2025-11-03
Description
Check execution records for a specified logshipper.
Request
- Request syntax
Http
1GET /v1/logshipper/{logShipperID}/record?sinceHours={}&pageNo={}&pageSize={} HTTP/1.1
2Host: bls-log.{region}.baidubce.com
3Authorization: authorization string
- Request headers
No additional headers are required beyond the standard request headers.
- Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| logShipperID | string | yes | path | Task ID |
| sinceHours | int | no | query | View data in a recent period, unit: hour, range: integers between 1 and 180×24; default: 1 |
| pageNo | int | no | query | Page, starting from 1, default: 1 |
| pageSize | int | no | query | Page size, minimum: 10, maximum: 100, default: 10 |
Response
- Response headers
No additional headers are required beyond the standard response headers.
- Response parameters
| Parameter name | Types | Can it be empty | Description |
|---|---|---|---|
| totalCount | int | no | Total entries |
| result | list<record> | yes | Logshipper execution records |
record structure:
| Parameter name | Types | Can it be empty | Description |
|---|---|---|---|
| startTime | string | no | Start time, namely the start time of the current delivery period |
| endTime | string | no | End time, namely the end time of the current delivery period |
| finishedCount | int | no | Total logs dumped this time |
Example
- Request example
Http
1GET /v1/logshipper/2323-xxxx/record?sinceHours=48&pageNo=1&pageSize=10 HTTP/1.1
2Host: bls-log.bj.baidubce.com
3Authorization:bce-auth-v1/18717522d39411e9b721df098b0b908c/2019-09-10T07:00:20Z/1800/content-type;host;x-bce-date;x-bce-request-id/6a7cb6c9ac7ec156c805e55e7d0bcfc443b47feee97cf099c1c0d93a0b4c8304
4Content-Type: application/json; charset=utf-8
- Response example
Http
1HTTP/1.1 200
2Content-Type: application/json; charset=utf-8
3
4{
5 "totalCount" : 20,
6 "result":[
7 {
8 "startTime": "2020-05-09T10:21:28Z",
9 "endTime": "2020-05-09T10:25:29Z",
10 "finishedCount": 120
11 },
12 ....
13 ]
14}
