调用DescribeLoadBalancerUDPListenerAttribute查询UDP监听的配置。
接口说明
API 调用频率:100 次/秒。
单用户调用频率:10 次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:DescribeLoadBalancerUDPListenerAttribute |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ListenerPort |
integer |
是 |
需要查询的监听端口。取值:1~65535。 |
80 |
| LoadBalancerId |
string |
是 |
负载均衡实例的 ID。 |
lb-5pzipr2fszqtl2xf64uy5**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
5D7597CF-1630-54EC-A945-624A33F2E7E8 |
| ListenerPort |
integer |
监听端口。 |
80 |
| Status |
string |
当前监听的状态。取值:
|
Stopped |
| Bandwidth |
integer |
负载均衡带宽峰值,默认值为-1(表示不限速)。 |
5 |
| Scheduler |
string |
调度算法。取值:
|
wrr |
| HealthCheck |
string |
是否开启健康检查。取值:
|
on |
| HealthyThreshold |
integer |
健康检查连续成功多少次后,将后端服务器的健康检查状态由 fail(后台服务器不可达)判定为 success(后台服务器可达)。 取值:2~10。 说明
HealthCheck 值为 on 时才会有效。 |
4 |
| UnhealthyThreshold |
integer |
健康检查连续失败多少次后,将后端服务器的健康检查状态由 success(后台服务器可达)判定为 fail(后台服务器不可达)。 取值:2~10。 说明
HealthCheck 值为 on 时才会有效。 |
4 |
| HealthCheckConnectTimeout |
integer |
接收来自运行状况检查的响应需要等待的时间。如果后端 ENS 在指定的时间内没有响应,则判定为健康检查失败。
说明
|
100 |
| HealthCheckInterval |
integer |
健康检查的时间间隔。 取值: 1~50,单位:秒。 说明
HealthCheck 值为 on 时才会有效。 |
5 |
| Description |
string |
监听名称。 |
example |
| BackendServerPort |
integer |
负载均衡实例后端服务器使用的端口,取值:1~65535。 |
8080 |
| HealthCheckConnectPort |
integer |
健康检查使用的端口,取值: 1~65535。不设置此参数时,表示使用后端服务端口(BackendServerPort)。 |
8000 |
| HealthCheckReq |
string |
UDP 监听健康检查的请求串,只允许包含字母、数字,最大长度限制为 64 个字符。 |
hello |
| HealthCheckExp |
string |
UDP 监听健康检查的响应串,只允许包含字母、数字,最大长度限制为 64 个字符。 |
ok |
| EipTransmit |
string |
是否开启 EIP 透传,取值:
|
on |
| EstablishedTimeout |
integer |
连接超时时间,取值:10~900,单位:秒。 |
500 |
示例
正常返回示例
JSON格式
{
"RequestId": "5D7597CF-1630-54EC-A945-624A33F2E7E8",
"ListenerPort": 80,
"Status": "Stopped",
"Bandwidth": 5,
"Scheduler": "wrr",
"HealthCheck": "on",
"HealthyThreshold": 4,
"UnhealthyThreshold": 4,
"HealthCheckConnectTimeout": 100,
"HealthCheckInterval": 5,
"Description": "example",
"BackendServerPort": 8080,
"HealthCheckConnectPort": 8000,
"HealthCheckReq": "hello",
"HealthCheckExp": "ok",
"EipTransmit": "on",
"EstablishedTimeout": 500
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ListenerNotFound | Listener is not found. | 监听不存在 |
| 400 | LoadBalancerNotFound | The input parameter LoadBalancerId that is not found. | 负载均衡实例不存在 |
| 400 | ens.interface.error | Failed to call API. | 接口调用发生异常。 |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。