ChangeLoadBalancerListener

Changes a parameter of a load balancer listener. For example,
ChangeLoadBalancerListener uuid=dc0ee73ed875423a81234fc091e3ce70

Parameters

Name Description Optional Valid Value Starting Version
uuid The resource UUID. 3.4.0
connectionIdleTimeout Yes 3.4.0
maxConnection Yes 3.4.0
balancerAlgorithm Yes
  • roundrobin
  • leastconn
  • source
3.4.0
healthCheckTarget Yes 3.4.0
healthyThreshold Yes 3.4.0
unhealthyThreshold Yes 3.4.0
healthCheckInterval Yes 3.4.0
healthCheckProtocol The health check protocol. Yes
  • tcp
  • udp
  • http
3.9.0
healthCheckMethod The health check method. Yes
  • GET
  • HEAD
3.9.0
healthCheckURI The health check URI. Yes 3.9.0
healthCheckHttpCode The expected response code of the health code. Yes 3.9.0
aclStatus The access control status. Yes
  • enable
  • disable
3.9.0
userTags The user tags. For more information, see CreateUserTag. Yes 3.4.0
systemTags The system tags. For more information, see CreateSystemTag. Yes 3.4.0
timeout Yes
Note:
  • When you change a parameter of a load balancer listener in ZStack Cloud, you can set the weight of the backend server by adding the balancerWeight option to SystemTags.
    • Format of the balancerWeight option: balancerWeight::{nicUuid}::{weight} . Here, weight is the weight of the backend server. Weight range: 0-100, integer. Default value: 100.
    • Example: balancerWeight::{"c44007641c9040c6b2587e19b1b3e2b0"}::{100}