docs
api
Cloud Database Reading And Writing Separation Middleware(UDBProxy)
ListUDBProxyClient

Query Proxy Client Connection IP Information (Real-time) - ListUDBProxyClient

Overview

Query Proxy Client Connection IP Information (Real-time)

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListUDBProxyClient.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
UDBProxyIDstringAgent 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
UDBProxyIDstringAgent IDYes
NodeClientInfosarray[NodeClientInfo]Proxy Node Client IP Connection InformationYes

Data Model

NodeClientInfo

Field NameTypeDescription InformationRequired
Recordsarray[ProxyProcesslist]Client IP Connection InformationNo
IDstringProxy Node IDNo
IPstringProxy Node IPNo

ProxyProcesslist

Field NameTypeDescription InformationRequired
IDintCurrent Connection DB Process IDYes
UserstringThe user who started this threadYes
HoststringProxy Connection DB AddressYes
DBstringWhich database is the current command being executed on? If no database is specified, this value is NULL.Yes
CommandstringDisplay the commands executed by the current connectionYes
TimeintTime that the thread has been in the current statusYes
StatestringThe status of the thread, corresponding to the CommandYes
InfostringGenerally records the statements executed by the thread.Yes
ClientHoststringProxy Connection DB AddressYes
DBIDstringDatabase Resource IDYes
RolestringDatabase Role (Master/Slave)Yes

Example

Request Example

https://api.surfercloud.com/?Action=ListUDBProxyClient
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=jgfkYodX
&UDBProxyID=DYvlHomp

Response Example

{
  "Action": "ListUDBProxyClientResponse",
  "NodeClientInfos": [
    {
      "ID": "XMzPaFXa",
      "IP": "FKtUfzpg",
      "Records": [
        {
          "Count": 5,
          "IP": "GUjJGHGa"
        }
      ]
    }
  ],
  "RetCode": 0,
  "UDBProxyID": "LTXRBQLw"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved