Skip to main content

DescribeLoadBalancerUDPListenerAttribute

Description

call the DescribeLoadBalancerUDPListenerAttribute to query the configuration of UDP listeners.

Request Method

POST

Request Path

/apsara/route/Slb/DescribeLoadBalancerUDPListenerAttribute

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
ListenerPortBODYintegerYes80the port used by the front end of the load balancing instance. value:1~65535.
regionIdBODYstringYesNo sample value for this parameter.region id
LoadBalancerIdBODYstringYeslb-bp1rtfnodmywb43e****load balancing instance ID.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
Statusstringstoppedthe current status of listening. Value:running or stopped. running: indicates that the listening is running normally. stopped: indicates that the listening operation is stopped.
MaxConnectioninteger10Maximum number of connections.
ListenerPortinteger80the port used by the front end of the load balancing instance.
VServerGroupIdstringrsp-cige6j****bound virtual server group ID.
HealthCheckIntervalinteger5the interval of health check, in seconds.
Descriptionstringaccess control description.access control description.
RequestIdstring365F4154-92F6-4AE4-92F8-7FF34B540710request ID.
UnhealthyThresholdinteger4unhealthy check threshold.
Schedulerstringwrrscheduling algorithm. wrr(Default value): The backend server with the higher the weight value, the higher the number of times (probability) it is polled. wlc: in addition to polling according to the weight value set by each backend server, also consider the actual load of the back-end server (I. e., the number of connections). when the weight value is the same, the number of times (probability) that the backend server with the smaller the current number of connections is polled is also higher. rr: distribute external requests to backend servers in sequence according to the access order.
HealthCheckstringonwhether to turn on health check. Value:on or off.
HealthCheckConnectTimeoutinteger100health check response timeout.
BackendServerPortinteger53the port used by the backend of the load balancing instance. Description If the back-end server group is a virtual server group, this parameter is not returned.
PersistenceTimeoutinteger0session hold timeout.
HealthCheckConnectPortinteger8080health check port. description in HealthCheck value is on is valid.
HealthCheckReqstringhelloUDP listens to the health check request string.
Bandwidthinteger-1The peak bandwidth of the monitor, in Mbps. Value: -1: for public network load balancing instances charged by traffic, the bandwidth peak value can be set to -1, that is, the bandwidth peak value is not limited. 1~5120: for a public network load balancing instance that is billed by bandwidth, you can set the peak bandwidth of each listener, but the sum of the peak bandwidth of all listeners cannot exceed the peak bandwidth of the instance.
HealthyThresholdinteger4health check threshold.
HealthCheckExpstringOKUDP listens to the health check response string.
MasterSlaveServerGroupIdstringrsp-0bfucw****the id of the bound primary and standby server group.

Example

Successful Response example

{
"Status":"stopped",
"MaxConnection":"10",
"ListenerPort":"80",
"VServerGroupId":"rsp-cige6j****",
"HealthCheckInterval":"5",
"Description":"access control description.",
"RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
"UnhealthyThreshold":"4",
"Scheduler":"wrr",
"HealthCheck":"on",
"HealthCheckConnectTimeout":"100",
"BackendServerPort":"53",
"PersistenceTimeout":"0",
"HealthCheckConnectPort":"8080",
"HealthCheckReq":"hello",
"Bandwidth":"-1",
"HealthyThreshold":"4",
"HealthCheckExp":"OK",
"MasterSlaveServerGroupId":"rsp-0bfucw****"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}