Docs
api
Cloud Memory(UMem)
DescribeURedisBackup

Query master-slave Redis backup - DescribeURedisBackup

Overview

Query master-slave Redis backup

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeURedisBackup.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
OffsetintThe starting offset for pagination display, the default value is 0.No
LimitintNumber of items displayed per page, the default value is 10No
GroupIdstringGroup IDNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
TotalCountintTotal number of backups under the usernameNo
DataSetarray[URedisBackupSet]Backup List See URedisBackupSetNo

Data Model

URedisBackupSet

Field NameTypeDescription InformationRequired
BackupIdstringBackup IDNo
ZonestringAvailability Zone, see Availability Zone ListNo
GroupIdstringCorresponding Instance IDNo
GroupNamestringGroup NameNo
BackupNamestringName of the BackupNo
BackupTimeintBackup Time (UNIX Timestamp)No
BackupSizeintBackup file size, in bytesNo
BackupTypestringBackup Type: Manual Manual Auto AutomaticNo
StatestringStatus of the backup: Backuping In progress Success Backup successful Error Backup failed Expired Backup expiredNo

Example

Request Example

https://api.dezai.com/?Action=DescribeURedisBackup
&Region=cn-east-01
&Offset=0
&Limit=20

Response Example

{
  "Action": "DescribeURedisBackupResponse",
  "DataSet": [
    {
      "BackupId": "24149c99-4df6-4b5a-99b4-8ab1ca2d7aaa",
      "BackupName": "backup-test",
      "BackupSize": 1024,
      "BackupTime": 1403249482,
      "BackupType": 1,
      "GroupId": "uredis-2cwmyb",
      "GroupName": "uredis-one",
      "State": "Success"
    },
    {
      "BackupId": "24149c99-4df6-4b5a-99b4-8ab1ca2d7aab",
      "BackupName": "backup-test2",
      "BackupSize": 1024,
      "BackupTime": 1403249482,
      "BackupType": 1,
      "GroupId": "uredis-0vcq2a",
      "GroupName": "uredis-two",
      "State": "Error"
    }
  ],
  "RetCode": 0,
  "TotalCount": 2
}