Call the DescribeDBInstanceEndpoints API to query the list of connection addresses of the instance.
Synchronous request.
Name | Type | Required | Example | Description |
|---|---|---|---|---|
InstanceId | String | Yes | mysql-f83edc2e**** | Instance ID. |
Name | Type | Example | Description |
|---|---|---|---|
Endpoints | Object[] | Please refer to the return example. | Connection information of the instance |
Addresses | Object[] | Please refer to the return example. | Address list. |
DNSVisibility | Boolean | false |
|
Domain | String | mysql1d797b6f****.rds.ivolces.com | Connect to the domain name. |
EipId | String | eip-13g6t81tglmgw3n6nu4vt**** | The ID of the EIP, which is only valid for the Public address. |
IPAddress | String | 10.***.***.3 | IP address. |
InternetProtocol | String | IPv4 | IP protocol version. The value is IPv4. |
NetworkType | String | Private | Network address type, with the following values:
|
Port | String | 3306 | Port. |
SubnetId | String | subnet-2bzr8zdx5o8ao2dx0efq4**** | Subnet ID, only valid for Private addresses. |
EipLocked | Boolean | false | Whether the EIP used to connect to the terminal has been shut down due to arrears. Values:
|
AutoAddNewNodes | String | Enable | When the terminal type is a read-write terminal or a read-only terminal, it supports setting whether a new node is automatically joined. Value:
|
ConnectionInfoTags | String[] | ["Default"] | Connect the terminal tabs. |
ConnectionMode | String | Proxy | Connection terminal type. Values:
tip
You can call the DescribeDBInstanceDetail interface to query the opening status of the database proxy function of the instance. |
ConnectionPoolType | String | Direct | The connection pool type of the proxy terminal. Values:
|
Description | String | This is a description of connecting to the terminal. | The description information of connecting to the terminal. |
EnableReadOnly | String | Enable | Whether global read-only is enabled, value:
|
EnableReadWriteSplitting | String | Enable | Whether read-write separation has been enabled, with possible values:
|
EndpointId | String | mysql-050b3e08**** | Instance connection terminal ID. |
EndpointName | String | Custom connection terminal | Instance connection terminal name. |
EndpointType | String | Custom | Terminal type. The value is Custom, a custom terminal. |
IdleConnectionReclaim | Boolean | true | Whether the idle connection recycling function is enabled.
tip This field will only be returned by the proxy terminal. |
ImplicitTransSplit | Boolean | false | Whether to enable transaction separation. Value:
tip Only the proxy terminal will return this field. |
MasterNodeRouting | Boolean | false | Whether to enable the master node route. Value:
tip This field will only be returned by the proxy terminal. |
MasterProtectorTimeout | Integer | 60 | Overload protection timeout. The value range is an integer between 60 and 7200, and the unit is seconds. tip Only the proxy terminal will return this field. |
MultiStatementsMode | String | Loose | The Multi-Statements mode of the proxy terminal. Values:
|
OverloadProtection | Boolean | false | Whether to turn on overload protection. Values:
tip This field will only be returned by the proxy terminal. |
ReadOnlyNodeDistributionType | String | LoadSchedule | Read the weight distribution mode. This parameter needs to be passed in when the read-write separation setting is set to
When used as a return parameter in the DescribeDBInstanceDetail interface, the value range is as follows:
|
ReadOnlyNodeMaxDelayTime | Integer | 40 | The read-only node delay threshold. The value range is from 1 to 3600, and the default value is 30, with the unit being seconds. |
ReadOnlyNodeWeight | Object[] | Please refer to the return example. | The list of nodes configured in the connection terminal and the corresponding read-only weights. |
NodeId | String | mysql-050b3e08****-2 | The read-only node needs to pass in the NodeId, while the master node does not need to pass in. |
NodeType | String | Primary | Node types.
|
Weight | Integer | 100 | The read weight of the node, increasing by 100, with a maximum value of 10000. tip The weights cannot all be set to 0. |
ReadWriteMode | String | ReadOnly | Read/Write Modes:
|
EnableConnectionPersistent | Boolean | false | Whether to enable connection persistence. Values:
|
POST /?Action=DescribeDBInstanceEndpoints&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds-mysql.cn-beijing.volcengineapi.com X-Date: 20211202T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId": "mysql-f83edc2e****" }
For more details, refer to Error codes.