All Products
Search
Document Center

Server Load Balancer:DescribeLoadBalancerUDPListenerAttribute

Last Updated:Apr 03, 2026

Queries the configuration of a UDP listener.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

To call this operation, your Resource Access Management (RAM) policy must include the following authorization.

ActionAccess levelResource typeCondition keyDependent action
slb:DescribeLoadBalancerUDPListenerAttributeget\*loadbalancer acs:slb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}slb:tagNone

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNoThe region of the Classic Load Balancer (CLB) instance.cn-hangzhou
LoadBalancerIdstringYesThe ID of the CLB instance.lb-bp1rtfnodmywb43e\*\*\*\*\*
ListenerPortintegerYesThe frontend port of the CLB instance. Valid values: 1 to 65535.80

Response elements

ElementTypeDescriptionExample
RequestIdstringThe request ID.365F4154-92F6-4AE4-92F8-7FF34B540710
LoadBalancerIdstringThe ID of the CLB instance.lb-bp1rtfnodmywb43e\*\*\*\*\*
ListenerPortintegerThe frontend port of the CLB instance.53
DescriptionstringThe custom name of the listener.UDP_80
StatusstringThe status of the listener. Valid values: running | stopped.stopped
BandwidthintegerThe maximum bandwidth of the listener, in Mbit/s. Valid values:<br>-1: No bandwidth limit. Applies to Internet-facing CLB instances billed by data transfer.<br>1 to 5120: The maximum bandwidth per listener. The sum of all listener bandwidth limits must not exceed the instance bandwidth. Applies to Internet-facing CLB instances billed by bandwidth.-1
SchedulerstringThe scheduling algorithm. Valid values:<br>wrr (default): Distributes requests to backend servers based on weight. Servers with higher weights receive more requests.<br>rr: Distributes requests to backend servers in sequence.wrr
BackendServerPortintegerThe backend port of the CLB instance. Not returned if the backend server group is a vServer group.90
VServerGroupIdstringThe ID of the vServer group attached to the listener.rsp-cige6j\*\*\*\*
MasterSlaveServerGroupIdstringThe ID of the primary/secondary server group attached to the listener.rsp-0bfucw\*\*\*\*
ProxyProtocolV2EnabledbooleanSpecifies whether Proxy Protocol v2 is enabled to pass client source IP addresses to backend servers. Valid values: true | false.false
AclStatusstringSpecifies whether access control is enabled. Valid values: on | off (default).off
AclIdstringThe ID of the access control policy group.acl-uf60jwfiv6\*\*\*\*\*\*
AclIdsobjectThe access control policy groups attached to the listener.
AclIds.AclIdarrayThe IDs of the access control policy groups.
AclTypestringThe access control method. Valid values:<br>white: Whitelist. Forwards requests only from IP addresses or CIDR blocks in the selected access control policy group. Use this when your application restricts access to specific IP addresses.
Warning

Using a whitelist carries business risk. After you enable a whitelist, only IP addresses in the list can access the SLB listener. If the whitelist is enabled with no IP addresses added, all requests are forwarded.<br>black: Blacklist. Blocks requests from IP addresses or CIDR blocks in the selected access control policy group. Use this when your application needs to deny access from specific IP addresses. If the blacklist is enabled with no IP addresses added, all requests are forwarded.

white
HealthCheckstringSpecifies whether health checks are enabled. Valid values: on | off.on
HealthCheckConnectPortintegerThe port used for health checks. Valid values: 1 to 65535. Defaults to the backend server port (BackendServerPort) if not specified. Takes effect only when HealthCheck is set to on.8080
HealthCheckConnectTimeoutintegerThe maximum wait time for a health check response, in seconds. If a backend server does not respond within this period, the health check fails. Valid values: 1 to 300.100
HealthCheckIntervalintegerThe interval between health checks, in seconds. Valid values: 1 to 50.5
HealthyThresholdintegerThe number of consecutive successful health checks required before a backend server is considered healthy (status changes from failure to success). Valid values: 2 to 10.4
UnhealthyThresholdintegerThe number of consecutive failed health checks required before a backend server is considered unhealthy (status changes from success to failure). Valid values: 2 to 10.4
HealthCheckReqstringThe request string for UDP listener health checks. Only letters and digits are allowed. Maximum length: 64 characters.hello
HealthCheckExpstringThe expected response string for UDP listener health checks. Only letters and digits are allowed. Maximum length: 64 characters.ok
TagsobjectThe tags attached to the listener.
Tags.Tagarray\<object\>The list of tags.
Tags.Tag.TagKeystringThe tag key. Valid values for N: 1 to 20. The key cannot be left blank and can contain up to 128 characters. It cannot start with aliyun or acs: and cannot contain http:// or https://.TestKey
Tags.Tag.TagValuestringThe tag value. Valid values for N: 1 to 20. The value can be empty and can contain up to 128 characters. It cannot start with acs: and cannot contain http:// or https://.TestValue

Examples

Success response

JSON format

{
  "VServerGroupId": "rsp-cige6j****",
  "Status": "stopped",
  "AclType": "white",
  "RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710",
  "HealthCheckConnectPort": 8080,
  "Description": "UDP_80",
  "Bandwidth": -1,
  "MasterSlaveServerGroupId": "rsp-0bfucw****",
  "BackendServerPort": 90,
  "AclStatus": "off",
  "UnhealthyThreshold": 4,
  "ProxyProtocolV2Enabled": false,
  "ListenerPort": 53,
  "HealthCheckInterval": 5,
  "HealthCheckExp": "ok",
  "AclId": "acl-uf60jwfiv6******",
  "Scheduler": "wrr",
  "HealthCheckConnectTimeout": 100,
  "HealthyThreshold": 4,
  "HealthCheckReq": "hello",
  "HealthCheck": "on",
  "AclIds": {
    "AclId": [
      ""
    ]
  },
  "LoadBalancerId": "lb-bp1rtfnodmywb43e*****",
  "Tags": {
    "Tag": [
      {
        "TagKey": "TestKey",
        "TagValue": "TestValue"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.