Skip to Content

Query DB Enable Proxy Data - ListUDBProxyInstanceByDB

Overview

Query DB Enable Proxy Data

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListUDBProxyInstanceByDB.Yes
PublicKeystringThe user’s public key can be obtained from Console Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See Region and Zone ListYes
ZonestringZone. See Region and Zone ListYes
ProjectIdstringProject ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList APINo
DBIDstringDatabase IDYes

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
UDBProxyBaseItemsarray[UDBProxyBaseItem]Proxy List DataYes

Data Model

UDBProxyBaseItem

Field NameTypeDescription InformationRequired
ReadWeightModeintRead weight mode: 1- Master node mode; 2- Node balance mode; 3- Slave node balance (excluding master node); 5- User-defined modeYes
CreateTimeintCreation TimeYes
IDstringAgent IDNo
IPstringProxy IPNo
PortintProxy PortNo
StatestringStatusNo
ZoneIDintAvailability Zone IDNo
NodeCountintNumber of Proxy NodesNo
CPUCoresintNumber of CPU cores per proxy nodeNo
MemoryintSingle Proxy MemoryNo
NamestringProxy NameNo
InstanceVersionstringInstance VersionNo
BaseDBDataArrarray[BaseDBData]Add Proxy DB InformationNo

BaseDBData

Field NameTypeDescription InformationRequired
IDstringDatabase IDNo
NamestringDatabase NameNo
ReadWeightintWeightNo

Example

Request Example

https://api.dezai.com/?Action=ListUDBProxyInstanceByDB &Region=cn-zj &Zone=cn-zj-01 &ProjectId=pMvbaLux &DBID=oWYGOumG

Response Example

{ "Action": "ListUDBProxyInstanceByDBResponse", "Message": "hFtwEdKH", "RetCode": 0, "UDBProxyBaseItems": [ { "BaseDBDataArr": [ { "ID": "tjQuxzNn", "Name": "JoGfYcoz", "ReadWeight": 6 } ], "CPUCores": 1, "CreateTime": 3, "ID": "exvunmky", "IP": "CNFZwvQo", "Memory": 1, "Name": "hzuxSAHL", "NodeCount": 6, "Port": 5, "ReadWeightMode": 3, "State": "whpILLzn", "ZoneID": 7 } ] }