Docs
api
Cloud Database(UDB)
DescribeUDBSplittingInfo

Describe Read-Write Splitting Function - DescribeUDBSplittingInfo

Overview

Details of the read-write separation function

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUDBSplittingInfo.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
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
MasterDBIdstringDB Instance 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
ZonestringAvailability ZoneNo
MasterDBIdstringDB Instance IDNo
RWIPstringRead-Write Separation IPNo
DelayThresholdintTime ThresholdNo
PortintPort NumberNo
ReadModelstringRead-Write Splitting StrategyNo
DBTypeIdstringDatabase VersionNo
RWStatestringRead-Write Splitting StatusNo
DataSetarray[UDBRWSplittingSet]Read-Write Separation Slave InformationNo

Data Model

UDBRWSplittingSet

Field NameTypeDescription InformationRequired
DBIdstringDB Instance IDNo
RolestringMaster/SlaveNo
VirtualIPstringUDBIPNo
ReadWeightintRead-Write Separation WeightNo
StatestringDB StatusNo

Example

Request Example

https://api.dezai.com/?Action=DescribeUDBSplittingInfo
&Region=cn-zj
&Zone=cn-zj-01
&MasterDBId=NzgZOTgz

Response Example

{
  "Action": "DescribeUDBSplittingInfoResponse",
  "DBTypeId": "HZxiDykq",
  "DataSet": [
    {
      "DBId": "BpCreBes",
      "ReadWeight": 50,
      "Role": "master",
      "State": "iGyPHLGk",
      "VirtualIP": "FmcvWPOS"
    },
    {
      "DBId": "jBgxHUVS",
      "ReadWeight": 50,
      "Role": "master",
      "State": "aVUODePQ",
      "VirtualIP": "oisTbHGm"
    },
    {
      "DBId": "HBCtruVq",
      "ReadWeight": 50,
      "Role": "master",
      "State": "XPYHDmkt",
      "VirtualIP": "yfTsRDrt"
    },
    {
      "DBId": "BUXZmWJM",
      "ReadWeight": 50,
      "Role": "master",
      "State": "KkfYLRyo",
      "VirtualIP": "AwEZlxqz"
    }
  ],
  "DelayThreshold": 50,
  "MasterDBId": "fplVHdTl",
  "Port": 2,
  "RWIP": "LsGqmDqU",
  "RWState": "zBvozXGk",
  "ReadModel": "vFwGkIve",
  "Region": "cn-zj",
  "RetCode": 0,
  "Zone": "cn-zj-01"
}