docs
api
Cloud Database(UDB)
DescribeUDBBackup

Get Backup List - DescribeUDBBackup

Overview

List UDB instance backup information. If 'Zone' is not filled in, it means multiple availability zones, if filled, it represents a single availability zone.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUDBBackup.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)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
ZonestringAvailability Zone. See Availability Zone ListNo
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
OffsetintThe starting offset for pagination display, specified for list operations.Yes
LimitintThe number of items displayed per page, specified by the list operation.Yes
DBIdstringDB instance Id, if specified, only the backup information of this db will be obtained. This value can be obtained through DescribeUDBInstance.No
BackupTypeintBackup type, value is 0 or 1, 0 means automatic, 1 means manualNo
BeginTimeintFilter condition: Start time (Unix timestamp)No
EndTimeintFilter Condition: End Time (Unix Timestamp)No
ClassTypestringIf GroupId is not specified, you can optionally choose the configuration of a specific DB type (sql, nosql, postgresql, sqlserver).No

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
DataSetarray[UDBBackupSet]Backup Information Refer to UDBBackupSetNo
TotalCountintThe total number of backups that meet the conditions, if a specific dbid is specified, then it is the total number of backups for that db.No

Data Model

UDBBackupSet

Field NameTypeDescription InformationRequired
ZonestringBackup Availability ZoneNo
BackupIdintBackup IDNo
BackupNamestringBackup NameNo
BackupTimeintBackup Time (Unix Timestamp)No
BackupSizeintBackup File Size (Bytes)No
BackupTypeintBackup type, value is 0 or 1, 0 means automatic, 1 means manualNo
StatestringBackup Status Backuping // Backing up Success // Backup Successful Failed // Backup Failed Expired // Backup ExpiredNo
ErrorInfostringBackup Error InformationNo
DBIdstringdbidNo
DBNamestringCorresponding db nameNo
BackupZonestringCross-IDC high-availability backup library availability zoneNo
BackupEndTimeintBackup Completion Time (Unix Timestamp)No
MD5stringThe MD5 value of the backup file, displayed after the backup is completed, is empty during the backup or when the backup fails. Currently, only Mysql NVMe models and Mongo are supported.No

Example

Request Example

https://api.surfercloud.com/?Action=DescribeUDBBackup
&Region=cn-bj2
&Offset=0
&Limit=20
&BackupId=1

Response Example

{
  "Action": "DescribeUDBBackupResponse",
  "DataSet": [
    {
      "BackupEndTime": 1329867185,
      "BackupId": 296133,
      "BackupName": "system backup",
      "BackupSize": 167066,
      "BackupTime": 1429867144,
      "BackupType": 0,
      "BackupZone": null,
      "DBId": "udbha-xxxxxx",
      "DBName": "frombf-hassd-56",
      "ErrorInfo": "",
      "State": "Success",
      "Zone": "cn-bj2-02"
    },
    {
      "BackupEndTime": 1429859800,
      "BackupId": 29534,
      "BackupName": "system backup",
      "BackupSize": 3105731,
      "BackupTime": 1429859724,
      "BackupType": 0,
      "BackupZone": null,
      "DBId": "udb-xxxxx",
      "DBName": "test_linshi",
      "ErrorInfo": "",
      "State": "Success",
      "Zone": "cn-bj2-02"
    }
  ],
  "RetCode": 0,
  "TotalCount": 180
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved