docs
api
Cloud PostgreSQL Database(UDB NVMe)
ListUPgSQLInstance

Get the cloud database list - ListUPgSQLInstance

Overview

Get PG Cloud Database List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListUPgSQLInstance.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

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[UDBInstanceSet]Database Information ListYes

Data Model

UDBInstanceSet

Field NameTypeDescription InformationRequired
ZonestringAvailability ZoneNo
InstanceIDstringResource IDNo
NamestringInstance NameNo
DBVersionstringVersion of the instance, including postgresql-10.4, postgresql-13.4No
InstanceModestringnormal/ha/readonly, Normal/High Availability/Read-Only SlaveNo
StatestringInstance status markers Initing: Initializing, InitFailed: Installation failed, Starting: Starting up, Running: Running, Stopping: Shutting down, Stopped: Stopped, Deleted: Deleted, Upgrading: Upgrading, Promoting: Promoting to master in progress, Recovering: Recovering, RecoverFailed: Recovery failed, StartFailed: Start-up failed, ShutdownFailed: Shutdown failed, Deleting: Deleting, DeleteFailed: Deletion failedNo
MachineTypestringMachine specifications, in the format of nCmG, where n represents the number of CPU cores, and m represents the size of memory (GB).No
VPCIDstringID of VPCNo
SubnetIDstringSubnet IDNo
CreateTimeintDB instance creation time, using UTC timestampNo
ExpiredTimeintExpiration time of the DB instance, using UTC timestampNo
IPstringDB Instance IPNo
RemarkstringNoteNo
DataSetarray[UDBReadonlyInstance]Slave Database ListNo

UDBReadonlyInstance

Field NameTypeDescription InformationRequired
ZonestringAvailability ZoneNo
InstanceIDstringResource IDNo
NamestringInstance NameNo
DBVersionstringVersion of the instance, including postgresql-10.4, postgresql-13.4No
InstanceModestringnormal/ha/readonly, Normal/High Availability/Read-Only SlaveNo
StatestringInstance status markers Initing: Initializing, InitFailed: Installation failed, Starting: Starting up, Running: Running, Stopping: Shutting down, Stopped: Stopped, Deleted: Deleted, Upgrading: Upgrading, Promoting: Promoting to master in progress, Recovering: Recovering, RecoverFailed: Recovery failed, StartFailed: Start-up failed, ShutdownFailed: Shutdown failed, Deleting: Deleting, DeleteFailed: Deletion failedNo
MachineTypestringMachine specifications, in the format of nCmG, where n represents the number of CPU cores, and m represents the size of memory (GB).No
VPCIDstringID of VPCNo
SubnetIDstringSubnet IDNo
CreateTimeintDB instance creation time, using UTC timestampNo
ExpiredTimeintExpiration time of the DB instance, using UTC timestampNo
IPstringDB Instance IPNo
RemarkstringNoteNo

Example

Request Example

https://api.surfercloud.com/?Action=ListUPgSQLInstance
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=xQTrvEtW

Response Example

{
  "Action": "ListUPgSQLInstanceResponse",
  "DataSet": [
    {
      "CreateTime": "LQiIDcUC",
      "DBVersion": "eSmGfTtw",
      "ExpiredTime": "QivusIMX",
      "IP": "jTZqgTRr",
      "InstanceID": "bPLlxURz",
      "InstanceMode": "hedJgcaN",
      "MachineType": "yuBcEIfJ",
      "Name": "dXrXuFJC",
      "State": "oTYEroYw",
      "SubnetID": "wohfomIJ",
      "VPCID": "bfgZFuLa",
      "Zone": "OYUfGKLT"
    }
  ],
  "Message": "nngXwSig",
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved