DescribeBinlogFiles

Updated at:

Queries the log backup files of an ApsaraDB for MongoDB instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dds:DescribeBinlogFiles

get

*Instance

acs:dds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID.

cn-zhangjiakou

DBInstanceId

string

Yes

The instance ID. If you specify the ID of a sharded cluster instance, you must also specify the NodeId parameter.

dds-wz9ca592fc637a54

NodeId

string

No

Instance ID of the Mongos or shard node in the sharded cluster instance.

Note

This parameter is valid only when the DBInstanceId parameter is set to instance ID of a sharded cluster instance.

d-uf696817a1b5d9f4

StartTime

string

Yes

The start time of the query. Specify the time in the yyyy-MM-ddTHH:mm:ss.xxxZ format. The time must be in UTC.

2021-03-23T06:24:21.425Z

EndTime

string

Yes

The end time of the query. The end time must be later than the start time. Specify the time in the yyyy-MM-ddTHH:mm:ss.xxxZ format. The time must be in UTC.

2023-04-17T05:50:28.914Z

PageSize

integer

No

The number of entries to return on each page.

10

PageNumber

integer

No

The page number.

1

SrcRegion

string

No

The region where the source instance of the geo-redundancy backup resides.

Note
  • Required when you query geo-redundancy backups.

ap-southeast-1

DestRegion

string

No

The region where the geo-redundancy backup resides.

Note

Required when you query geo-redundancy backups.

cn-beijing

BinlogId

string

No

The ID of the binary logs. This parameter is not supported.

null

ResourceGroupId

string

No

The resource group ID.

rg-xxxx

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

F8CA8312-530A-413A-9129-F2BB32A8D404

PageNumber

integer

The page number.

3

MaxRecordsPerPage

integer

The number of entries returned per page.

30

TotalRecordCount

integer

The total number of binary log files.

240

Items

object

LogFile

array<object>

The list of binary log details.

object

The list of binary log details.

LogFileName

string

The name of the binary log file.

1709846151

DumpDownloadURL

string

The OSS download URL of the binary log file. This parameter is not supported.

null

LogBeginTime

string

The start time of the log file.

Format: yyyy-MM-ddTHH:mm:ssZ. The time is in UTC.

2024-03-08T09:31:29Z

DumpBucket

string

The storage location of the binary log file. This parameter is not supported.

null

LinkExpiredTime

string

The expiration time of the URL. This parameter is not supported.

null

OSSEndpoint

string

The endpoint of the OSS bucket where the binary log file resides. This parameter is not supported.

null

LogEndTime

string

The end time of the binary log, in the yyyy-MM-ddTHH:mmZ format. The time is in UTC.

2024-03-09T02:55:00Z

DumpState

integer

The dump status. This parameter is not supported.

null

FileSize

string

The size of the binary log file.

Unit: bytes.

603127135

FileId

string

The ID of the binary log file.

5098

BinLogId

string

The binary log ID. This parameter is not supported.

null

LogStatus

string

The log backup status. Valid values:

  • Uploading: The log backup is being uploaded.

  • Completed: The log backup is uploaded.

Valid values:

  • Completed :

    Completed

  • Uploading :

    Uploading

Completed

Examples

Success response

JSON format

{
  "RequestId": "F8CA8312-530A-413A-9129-F2BB32A8D404",
  "PageNumber": 3,
  "MaxRecordsPerPage": 30,
  "TotalRecordCount": 240,
  "Items": {
    "LogFile": [
      {
        "LogFileName": "1709846151",
        "DumpDownloadURL": "null",
        "LogBeginTime": "2024-03-08T09:31:29Z",
        "DumpBucket": "null",
        "LinkExpiredTime": "null",
        "DownloadLink": "https://rdslog-shanghai.xxxxxxxxx",
        "OSSEndpoint": "null",
        "LogEndTime": "2024-03-09T02:55:00Z",
        "DumpState": 0,
        "FileSize": "603127135",
        "FileId": "5098",
        "BinLogId": "null",
        "LogStatus": "Completed"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidDBInstance.Malformed Too many instance ids or instance id format is invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.