Query master-slave Redis backup - DescribeURedisBackup
Overview
Query master-slave Redis backup
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is DescribeURedisBackup . | Yes |
PublicKey | string | The user’s public key can be obtained from Console | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Region | string | Region. See List of Regions and Availability Zones | Yes |
ProjectId | string | Project 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 |
Offset | int | The starting offset for pagination display, the default value is 0. | No |
Limit | int | Number of items displayed per page, the default value is 10 | No |
GroupId | string | Group ID | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
TotalCount | int | Total number of backups under the username | No |
DataSet | array[URedisBackupSet] | Backup List See URedisBackupSet | No |
Data Model
URedisBackupSet
Field Name | Type | Description Information | Required |
---|---|---|---|
BackupId | string | Backup ID | No |
Zone | string | Availability Zone, see Availability Zone List | No |
GroupId | string | Corresponding Instance ID | No |
GroupName | string | Group Name | No |
BackupName | string | Name of the Backup | No |
BackupTime | int | Backup Time (UNIX Timestamp) | No |
BackupSize | int | Backup file size, in bytes | No |
BackupType | string | Backup Type: Manual Manual Auto Automatic | No |
State | string | Status of the backup: Backuping In progress Success Backup successful Error Backup failed Expired Backup expired | No |
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
}