Document navigation

ChangeLoadBalancerListener

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

Parameters

Name Description Optional Valid Value Starting Version
uuid The resource UUID. 3.4
connectionIdleTimeout The connection timeout. Yes 3.4
instancePort The backend server port. Yes 5.5.38
maxConnection The maximum number of concurrent connections. Yes 3.4
balancerAlgorithm The load balancing algorithm. Yes
  • weightroundrobin
  • roundrobin
  • leastconn
  • source
3.4
healthCheckTarget The health check port. Yes 3.4
healthyThreshold The threshold of the healthy state. Yes 3.4
unhealthyThreshold The threshold of the unhealthy state. Yes 3.4
healthCheckInterval The health check interval. Yes 3.4
healthCheckProtocol The health check protocol. Yes
  • tcp
  • udp
  • http
  • https
  • none
3.9
healthCheckTimeout The health check timeout. Yes 5.5.38
healthCheckMethod The health check method. Yes
  • GET
  • HEAD
3.9
healthCheckURI The health check URI. Yes 3.9
healthCheckHttpCode The expected response code of the health code. Yes 3.9
aclStatus The access control status. Yes
  • enable
  • disable
3.9
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
nbprocess The number of SLB processes. Yes 4.1
httpMode The HTTP Mode of SLB. Yes
  • http-keep-alive
  • http-server-close
  • httpclose
4.1
sessionPersistence The session persistence mode. Yes
  • disable
  • iphash
  • insert
  • rewrite
4.6
sessionIdleTimeout The session persistence time. Yes 4.6
cookieName The Cookie name. Yes 4.6
httpVersions The Load Balancer frontend network HTTP protocol version. Yes 5.0.0
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
tcpProxyProtocol The TCP Proxy Protocol agreement. Yes 5.0.0
httpCompressAlgos The HTTP compression algorithm. Yes 5.0.0
forwardMode The forwarding mode when the listener uses the IPVS data plane. This parameter can only be specified when creating the listener and cannot be modified afterwards. Yes
  • full_nat
  • nat
  • dr
5.5.28
systemTags The system tags. For more information, see CreateSystemTag. Yes 3.4
userTags The user tags. For more information, see CreateUserTag. Yes 3.4
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.5.38 | ZStack Cloud · ZCF | ZStack Resource Center