查询监听器列表
最近更新时间: 2022-01-18 10:40:56
请求路径
GET
/api/rio/v1/network/loadbalancer_listeners
请求参数
名称 |
类型 |
位置 |
必须 |
描述 |
x-rio-zone-id |
string |
header |
是 |
地域 ID |
load_balancer_id |
string |
query |
否 |
负载均衡 ID |
listener_id |
string |
query |
否 |
监听器 ID |
listener_port |
integer |
query |
否 |
监听端口 |
返回值
名称 |
类型 |
描述 |
request_id |
string |
请求 ID |
data |
[]SLBListenerInfo |
负载均衡监听器信息 |
SLBListenerInfo 负载均衡监听器信息
名称 |
类型 |
描述 |
load_balancer_id |
string |
负载均衡 ID |
enabled |
boolean |
启用状态: |
listener_id |
string |
监听器 ID |
listener_name |
string |
名称 |
description |
string |
描述 |
status |
string |
状态:active : 正常的creating : 创建中updating :更新中deleting : 删除中error : 错误stopped : 停止no_monitor : 脱离监控
|
protocol |
string |
监听协议:tcp udp https :tcp 转发实现http sctp terminated_https : https 协议,创建时需绑定证书
|
listener_port |
integer |
负载均衡实例前端使用的端口。取值:1-65535。 |
connection_limit |
integer |
最大连接数,默认值为 -1 ,表示无限连接 |
timeout_client_data |
integer |
前端客户端不活动超时,单位:秒,默认值:50 |
timeout_member_connect |
integer |
后端成员连接超时,单位:秒,默认值:5 |
timeout_member_data |
integer |
后端成员不活动超时,单位:秒,默认值:50 |
timeout_tcp_inspect |
integer |
等待 TCP 数据包检查超时,单位:秒,默认值:0 |
persistence_timeout |
integer |
会话保持的超时时间。取值:0-3600(秒)。默认值:0,表示关闭会话保持。 |
established_timeout |
integer |
连接超时时间。取值:10-900(秒)。 默认值: 900 |
insert_headers |
[]string |
请求发送到后端服务器时添加的请求头:X-Forwarded-For : 记录最初发起请求的客户端 IPX-Forwarded-Port : 记录最初发起请求的客户端 PortX-Forwarded-Proto :记录负载均衡服务器与后端客户端之间采用的协议类型
|
certificate_id |
string |
证书 ID |
pool_id |
string |
资源池 ID |
pool_name |
string |
资源池 Name |
created_at |
integer |
创建时间,毫秒时间戳 |
返回值示例