DescribeBackups
Queries the backup file information of an ApsaraDB for Tair (Redis® OSS-Compatible) database instance.
Operation description
This operation is not applicable to cloud-native cluster architecture instances. If needed, use the DescribeClusterBackupList operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeBackups |
get |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
r-bp1zxszhcgatnx**** |
| BackupId |
integer |
No |
The ID of the backup file. |
11611111 |
| BackupJobId |
integer |
No |
The ID of the backup job. This ID is returned by the CreateBackup operation. If CreateBackup returns multiple BackupJobIds, you must call this operation to query each of them separately. |
10001 |
| PageSize |
integer |
No |
The maximum number of entries per page. Valid values: 30, 50, 100, 200, and 300. Valid values:
|
30 |
| PageNumber |
integer |
No |
The page number. The value must be greater than 0 and cannot exceed the maximum value of the Integer data type. Default value: 1. |
1 |
| StartTime |
string |
Yes |
The start time of the query. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. |
2019-03-11T10:00Z |
| 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:mmZ format. The time must be in UTC. |
2019-03-14T18:00Z |
| NeedAof |
string |
No |
Specifies whether to enable AOF persistence. Valid values:
Note
Default value: 0. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
963C20F0-7CE1-4591-AAF3-6F3CD1CE**** |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The maximum number of entries per page. |
30 |
| TotalCount |
integer |
The total number of backups. |
5 |
| FullStorageSize |
integer |
The size of full backup files for the current instance. Unit: bytes. Full backups include daily scheduled backups, manual backups, and backups generated during cache analysis. Note
This value is independent of the number and size of backup sets returned in the current response. It represents the total size of all valid full backups for the instance. |
1000 |
| LogStorageSize |
integer |
The size of instance log backup files for the current instance. Unit: bytes. This value is valid only when the flashback feature is enabled. Note
This value is independent of the number and size of backup sets returned in the current response. It represents the total size of all valid instance log backups for the instance. |
5000 |
| FreeSize |
integer |
The free backup quota for the instance. Unit: bytes. The free quota is equal to the default memory capacity of the instance type. For more information, see Notice on backup commercialization. Full backups and log backups share this free quota. When you change the instance type, the free quota of the instance changes accordingly. |
100000 |
| Backups |
object |
||
| Backup |
array<object> |
The details of the backup set. |
|
|
object |
The details of the backup set. |
||
| BackupStatus |
string |
The backup status. Valid values:
|
Success |
| BackupStartTime |
string |
The start time of the backup. The time is in the YYYY-MM-DDTHH:mm:ssZ format and displayed in UTC. |
2019-03-14T05:28:50Z |
| BackupType |
string |
The backup type. Valid values:
|
FullBackup |
| BackupDownloadURL |
string |
The public URL for downloading the backup file. |
https://rdsbak-hk45-v2.oss-cn-hongkong.aliyuncs.com/******** |
| NodeInstanceId |
string |
The node ID. Note
If the instance uses the standard architecture, this parameter returns the instance ID. |
r-bp10noxlhcoim2****-db-1 |
| BackupEndTime |
string |
The end time of the backup. The time is in the YYYY-MM-DDTHH:mm:ssZ format and displayed in UTC. |
2019-03-14T05:31:13Z |
| BackupId |
integer |
The ID of the backup file. |
165*****50 |
| BackupDBNames |
string |
The databases that are backed up. Default value: all, which indicates that all databases are backed up. |
all |
| EngineVersion |
string |
The database engine version, which is the version of the DPI engine that is compatible with Redis on the instance. |
4.0 |
| BackupIntranetDownloadURL |
string |
The internal URL for downloading the backup file. Note
You can use this URL to download the backup file from an ECS instance that is connected to the Tair instance. Both instances must reside in the same VPC. |
https://rdsbak-hk45-v2.oss-cn-hongkong.aliyuncs.com/******** |
| BackupSize |
integer |
The size of the backup file. |
1024 |
| BackupMode |
string |
The backup mode. Valid values:
|
Automated |
| BackupMethod |
string |
The backup method. Valid values:
|
Physical |
| BackupJobID |
integer |
The ID of the backup job. |
24340 |
| RecoverConfigMode |
string |
Indicates whether the backup set contains account, kernel parameter, and whitelist information. Note
This parameter is applicable only to cloud-native instances. If you modify the preceding information of the instance, such as creating an account or adding a whitelist, the modified information is included in subsequent backup sets through automatic backup. |
{"whitelist":true,"config":true,"account":true} |
| ExpectExpireTime |
string |
The expiration time of the backup set. The time is in the yyyy-MM-ddTHH:mmZ format and displayed in UTC. |
2025-06-01T21:51:22Z |
| AccessDeniedDetail |
object |
This group of parameters is deprecated. Ignore it. |
|
| AuthAction |
string |
See the preceding description. |
- |
| AuthPrincipalDisplayName |
string |
See the preceding description. |
- |
| AuthPrincipalOwnerId |
string |
See the preceding description. |
- |
| AuthPrincipalType |
string |
See the preceding description. |
- |
| EncodedDiagnosticMessage |
string |
See the preceding description. |
- |
| NoPermissionType |
string |
See the preceding description. |
- |
| PolicyType |
string |
See the preceding description. |
- |
Examples
Success response
JSON format
{
"RequestId": "963C20F0-7CE1-4591-AAF3-6F3CD1CE****",
"PageNumber": 1,
"PageSize": 30,
"TotalCount": 5,
"FullStorageSize": 1000,
"LogStorageSize": 5000,
"FreeSize": 100000,
"Backups": {
"Backup": [
{
"BackupStatus": "Success",
"BackupStartTime": "2019-03-14T05:28:50Z",
"BackupType": "FullBackup",
"BackupDownloadURL": "https://rdsbak-hk45-v2.oss-cn-hongkong.aliyuncs.com/********",
"NodeInstanceId": "r-bp10noxlhcoim2****-db-1",
"BackupEndTime": "2019-03-14T05:31:13Z",
"BackupId": 0,
"BackupDBNames": "all",
"EngineVersion": "4.0",
"BackupIntranetDownloadURL": "https://rdsbak-hk45-v2.oss-cn-hongkong.aliyuncs.com/********",
"BackupSize": 1024,
"BackupMode": "Automated",
"BackupMethod": "Physical",
"BackupJobID": 24340,
"RecoverConfigMode": "{\"whitelist\":true,\"config\":true,\"account\":true}",
"ExpectExpireTime": "2025-06-01T21:51:22Z"
}
]
},
"AccessDeniedDetail": {
"AuthAction": "-",
"AuthPrincipalDisplayName": "-",
"AuthPrincipalOwnerId": "-",
"AuthPrincipalType": "-",
"EncodedDiagnosticMessage": "-",
"NoPermissionType": "-",
"PolicyType": "-"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | The Specified parameter StartTime is not valid. | |
| 400 | InvalidEndTime.Malformed | The Specified parameter EndTime is not valid. | |
| 400 | InvalidEngineVersion.Malformed | The Specified EngieVersion is not valid. | |
| 400 | InvalidStartTimeAndEndTime.Malformed | The end time must be greater than the start time. | The end time must be later than the start time. |
| 400 | InvalidPageSize.Malformed | The specified parameter PageSize is not valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.