查询TCP监听器
所有文档
menu

边缘计算节点 BEC

查询TCP监听器

产品详情立即开通

接口描述

本接口用于查询TCP监听器。

请求结构

GET /v2/appblb/{blbId}/TCPlistener?listenerPort={listenerPort}&marker={marker}&maxKeys={maxKeys} HTTP/1.1
Host: bec.baidubce.com
Authorization: authorization string

请求头域

除公共头域外,无其它特殊头域。

请求参数

参数名称 参数说明 请求类型 是否必须 数据类型
blbId 负载均衡ID path string
listenerPort 监听器端口 query integer
marker 标记查询的起始位置 query string
maxKeys 每页包含的最大数量,1-1000,默认1000 query integer

响应头域

除公共头域外,无其它特殊头域。

响应参数

参数名称 参数说明 类型
isTruncated true表示后面还有数据,false表示已经是最后一页 boolean
listenerList TCP监听器列表 array
  listenerPort 监听器的监听端口 integer
  scheduler 负载均衡算法,值为RoundRobin、LeastConnection、Hash,
RoundRobin代表加权轮询、LeastConnection代表最小连接数、Hash代表根据源IP哈希
string
  tcpSessionTimeout TCP设置连接超时时间(单位:秒) integer
marker 标记查询的起始位置 string
maxKeys 每页包含的最大数量 integer
nextMarker 获取下一页所需要传递的marker值。当isTruncated为false时,该域不出现 string

错误码

请参照错误返回章节的内容。

请求示例

GET /v2/appblb/applb-cn-hangzhou-cm-lay55mke/TCPlistener HTTP/1.1
Host: bec.baidubce.com
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de

响应示例

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Date: Wed, 08 Jul 2015 03:28:11 GMT
x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
Server: BWS

{
    "marker": null,
    "isTruncated": false,
    "nextMarker": null,
    "maxKeys": 1000,
    "listenerList": [
        {
            "listenerPort": 8090,
            "scheduler": "RoundRobin",
            "tcpSessionTimeout": 1000
        },
        {
            "listenerPort": 8091,
            "scheduler": "RoundRobin",
            "tcpSessionTimeout": 1000
        }
    ]
}
上一篇
修改UDP监听器
下一篇
查询UDP监听器