阅读241 返回首页    go 阿里云


DescribeLoadBalancerTCPListenerAttribute__Listener相关API_API 参考_负载均衡-阿里云

描述

  • 查询TCP Listener信息。
  • Listener包含5种状态:starting、running、configuring、stopping、stopped。Listener的状态转换图以及每个状态的具体说明,参见负载均衡 Listener状态转换图

请求参数

名称 类型 是否必须 描述
Action String 操作接口名,系统规定参数。取值:DescribeLoadBalancerTCPListenerAttribute
LoadBalancerId String 负载均衡实例的唯一标识。
ListenerPort Integer 负载均衡实例前端使用的端口。取值:1-65535。

返回参数

名称 类型 描述
<公共参数> 详见<公共返回参数>
ListenerPort Integer 负载均衡实例前端使用的端口
BackendServerPort Integer 负载均衡实例后端使用的端口
Bandwidth Integer 监听的带宽峰值
Status String Listener当前状态。包含5种状态:starting、running、configuring、stopping、stopped
SynProxy String 是否开启SynProxy,SynProxy是负载均衡的攻击防护功能。建议用户一般情况下不要调整这个参数,由负载均衡控制。取值为enable 时开启,disable 时关闭。
Scheduler String 调度算法。wrr或者wlc。
PersistenceTimeout Integer 连接持久化的超时时间。0表示关闭。
HealthCheckType String TCP协议监听的健康检查方式,tcp或http。
HealthCheck String 是否开启健康检查。on为开启健康检查,off为关闭健康检查。
HealthyThreshold Integer 后端服务器从fail到success的连续健康检查成功次数。
UnhealthyThreshold Integer 后端服务器从success到fail的连续健康检查失败次数。
HealthCheckConnectTimeout Integer 健康检查的连接超时时间
HealthCheckConnectPort Integer 健康检查的端口。
HealthCheckInterval Integer 健康检查的时间间隔,单位为秒。
HealthCheckDomain String 用于健康检查的域名。
HealthCheckURI String 用于健康检查的URI。
HealthCheckHttpCode String 健康检查正常的http状态码。
VServerGroupId String 绑定的虚拟服务器组ID

示例

请求示例

  1. https://slb.aliyuncs.com/
  2. &Action=DescribeLoadBalancerTCPListenerAttribute
  3. &LoadBalancerId=139a00604ad-cn-east-hangzhou-01
  4. &ListenerPort=80
  5. &<公共请求参数>

返回示例

  • XML格式

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <DescribeLoadBalancerTCPListenerAttributeResponse>
    3. <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
    4. <ListenerPort>443</ListenerPort>
    5. <BackendServerPort>443</BackendServerPort>
    6. <Bandwidth>-1</Bandwidth>
    7. <Status>stopped</Status>
    8. <Schedule>wrr</Schedule>
    9. <StickySession>on</StickySession>
    10. <PersistenceTimeout>0</PersistenceTimeout>
    11. </DescribeLoadBalancerTCPListenerAttributeResponse>
  • JSON格式
    1. {
    2. "RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
    3. "ListenerPort":443,
    4. "BackendServerPort":443,
    5. "Bandwidth":-1,
    6. "Status":"stopped",
    7. "Schedule":"wrr",
    8. "StickySession":"on",
    9. "PersistenceTimeout":0
    10. }

最后更新:2016-11-23 16:03:57

  上一篇:go DescribeLoadBalancerHTTPSListenerAttribute__Listener相关API_API 参考_负载均衡-阿里云
  下一篇:go DescribeLoadBalancerUDPListenerAttribute__Listener相关API_API 参考_负载均衡-阿里云