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

This API is used to query the binlog files of an instance, supporting query by page and binlog file download.

  • When DownloadLink is NULL, RDS does not provide 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 or not 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. Unit: byte.
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, there is no download URL.
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