閱讀241 返回首頁    go iPhone_iPad_Mac_apple


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 參考_負載均衡-阿裏雲