docs
api
Cloud PostgreSQL Database(UDB NVMe)
ListUPgSQLBackup

Get Backup List - ListUPgSQLBackup

Overview

Get Backup List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListUPgSQLBackup.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 ListYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
InstanceIDstringDB Instance IdYes
BackupTypeintBackup Type, the default value is 0 (0: represents all, 1: automatic backup, 2: manual backup)".No
OffsetintList start position offset, default is 0No
LimitintReturn data length, default is 20, maximum 100No

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[UPgSQLBackup]Backup Information List. Modify ParametersYes
TotalCountintTotal NumberYes

Data Model

UPgSQLBackup

Field NameTypeDescription InformationRequired
RegionstringBackup LocationNo
InstanceIDstringDB Instance IdYes
BackupIDstringBackup IDYes
BackupNamestringBackup NameNo
BackupStartTimeintBackup Time (Unix Timestamp)No
BackupSizeintBackup File Size (Bytes)No
BackupTypeintBackup type, manual or automaticNo
StatestringBackup Status (Backuping: Backup in progress, Success: Backup successful, Failed: Backup failed, Expired: Backup expired)No
BackupEndTimeintBackup Completion Time (Unix Timestamp)No

Example

Request Example

https://api.surfercloud.com/?Action=ListUPgSQLBackup
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=hMtkKQzD
&InstanceID=LLtYwYlt
&BackupType=5
&Offset=2
&Limit=1

Response Example

{
  "Action": "ListUPgSQLBackupResponse",
  "Data": [
    {
      "BackupEndTime": 3,
      "BackupID": "jKlVVkmg",
      "BackupName": "qBNVHaRs",
      "BackupSize": 1,
      "BackupStartTime": 3,
      "BackupType": 3,
      "InstanceID": "SCsFwxvD",
      "Region": "fYoZJRsx",
      "State": "ciSlAoMG"
    }
  ],
  "Message": "hlvlRYaU",
  "RetCode": 0,
  "TotalCount": 3
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved