All Products
Search
Document Center

Tair:DescribeBackups

Last Updated:Mar 20, 2023

Queries the backup files of an ApsaraDB for Redis instance.

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.
OperationAccess levelResource typeCondition keyAssociation operation
kvstore:DescribeBackupsREAD
  • Redis
    acs:kvstore:{#regionId}:{#accountId}:instance/{#instanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance whose backup files you want to query.

r-bp1zxszhcgatnx****
BackupIdintegerNo

The ID of the backup file.

11611111
PageSizeintegerNo

The number of entries to return on each page. Valid values: 30, 50, 100, 200, and 300.

30
PageNumberintegerNo

The number of the page to return. The value must be an integer that is greater than 0. Default value: 1.

1
StartTimestringYes

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.

2019-03-11T10:00Z
EndTimestringYes

The end of the time range to query. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. The end time must be later than the start time.

2019-03-14T18:00Z
NeedAofstringNo

Specifies whether to enable append-only files (AOFs) persistence. Valid values:

  • 0: no
  • 1: yes
NoteThe default value is 0.
1

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

963C20F0-7CE1-4591-AAF3-6F3CD1CE****
PageNumberinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned on each page.

30
TotalCountinteger

The total number of backup files that were returned.

5
Backupsarray

Details of the backup files.

object
BackupStatusstring

The state of the backup task. Valid values:

  • Success: The task is successful.
  • Failed: The task failed.
Success
BackupStartTimestring

The start time of the backup.

2019-03-14T05:28:50Z
BackupTypestring

The backup type of the backup file. Valid values:

  • FullBackup
  • IncrementalBackup
FullBackup
BackupDownloadURLstring

The public download URL of the backup file.

https://rdsbak-hk45-v2.oss-cn-hongkong.aliyuncs.com/********
NodeInstanceIdstring

The node ID.

NoteIf a standard instance is used, the instance ID is returned.
r-bp10noxlhcoim2****-db-1
BackupEndTimestring

The end time of the backup.

2019-03-14T05:31:13Z
BackupIdinteger

The ID of the backup file.

111111111
BackupDBNamesstring

The databases that are backed up. Default value: all, which indicates that all databases are backed up.

all
EngineVersionstring

The major engine version of the instance.

4.0
BackupIntranetDownloadURLstring

The internal download URL of the backup file.

NoteYou can download the backup file by using this URL from the Elastic Compute Service (ECS) instance that is connected to the ApsaraDB for Redis instance. The ECS instance and ApsaraDB for Redis instance must reside in the classic network or the same virtual private cloud (VPC) within the same region.
https://rdsbak-hk45-v2.oss-cn-hongkong.aliyuncs.com/********
BackupSizelong

The size of the backup file.

1024
BackupModestring

The backup mode. Valid values:

  • Automated
  • Manual
Automated
BackupMethodstring

The backup method. Valid values:

  • Logical
  • Physical
Physical
BackupJobIDinteger

The ID of the backup task.

24340

Examples

Sample success responses

JSONformat

{
  "RequestId": "963C20F0-7CE1-4591-AAF3-6F3CD1CE****",
  "PageNumber": 1,
  "PageSize": 30,
  "TotalCount": 5,
  "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": 111111111,
        "BackupDBNames": "all",
        "EngineVersion": "4.0",
        "BackupIntranetDownloadURL": "https://rdsbak-hk45-v2.oss-cn-hongkong.aliyuncs.com/********",
        "BackupSize": 1024,
        "BackupMode": "Automated",
        "BackupMethod": "Physical",
        "BackupJobID": 24340
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidStartTime.MalformedThe Specified parameter StartTime is not valid.-
400InvalidEndTime.MalformedThe Specified parameter EndTime is not valid.The end time is invalid. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. Example: 2011-06-11T16:00Z.
400InvalidEngineVersion.MalformedThe Specified EngieVersion is not valid.-
400InvalidStartTimeAndEndTime.MalformedThe end time must be greater than the start time.The end time must be later than the start time.
400InvalidPageSize.MalformedThe specified parameter PageSize is not valid.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-11-29The error codes of the API operation change.,The response structure of the API operation changes.
Change itemChange content
Error CodesThe error codes of the API operation change.
    delete Error Codes: 400
Output ParametersThe response structure of the API operation changes.