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 The connection timeout. Yes 4.6.0
maxConnection The maximum number of concurrent connections. Yes 4.6.0
balancerAlgorithm The load balancing algorithm. Yes
  • weightroundrobin
  • roundrobin
  • leastconn
  • source
4.6.0
healthCheckTarget The health check port. Yes 4.6.0
healthyThreshold The threshold of the healthy state. Yes 4.6.0
unhealthyThreshold The threshold of the unhealthy state. Yes 4.6.0
healthCheckInterval The health check interval. Yes 4.6.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
securityPolicyType The transport layer security policy. Yes
  • tls_cipher_policy_default
  • tls_cipher_policy_1_0
  • tls_cipher_policy_1_1
  • tls_cipher_policy_1_2
  • tls_cipher_policy_1_2_strict
  • tls_cipher_policy_1_2_strict_with_1_3
4.1.0
nbprocess The number of SLB processes. Yes 4.1.0
httpMode The HTTP Mode of SLB. Yes
  • http-keep-alive
  • http-server-close
  • http-tunnel
  • httpclose
  • forceclose
4.1.0
sessionPersistence The session persistence mode. Yes
  • disable
  • iphash
  • insert
  • rewrite
4.6.0
sessionIdleTimeout The session persistence time. Yes 4.6.0
cookieName The Cookie name. Yes 4.6.0
userTags The user tags. For more information, see CreateUserTag. Yes 4.6.0
systemTags The system tags. For more information, see CreateSystemTag. Yes 4.6.0
timeout Yes
httpRedirectHttps The http redirects https. Yes
  • disable
  • enable
4.7.21
redirectPort The redirect port. Yes 4.7.21
statusCode The redirect status code. Yes
  • 301
  • 302
  • 303
  • 307
  • 308
4.7.21
httpVersions The Load Balancer frontend network HTTP protocol version. Yes
  • h1
  • h2
5.0.0
tcpProxyProtocol The TCP Proxy Protocol agreement. Yes
  • v1
  • v2
  • disable
5.0.0
httpCompressAlgos The HTTP compression algorithm. Yes
  • deflate
  • raw-deflate
  • gzip
  • diasble
5.0.0
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}
CLI Command Manual | 5.4.12 | ZStack Cloud · ZCF | ZStack Resource Center