Skip to Content
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 Console Yes
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, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
GroupIdstringGroup ID, if RegionType is not provided, GroupId is a required fieldNo
OffsetintThe starting offset for pagination display, the default value is 0.No
LimitintNumber of items displayed per page, the default value is 10No
SlaveZonestringCross-IDC URedis, the availability zone where the slave is located (must be in the same Region as the Zone, and cannot be the same)No
RegionTypestringUsed to distinguish between cross-availability backup and normal backup. The default is normal. Cross-availability is divided into (source, target).No
BackupIdstringif Backup Id not NULL, only return this backup infoNo

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
ZonestringAvailability Zone, see Availability Zone ListNo
BackupIdstringBackup IDNo
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
SrcRegionNamestringCross Region Backup Src RegionNo
DstRegionNamestringCross Region Backup 1st RegionNo
MemorySizeintSource Redis Memory SizeNo
RedisVersionstringSource Redis VersionNo

Example

Request Example

https://api.ucloud-global.com/?Action=DescribeURedisBackup &Region=cn-bj2 &SlaveZone=IRVyPYOd &RegionType=JaAnSlXu &BackupId=UwszgeYW &BackupId=UUBzedWb

Response Example

{ "Action": "DescribeURedisBackupResponse", "DataSet": [ { "BackupId": "a75XXXa9-d9e1-4d38-9XX1-aecad464XXX5", "BackupName": "sgbf_XXXXXX", "BackupSize": 18, "BackupTime": 1529912363, "BackupType": "Manual", "GroupId": "uredis-grXXXz", "GroupName": "zbredia_XXXXX", "State": "Success", "Zone": "cn-bj2-04" } ], "RetCode": 0, "TotalCount": 1 }