Queries the data backup files of an ApsaraDB RDS instance that is released.
Operation description
Supported database engine
MySQL
References
For more information about how to retain the data backup files of an instance after the instance is released, see Configure automatic backup.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
rds:DescribeDetachedBackups | get | *DBInstance acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBInstanceId | string | No | The instance ID. You can call the DescribeDBInstances operation to query the instance ID. | rm-uf6wjk5xxxxxxx |
BackupId | string | No | The ID of the backup set. | 327xxxxx3 |
BackupStatus | string | No | The status of the backup set. Valid values:
| Success |
BackupMode | string | No | The backup method. Valid values:
| Automated |
StartTime | string | No | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. | 2021-03-01T16:00Z |
EndTime | string | No | 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. | 2021-03-15T16:00Z |
PageSize | integer | No | The number of entries per page. Valid values:
Note
The default value is 30.
| 30 |
PageNumber | integer | No | The page number. Pages start from page 1. Note
The default value is 1.
| 1 |
Region | string | Yes | The region ID of the instance. | cn-hangzhou |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmy***** |
Response parameters
Examples
Sample success responses
JSON
format
{
"PageNumber": "1",
"RequestId": "1A6D328C-84B8-40DC-BF49-6C73984D7494",
"PageRecordCount": "30",
"TotalRecordCount": "100",
"Items": {
"Backup": [
{
"ConsistentTime": 1576506856,
"StoreStatus": "Disabled",
"BackupStatus": "Success",
"BackupType": "FullBackup",
"BackupStartTime": "2019-02-03T12:20:00Z",
"BackupDownloadURL": "http://rdsbak-hz-v3.oss-cn-hangzhou.aliyuncs.com/xxxxx",
"IsAvail": 1,
"MetaStatus": "OK",
"BackupEndTime": "2019-02-13T12:20:00Z",
"BackupId": "321020562",
"HostInstanceID": "5882781",
"BackupIntranetDownloadURL": "http://rdsbak-hz-v3.oss-cn-hangzhou-internal.aliyuncs.com/xxxxx",
"BackupSize": 2167808,
"BackupMode": "Automated",
"DBInstanceId": "rm-uf6wjk5xxxxxxx",
"DBInstanceComment": "test",
"BackupMethod": "Physical"
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-11-20 | API Description Update. The Error code has changed | View Change Details |
2022-08-04 | The request parameters of the API has changed | View Change Details |