跳到主要内容

查詢後端服務

查詢後端資訊。

請求引數​

引數名引數型別是否必填引數說明
ActionString是操作方法:DescribeLBBackends
RegionString是機房標識,取值參見地域列表
OffsetInteger否記錄偏移量,不指定取 0
CountInteger否記錄數量,不指定為全部
Id.NString否標識
NameString否名稱
EnabledBoolean否是否啟用
ListenerIdString否監聽器ID
LBIdString否負載均衡器ID

返回引數​

名稱型別說明
ActionString執行的操作
TaskIdString請求標識
TotalCountInteger過濾條件下總共記錄數
LBBackendSetLBBackend list資訊列表

LBBackend​

LBBackend 的資料型別

名稱型別說明
IdString後端標識
NameString名稱
AddressStringIP 地址
PortInteger埠
EnabledBoolean是否啟用,預設為 true
ListenerIdString監聽器
PolicyIdString策略
WeightInteger權重
HealthCheckStatusString健康檢查狀態 ACTIVE DOWN UNKNOW
UserIdString所屬使用者ID

請求示例​

http://api.yunpanel.com/v2/?Action=DescribeLBBackends
&Region=cn-wuxi
&<公共請求引數>

返回示例​

{
"code": 10000,
"message": "",
"data": {
"TaskId": "ouk11520170510150013402",
"Action": "DescribeLBBackends",
"TotalCount": 1,
"LBBackendSet": [{
"Id": "lbb-2g9ih3ihak33f",
"Uuid": null,
"Name": "bac144",
"Address": "10.10.10.8",
"Description": null,
"Port": 22,
"Enabled": true,
"ListenerId": null,
"PolicyId": null,
"Weight": null,
"HealthCheckStatus": "DOWN",
"UserId": "18359229",
"IdLong": "lbb-2g9ih3ihak33f-2953350f-b566-425b-91ee-3df9995593d0"
}]
}
}