閱讀464 返回首頁    go 英雄聯盟


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

描述

  • 後端服務器健康檢查,對負載均衡實例的後端服務器進行健康檢查,返回後端服務器的健康狀況。
  • 後端服務器的健康狀況為normal,abnormal和unavailable三種。其中unavailable表示這個負載均衡實例沒有配置健康檢查,無法獲取後端服務器的健康狀況。

請求參數

名稱 類型 是否必須 描述
Action String 操作接口名,係統規定參數。
取值:DescribeHealthStatus
LoadBalancerId String 負載均衡實例的唯一標識。
ListenerPort Integer 負載均衡實例前端使用的端口。
取值:1-65535。默認值:無。
不設置該參數表示獲取所有端口的健康檢查狀態。

返回參數

名稱 類型 描述
詳見
BackendServers List 數組格式,返回負載均衡內多個後端服務器的信息,詳見下表
  • 後端服務器信息BackendServers
名稱 類型 描述
ServerId String 後端服務器名稱Id,為ECS實例Id
ServerHealthStatus String 後端服務器的健康狀況,normal,abnormal或unavailable。normal表示狀態為健康;abnormal表示狀態為不健康;unavailable表示未能完成健康檢查,具體原因可能是:未開啟健康檢查、因故未能正常觸發健康檢查。針對最後一種情況,需要與我們取得聯係確認原因

示例

請求示例

    https://slb.aliyuncs.com/
    &Action=DescribeHealthStatus
    &LoadBalancerId=139a00604ad-cn-east-hangzhou-01
    &ListenerPort=80
    &<公共請求參數>

返回示例

  • XML格式

          <?xml version="1.0" encoding="UTF-8"?>
          <DescribeBackendServersResponse>
          <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
              <BackendServers>
                  <BackendServer>
                      <ServerId>vm-233</ServerId>
                      <ServerHealthStatus>normal</ServerHealthStatus>
                  </BackendServer>
                  <BackendServer>
                      <ServerId>vm-234</ServerId>
                      <ServerHealthStatus>abnormal</ServerHealthStatus>
                  </BackendServer>
          </BackendServers>
          </DescribeBackendServersResponse>
    
  • JSON格式

          {
          "RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
          "LoadBalancerId":"139a00604ad-cn-east-hangzhou-01",
          "BackendServers":{
              “BackendServer”: [
              {"ServerId": "vm-233",
              "ServerHealthStatus:"normal"},
              {“ServerId": "vm-234",
              "ServerHealthStatus:"abnormal"}] }
          }
    

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

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