tencent cloud

APIs

DescribeProxies

下载
聚焦模式
字号
最后更新时间: 2026-05-29 10:56:02

1. API Description

Domain name for API request: cynosdb.intl.tencentcloudapi.com.

This API is used to query agent list.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeProxies.
Version Yes String Common Params. The value used for this API: 2019-01-07.
Region Yes String Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-chongqing, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo.
ClusterId No String

Cluster ID (this parameter is required, such as cynosdbmysql-2u2mh111).

Limit No Integer

Number of returned results, defaults to 20 with a maximum value of 100

Offset No Integer

Record offset. Default value is 0

OrderBy No String

Sorting field. Value ranges from...to...:

  • CREATETIME: Creation time
  • PERIODENDTIME: Expiration time
  • OrderByType No String

    Sorting type. Value ranges from:

  • ASC: ascending order
  • DESC: sort in descending order
  • Filters.N No Array of QueryParamFilter

    Search criteria. If there are multiple Filters, the relationship between Filters is logical AND.
    Description: This parameter currently only supports two filter conditions: Status and ProxyGroupId.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer

    Number of Database Proxy Groups

    ProxyGroupInfos Array of ProxyGroupInfo

    Database Proxy Group list

    ProxyNodeInfos Array of ProxyNodeInfo

    database proxy node


    Note: This field may return null, indicating that no valid values can be obtained.
    ColumnStoreProxyForward String

    sql automatic forwarding

    RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    Example1 Query a List of Database Proxies

    This example shows you how to query a database proxy.

    Input Example

    POST / HTTP/1.1
    Host: cynosdb.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeProxies
    <Common request parameters>
    
    {
        "OrderBy": "createTime",
        "ClusterId": "cynosdbmysql-xx",
        "Limit": 0,
        "Filters": [
            {
                "Values": [
                    "proxyGroupId"
                ],
                "Names": [
                    "cynosdbmysql-proxy-tshj6btw"
                ],
                "ExactMatch": true
            }
        ],
        "Offset": 0,
        "OrderByType": "desc"
    }
    

    Output Example

    {
        "Response": {
            "TotalCount": 2,
            "ProxyGroupInfos": [
                {
                    "ConnectionPool": {
                        "ConnectionPoolTimeOut": 30,
                        "ConnectionPoolType": "SessionConnectionPool",
                        "OpenConnectionPool": "yes"
                    },
                    "NetAddrInfos": [
                        {
                            "Description": "external-ro new",
                            "InstanceGroupId": "cynosdbmysql-grp-nsiuj4aj",
                            "NetType": "",
                            "UniqSubnetId": "subnet-pmqqss72",
                            "UniqVpcId": "vpc-gvelzo5j",
                            "Vip": "11.2.1.43",
                            "Vport": 3306,
                            "WanDomain": "test.wan.domain",
                            "WanIP": "11.2.3.43",
                            "WanPort": 3306,
                            "WanStatus": "open"
                        }
                    ],
                    "ProxyGroup": {
                        "AppId": 1772344699,
                        "ClusterId": "cynosdbmysql-i2weamox",
                        "CurrentProxyVersion": "1.3.11",
                        "OpenRw": "yes",
                        "ProxyGroupId": "cynosdbmysql-proxy-mdhg55su",
                        "ProxyNodeCount": 4,
                        "Region": "ap-guangzhou",
                        "Status": "running",
                        "Zone": "ap-guangzhou-6"
                    },
                    "ProxyGroupRwInfo": {
                        "AccessMode": "balance",
                        "AutoAddRo": "no",
                        "ConsistencyTimeOut": 0,
                        "ConsistencyType": "eventual",
                        "FailOver": "no",
                        "InstanceWeights": [
                            {
                                "InstanceId": "cynosdbmysql-ins-ka2i3m48",
                                "Weight": 1
                            }
                        ],
                        "OpenRw": "yes",
                        "RwType": "READONLY",
                        "TransSplit": false,
                        "WeightMode": "system"
                    },
                    "ProxyNodes": [
                        {
                            "AppId": 1772344699,
                            "ClusterId": "cynosdbmysql-i2weamox",
                            "Cpu": 2,
                            "Mem": 4000,
                            "OssProxyNodeName": "cynosdbmysql-proxyNode-q52v1wp4",
                            "ProxyGroupId": "cynosdbmysql-proxy-mdhg57su",
                            "ProxyNodeConnections": 157,
                            "ProxyNodeId": "cynosdbmysql-proxyNode-pv4hg4na",
                            "Region": "ap-guangzhou",
                            "Status": "running",
                            "Zone": "ap-guangzhou-6"
                        }
                    ],
                    "Tasks": [
                        {
                            "TaskId": 123124,
                            "TaskType": "taskModifyProxyRwSplit",
                            "TaskStatus": "processing",
                            "ObjectId": "cynosdbmysql-proxy-mdhg57su",
                            "ObjectType": "taskObjTypeCluster"
                        }
                    ]
                }
            ],
            "ProxyNodeInfos": [
                {
                    "ProxyNodeId": "cynosdbmysql-proxyNode-pv4hg4na",
                    "ProxyNodeConnections": 157,
                    "Cpu": 2,
                    "Mem": 4000,
                    "Status": "running",
                    "ProxyGroupId": "cynosdbmysql-proxy-mdhg57su",
                    "ClusterId": "cynosdbmysql-i2weamox",
                    "AppId": 1772344699,
                    "Region": "ap-guangzhou",
                    "Zone": "ap-guangzhou-6",
                    "OssProxyNodeName": "cynosdbmysql-proxyNode-q52v1wp4"
                }
            ],
            "RequestId": "ed0bd4ca-b5c0-4230-a8b5-6d2dc5ec1eb0"
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error Code Description
    FailedOperation.CamCheckResourceError Failed to get permissions. Please try again later. If the problem persists, please contact customer service.
    FailedOperation.DatabaseAccessError Failed to access the database. Please try again later. If the problem persists, please contact customer service.
    FailedOperation.OperationFailedError Operation failed. Try again later. If the problem persists, contact customer service.
    InternalError.DbOperationFailed Failed to query the database.
    InternalError.SystemError Internal system error.
    InvalidParameterValue.IllegalOrderBy Invalid sort by field.
    InvalidParameterValue.InvalidParameterValueError Invalid parameter value.
    InvalidParameterValue.ParamBothSetError These two parameters cannot be set at the same time.
    UnauthorizedOperation.PermissionDenied CAM authentication failed.

    帮助和支持

    本页内容是否解决了您的问题?

    填写满意度调查问卷,共创更好文档体验。

    文档反馈