All Products
Search
Document Center

:DescribeClusterBackupList

Last Updated:Oct 30, 2024

Queries the backup sets of an ApsaraDB for Redis or Tair cluster instance.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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 keyAssociated operation
kvstore:DescribeClusterBackupListget
  • DBInstance
    acs:kvstore:{#regionId}:{#accountId}:instance/{#instanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

cn-zhangjiakou
InstanceIdstringYes

The ID of the instance.

r-t4nj72oug5r5646qog
ClusterBackupIdstringNo

The backup set ID.

cb-hyxdof5x9kqbtust
PageSizeintegerNo

The maximum number of entries returned per page.

Enumeration Value:
  • 30
  • 50
  • 100
  • 200
  • 300
30
PageNumberintegerNo

The page number of the returned page.

1
StartTimestringYes

The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2018-12-03T07:01Z
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.

2021-05-13T00:00:00Z

Response parameters

ParameterTypeDescriptionExample
object

The response.

RequestIdstring

The ID of the request.

C009DA42-3B19-5B81-963D-1509DE2408DD
MaxResultsinteger

The number of entries to return per page. Valid values: 1 to 100. Default value: 30.

Note If you specify this parameter, PageSize and PageNumber are unavailable.
4
PageNumberinteger

The page number of the returned page.

1
PageSizeinteger

The maximum number of entries returned per page.

30
FullStorageSizelong

The size of the full backup file of the instance. Unit: bytes. Full backups originate from scheduled backups, manual backups, and backups generated during cache analysis.

Note The value of this parameter is independent of the number and size of returned backup sets. Instead, it represents the size of all valid full backups of the instance.
1000
LogStorageSizelong

The size of the log backup file of the instance. Unit: bytes. This parameter is valid only when flashback is enabled.

Note The value of this parameter is independent of the number and size of returned backup sets. Instead, it represents the size of all valid log backups of the instance.
5000
FreeSizelong

This parameter does not take effect. Ignore this parameter.

100000
ClusterBackupsarray<object>

The backup sets of the instance. An instance backup contains the backup sets of all nodes in the instance.

clusterBackupobject
IsAvailinteger

Indicates whether the backup set is valid. A value of 0 indicates that node-level backups failed or have not been completed.

1
ClusterBackupIdstring

The ID of the backup set.

cb-zmdqj2m3xyxjtdt0
ClusterBackupStatusstring

The status of the backup set.

  • OK
  • RUNNING
  • Failed
OK
ClusterBackupSizestring

The size of the backup set.

2048
ClusterBackupStartTimestring

The start time of the backup.

2024-01-10T17:21:25Z
ClusterBackupEndTimestring

The end time of the backup.

2024-01-10T17:21:55Z
ClusterBackupModestring

The backup mode.

Automated
ShardClassMemoryinteger

The memory size of a single node during a full backup. Unit: MB.

1024
Backupsarray<object>

The backup sets of all nodes in the instance.

backupobject
BackupIdstring

The ID of the backup file.

514645788
InstanceNamestring

The name of the instance.

hins100322105_data_20240108012127.rdb
BackupDownloadURLstring

The public download URL of the backup file.

http://rdsbakbucket-huhehaote-v2.oss-cn-huhehaote.aliyuncs.com/custins424747958/hins100322105_data_20240110012135.rdb
BackupIntranetDownloadURLstring

The internal download URL of the backup file.

Note You can use this URL to download the backup file from an Elastic Compute Service (ECS) instance that is connected to the ApsaraDB for Redis instance. The ECS instance must belong to the same classic network or reside in the same virtual private cloud (VPC) as the ApsaraDB for Redis instance.
http://rdsbakbucket-huhehaote-v2.oss-cn-huhehaote-internal.aliyuncs.com/custins424747958/hins100322105_data_20240110012135.rdb
BackupStartTimestring

The start time of the backup. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2024-01-09T17:21:30Z
BackupEndTimestring

The end time of the backup. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2024-01-09T17:21:57
BackupSizestring

The size of the backup file. Unit: bytes.

1024
IsAvailstring

Indicates whether the backup set is available. Valid values:

  • 0: unavailable
  • 1: available
1
BackupStatusstring

The status of the backup. Valid values:

  • OK
  • ERROR
OK
BackupNamestring

The backup name.

hins100322105_data_20240110012135.rdb
Enginestring

The database engine. The return value is redis.

redis
ExtraInfoobject

The additional information.

CustinsDbVersionstring

The engine version.

5.0
Progressstring

The backup progress. The system displays only the progress of running backup tasks.

100%

Examples

Sample success responses

JSONformat

{
  "RequestId": "C009DA42-3B19-5B81-963D-1509DE2408DD",
  "MaxResults": 4,
  "PageNumber": 1,
  "PageSize": 30,
  "FullStorageSize": 1000,
  "LogStorageSize": 5000,
  "FreeSize": 100000,
  "ClusterBackups": [
    {
      "IsAvail": 1,
      "ClusterBackupId": "cb-zmdqj2m3xyxjtdt0",
      "ClusterBackupStatus": "OK",
      "ClusterBackupSize": "2048",
      "ClusterBackupStartTime": "2024-01-10T17:21:25Z",
      "ClusterBackupEndTime": "2024-01-10T17:21:55Z",
      "ClusterBackupMode": "Automated",
      "ShardClassMemory": 1024,
      "Backups": [
        {
          "BackupId": "514645788",
          "InstanceName": "hins100322105_data_20240108012127.rdb",
          "BackupDownloadURL": "http://rdsbakbucket-huhehaote-v2.oss-cn-huhehaote.aliyuncs.com/custins424747958/hins100322105_data_20240110012135.rdb",
          "BackupIntranetDownloadURL": "http://rdsbakbucket-huhehaote-v2.oss-cn-huhehaote-internal.aliyuncs.com/custins424747958/hins100322105_data_20240110012135.rdb",
          "BackupStartTime": "2024-01-09T17:21:30Z",
          "BackupEndTime": "2024-01-09T17:21:57",
          "BackupSize": "1024",
          "IsAvail": "1",
          "BackupStatus": "OK",
          "BackupName": "hins100322105_data_20240110012135.rdb",
          "Engine": "redis",
          "ExtraInfo": {
            "CustinsDbVersion": "5.0"
          }
        }
      ],
      "Progress": "100%"
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-05-23The response structure of the API has changedView Change Details
2024-01-22The response structure of the API has changedView Change Details