You can call the DescribeDetachedBackups operation to query the data backup files of an instance that is deleted.
Operation Description
The ID of the resource group.
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 | READ |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBInstanceId | string | No | The backup mode of the data backup file. Valid values:
| rm-uf6wjk5xxxxxxx |
BackupId | 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. | 327xxxxx3 |
BackupStatus | string | No | The end of the time range to query. The end time must be later than the start time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. | Success |
BackupMode | string | No | The number of entries to return on each page. Valid values:
NoteDefault value: 30. | Automated |
StartTime | string | No | The number of the page to return. Valid values: any non-zero positive integer. NoteDefault value: 1. | 2021-03-01T16:00Z |
EndTime | string | No | The region ID of the instance. | 2021-03-15T16:00Z |
PageSize | integer | No | The ID of the resource group. | 30 |
PageNumber | integer | No | The page number of the returned page. | 1 |
Region | string | Yes | The ID of the request. | cn-hangzhou |
ResourceGroupId | string | No | The number of data backup files on the page. | 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 | ||||
---|---|---|---|---|---|---|
2022-08-04 | The input parameters of the API operation change. | |||||
|