CreateLoadBalancerListener
Creates a load balancer listener. For
example,
CreateLoadBalancerListener name=lblistener loadBalancerUuid=bad56001c1f24cefa085fa9cf83f6424\
loadBalancerPort=22 instancePort=23Parameters
| Name | Description | Optional | Valid Value | Starting Version |
|---|---|---|---|---|
| loadBalancerUuid | The UUID of the load balancer listener. | 0.6 | ||
| certificateUuid | 2.3 | |||
| name | The name of the load balancer listener. | 0.6 | ||
| description | The detailed description of the load balancer listener. | Yes | 0.6 | |
| instancePort | The VM instance port. | Yes | 0.6 | |
| loadBalancerPort | The load balancer port. | 0.6 | ||
| protocol | The protocol. | Yes |
|
0.6 |
| resourceUuid | The resource UUID. | Yes | 0.6 | |
| instancePort | Yes | 3.9.0 | ||
| healthCheckProtocol | The health check protocol. | Yes |
|
3.9.0 |
| healthCheckMethod | The health check method. | Yes |
|
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 |
|
3.9.0 |
| aclUuids | The access control list. | Yes | 3.9.0 | |
| aclType | The access control type. | Yes |
|
3.9.0 |
| tagUuids | The tag UUID list. | Yes | 3.9.0 | |
| userTags | The user tags. For more information, see CreateUserTag. The resource type is LoadBalancerListenerVO. | Yes | 0.6 | |
| systemTags | The system tags. For more information, see CreateSystemTag. The resource type LoadBalancerListenerVO. | Yes | 0.6 | |
| httpVersions | The Load Balancer frontend network HTTP protocol version. | Yes |
|
5.0.0 |
| tcpProxyProtocol | The TCP Proxy Protocol agreement. | Yes |
|
5.0.0 |
| httpCompressAlgos | The HTTP compression algorithm. | Yes |
|
5.0.0 |
| timeout | Yes |
Note:
- When you create a load balancer listener in ZStack Cloud, you can set seven layers of health check
parameters by adding the healthCheckParameter option to
SystemTags.
- Format of the healthCheckParameter option:
healthCheckParameter::{parameter}. Here, the parameter can behealthCheckParameter::method:uri:expect-result. - Example:
healthCheckParameter::GET:/healthstatus.html:http_2xx
- Format of the healthCheckParameter option:
- When you create a load balancer listener in ZStack Cloud, you can set the access control status of
the listener by adding the accessControlStatus option to
SystemTags.
- Format of the accessControlStatus option:
accessControlStatus::{status} - Example:
accessControlStatus::enable
- Format of the accessControlStatus option:
- When you create a load balancer listener in ZStack Cloud, you can set whether to enable the
session persistence and specify the session persistence mode by adding
the sessionPersistence option to SystemTags.
- Format of the sessionPersistenceoption:
sessionPersistence::{%s}.. The value of %s can be disable/iphash/insert/rewrite. - Example:
sessionPersistence::insert.
- Format of the sessionPersistenceoption:
- When you create a load balancer listener in ZStack Cloud, you can specify the session persistence
time by adding the sessionIdleTimeout option to
SystemTags.
- Format of the sessionIdleTimeoutoption:
sessionIdleTimeout::{%s}. Here, %s is the session persistence time. Valid value: 30-3600. Unit:second. - Example:
sessionIdleTimeout::60
- Format of the sessionIdleTimeoutoption:
- When you create a load balancer listener in ZStack Cloud, you can set the rewritten cookie name by
adding the cookieName option to SystemTags.
- Format of the
validRegexValues::{%s}. Here, %s is the cookie name. The name must be 1 to 20 characters and can contain uppercase or lowercase letters, digits, hyphens (-), and underscores (_). - Example:
cookieName::zstack-cookie.
- Format of the
- When you create a load balancer listener in ZStack Cloud, you can set whether to enable http
redirect by adding the httpRedirectHttps option to
SystemTags.
- Format of the
httpRedirectHttps::{%s}. Here, the value of %s can be disable/enable. - Example:
httpRedirectHttps::enable
- Format of the
- When you create a load balancer listener in ZStack Cloud, you can set redirect port by adding
redirectPort option to SystemTags.
- Format of the
redirectPort::{%s}. Here, the number range of %s can be 1-65535. - Example:
redirectPort::80
- Format of the
- When you create a load balancer listener in ZStack Cloud, you can set redirect status code by
adding statusCode optional to SystemTags.
- Format of the
statusCode::{%s}. Here, the value of %s can be 301/302/303/307/308. - Example:
statusCode::302
- Format of the
