Queries the configuration of a UDP listener.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:DescribeLoadBalancerUDPListenerAttribute |
get |
*loadbalancer
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the Server Load Balancer instance. |
cn-hangzhou |
| LoadBalancerId |
string |
Yes |
The ID of the Classic Load Balancer instance. |
lb-bp1rtfnodmywb43e***** |
| ListenerPort |
integer |
Yes |
The frontend port used by the Classic Load Balancer instance. Valid values: 1 to 65535. |
80 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| VServerGroupId |
string |
The ID of the vServer group attached to the listener. |
rsp-cige6j**** |
| Status |
string |
The current status of the listener. Valid values:
|
stopped |
| AclType |
string |
The access control type:
Using a whitelist carries business risk. After you enable a whitelist, only IP addresses in the list can access the SLB listener. If you enable a whitelist but do not add any IP addresses to the policy group, the SLB listener forwards all requests.
If you enable a blacklist but do not add any IP addresses to the policy group, the SLB listener forwards all requests. |
white |
| RequestId |
string |
The request ID. |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
| HealthCheckConnectPort |
integer |
The port used for health checks. Valid values: 1 to 65535. If you do not specify this parameter, the backend server port (BackendServerPort) is used. Note
This parameter takes effect only when HealthCheck is set to on. |
8080 |
| Description |
string |
A custom name for the listener. |
UDP_80 |
| Bandwidth |
integer |
The maximum bandwidth for the listener, in Mbit/s. Valid values:
|
-1 |
| MasterSlaveServerGroupId |
string |
The ID of the primary/secondary server group attached to the listener. |
rsp-0bfucw**** |
| BackendServerPort |
integer |
The backend port used by the Classic Load Balancer instance. Note
This parameter is not returned if the backend server group is a vServer group. |
90 |
| AclStatus |
string |
Whether access control is enabled. Valid values: on or off (default). |
off |
| UnhealthyThreshold |
integer |
The unhealthy threshold. The number of consecutive failed health checks before the health check status of a backend server changes from success to failure. Valid values: 2 to 10. |
4 |
| ProxyProtocolV2Enabled |
boolean |
Whether the Proxy Protocol version 2 is enabled to pass client source IP addresses to backend servers. Valid values:
|
false |
| ListenerPort |
integer |
The frontend port used by the Classic Load Balancer instance. |
53 |
| HealthCheckInterval |
integer |
The interval between health checks, in seconds. Valid values: 1 to 50. |
5 |
| HealthCheckExp |
string |
The response string for UDP listener health checks. This string can contain only letters and digits. Maximum length: 64 characters. |
ok |
| AclId |
string |
The ID of the access control policy group. |
acl-uf60jwfiv6****** |
| Scheduler |
string |
The scheduling algorithm. Valid values:
|
wrr |
| HealthCheckConnectTimeout |
integer |
The time to wait for a response from a health check. If an ECS instance does not respond within this time, the health check fails. Valid values: 1 to 300 seconds. |
100 |
| HealthyThreshold |
integer |
The healthy threshold. The number of consecutive successful health checks before the health check status of a backend server changes from failure to success. Valid values: 2 to 10. |
4 |
| HealthCheckReq |
string |
The request string for UDP listener health checks. This string can contain only letters and digits. Maximum length: 64 characters. |
hello |
| HealthCheck |
string |
Whether health checks are enabled. Valid values:
|
on |
| AclIds |
object |
||
| AclId |
array |
The ID of the access control policy group. |
|
| LoadBalancerId |
string |
The ID of the Classic Load Balancer instance. |
lb-bp1rtfnodmywb43e***** |
| Tags |
object |
||
| Tag |
array<object> |
The list of tags. |
|
|
object |
The list of tags. |
||
| TagKey |
string |
The tag key for the listener. Valid values for N: 1 to 20. You cannot specify an empty string. Maximum length: 128 characters. It cannot start with |
TestKey |
| TagValue |
string |
The tag value for the listener. Valid values for N: 1 to 20. You can specify an empty string. Maximum length: 128 characters. It cannot start with |
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.