Docs
api
Cloud Database(UDB)
DescribeUDBLogPackage

List UDB Instance Log Backup Information - DescribeUDBLogPackage

Overview

List UDB instance binlog or slowlog or errorlog backup information

💡 The new version (NVMe type) MongoDB/PostgreSQL is not supported, please use the corresponding product’s API for the new version (NVMe type) MongoDB/PostgreSQL.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUDBLogPackage.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
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
TypeintThe types of backup files that need to be listed, the values for each type are as follows: 2 represents BINLOG_BACKUP; 3 represents SLOW_QUERY_BACKUP; 4 represents ERRORLOG_BACKUP;No
Types.NintTypes, as a supplement to Type, supports multiple value inputs, and can obtain log records of multiple types, such as: Types.0=2&Types.1=3No
DBIdstringDB instance Id, if specified, only the backup information of this db will be obtained; Must be filled in when Type is 2.No
BeginTimeintFilter Condition: Start Time (Timestamp)No
EndTimeintFilter Condition: End Time (Timestamp)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[LogPackageDataSet]Backup Information See LogPackageDataSetNo
TotalCountintTotal number of backups, if dbid is specified, then it is the total number of backups for that db.No

Data Model

LogPackageDataSet

Field NameTypeDescription InformationRequired
ZonestringLocated in the available zoneNo
BackupIdintBackup IDNo
BackupNamestringBackup NameNo
BackupTimeintBackup TimeNo
BackupSizeintBackup File SizeNo
BackupTypeintBackup types, including 2-binlog backup, 3-slowlog backupNo
BinlogTypestringbinlog backup type Manual //Manual backup Auto //Automatic backupNo
StatestringBackup Status Backuping // Backing up Success // Backup Successful Failed // Backup Failed Expired // Backup ExpiredNo
DBIdstringdbidNo
DBNamestringCorresponding db nameNo
BackupZonestringCross-Availability Zone High Availability Backup Library Availability ZoneNo

Example

Request Example

https://api.dezai.com/?Action=DescribeUDBLogPackage
&Region=cn-bj2
&Zone=cn-bj2-04
&Offset=0
&Limit=20
&Type=2

Response Example

{
  "Action": "DescribeUDBLogPackageResponse",
  "DataSet": [
    {
      "BackupId": 45264,
      "BackupName": "undefined",
      "BackupSize": 339,
      "BackupTime": 1329815192,
      "BackupType": 2,
      "BackupZone": "",
      "DBId": "udbha-xxxxxx",
      "DBName": "test_linshi",
      "State": "Success",
      "Zone": "cn-bj2-04"
    },
    {
      "BackupId": 39,
      "BackupName": "rizhi_01",
      "BackupSize": 10670,
      "BackupTime": 1439430490,
      "BackupType": 2,
      "BackupZone": "",
      "DBId": "udb-xxxxxx",
      "DBName": "annian_2g",
      "State": "Success",
      "Zone": "cn-bj2-05"
    }
  ],
  "RetCode": 0,
  "TotalCount": 2
}