You need to enable JavaScript to run this app.
导航
DescribeDBInstanceEndpoints
最近更新时间:2025.09.25 15:44:03首次发布时间:2025.07.30 15:44:31
复制全文
我的收藏
有用
有用
无用
无用

调用 DescribeDBInstanceEndpoints 接口查询实例的连接地址列表。

请求类型

同步请求。

调试

请求参数

参数
类型
是否必选
示例值
描述
InstanceId
String
mysql-f83edc2e****
实例 ID。

返回参数

参数
类型
示例值
描述
Endpoints
Object[]
请参见返回示例。
实例的连接信息

示例

请求示例

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****"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20250812193501CDD5AB612F0F3B104A56-32427d",
        "Action": "DescribeDBInstanceEndpoints",
        "Version": "2022-01-01",
        "Service": "rds_mysql",
        "Region": "cn-guangzhou"
    },
    "Result": {
        "Endpoints": [
            {
                "Addresses": [
                    {
                        "AddressAffinity": false,
                        "DNSVisibility": false,
                        "Domain": "mysql4f601d04****.rds.cn-guangzhou.ivolces.com",
                        "EipId": "",
                        "EipLocked": false,
                        "IPAddress": "192.168.3.219",
                        "IPv6Address": "",
                        "InternetProtocol": "IPv4",
                        "NetworkType": "Private",
                        "Port": "3306",
                        "SubnetId": "subnet-3rf442t6a54w016nf3pg9****",
                        "UpgradeDomainSuffix": "rds.cn-guangzhou.ivolces.com"
                    }
                ],
                "AutoAddNewNodes": "Enable",
                "ConnectionInfoTags": [
                    "Default"
                ],
                "ConnectionMode": "Proxy",
                "ConnectionPoolType": "Transaction",
                "Description": "",
                "EnableReadOnly": "Enable",
                "EnableReadWriteSplitting": "Disable",
                "EndpointId": "mysql-4f601d04****-cluster",
                "EndpointName": "",
                "EndpointProxyPort": "3679",
                "EndpointType": "Cluster",
                "ExplicitTransSplit": false,
                "IdleConnectionReclaim": false,
                "ImplicitTransSplit": false,
                "ReadOnlyNodeDistributionType": "Default",
                "ReadOnlyNodeMaxDelayTime": 30,
                "ReadOnlyNodeWeight": [
                    {
                        "NodeId": "",
                        "NodeType": "Primary",
                        "Weight": 100
                    },
                    {
                        "NodeId": "mysql-4f601d04****-r41fd",
                        "NodeType": "ReadOnly",
                        "Weight": 0
                    },
                    {
                        "NodeId": "mysql-4f601d04****-ra4b6",
                        "NodeType": "ReadOnly",
                        "Weight": 0
                    }
                ],
                "ReadWriteMode": "ReadWrite"
            },
            {
                "Addresses": [
                    {
                        "AddressAffinity": false,
                        "DNSVisibility": false,
                        "Domain": "mysql-4f601d04****-custom-db0b.rds.cn-guangzhou.ivolces.com",
                        "EipId": "",
                        "EipLocked": false,
                        "IPAddress": "192.168.3.231",
                        "IPv6Address": "",
                        "InternetProtocol": "IPv4",
                        "NetworkType": "Private",
                        "Port": "3306",
                        "SubnetId": "subnet-3rf442t6a54w016nf3pg9****",
                        "UpgradeDomainSuffix": "rds.cn-guangzhou.ivolces.com"
                    }
                ],
                "AutoAddNewNodes": "Enable",
                "ConnectionMode": "Proxy",
                "ConnectionPoolType": "Transaction",
                "Description": "",
                "EnableReadOnly": "Disable",
                "EnableReadWriteSplitting": "Disable",
                "EndpointId": "mysql-4f601d04****-custom-b077",
                "EndpointName": "自定义终端-只读-2只读",
                "EndpointProxyPort": "3681",
                "EndpointType": "Custom",
                "ExplicitTransSplit": false,
                "IdleConnectionReclaim": false,
                "ImplicitTransSplit": false,
                "MasterNodeRouting": false,
                "MasterProtectorTimeout": 60,
                "MultiStatementsMode": "Strict",
                "OverloadProtection": true,
                "ReadOnlyNodeDistributionType": "RoundRobinAuto",
                "ReadOnlyNodeWeight": [
                    {
                        "NodeId": "mysql-4f601d04****-r41fd",
                        "NodeType": "ReadOnly",
                        "Weight": 100
                    },
                    {
                        "NodeId": "mysql-4f601d04****-ra4b6",
                        "NodeType": "ReadOnly",
                        "Weight": 100
                    }
                ],
                "ReadWriteMode": "ReadOnly"
            },
            {
                "Addresses": [
                    {
                        "AddressAffinity": false,
                        "DNSVisibility": false,
                        "Domain": "mysql-4f601d04****-custom-e518.rds.cn-guangzhou.ivolces.com",
                        "EipId": "",
                        "EipLocked": false,
                        "IPAddress": "192.168.3.232",
                        "IPv6Address": "",
                        "InternetProtocol": "IPv4",
                        "NetworkType": "Private",
                        "Port": "3306",
                        "SubnetId": "subnet-3rf442t6a54w016nf3pg9****",
                        "UpgradeDomainSuffix": "rds.cn-guangzhou.ivolces.com"
                    }
                ],
                "AutoAddNewNodes": "Enable",
                "ConnectionMode": "Proxy",
                "CustomRouteStrategy": {
                    "KeywordRouteStrategy": [
                        {
                            "SQLKeyword": "select",
                            "NodeType": "ReadOnly"
                        }
                    ]
                },
                "ConnectionPoolType": "Transaction",
                "Description": "",
                "EnableReadOnly": "Disable",
                "EnableReadWriteSplitting": "Enable",
                "EndpointId": "mysql-4f601d04****-custom-e518",
                "EndpointName": "自定义终端",
                "EndpointProxyPort": "3682",
                "EndpointType": "Custom",
                "ExplicitTransSplit": false,
                "IdleConnectionReclaim": false,
                "ImplicitTransSplit": false,
                "MasterNodeRouting": false,
                "MasterProtectorTimeout": 60,
                "MultiStatementsMode": "Strict",
                "OverloadProtection": true,
                "ReadOnlyNodeDistributionType": "RoundRobinAuto",
                "ReadOnlyNodeMaxDelayTime": 30,
                "ReadOnlyNodeWeight": [
                    {
                        "NodeId": "",
                        "NodeType": "Primary",
                        "Weight": 100
                    }
                ],
                "ReadWriteMode": "ReadWrite"
            }
        ]
    }
}

错误码

更多详情,请参见错误码