All Products
Search
Document Center

ApsaraDB RDS:DescribeLogBackupFiles

Last Updated:May 29, 2023

Queries the binary log files of an instance.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
rds:DescribeLogBackupFilesREAD
  • RDS
    acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
  • rds:ResourceTag
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringYes

The ID of the instance.

rm-uf6wjk5xxxxxxx
StartTimestringYes

The beginning of the time range to query. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC.

2018-10-01T08:40Z
EndTimestringYes

The end of the time range to query. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

2018-10-31T08:40Z
PageSizeintegerNo

The number of entries per page. Valid values: 30 to 1000. Default value: 30.

30
PageNumberintegerNo

The page number. Valid values: any non-zero positive integer.

Default value: 1.

1

Response parameters

ParameterTypeDescriptionExample
object
TotalFileSizelong

The total size of log files. Unit: bytes.

2300
PageNumberinteger

The page number.

1
RequestIdstring

The ID of the request.

F8EC669C-FC85-43D7-AF06-C3641626B37E
PageRecordCountinteger

The number of log files on the current page.

100
TotalRecordCountinteger

The total number of log files.

17
Itemsobject []

The details of log files.

LogBeginTimestring

The start time of the log file. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC.

2018-10-31T08:40Z
LinkExpiredTimestring

The expiration time of the URL. The time follows the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2019-03-01T15:04:13Z
LogEndTimestring

The end time of the log file. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC.

2018-10-31T08:40Z
FileSizelong

The size of the log file. Unit: bytes.

788480

Examples

Sample success responses

JSONformat

{
    "Items": {
        "BinLogFile": [ ]
    }, 
    "PageNumber": 1, 
    "TotalRecordCount": 0, 
    "RequestId": "F8EC669C-FC85-43D7-AF06-C3641626B37E", 
    "PageRecordCount": 0
}

XMLformat

<?xml version="1.0" encoding="UTF-8" ?>
<DescribeLogBackupFilesResponse>
	<Items></Items>
	<PageNumber>1</PageNumber>
	<TotalRecordCount>0</TotalRecordCount>
	<RequestId>F8EC669C-FC85-43D7-AF06-C3641626B37E</RequestId>
	<PageRecordCount>0</PageRecordCount>
</DescribeLogBackupFilesResponse>
	

Error codes

For a list of error codes, visit the Service error codes.