开发者社区> 问答> 正文

监听相关API:DescribeLoadBalancerTCPListenerAttribute


描述

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


请求参数


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


返回参数


                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
名称类型描述
<公共参数>详见 <公共返回参数>
ListenerPort Integer负载均衡实例前端使用的端口。
BackendServerPort Integer负载均衡实例后端使用的端口。
Bandwidth Integer监听的带宽峰值。
Status StringListener当前状态。包含5种状态:starting、running、configuring、stopping、stopped。
SynProxyString是否开启SynProxy,SynProxy是负载均衡的攻击防护功能。建议用户一般情况下不要调整这个参数,由负载均衡控制。取值为enable 时开启,disable 时关闭。
SchedulerString调度算法。
取值:wrr/wlc。
PersistenceTimeout String健康检查的连接超时时间。
HealthCheckTypeStringTCP协议监听的健康检查方式,tcp或http。
HealthCheckString是否开启健康检查。on为开启健康检查,off为关闭健康检查。
HealthyThreshold Integer后端服务器从fail到success的连续健康检查成功次数。
UnhealthyThresholdInteger后端服务器从success到fail的连续健康检查失败次数。
HealthCheckTimeout Integer健康检查的连接超时时间。
HealthCheckConnectPortInteger健康检查的端口。
HealthCheckIntervalInteger健康检查的时间间隔,单位为秒。
HealthCheckDomain String用于健康检查的域名。
HealthCheckURI String用于健康检查的URI。
HealthCheckHttpCode String健康检查正常的http状态码。
VServerGroupId String绑定的虚拟服务器组ID。
MaterSlaveServerGroupIdString绑定的主备服务器组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.       }

展开
收起
行者武松 2017-10-18 14:38:01 1864 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
API 网关实践 立即下载
API PLAYBOOK 立即下载
API平台的安全实践 立即下载