Queries binary logs by calling the DescribeBinaryLogList operation.
Operation description
Binary log files are retained for 15 days by default.
The returned log list includes all logs log record end time is after the query start time and log record start time is before the query end time.
When DownloadLink is not NULL, you can download the backup file from this URL. The URL is valid for 2 days after it is generated. Download the file before the URL expires.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:DescribeBinaryLogList |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. |
cn-hangzhou |
| PageNumber |
integer |
No |
The page number of the current binary log list. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of binary logs to return on each page. Default value: 30. |
30 |
| DBInstanceName |
string |
Yes |
The name of the instance. |
pxc-hz1fds |
| StartTime |
string |
Yes |
The start time of the query for the binary log list. |
2021-09-09 10:27:46 |
| EndTime |
string |
Yes |
The end time of the query for the binary log list. |
2021-11-09 10:27:46 |
| InstanceName |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
2DFF784E-DC31-5BBC-9B25-9261CD9E0AA9 |
| PageNumber |
integer |
The page number of the current query. |
1 |
| PageSize |
integer |
The number of binary logs displayed on the current page. |
30 |
| TotalNumber |
integer |
The total number of binary log files returned. |
100 |
| LogList |
array<object> |
The list of binary log files. |
|
|
object |
|||
| EndTime |
string |
The end time of the current binary log. |
2021-11-09 10:27:46 |
| ModifiedTime |
string |
The last modified time. |
2021-11-09 10:27:46 |
| UploadHost |
string |
The backup host. |
10.110.88.9 |
| UploadStatus |
integer |
The backup status. Valid values:
|
2 |
| DownloadLink |
string |
The download link of the file. The link is valid for 2 days. |
http://polarx-cdc-binlog-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/polardbx_cdc/pxc-hzfd132143sfds1/binlog.000001?Expires=1636469502&OSSAccessKeyId=LT13fds12dsafddsf&Signature=fdpm%bdsfadsa%2F%bdsafdsaf%3D |
| BeginTime |
string |
The start time of the log. |
2021-09-09 10:27:46 |
| LogSize |
integer |
The size of the current log file. |
536870912 |
| FileName |
string |
The name of the binary log file. |
binlog.000001 |
| CreatedTime |
string |
The creation time of the file. |
2021-09-09 10:27:46 |
| PurgeStatus |
integer |
The purge status. Valid values:
|
0 |
| Id |
integer |
The unique ID of the current record. |
100 |
Examples
Success response
JSON format
{
"RequestId": "2DFF784E-DC31-5BBC-9B25-9261CD9E0AA9",
"PageNumber": 1,
"PageSize": 30,
"TotalNumber": 100,
"LogList": [
{
"EndTime": "2021-11-09 10:27:46",
"ModifiedTime": "2021-11-09 10:27:46",
"UploadHost": "10.110.88.9",
"UploadStatus": 2,
"DownloadLink": "http://polarx-cdc-binlog-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/polardbx_cdc/pxc-hzfd132143sfds1/binlog.000001?Expires=1636469502&OSSAccessKeyId=LT13fds12dsafddsf&Signature=fdpm%bdsfadsa%2F%bdsafdsaf%3D",
"BeginTime": "2021-09-09 10:27:46",
"LogSize": 536870912,
"FileName": "binlog.000001",
"CreatedTime": "2021-09-09 10:27:46",
"PurgeStatus": 0,
"Id": 100
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.