调用DescribeLoadBalancerListeners接口查询传统型负载均衡实例监听列表。

前提条件

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
RegionId String cn-hangzhou

传统型负载均衡实例所在的地域ID。

您可以通过调用DescribeRegions接口获取地域ID。

说明 当您所选地域的Enpoint(服务地址)为slb.aliyuncs.com时,RegionId必填。
Action String DescribeLoadBalancerListeners

系统规定参数。取值:DescribeLoadBalancerListeners

NextToken String FFmyTO70tTpLG6I3FmYAXGKPd****

是否拥有下一次查询的令牌(Token)。取值:

  • 第一次查询和没有下一次查询时,均无需填写。
  • 如果有下一次查询,取值为上一次API调用返回的NextToken值。
MaxResults Integer 50

分批次查询时每次显示的条目数。

取值范围:1~100,入参为空时,默认值:20

ListenerProtocol String http

传统型负载均衡监听协议。取值:

  • tcp
  • udp
  • http
  • https
LoadBalancerId.N String LoadBalancerId.1=lb-uf6so8u4g35prnvsw****,LoadBalancerId.2=lb-uf6s1l1kukqv4u5nt****

传统型负载均衡实例的ID列表,最多支持10个实例ID。

返回数据

名称 类型 示例值 描述
NextToken String FFmyTO70tTpLG6I3FmYAXGKPd****

是否拥有下一次查询的令牌(Token)。取值:

  • 如果NextToken为空表示没有下一次查询。
  • 如果NextToken有返回值,该取值表示下一次查询开始的令牌。
RequestId String 365F4154-92F6-4AE4-92F8-7FF34B540710

请求ID。

TotalCount Integer 10

本次请求条件下的数据总量。

MaxResults Integer 50

分批次查询时每次显示的条目数。

Listeners Array of Listener

返回传统型负载均衡的监听列表。

说明 实例未配置监听时,不会返回该参数。
AclType String white

访问控制类型。取值:

  • white:仅转发来自所选访问控制策略组中设置的IP地址或地址段的请求,白名单适用于只允许特定IP访问的场景。设置白名单存在一定业务风险。一旦设置白名单,就只有白名单中的IP可以访问负载均衡监听。

    如果开启了白名单访问,但访问策略组中没有添加任何IP,则负载均衡监听会转发全部请求。

  • black:来自所选访问控制策略组中设置的IP地址或地址段的所有请求都不会转发,黑名单适用于只限制某些特定IP访问的场景。

    如果开启了黑名单访问,但访问策略组中没有添加任何IP,则负载均衡监听会转发全部请求。

Status String running

监听的状态。取值:

  • running:表示监听正常运行。
  • stopped:表示监听运行停止。
VServerGroupId String rsp-cige6j****

监听绑定的虚拟服务器组ID。

ListenerProtocol String http

传统型负载均衡监听协议。

LoadBalancerId String lb-bp1b6c719dfa****

传统型负载均衡实例的ID。

ListenerPort Integer 80

监听端口。

AclId String nacl-a2do9e413e0spzasx****

访问控制策略组ID。

Scheduler String wrr

调度算法。取值:

  • wrr:权重值越高的后端服务器,被轮询到的次数(概率)也越高。
  • rr:按照访问顺序依次将外部请求依序分发到后端服务器。
Bandwidth Integer -1

监听的带宽峰值。单位:Mbps。取值:

  • -1:不限制带宽峰值。
  • 1~5120:监听的带宽峰值,所有监听的带宽峰值之和不能超过实例的带宽峰值。
Description String test

监听描述。

AclStatus String off

是否开启访问控制功能。取值:

  • on:是
  • off:否
BackendServerPort Integer 80

后端服务器的端口。

说明 VServerGroupIdMasterSlaveServerGroupId均为空时,此参数有效。
HTTPListenerConfig Object

HTTP监听配置。

HealthCheckHttpVersion String HTTP 1.0

健康检查HTTP协议版本。

XForwardedFor_ClientSrcPort String on

是否通过XForwardedFor_ClientSrcPort头字段获取访问负载均衡实例客户端的端口。取值:

  • on:是
  • off:否
Cookie String B490B5EBF6F3CD402E515D22BCDA****

服务器上配置的Cookie。

Gzip String on

是否开启Gzip压缩。取值:

  • on:是
  • off:否
HealthCheckConnectPort Integer 8080

健康检查的端口。

说明HealthCheck值为on时该参数有效。
HealthCheckTimeout Integer 3

每次健康检查响应的最大超时间,单位:秒。

HealthCheckType String tcp

健康检查协议。

CookieTimeout Integer 500

Cookie超时时间。单位:秒。

取值:1~86400

HealthCheckDomain String www.example.com

健康检查的域名。

UnhealthyThreshold Integer 4

健康检查连续失败多少次后,将后端服务器的健康检查状态由成功判定为失败

取值范围:2~10

XForwardedFor_SLBID String on

是否通过SLB-ID头字段获取负载均衡实例ID。取值:

  • on:是
  • off:否
ForwardPort Integer 80

HTTP转发至HTTPS的监听端口。

说明 如果ListenerForward的值为off,该参数不显示。
HealthCheckHttpCode String http_2xx,http_3xx

健康检查正常的HTTP状态码。

ListenerForward String on

是否开启HTTP至HTTPS监听转发。取值:

  • on:是
  • off:否
XForwardedFor String on

是否通过XForwardedFor的方式获取来访者真实IP。取值:

  • on:是。
  • off:否。
IdleTimeout Integer 15

指定连接空闲超时时间。单位:秒。取值范围:1~60

在超时时间内一直没有访问请求,负载均衡会暂时中断当前连接,直到一下次请求来临时重新建立连接。

RequestTimeout Integer 60

指定请求超时时间。单位:秒。取值范围:1~180

在超时时间内后端服务器一直没有响应,负载均衡将放弃等待,给客户端返回HTTP 504错误码。

HealthCheckInterval Integer 5

健康检查的时间间隔,单位:秒。

XForwardedFor_SLBPORT String on

是否通过XForwardedFor_SLBPORT头字段获取负载均衡实例的监听端口。取值:

  • on:是
  • off:否
HealthCheckURI String /test/index.html

健康检查的URI。

StickySessionType String insert

Cookie的处理方式。取值:

  • insert:植入Cookie。客户端第一次访问时,负载均衡会在返回请求中植入Cookie(即在HTTP和HTTPS响应报文中插入SERVERID),下次客户端携带此Cookie访问,负载均衡服务会将请求定向转发给之前记录到的后端服务器上。
  • server:重写Cookie。负载均衡发现用户自定义了Cookie,将会对原来的Cookie进行重写,下次客户端携带新的Cookie访问,负载均衡服务会将请求定向转发给之前记录到的后端服务器。
HealthyThreshold Integer 4

健康检查连续成功多少次后,将后端服务器的健康检查状态由失败判定为成功

取值范围:2~10

XForwardedFor_proto String on

是否通过X-Forwarded-Proto头字段获取负载均衡实例的监听协议。取值:

  • on:是
  • off:否
XForwardedFor_SLBIP String on

是否通过SLB-IP头字段获取客户端请求的VIP(Virtual IP address)。取值:

  • on:是
  • off:否
StickySession String on

是否开启会话保持。取值:

  • on:是
  • off:否
HealthCheckMethod String get

健康检查方式。取值:headget

HealthCheck String on

是否开启健康检查。取值:

  • on:是
  • off:否
HTTPSListenerConfig Object

HTTPS监听配置。

XForwardedFor_ClientCertClientVerify String off

是否通过XForwardedFor_ClientCertClientVerify头字段获取对访问负载均衡实例客户端证书的校验结果。取值:

  • on:是
  • off:否
HealthCheckHttpVersion String HTTP 1.0

健康检查HTTP协议版本。

XForwardedFor_ClientSrcPort String off

是否通过XForwardedFor_ClientSrcPort头字段获取访问负载均衡实例客户端的端口。取值:

  • on:是
  • off:否
Cookie String B490B5EBF6F3CD402E515D22BCDA****

服务器上配置的Cookie。

Gzip String on

是否开启Gzip压缩。取值:

  • on:是
  • off:否
EnableHttp2 String off

是否开启HTTP 2.0特性。取值:

  • on:是
  • off:否
CACertificateId String idkp-234-cn-test-0****

CA证书ID。

HealthCheckConnectPort Integer 8080

健康检查的端口。

HealthCheckTimeout Integer 3

每次健康检查响应的最大超时间。单位:秒。

HealthCheckType String tcp

健康检查协议。

CookieTimeout Integer 500

Cookie超时时间。单位:秒。

取值:1~86400

HealthCheckDomain String www.example.com

健康检查的域名。

UnhealthyThreshold Integer 4

健康检查连续失败多少次后,将后端服务器的健康检查状态由成功判定为失败

取值范围:2~10

XForwardedFor_SLBID String on

是否通过SLB-ID头字段获取负载均衡实例ID。取值:

  • on:是
  • off:否
XForwardedFor_ClientCertSubjectDN String off

是否通过XForwardedFor_ClientCertSubjectDN头字段获取访问负载均衡实例客户端证书的所有者信息。取值:

  • on:是。
  • off:否。
HealthCheckHttpCode String http_2xx,http_3xx

健康检查正常的HTTP状态码。

XForwardedFor_ClientCertFingerprint String off

是否通过XForwardedFor_ClientCertFingerprint头字段获取访问负载均衡实例客户端证书的指纹。取值:

  • on:是
  • off:否
XForwardedFor String on

是否开启通过XForwardedFor的方式获取来访者真实IP。取值:

  • on:是
  • off:否
RequestTimeout Integer 60

指定请求超时时间,单位:秒。取值范围:1~180

在超时时间内后端服务器一直没有响应,负载均衡将放弃等待,给客户端返回HTTP 504错误码。

IdleTimeout Integer 15

指定连接空闲超时时间。单位:秒。取值范围:1~60

在超时时间内一直没有访问请求,负载均衡会暂时中断当前连接,直到一下次请求来临时重新建立连接。

ServerCertificateId String idkp-123-cn-test-0****

服务器证书的ID。

HealthCheckInterval Integer 5

健康检查的时间间隔。单位:秒。

XForwardedFor_SLBPORT String off

是否通过XForwardedFor_SLBPORT头字段获取负载均衡实例的监听端口。取值:

  • on:是
  • off:否
HealthCheckURI String /test/index.html

健康检查的URI。

StickySessionType String insert

Cookie的处理方式。

  • insert:植入Cookie。客户端第一次访问时,负载均衡会在返回请求中植入Cookie(即在HTTP和HTTPS响应报文中插入SERVERID),下次客户端携带此Cookie访问,负载均衡服务会将请求定向转发给之前记录到的后端服务器上。
  • server:重写Cookie。负载均衡发现用户自定义了Cookie,将会对原来的Cookie进行重写,下次客户端携带新的Cookie访问,负载均衡服务会将请求定向转发给之前记录到的后端服务器。
XForwardedFor_ClientCertIssuerDN String off

是否通过XForwardedFor_ClientCertIssuerDN头字段获取访问负载均衡实例客户端证书的发行者信息。取值:

  • on:是
  • off:否
HealthyThreshold Integer 4

健康检查连续成功多少次后,将后端服务器的健康检查状态由失败判定为成功

取值范围:2~10

XForwardedFor_proto String on

是否通过X-Forwarded-Proto头字段获取负载均衡实例的监听协议。取值:

  • on:是
  • off:否
XForwardedFor_SLBIP String on

是否通过SLB-IP头字段获取客户端请求的VIP(Virtual IP address)。取值:

  • on:是
  • off:否
StickySession String on

是否开启会话保持。取值:

  • on:是
  • off:否
HealthCheckMethod String get

健康检查方式。

TLSCipherPolicy String tls_cipher_policy_1_0

安全策略包含HTTPS可选的TLS协议版本和配套的加密算法套件。

  • tls_cipher_policy_1_0

    支持TLS版本: TLSv1.0、TLSv1.1和TLSv1.2。

    支持加密算法套件:ECDHE-RSA-AES128-GCM-SHA256、ECDHE-RSA-AES256-GCM-SHA384、ECDHE-RSA-AES128-SHA256、ECDHE-RSA-AES256-SHA384、AES128-GCM-SHA256、AES256-GCM-SHA384、AES128-SHA256、AES256-SHA256、ECDHE-RSA-AES128-SHA、ECDHE-RSA-AES256-SHA、AES128-SHA、AES256-SHA和DES-CBC3-SHA。

  • tls_cipher_policy_1_1

    支持TLS版本: TLSv1.1和TLSv1.2。

    支持加密算法套件:ECDHE-RSA-AES128-GCM-SHA256、ECDHE-RSA-AES256-GCM-SHA384、ECDHE-RSA-AES128-SHA256、ECDHE-RSA-AES256-SHA384、AES128-GCM-SHA256、AES256-GCM-SHA384、AES128-SHA256、AES256-SHA256、ECDHE-RSA-AES128-SHA、ECDHE-RSA-AES256-SHA、AES128-SHA、AES256-SHA和DES-CBC3-SHA。

  • tls_cipher_policy_1_2

    支持TLS版本:TLSv1.2。

    支持加密算法套件:ECDHE-RSA-AES128-GCM-SHA256、ECDHE-RSA-AES256-GCM-SHA384、ECDHE-RSA-AES128-SHA256、ECDHE-RSA-AES256-SHA384、AES128-GCM-SHA256、AES256-GCM-SHA384、AES128-SHA256、AES256-SHA256、ECDHE-RSA-AES128-SHA、ECDHE-RSA-AES256-SHA、AES128-SHA、AES256-SHA和DES-CBC3-SHA。

  • tls_cipher_policy_1_2_strict

    支持TLS版本:TLSv1.2。

    支持加密算法套件:ECDHE-RSA-AES128-GCM-SHA256、ECDHE-RSA-AES256-GCM-SHA384、ECDHE-RSA-AES128-SHA256、ECDHE-RSA-AES256-SHA384、ECDHE-RSA-AES128-SHA和ECDHE-RSA-AES256-SHA。

  • tls_cipher_policy_1_2_strict_with_1_3

    支持TLS版本:TLSv1.2及TLSv1.3。

    支持的加密算法套件:TLS_AES_128_GCM_SHA256、TLS_AES_256_GCM_SHA384、TLS_CHACHA20_POLY1305_SHA256、TLS_AES_128_CCM_SHA256、TLS_AES_128_CCM_8_SHA256、ECDHE-ECDSA-AES128-GCM-SHA256、ECDHE-ECDSA-AES256-GCM-SHA384、ECDHE-ECDSA-AES128-SHA256、ECDHE-ECDSA-AES256-SHA384、ECDHE-RSA-AES128-GCM-SHA256、ECDHE-RSA-AES256-GCM-SHA384、ECDHE-RSA-AES128-SHA256、ECDHE-RSA-AES256-SHA384、ECDHE-ECDSA-AES128-SHA、ECDHE-ECDSA-AES256-SHA、ECDHE-RSA-AES128-SHA、ECDHE-RSA-AES256-SHA。

HealthCheck String on

是否开启健康检查。取值:

  • on:是。
  • off:否。
TCPListenerConfig Object

TCP监听配置。

HealthCheckHttpCode String http_2xx,http_3xx

健康检查正常的HTTP状态码。

ConnectionDrainTimeout Integer 300

设置连接优雅中断超时时间。单位:秒。

取值范围:10~900

PersistenceTimeout Integer 0

是否开启了会话保持。单位:秒。

取值范围:0~3600

取值为0时,表示未开启。

HealthCheckInterval Integer 5

健康检查的时间间隔,单位为秒。

HealthCheckURI String /test/index.html

健康检查的URI。

HealthCheckConnectPort Integer 8080

健康检查使用的端口。

EstablishedTimeout Integer 500

连接超时时间。单位:秒。

HealthCheckType String tcp

健康检查协议。

HealthCheckConnectTimeout Integer 100

健康检查超时时间。单位:秒。

取值范围:1~300

MasterSlaveServerGroupId String rsp-0bfucw*****

监听绑定的主备服务器组ID。

HealthyThreshold Integer 4

健康检查连续成功多少次后,将后端服务器的健康检查状态由失败判定为成功

取值范围:2~10

HealthCheckDomain String www.example.com

健康检查的域名。

UnhealthyThreshold Integer 4

健康检查连续失败多少次后,将后端服务器的健康检查状态由成功判定为失败

取值范围:2~10

ConnectionDrain String off

是否开启连接优雅中断。取值:

  • on:是
  • off:否
HealthCheckMethod String get

健康检查方式。

HealthCheck String on

是否开启健康检查。取值:

  • on:是
  • off:否
ProxyProtocolV2Enabled String false

是否支持通过Proxy Protocol协议携带客户端源地址到后端服务器。取值:

  • true:是。
  • false:否。
UDPListenerConfig Object

UDP监听配置。

ConnectionDrainTimeout Integer 300

设置连接优雅中断超时时间。单位:秒。

取值范围:10~900

HealthCheckInterval Integer 5

健康检查的时间间隔,单位为秒。

HealthCheckExp String ok

UDP监听健康检查的响应串。

HealthCheckConnectPort Integer 8080

健康检查的端口。

HealthCheckConnectTimeout Integer 100

健康检查响应超时时间。

MasterSlaveServerGroupId String rsp-0bfucw****

绑定的主备服务器组ID。

HealthyThreshold Integer 4

健康检查阈值。

UnhealthyThreshold Integer 4

不健康检查阈值。

ConnectionDrain String off

是否开启连接优雅中断。取值:

  • on:是
  • off:否
HealthCheckReq String hello

UDP监听健康检查的请求串。

HealthCheck String on

是否开启健康检查。取值:

  • on:是
  • off:否
ProxyProtocolV2Enabled String false

是否支持通过Proxy Protocol协议携带客户端源地址到后端服务器。取值:

  • true:是。
  • false:否。

示例

请求示例

http(s)://[Endpoint]/?RegionId=cn-hangzhou
&Action=DescribeLoadBalancerListeners
&NextToken=FFmyTO70tTpLG6I3FmYAXGKPd****
&MaxResults=50
&ListenerProtocol=http
&LoadBalancerId=["LoadBalancerId.1=lb-uf6so8u4g35prnvsw****,LoadBalancerId.2=lb-uf6s1l1kukqv4u5nt****"]
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeLoadBalancerListenersResponse>
    <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>
    <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
    <TotalCount>10</TotalCount>
    <MaxResults>50</MaxResults>
    <Listeners>
        <AclType>white</AclType>
        <Status>running</Status>
        <VServerGroupId>rsp-cige6j****</VServerGroupId>
        <ListenerProtocol>http</ListenerProtocol>
        <LoadBalancerId>lb-bp1b6c719dfa****</LoadBalancerId>
        <ListenerPort>80</ListenerPort>
        <AclId>nacl-a2do9e413e0spzasx****</AclId>
        <Scheduler>wrr</Scheduler>
        <Bandwidth>-1</Bandwidth>
        <Description>test</Description>
        <AclStatus>off</AclStatus>
        <BackendServerPort>80</BackendServerPort>
        <HTTPListenerConfig>
            <HealthCheckHttpVersion>HTTP 1.0</HealthCheckHttpVersion>
            <XForwardedFor_ClientSrcPort>on</XForwardedFor_ClientSrcPort>
            <Cookie>B490B5EBF6F3CD402E515D22BCDA****</Cookie>
            <Gzip>on</Gzip>
            <HealthCheckConnectPort>8080</HealthCheckConnectPort>
            <HealthCheckTimeout>3</HealthCheckTimeout>
            <HealthCheckType>tcp</HealthCheckType>
            <CookieTimeout>500</CookieTimeout>
            <HealthCheckDomain>www.example.com</HealthCheckDomain>
            <UnhealthyThreshold>4</UnhealthyThreshold>
            <XForwardedFor_SLBID>on</XForwardedFor_SLBID>
            <ForwardPort>80</ForwardPort>
            <HealthCheckHttpCode>http_2xx,http_3xx</HealthCheckHttpCode>
            <ListenerForward>on</ListenerForward>
            <XForwardedFor>on</XForwardedFor>
            <IdleTimeout>15</IdleTimeout>
            <RequestTimeout>60</RequestTimeout>
            <HealthCheckInterval>5</HealthCheckInterval>
            <XForwardedFor_SLBPORT>on</XForwardedFor_SLBPORT>
            <HealthCheckURI>/test/index.html</HealthCheckURI>
            <StickySessionType>insert</StickySessionType>
            <HealthyThreshold>4</HealthyThreshold>
            <XForwardedFor_proto>on</XForwardedFor_proto>
            <XForwardedFor_SLBIP>on</XForwardedFor_SLBIP>
            <StickySession>on</StickySession>
            <HealthCheckMethod>get</HealthCheckMethod>
            <HealthCheck>on</HealthCheck>
        </HTTPListenerConfig>
        <HTTPSListenerConfig>
            <XForwardedFor_ClientCertClientVerify>off</XForwardedFor_ClientCertClientVerify>
            <HealthCheckHttpVersion>HTTP 1.0</HealthCheckHttpVersion>
            <XForwardedFor_ClientSrcPort>off</XForwardedFor_ClientSrcPort>
            <Cookie>B490B5EBF6F3CD402E515D22BCDA****</Cookie>
            <Gzip>on</Gzip>
            <EnableHttp2>off</EnableHttp2>
            <CACertificateId>idkp-234-cn-test-0****</CACertificateId>
            <HealthCheckConnectPort>8080</HealthCheckConnectPort>
            <HealthCheckTimeout>3</HealthCheckTimeout>
            <HealthCheckType>tcp</HealthCheckType>
            <CookieTimeout>500</CookieTimeout>
            <HealthCheckDomain>www.example.com</HealthCheckDomain>
            <UnhealthyThreshold>4</UnhealthyThreshold>
            <XForwardedFor_SLBID>on</XForwardedFor_SLBID>
            <XForwardedFor_ClientCertSubjectDN>off</XForwardedFor_ClientCertSubjectDN>
            <HealthCheckHttpCode>http_2xx,http_3xx</HealthCheckHttpCode>
            <XForwardedFor_ClientCertFingerprint>off</XForwardedFor_ClientCertFingerprint>
            <XForwardedFor>on</XForwardedFor>
            <RequestTimeout>60</RequestTimeout>
            <IdleTimeout>15</IdleTimeout>
            <ServerCertificateId>idkp-123-cn-test-0****</ServerCertificateId>
            <HealthCheckInterval>5</HealthCheckInterval>
            <XForwardedFor_SLBPORT>off</XForwardedFor_SLBPORT>
            <HealthCheckURI>/test/index.html</HealthCheckURI>
            <StickySessionType>insert</StickySessionType>
            <XForwardedFor_ClientCertIssuerDN>off</XForwardedFor_ClientCertIssuerDN>
            <HealthyThreshold>4</HealthyThreshold>
            <XForwardedFor_proto>on</XForwardedFor_proto>
            <XForwardedFor_SLBIP>on</XForwardedFor_SLBIP>
            <StickySession>on</StickySession>
            <HealthCheckMethod>get</HealthCheckMethod>
            <TLSCipherPolicy>tls_cipher_policy_1_0</TLSCipherPolicy>
            <HealthCheck>on</HealthCheck>
        </HTTPSListenerConfig>
        <TCPListenerConfig>
            <HealthCheckHttpCode>http_2xx,http_3xx</HealthCheckHttpCode>
            <ConnectionDrainTimeout>300</ConnectionDrainTimeout>
            <PersistenceTimeout>0</PersistenceTimeout>
            <HealthCheckInterval>5</HealthCheckInterval>
            <HealthCheckURI>/test/index.html</HealthCheckURI>
            <HealthCheckConnectPort>8080</HealthCheckConnectPort>
            <EstablishedTimeout>500</EstablishedTimeout>
            <HealthCheckType>tcp</HealthCheckType>
            <HealthCheckConnectTimeout>100</HealthCheckConnectTimeout>
            <MasterSlaveServerGroupId>rsp-0bfucw*****</MasterSlaveServerGroupId>
            <HealthyThreshold>4</HealthyThreshold>
            <HealthCheckDomain>www.example.com</HealthCheckDomain>
            <UnhealthyThreshold>4</UnhealthyThreshold>
            <ConnectionDrain>off</ConnectionDrain>
            <HealthCheckMethod>get</HealthCheckMethod>
            <HealthCheck>on</HealthCheck>
            <ProxyProtocolV2Enabled>false</ProxyProtocolV2Enabled>
        </TCPListenerConfig>
        <UDPListenerConfig>
            <ConnectionDrainTimeout>300</ConnectionDrainTimeout>
            <HealthCheckInterval>5</HealthCheckInterval>
            <HealthCheckExp>ok</HealthCheckExp>
            <HealthCheckConnectPort>8080</HealthCheckConnectPort>
            <HealthCheckConnectTimeout>100</HealthCheckConnectTimeout>
            <MasterSlaveServerGroupId>rsp-0bfucw****</MasterSlaveServerGroupId>
            <HealthyThreshold>4</HealthyThreshold>
            <UnhealthyThreshold>4</UnhealthyThreshold>
            <ConnectionDrain>off</ConnectionDrain>
            <HealthCheckReq>hello</HealthCheckReq>
            <HealthCheck>on</HealthCheck>
            <ProxyProtocolV2Enabled>false</ProxyProtocolV2Enabled>
        </UDPListenerConfig>
    </Listeners>
</DescribeLoadBalancerListenersResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "NextToken" : "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "RequestId" : "365F4154-92F6-4AE4-92F8-7FF34B540710",
  "TotalCount" : 10,
  "MaxResults" : 50,
  "Listeners" : [ {
    "AclType" : "white",
    "Status" : "running",
    "VServerGroupId" : "rsp-cige6j****",
    "ListenerProtocol" : "http",
    "LoadBalancerId" : "lb-bp1b6c719dfa****",
    "ListenerPort" : 80,
    "AclId" : "nacl-a2do9e413e0spzasx****",
    "Scheduler" : "wrr",
    "Bandwidth" : -1,
    "Description" : "test",
    "AclStatus" : "off",
    "BackendServerPort" : 80,
    "HTTPListenerConfig" : {
      "HealthCheckHttpVersion" : "HTTP 1.0",
      "XForwardedFor_ClientSrcPort" : "on",
      "Cookie" : "B490B5EBF6F3CD402E515D22BCDA****",
      "Gzip" : "on",
      "HealthCheckConnectPort" : 8080,
      "HealthCheckTimeout" : 3,
      "HealthCheckType" : "tcp",
      "CookieTimeout" : 500,
      "HealthCheckDomain" : "www.example.com",
      "UnhealthyThreshold" : 4,
      "XForwardedFor_SLBID" : "on",
      "ForwardPort" : 80,
      "HealthCheckHttpCode" : "http_2xx,http_3xx",
      "ListenerForward" : "on",
      "XForwardedFor" : "on",
      "IdleTimeout" : 15,
      "RequestTimeout" : 60,
      "HealthCheckInterval" : 5,
      "XForwardedFor_SLBPORT" : "on",
      "HealthCheckURI" : "/test/index.html",
      "StickySessionType" : "insert",
      "HealthyThreshold" : 4,
      "XForwardedFor_proto" : "on",
      "XForwardedFor_SLBIP" : "on",
      "StickySession" : "on",
      "HealthCheckMethod" : "get",
      "HealthCheck" : "on"
    },
    "HTTPSListenerConfig" : {
      "XForwardedFor_ClientCertClientVerify" : "off",
      "HealthCheckHttpVersion" : "HTTP 1.0",
      "XForwardedFor_ClientSrcPort" : "off",
      "Cookie" : "B490B5EBF6F3CD402E515D22BCDA****",
      "Gzip" : "on",
      "EnableHttp2" : "off",
      "CACertificateId" : "idkp-234-cn-test-0****",
      "HealthCheckConnectPort" : 8080,
      "HealthCheckTimeout" : 3,
      "HealthCheckType" : "tcp",
      "CookieTimeout" : 500,
      "HealthCheckDomain" : "www.example.com",
      "UnhealthyThreshold" : 4,
      "XForwardedFor_SLBID" : "on",
      "XForwardedFor_ClientCertSubjectDN" : "off",
      "HealthCheckHttpCode" : "http_2xx,http_3xx",
      "XForwardedFor_ClientCertFingerprint" : "off",
      "XForwardedFor" : "on",
      "RequestTimeout" : 60,
      "IdleTimeout" : 15,
      "ServerCertificateId" : "idkp-123-cn-test-0****",
      "HealthCheckInterval" : 5,
      "XForwardedFor_SLBPORT" : "off",
      "HealthCheckURI" : "/test/index.html",
      "StickySessionType" : "insert",
      "XForwardedFor_ClientCertIssuerDN" : "off",
      "HealthyThreshold" : 4,
      "XForwardedFor_proto" : "on",
      "XForwardedFor_SLBIP" : "on",
      "StickySession" : "on",
      "HealthCheckMethod" : "get",
      "TLSCipherPolicy" : "tls_cipher_policy_1_0",
      "HealthCheck" : "on"
    },
    "TCPListenerConfig" : {
      "HealthCheckHttpCode" : "http_2xx,http_3xx",
      "ConnectionDrainTimeout" : 300,
      "PersistenceTimeout" : 0,
      "HealthCheckInterval" : 5,
      "HealthCheckURI" : "/test/index.html",
      "HealthCheckConnectPort" : 8080,
      "EstablishedTimeout" : 500,
      "HealthCheckType" : "tcp",
      "HealthCheckConnectTimeout" : 100,
      "MasterSlaveServerGroupId" : "rsp-0bfucw*****",
      "HealthyThreshold" : 4,
      "HealthCheckDomain" : "www.example.com",
      "UnhealthyThreshold" : 4,
      "ConnectionDrain" : "off",
      "HealthCheckMethod" : "get",
      "HealthCheck" : "on",
      "ProxyProtocolV2Enabled" : "false"
    },
    "UDPListenerConfig" : {
      "ConnectionDrainTimeout" : 300,
      "HealthCheckInterval" : 5,
      "HealthCheckExp" : "ok",
      "HealthCheckConnectPort" : 8080,
      "HealthCheckConnectTimeout" : 100,
      "MasterSlaveServerGroupId" : "rsp-0bfucw****",
      "HealthyThreshold" : 4,
      "UnhealthyThreshold" : 4,
      "ConnectionDrain" : "off",
      "HealthCheckReq" : "hello",
      "HealthCheck" : "on",
      "ProxyProtocolV2Enabled" : "false"
    }
  } ]
}

错误码

HttpCode 错误码 错误信息 描述
400 IllegalParam.ListenerProtocol The param of ListenerProtocol is illegal. 指定的ListenerProtocol无效。请检查参数约束,并在修改后重试。
400 IllegalParam.MaxResults The param of MaxResults is illegal. 指定的MaxResults无效。请检查参数约束,并在修改后重试。
400 IllegalParam.NextToken The param of NextToken is illegal. 指定的NextToken无效。请检查参数约束,并在修改后重试。
400 IllegalParamSize.LoadBalancerId The param size of LoadBalancerId is illegal. 指定的LoadBalancerId无效。请检查参数约束,并在修改后重试。

访问错误中心查看更多错误码。