閱讀140 返回首頁    go 微信


DescribeLoadBalancerHTTPSListenerAttribute__Listener相關API_API 參考_負載均衡-阿裏雲

描述

查詢HTTPS Listener信息。Listener包含5種狀態:starting、running、configuring、stopping、stopped。Listener的狀態轉換圖以及每個狀態的具體說明,參見附錄負載均衡 Listener狀態轉換圖

請求參數

名稱 類型 是否必須 描述
Action String 操作接口名,係統規定參數。取值:DescribeLoadBalancerHTTPSListenerAttribute
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 健康檢查的端口
ServerCertificateId String 服務器證書的ID。
CACertificateId String CA證書的ID。
VServerGroupId String 綁定的虛擬服務器組ID
Gzip String 是否開啟Gzip壓縮。

示例

請求示例

  1. https://slb.aliyuncs.com/
  2. &Action=DescribeLoadBalancerHTTPSListenerAttribute
  3. &LoadBalancerId=139a00604ad-cn-east-hangzhou-01
  4. &ListenerPort=80443
  5. &<公共請求參數>

返回示例

  • XML 格式
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <DescribeLoadBalancerHTTPSListenerAttributeResponse>
    3. <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
    4. <ListenerPort>80</ListenerPort>
    5. <BackendServerPort>80</BackendServerPort>
    6. <Bandwidth>-1</Bandwidth>
    7. <Status>stopped</Status>
    8. <Schedule>wrr</Schedule>
    9. <XForwardedFor>on</XForwardedFor>
    10. <ServerCertificateId>idkp-123-cn-test-01</ServerCertificateId>
    11. <CACertificateId>idkp-234-cn-test-02</CACertificateId>
    12. </DescribeLoadBalancerHTTPSListenerAttributeResponse>
  • JSON格式
    1. {
    2. "RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
    3. "ListenerPort":80,
    4. "BackendServerPort":80,
    5. "Bandwidth":-1,
    6. "Status":"stopped",
    7. "Schedule":"wrr",
    8. "XForwardedFor":"on",
    9. "ServerCertificateId":"idkp-123-cn-test-01"
    10. "CACertificateId":"idkp-234-cn-test-02"
    11. }

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

  上一篇:go DescribeLoadBalancerHTTPListenerAttribute__Listener相關API_API 參考_負載均衡-阿裏雲
  下一篇:go DescribeLoadBalancerTCPListenerAttribute__Listener相關API_API 參考_負載均衡-阿裏雲