560
阿裏雲
技術社區[雲棲]
DescribeLoadBalancerHTTPListenerAttribute__Listener相關API_API 參考_負載均衡-阿裏雲
描述
- 查詢HTTP Listener信息。
- Listener包含5種狀態:starting、running、configuring、stopping、stopped。Listener的狀態轉換圖以及每個狀態的具體說明,參見負載均衡 Listener狀態轉換圖。
請求參數
| 名稱 |
類型 |
是否必須 |
描述 |
|---|
| Action |
String |
是 |
操作接口名,係統規定參數。取值:DescribeLoadBalancerHTTPListenerAttribute |
| LoadBalancerId |
String |
是 |
負載均衡實例的唯一標識。 |
| ListenerPort |
Integer |
是 |
負載均衡實例前端使用的端口。取值:1-65535。 |
返回參數
| 名稱 |
類型 |
描述 |
|---|
| <公共參數> |
|
詳見<公共返回參數> |
| ListenerPort |
Integer |
負載均衡實例前端使用的端口 |
| BackendServerPort |
Integer |
負載均衡實例後端使用的端口 |
| Bandwidth |
Integer |
監聽的帶寬峰值 |
| Status |
String |
Listener當前狀態。包含5種狀態:starting、running、configuring、stopping、stopped |
| XForwardedFor |
String |
是否開啟通過X-Forwarded-For的方式獲取來訪者真實IP。on為開啟XForwardedFor,off為關閉XForwardedFor。注:考慮安全原因,本參數自2015年5月15日起會強製設置為on。 |
| Scheduler |
String |
調度算法。wrr或者wlc。 |
| StickySession |
String |
是否開啟會話保持。on為開啟會話保持,off為關閉會話保持 |
| StickySessionType |
String |
cookie的處理方式,設置為insert表示由負載均衡插入;設置為server表示負載均衡從後端服務器學習。 |
| CookieTimeout |
Integer |
cookie超時時間 |
| Cookie |
String |
服務器上配置的cookie。 隻有在Type為server時有效 |
| HealthCheck |
String |
是否開啟健康檢查。on為開啟健康檢查,off為關閉健康檢查。 |
| HealthCheckDomain |
String |
用於健康檢查的域名。 |
| HealthCheckURI |
String |
用於健康檢查的URI。 |
| HealthyThreshold |
Integer |
後端服務器從fail到success的連續健康檢查成功次數。 |
| UnhealthyThreshold |
Integer |
後端服務器從success到fail的連續健康檢查失敗次數。 |
| HealthCheckTimeout |
Integer |
每次健康檢查響應的最大超時,單位為秒。 |
| HealthCheckInterval |
Integer |
健康檢查的時間間隔,單位為秒。 |
| HealthCheckHttpCode |
String |
健康檢查正常的http狀態碼。 |
| HealthCheckConnectPort |
Integer |
健康檢查的端口。 |
| VServerGroupId |
String |
綁定的虛擬服務器組ID。 |
| Gzip |
String |
是否開啟Gzip壓縮。 |
示例
請求示例
https://slb.aliyuncs.com/ &Action=DescribeLoadBalancerHTTPListenerAttribute &LoadBalancerId=139a00604ad-cn-east-hangzhou-01 &ListenerPort=80 &<公共請求參數>
返回示例
- XML格式
<?xml version="1.0" encoding="UTF-8"?> <DescribeLoadBalancerHTTPListenerAttributeResponse> <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId> <ListenerPort>80</ListenerPort> <BackendServerPort>80</BackendServerPort> <Bandwidth>-1</Bandwidth> <Status>stopped</Status> <Schedule>wrr</Schedule> <XForwardedFor>on</XForwardedFor> </DescribeLoadBalancerHTTPListenerAttributeResponse>
- JSON格式
{ "RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710", "ListenerPort":80, "BackendServerPort":80, "Bandwidth":-1, "Status":"stopped", "Schedule":"wrr", "XForwardedFor":"on" }
最後更新:2016-11-23 16:03:57