This interface applies only to MySQL and PostgreSQL instances that use local SSDs.

Query the binlog files of an instance, supporting querying by page. RDS provides binlog file downloads.

  • When the DownloadLink is NULL, this indicates that RDS has not provided a download URL.
  • When DownloadLink is not NULL, you can use this URL to download the backup file through wget (add double quotes), a browser, or programming. The expiration time for this URL is LinkExpiredTime. Use it before the expiration time. If it has expired, you can see the following error code during the download:
    <? xml version="1.0" encoding="UTF-8" ? >
    <Message>Request has expired.</Message>

Request parameters

Name Type Required Description
Action String Yes Required parameter. Value: DescribeBinlogFiles.
DBInstanceId String Yes Instance ID.
StartTime String Yes Query start time. Format: yyyy-MM-dd’T’HH:mm:ssZ.
EndTime String Yes Query end time, which must be later than the query start time. Format: yyyy-MM-dd’T’HH:mm:ssZ.
PageSize Integer No Number of records on every page. Values: 30, 50, and 100; default value: 30.
PageNumber Integer No Page number, which must be greater than 0, but must not exceed the maximum Integer value. Default value: 1.

Return parameters

Name Type Description
<Public Return Parameters> For more information, see Public parameters.
TotalRecordCount Integer Total number of binlog files.
PageNumber Integer Page number.
PageRecordCount Integer Number of binlog files displayed on the current page.
Items List<BinLogFile>

BinLogFile parameters

Name Type Description
FileSize Long Binlog file size, in the unit of bytes.
LogBeginTime String Start time for binlog file recording.
LogEndTime String End time for binlog file recording.
DownloadLink String HTTP-compliant download URL. If this parameter is set to NULL, no download URL exists.
HostInstanceID String ID of the instance to which the binlog belongs. This parameter indicates whether the binlog is from the master or slave instance.
LinkExpiredTime String URL expiration time, for example, 2011-06-11T15:00:00Z.

Request example
&<Public request parameters>

Response example

XML format

     <DownloadLink>http://rdslog- spm=</DownloadLink>

JSON format