跳到主要内容

查询后端服务

查询后端信息。

请求参数​

参数名参数类型是否必填参数说明
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.chinac.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"
}]
}
}