Skip to Content

Get detailed information about the UDB proxy service - DescribeUDBProxy

Overview

Get detailed information about the UDB proxy service

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUDBProxy.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
UDBProxyIDstringUDBProxy 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
UDBProxyIDstringUDBProxy Instance IDYes
UDBProxyIPstringUDB Proxy Service IPYes
UDBProxyPortintUDB proxy service portYes
StatestringStateYes
CreateTimeintCreation timeYes
ModifyTimeintChange timeYes
ReadWeightModeintRead weight mode: 1- Master node mode; 2-Node Balanced Mode; 3- Balance from nodes (excluding master nodes); 5- User defined modeYes
CPUCoresintCPU CoresYes
MemoryintMemoryYes
NodeCountintNode CountYes
ZoneIdintZone IdYes
NamestringNameYes
MaxConnectionintMaximum number of connections for UDB proxy serviceYes
DelayThresholdintDelay threshold (in seconds)Yes
UDBReplicasarray[Replica]UDB cluster dataYes
Nodesarray[Node]Cluster instance service node dataYes
SQLLimitCountintSQL flow limit quantityNo
SQLRouterCountintSQL routing quantityNo
InstanceVersionstringInstance versionNo
EnableTransSplitintWhether to enable transaction splitting (1: enable transaction splitting, 2: disable transaction splitting)No

Data Model

Replica

Field NameTypeDescription InformationRequired
IDstringDatabase IDYes
IPstringDatabase IPYes
PortintDatabase Service PortYes
ReadWeightintRead WeightYes
StatestringStatusYes
RolestringRole [master-Main Library, slave-Sub Library]Yes
CreateTimeintCreation TimeYes
ModifyTimeintModification TimeYes
JoinStatebooleanJoin the proxy service (true: joined, false: not joined)Yes
NamestringDatabase NameYes

Node

Field NameTypeDescription InformationRequired
IDstringService Node IDYes
StatestringService Node StatusYes

Example

Request Example

https://api.dezai.com/?Action=DescribeUDBProxy &Region=cn-zj &Zone=cn-zj-01 &ProjectId=DAIoycmE &UDBProxyID=nCNBolTi

Response Example

{ "Action": "DescribeUDBProxyResponse", "CPUCores": 3, "CreateTime": 8, "DelayThreshold": 4, "EnableTransSplit": 3, "InstanceVersion": "aqshAbAK", "MaxConnection": 7, "Memory": 2, "ModifyTime": 5, "Name": "OlLESJIS", "NodeCount": 9, "Nodes": [ { "ID": "ttlkSuYX", "State": "FZHOtjjk" } ], "ReadWeightMode": 8, "RetCode": 0, "SQLLimitCount": 2, "SQLRouterCount": 3, "State": "mHFdpsGC", "UDBProxyID": "GkfnbTgu", "UDBProxyIP": "wtaQVqRN", "UDBProxyPort": 8, "UDBReplicas": [ { "CreateTime": 1, "ID": "tBnNCgQT", "IP": "GhlRZTad", "JoinState": "rrshQjQh", "ModifyTime": 3, "Port": 4, "ReadWeight": 50, "Role": "hHQYuZQH", "State": "pdIdZPxx" } ], "ZoneId": "ObOfZhoE" }