DescribeBinlogFiles
Queries the log backup files of an ApsaraDB for MongoDB instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeBinlogFiles |
get |
*Instance
|
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
|
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 |
| DownloadLink |
string |
The download URL of the binary log file. |
https://rdslog-shanghai.xxxxxxxxx |
| 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:
Valid values:
|
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.