published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
The listener monitors user access requests received by the CLB instance based on the specified protocol and port. CLB forwards access requests to healthy backend servers in the associated backend server group according to the scheduling algorithm configured for the listener.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
clbListenerDemo:
type: volcenginecc:clb:Listener
name: ClbListenerDemo
properties:
aclIds:
- acl-mjd01crvppts5smt1bsxxxxx
aclStatus: on
aclType: black
connectionDrainEnabled: on
connectionDrainTimeout: 900
description: ClbListenerDemo description
enabled: on
establishedTimeout: 300
serverGroupId: rsp-rs11ie8u6neov0x58bxxxxx
healthCheck:
enabled: on
healthy_threshold: 3
interval: 5
timeout: 2
unhealthy_threshold: 3
port: 0
udp_request: test
udp_expect: test
listenerName: ClbListenerDemo
loadBalancerId: clb-rs1187938g00v0x58nxxxxx
persistenceTimeout: 1000
persistenceType: source_ip
protocol: UDP
port: 5001
scheduler: wrr
bandwidth: 1
proxyProtocolType: standard
tags:
- key: env
value: test
Create Listener Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Listener(name: string, args: ListenerArgs, opts?: CustomResourceOptions);@overload
def Listener(resource_name: str,
args: ListenerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Listener(resource_name: str,
opts: Optional[ResourceOptions] = None,
load_balancer_id: Optional[str] = None,
server_group_id: Optional[str] = None,
protocol: Optional[str] = None,
port: Optional[int] = None,
health_check: Optional[ListenerHealthCheckArgs] = None,
ca_enabled: Optional[str] = None,
cert_center_certificate_id: Optional[str] = None,
certificate_id: Optional[str] = None,
certificate_source: Optional[str] = None,
client_body_timeout: Optional[int] = None,
client_header_timeout: Optional[int] = None,
connection_drain_enabled: Optional[str] = None,
connection_drain_timeout: Optional[int] = None,
cookie: Optional[str] = None,
cps: Optional[int] = None,
description: Optional[str] = None,
domain_extensions: Optional[Sequence[ListenerDomainExtensionArgs]] = None,
enabled: Optional[str] = None,
end_port: Optional[int] = None,
established_timeout: Optional[int] = None,
http2_enabled: Optional[str] = None,
acl_ids: Optional[Sequence[str]] = None,
proxy_read_timeout: Optional[int] = None,
listener_name: Optional[str] = None,
ca_certificate_id: Optional[str] = None,
max_connections: Optional[int] = None,
persistence_timeout: Optional[int] = None,
persistence_type: Optional[str] = None,
bandwidth: Optional[int] = None,
acl_type: Optional[str] = None,
proxy_connect_timeout: Optional[int] = None,
proxy_protocol_type: Optional[str] = None,
keepalive_timeout: Optional[int] = None,
proxy_send_timeout: Optional[int] = None,
scheduler: Optional[str] = None,
security_policy_id: Optional[str] = None,
send_timeout: Optional[int] = None,
acl_status: Optional[str] = None,
start_port: Optional[int] = None,
tags: Optional[Sequence[ListenerTagArgs]] = None)func NewListener(ctx *Context, name string, args ListenerArgs, opts ...ResourceOption) (*Listener, error)public Listener(string name, ListenerArgs args, CustomResourceOptions? opts = null)
public Listener(String name, ListenerArgs args)
public Listener(String name, ListenerArgs args, CustomResourceOptions options)
type: volcenginecc:clb:Listener
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ListenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ListenerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ListenerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ListenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ListenerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Listener Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Listener resource accepts the following input properties:
- Load
Balancer stringId - ID of the CLB instance.
- Port int
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- Protocol string
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- Server
Group stringId - ID of the backend server group associated with the listener.
- Acl
Ids List<string> - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- Acl
Status string - Enable access control. Values: on: enabled. off (default): disabled.
- Acl
Type string - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- Bandwidth int
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- Ca
Certificate stringId - CA certificate for mutual authentication.
- Ca
Enabled string - Enable mutual authentication. on: enabled. off (default): disabled.
- Cert
Center stringCertificate Id - Certificate ID from Certificate Center.
- Certificate
Id string - Certificate ID from the CLB certificate management module.
- Certificate
Source string - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- Client
Body intTimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Client
Header intTimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Connection
Drain stringEnabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- Connection
Drain intTimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- string
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- Cps int
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- Description string
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- Domain
Extensions List<Volcengine.Listener Domain Extension> - Enabled string
- Enable listener. on (default): enabled. off: disabled.
- End
Port int - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- Established
Timeout int - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- Health
Check Volcengine.Listener Health Check - Health check information.
- Http2Enabled string
- Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- Keepalive
Timeout int - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Listener
Name string - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- Max
Connections int - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- Persistence
Timeout int - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- Persistence
Type string - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- Proxy
Connect intTimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Proxy
Protocol stringType - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- Proxy
Read intTimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Proxy
Send intTimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Scheduler string
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- Security
Policy stringId - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- Send
Timeout int - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Start
Port int - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
-
List<Volcengine.
Listener Tag>
- Load
Balancer stringId - ID of the CLB instance.
- Port int
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- Protocol string
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- Server
Group stringId - ID of the backend server group associated with the listener.
- Acl
Ids []string - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- Acl
Status string - Enable access control. Values: on: enabled. off (default): disabled.
- Acl
Type string - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- Bandwidth int
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- Ca
Certificate stringId - CA certificate for mutual authentication.
- Ca
Enabled string - Enable mutual authentication. on: enabled. off (default): disabled.
- Cert
Center stringCertificate Id - Certificate ID from Certificate Center.
- Certificate
Id string - Certificate ID from the CLB certificate management module.
- Certificate
Source string - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- Client
Body intTimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Client
Header intTimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Connection
Drain stringEnabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- Connection
Drain intTimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- string
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- Cps int
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- Description string
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- Domain
Extensions []ListenerDomain Extension Args - Enabled string
- Enable listener. on (default): enabled. off: disabled.
- End
Port int - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- Established
Timeout int - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- Health
Check ListenerHealth Check Args - Health check information.
- Http2Enabled string
- Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- Keepalive
Timeout int - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Listener
Name string - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- Max
Connections int - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- Persistence
Timeout int - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- Persistence
Type string - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- Proxy
Connect intTimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Proxy
Protocol stringType - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- Proxy
Read intTimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Proxy
Send intTimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Scheduler string
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- Security
Policy stringId - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- Send
Timeout int - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Start
Port int - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
-
[]Listener
Tag Args
- load
Balancer StringId - ID of the CLB instance.
- port Integer
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- protocol String
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- server
Group StringId - ID of the backend server group associated with the listener.
- acl
Ids List<String> - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- acl
Status String - Enable access control. Values: on: enabled. off (default): disabled.
- acl
Type String - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- bandwidth Integer
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- ca
Certificate StringId - CA certificate for mutual authentication.
- ca
Enabled String - Enable mutual authentication. on: enabled. off (default): disabled.
- cert
Center StringCertificate Id - Certificate ID from Certificate Center.
- certificate
Id String - Certificate ID from the CLB certificate management module.
- certificate
Source String - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- client
Body IntegerTimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- client
Header IntegerTimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- connection
Drain StringEnabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- connection
Drain IntegerTimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- String
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- cps Integer
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- description String
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- domain
Extensions List<ListenerDomain Extension> - enabled String
- Enable listener. on (default): enabled. off: disabled.
- end
Port Integer - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- established
Timeout Integer - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- health
Check ListenerHealth Check - Health check information.
- http2Enabled String
- Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- keepalive
Timeout Integer - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- listener
Name String - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- max
Connections Integer - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- persistence
Timeout Integer - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- persistence
Type String - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- proxy
Connect IntegerTimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Protocol StringType - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- proxy
Read IntegerTimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Send IntegerTimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- scheduler String
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- security
Policy StringId - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- send
Timeout Integer - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- start
Port Integer - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
-
List<Listener
Tag>
- load
Balancer stringId - ID of the CLB instance.
- port number
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- protocol string
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- server
Group stringId - ID of the backend server group associated with the listener.
- acl
Ids string[] - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- acl
Status string - Enable access control. Values: on: enabled. off (default): disabled.
- acl
Type string - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- bandwidth number
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- ca
Certificate stringId - CA certificate for mutual authentication.
- ca
Enabled string - Enable mutual authentication. on: enabled. off (default): disabled.
- cert
Center stringCertificate Id - Certificate ID from Certificate Center.
- certificate
Id string - Certificate ID from the CLB certificate management module.
- certificate
Source string - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- client
Body numberTimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- client
Header numberTimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- connection
Drain stringEnabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- connection
Drain numberTimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- string
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- cps number
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- description string
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- domain
Extensions ListenerDomain Extension[] - enabled string
- Enable listener. on (default): enabled. off: disabled.
- end
Port number - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- established
Timeout number - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- health
Check ListenerHealth Check - Health check information.
- http2Enabled string
- Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- keepalive
Timeout number - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- listener
Name string - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- max
Connections number - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- persistence
Timeout number - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- persistence
Type string - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- proxy
Connect numberTimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Protocol stringType - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- proxy
Read numberTimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Send numberTimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- scheduler string
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- security
Policy stringId - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- send
Timeout number - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- start
Port number - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
-
Listener
Tag[]
- load_
balancer_ strid - ID of the CLB instance.
- port int
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- protocol str
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- server_
group_ strid - ID of the backend server group associated with the listener.
- acl_
ids Sequence[str] - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- acl_
status str - Enable access control. Values: on: enabled. off (default): disabled.
- acl_
type str - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- bandwidth int
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- ca_
certificate_ strid - CA certificate for mutual authentication.
- ca_
enabled str - Enable mutual authentication. on: enabled. off (default): disabled.
- cert_
center_ strcertificate_ id - Certificate ID from Certificate Center.
- certificate_
id str - Certificate ID from the CLB certificate management module.
- certificate_
source str - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- client_
body_ inttimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- client_
header_ inttimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- connection_
drain_ strenabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- connection_
drain_ inttimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- str
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- cps int
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- description str
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- domain_
extensions Sequence[ListenerDomain Extension Args] - enabled str
- Enable listener. on (default): enabled. off: disabled.
- end_
port int - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- established_
timeout int - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- health_
check ListenerHealth Check Args - Health check information.
- http2_
enabled str - Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- keepalive_
timeout int - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- listener_
name str - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- max_
connections int - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- persistence_
timeout int - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- persistence_
type str - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- proxy_
connect_ inttimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy_
protocol_ strtype - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- proxy_
read_ inttimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy_
send_ inttimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- scheduler str
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- security_
policy_ strid - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- send_
timeout int - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- start_
port int - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
-
Sequence[Listener
Tag Args]
- load
Balancer StringId - ID of the CLB instance.
- port Number
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- protocol String
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- server
Group StringId - ID of the backend server group associated with the listener.
- acl
Ids List<String> - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- acl
Status String - Enable access control. Values: on: enabled. off (default): disabled.
- acl
Type String - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- bandwidth Number
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- ca
Certificate StringId - CA certificate for mutual authentication.
- ca
Enabled String - Enable mutual authentication. on: enabled. off (default): disabled.
- cert
Center StringCertificate Id - Certificate ID from Certificate Center.
- certificate
Id String - Certificate ID from the CLB certificate management module.
- certificate
Source String - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- client
Body NumberTimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- client
Header NumberTimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- connection
Drain StringEnabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- connection
Drain NumberTimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- String
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- cps Number
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- description String
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- domain
Extensions List<Property Map> - enabled String
- Enable listener. on (default): enabled. off: disabled.
- end
Port Number - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- established
Timeout Number - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- health
Check Property Map - Health check information.
- http2Enabled String
- Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- keepalive
Timeout Number - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- listener
Name String - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- max
Connections Number - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- persistence
Timeout Number - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- persistence
Type String - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- proxy
Connect NumberTimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Protocol StringType - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- proxy
Read NumberTimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Send NumberTimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- scheduler String
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- security
Policy StringId - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- send
Timeout Number - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- start
Port Number - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Listener resource produces the following output properties:
- Created
Time string - Creation time of the listener.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Id string - Listener ID.
- Rule
Ids List<string> - List of rule IDs bound to the listener.
- Status string
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
- Updated
Time string - Last operation time of the listener.
- Waf
Protection stringEnabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
- Created
Time string - Creation time of the listener.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Id string - Listener ID.
- Rule
Ids []string - List of rule IDs bound to the listener.
- Status string
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
- Updated
Time string - Last operation time of the listener.
- Waf
Protection stringEnabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
- created
Time String - Creation time of the listener.
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Id String - Listener ID.
- rule
Ids List<String> - List of rule IDs bound to the listener.
- status String
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
- updated
Time String - Last operation time of the listener.
- waf
Protection StringEnabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
- created
Time string - Creation time of the listener.
- id string
- The provider-assigned unique ID for this managed resource.
- listener
Id string - Listener ID.
- rule
Ids string[] - List of rule IDs bound to the listener.
- status string
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
- updated
Time string - Last operation time of the listener.
- waf
Protection stringEnabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
- created_
time str - Creation time of the listener.
- id str
- The provider-assigned unique ID for this managed resource.
- listener_
id str - Listener ID.
- rule_
ids Sequence[str] - List of rule IDs bound to the listener.
- status str
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
- updated_
time str - Last operation time of the listener.
- waf_
protection_ strenabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
- created
Time String - Creation time of the listener.
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Id String - Listener ID.
- rule
Ids List<String> - List of rule IDs bound to the listener.
- status String
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
- updated
Time String - Last operation time of the listener.
- waf
Protection StringEnabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
Look up Existing Listener Resource
Get an existing Listener resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ListenerState, opts?: CustomResourceOptions): Listener@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl_ids: Optional[Sequence[str]] = None,
acl_status: Optional[str] = None,
acl_type: Optional[str] = None,
bandwidth: Optional[int] = None,
ca_certificate_id: Optional[str] = None,
ca_enabled: Optional[str] = None,
cert_center_certificate_id: Optional[str] = None,
certificate_id: Optional[str] = None,
certificate_source: Optional[str] = None,
client_body_timeout: Optional[int] = None,
client_header_timeout: Optional[int] = None,
connection_drain_enabled: Optional[str] = None,
connection_drain_timeout: Optional[int] = None,
cookie: Optional[str] = None,
cps: Optional[int] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
domain_extensions: Optional[Sequence[ListenerDomainExtensionArgs]] = None,
enabled: Optional[str] = None,
end_port: Optional[int] = None,
established_timeout: Optional[int] = None,
health_check: Optional[ListenerHealthCheckArgs] = None,
http2_enabled: Optional[str] = None,
keepalive_timeout: Optional[int] = None,
listener_id: Optional[str] = None,
listener_name: Optional[str] = None,
load_balancer_id: Optional[str] = None,
max_connections: Optional[int] = None,
persistence_timeout: Optional[int] = None,
persistence_type: Optional[str] = None,
port: Optional[int] = None,
protocol: Optional[str] = None,
proxy_connect_timeout: Optional[int] = None,
proxy_protocol_type: Optional[str] = None,
proxy_read_timeout: Optional[int] = None,
proxy_send_timeout: Optional[int] = None,
rule_ids: Optional[Sequence[str]] = None,
scheduler: Optional[str] = None,
security_policy_id: Optional[str] = None,
send_timeout: Optional[int] = None,
server_group_id: Optional[str] = None,
start_port: Optional[int] = None,
status: Optional[str] = None,
tags: Optional[Sequence[ListenerTagArgs]] = None,
updated_time: Optional[str] = None,
waf_protection_enabled: Optional[str] = None) -> Listenerfunc GetListener(ctx *Context, name string, id IDInput, state *ListenerState, opts ...ResourceOption) (*Listener, error)public static Listener Get(string name, Input<string> id, ListenerState? state, CustomResourceOptions? opts = null)public static Listener get(String name, Output<String> id, ListenerState state, CustomResourceOptions options)resources: _: type: volcenginecc:clb:Listener get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acl
Ids List<string> - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- Acl
Status string - Enable access control. Values: on: enabled. off (default): disabled.
- Acl
Type string - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- Bandwidth int
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- Ca
Certificate stringId - CA certificate for mutual authentication.
- Ca
Enabled string - Enable mutual authentication. on: enabled. off (default): disabled.
- Cert
Center stringCertificate Id - Certificate ID from Certificate Center.
- Certificate
Id string - Certificate ID from the CLB certificate management module.
- Certificate
Source string - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- Client
Body intTimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Client
Header intTimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Connection
Drain stringEnabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- Connection
Drain intTimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- string
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- Cps int
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- Created
Time string - Creation time of the listener.
- Description string
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- Domain
Extensions List<Volcengine.Listener Domain Extension> - Enabled string
- Enable listener. on (default): enabled. off: disabled.
- End
Port int - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- Established
Timeout int - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- Health
Check Volcengine.Listener Health Check - Health check information.
- Http2Enabled string
- Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- Keepalive
Timeout int - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Listener
Id string - Listener ID.
- Listener
Name string - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- Load
Balancer stringId - ID of the CLB instance.
- Max
Connections int - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- Persistence
Timeout int - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- Persistence
Type string - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- Port int
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- Protocol string
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- Proxy
Connect intTimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Proxy
Protocol stringType - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- Proxy
Read intTimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Proxy
Send intTimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Rule
Ids List<string> - List of rule IDs bound to the listener.
- Scheduler string
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- Security
Policy stringId - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- Send
Timeout int - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Server
Group stringId - ID of the backend server group associated with the listener.
- Start
Port int - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
- Status string
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
-
List<Volcengine.
Listener Tag> - Updated
Time string - Last operation time of the listener.
- Waf
Protection stringEnabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
- Acl
Ids []string - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- Acl
Status string - Enable access control. Values: on: enabled. off (default): disabled.
- Acl
Type string - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- Bandwidth int
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- Ca
Certificate stringId - CA certificate for mutual authentication.
- Ca
Enabled string - Enable mutual authentication. on: enabled. off (default): disabled.
- Cert
Center stringCertificate Id - Certificate ID from Certificate Center.
- Certificate
Id string - Certificate ID from the CLB certificate management module.
- Certificate
Source string - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- Client
Body intTimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Client
Header intTimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Connection
Drain stringEnabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- Connection
Drain intTimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- string
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- Cps int
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- Created
Time string - Creation time of the listener.
- Description string
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- Domain
Extensions []ListenerDomain Extension Args - Enabled string
- Enable listener. on (default): enabled. off: disabled.
- End
Port int - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- Established
Timeout int - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- Health
Check ListenerHealth Check Args - Health check information.
- Http2Enabled string
- Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- Keepalive
Timeout int - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Listener
Id string - Listener ID.
- Listener
Name string - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- Load
Balancer stringId - ID of the CLB instance.
- Max
Connections int - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- Persistence
Timeout int - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- Persistence
Type string - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- Port int
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- Protocol string
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- Proxy
Connect intTimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Proxy
Protocol stringType - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- Proxy
Read intTimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Proxy
Send intTimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Rule
Ids []string - List of rule IDs bound to the listener.
- Scheduler string
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- Security
Policy stringId - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- Send
Timeout int - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- Server
Group stringId - ID of the backend server group associated with the listener.
- Start
Port int - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
- Status string
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
-
[]Listener
Tag Args - Updated
Time string - Last operation time of the listener.
- Waf
Protection stringEnabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
- acl
Ids List<String> - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- acl
Status String - Enable access control. Values: on: enabled. off (default): disabled.
- acl
Type String - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- bandwidth Integer
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- ca
Certificate StringId - CA certificate for mutual authentication.
- ca
Enabled String - Enable mutual authentication. on: enabled. off (default): disabled.
- cert
Center StringCertificate Id - Certificate ID from Certificate Center.
- certificate
Id String - Certificate ID from the CLB certificate management module.
- certificate
Source String - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- client
Body IntegerTimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- client
Header IntegerTimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- connection
Drain StringEnabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- connection
Drain IntegerTimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- String
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- cps Integer
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- created
Time String - Creation time of the listener.
- description String
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- domain
Extensions List<ListenerDomain Extension> - enabled String
- Enable listener. on (default): enabled. off: disabled.
- end
Port Integer - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- established
Timeout Integer - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- health
Check ListenerHealth Check - Health check information.
- http2Enabled String
- Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- keepalive
Timeout Integer - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- listener
Id String - Listener ID.
- listener
Name String - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- load
Balancer StringId - ID of the CLB instance.
- max
Connections Integer - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- persistence
Timeout Integer - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- persistence
Type String - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- port Integer
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- protocol String
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- proxy
Connect IntegerTimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Protocol StringType - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- proxy
Read IntegerTimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Send IntegerTimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- rule
Ids List<String> - List of rule IDs bound to the listener.
- scheduler String
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- security
Policy StringId - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- send
Timeout Integer - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- server
Group StringId - ID of the backend server group associated with the listener.
- start
Port Integer - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
- status String
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
-
List<Listener
Tag> - updated
Time String - Last operation time of the listener.
- waf
Protection StringEnabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
- acl
Ids string[] - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- acl
Status string - Enable access control. Values: on: enabled. off (default): disabled.
- acl
Type string - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- bandwidth number
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- ca
Certificate stringId - CA certificate for mutual authentication.
- ca
Enabled string - Enable mutual authentication. on: enabled. off (default): disabled.
- cert
Center stringCertificate Id - Certificate ID from Certificate Center.
- certificate
Id string - Certificate ID from the CLB certificate management module.
- certificate
Source string - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- client
Body numberTimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- client
Header numberTimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- connection
Drain stringEnabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- connection
Drain numberTimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- string
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- cps number
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- created
Time string - Creation time of the listener.
- description string
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- domain
Extensions ListenerDomain Extension[] - enabled string
- Enable listener. on (default): enabled. off: disabled.
- end
Port number - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- established
Timeout number - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- health
Check ListenerHealth Check - Health check information.
- http2Enabled string
- Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- keepalive
Timeout number - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- listener
Id string - Listener ID.
- listener
Name string - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- load
Balancer stringId - ID of the CLB instance.
- max
Connections number - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- persistence
Timeout number - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- persistence
Type string - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- port number
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- protocol string
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- proxy
Connect numberTimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Protocol stringType - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- proxy
Read numberTimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Send numberTimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- rule
Ids string[] - List of rule IDs bound to the listener.
- scheduler string
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- security
Policy stringId - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- send
Timeout number - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- server
Group stringId - ID of the backend server group associated with the listener.
- start
Port number - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
- status string
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
-
Listener
Tag[] - updated
Time string - Last operation time of the listener.
- waf
Protection stringEnabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
- acl_
ids Sequence[str] - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- acl_
status str - Enable access control. Values: on: enabled. off (default): disabled.
- acl_
type str - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- bandwidth int
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- ca_
certificate_ strid - CA certificate for mutual authentication.
- ca_
enabled str - Enable mutual authentication. on: enabled. off (default): disabled.
- cert_
center_ strcertificate_ id - Certificate ID from Certificate Center.
- certificate_
id str - Certificate ID from the CLB certificate management module.
- certificate_
source str - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- client_
body_ inttimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- client_
header_ inttimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- connection_
drain_ strenabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- connection_
drain_ inttimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- str
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- cps int
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- created_
time str - Creation time of the listener.
- description str
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- domain_
extensions Sequence[ListenerDomain Extension Args] - enabled str
- Enable listener. on (default): enabled. off: disabled.
- end_
port int - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- established_
timeout int - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- health_
check ListenerHealth Check Args - Health check information.
- http2_
enabled str - Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- keepalive_
timeout int - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- listener_
id str - Listener ID.
- listener_
name str - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- load_
balancer_ strid - ID of the CLB instance.
- max_
connections int - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- persistence_
timeout int - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- persistence_
type str - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- port int
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- protocol str
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- proxy_
connect_ inttimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy_
protocol_ strtype - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- proxy_
read_ inttimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy_
send_ inttimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- rule_
ids Sequence[str] - List of rule IDs bound to the listener.
- scheduler str
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- security_
policy_ strid - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- send_
timeout int - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- server_
group_ strid - ID of the backend server group associated with the listener.
- start_
port int - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
- status str
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
-
Sequence[Listener
Tag Args] - updated_
time str - Last operation time of the listener.
- waf_
protection_ strenabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
- acl
Ids List<String> - ID of the access control policy group bound to the listener. Returned only when the AclStatus parameter is set to on.
- acl
Status String - Enable access control. Values: on: enabled. off (default): disabled.
- acl
Type String - Access control mode. white: Allowlist. black: Denylist. This parameter is valid only when the AclStatus parameter is on.
- bandwidth Number
- Bandwidth limit for the listener, which means this listener exclusively uses the bandwidth of the CLB instance. Unit: Mbps. -1 (default): This listener does not exclusively use CLB bandwidth and shares the non-exclusive bandwidth of the CLB instance with other listeners. Value range: 1 to the non-exclusive bandwidth of the CLB instance.
- ca
Certificate StringId - CA certificate for mutual authentication.
- ca
Enabled String - Enable mutual authentication. on: enabled. off (default): disabled.
- cert
Center StringCertificate Id - Certificate ID from Certificate Center.
- certificate
Id String - Certificate ID from the CLB certificate management module.
- certificate
Source String - Certificate source. clb (default): certificate uploaded to CLB. cert_center: certificate uploaded to Certificate Center. user: certificate uploaded by user.
- client
Body NumberTimeout - Timeout for reading the client request body. This timeout applies only between two consecutive read operations, not the entire request transmission. Range: 30–120 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- client
Header NumberTimeout - Timeout for reading the client request header. Value range: 30–120 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- connection
Drain StringEnabled - Whether the listener enables graceful connection termination. on: enabled. off: not enabled. When Protocol returns HTTP or HTTPS, this parameter always returns off.
- connection
Drain NumberTimeout - Timeout for graceful connection termination, in seconds. If ConnectionDrainEnabled returns off, this parameter returns 0.
- String
- Name of the session persistence cookie configured on the backend server. This parameter is valid and required only when PersistenceType is set to server. Only letters, numbers, underscores (_), and hyphens (-) are allowed. Length must be between 1 and 200 characters.
- cps Number
- Maximum number of new connections per second. -1 (default): No limit, which means the maximum number of new connections allowed by the CLB instance. Value range: 1 to the maximum number of new connections allowed by the CLB instance.
- created
Time String - Creation time of the listener.
- description String
- Listener description. Must start with a letter, digit, or Chinese character. Can include letters, digits, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 0–255 characters. If not specified, the default is an empty string.
- domain
Extensions List<Property Map> - enabled String
- Enable listener. on (default): enabled. off: disabled.
- end
Port Number - End port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required and must be greater than startPort.
- established
Timeout Number - Listener connection timeout. This parameter is valid only when Protocol is set to TCP or UDP. Values: TCP protocol: 10–900 seconds, default is 900 seconds. UDP protocol: 1–300 seconds, default is 90 seconds.
- health
Check Property Map - Health check information.
- http2Enabled String
- Whether the listener enables frontend HTTP 2.0 protocol. This parameter is valid only when Protocol is set to HTTPS. Values: on: enabled. off (default): disabled.
- keepalive
Timeout Number - Keep-alive timeout between the client and CLB. Range: 0–900 seconds, default is 75 seconds. 0 disables keep-alive. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- listener
Id String - Listener ID.
- listener
Name String - Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If left blank, 'Protocol-Port' will be used as the default listener name.
- load
Balancer StringId - ID of the CLB instance.
- max
Connections Number - Maximum concurrent connections limit. -1 (default): unlimited (up to the maximum concurrent connections supported by the CLB instance). Value range: 1 to the maximum concurrent connections limit of the CLB instance.
- persistence
Timeout Number - Session persistence timeout, in seconds. The value range depends on the PersistenceType parameter. When PersistenceType is set to source_ip, the range is 1–3600. When PersistenceType is set to insert, the range is 1–86400.
- persistence
Type String - Session persistence type. Values: off (default): session persistence disabled. source_ip: source IP address, valid only when Protocol is TCP or UDP. insert: insert Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr. server: rewrite Cookie, valid only when Protocol is HTTP or HTTPS and Scheduler is wrr.
- port Number
- Port used by the listener to receive requests. Value range: 0–65535. When the Protocol parameter is 'TCP' or 'UDP', 0 is supported, which enables listening on all ports.
- protocol String
- Listener protocol. Includes: TCP, UDP, HTTP, HTTPS.
- proxy
Connect NumberTimeout - Connection establishment timeout between CLB and backend server. Recommended to be greater than the health check timeout. Range: 4–120 seconds, default is 4. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Protocol StringType - Enable Proxy-Protocol. This parameter is valid only when Protocol is TCP or UDP. Values: off (default): disabled. standard: enabled.
- proxy
Read NumberTimeout - Timeout for CLB to read responses from backend servers. This timeout applies only between two consecutive read operations, not for the entire response transmission. Value range: 30–3600 seconds. Default: 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- proxy
Send NumberTimeout - Timeout for CLB to transmit requests to backend servers. This timeout applies only between two consecutive write operations, not the entire request transmission process. Value range: 30–3600 seconds. Default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- rule
Ids List<String> - List of rule IDs bound to the listener.
- scheduler String
- Scheduling algorithm used by the listener. wrr (default): Weighted round robin. wlc: Weighted least connections. sh: Source address hash.
- security
Policy StringId - TLS security policy for HTTPS listeners. This parameter is valid only when Protocol is set to HTTPS. Values: defaultpolicy (default): supports SSL v3, TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy10: supports TLS v1.0, TLS v1.1, TLS v1.2. tlscipherpolicy11: supports TLS v1.1, TLS v1.2. tlscipherpolicy12: supports TLS v1.2. tlscipherpolicy12strict: supports TLS v1.2.
- send
Timeout Number - Timeout for CLB to send responses to the client. This timeout applies only between two consecutive write operations, not the entire response transmission. Range: 1–3600 seconds, default is 60 seconds. This parameter is valid only when Protocol is set to HTTP or HTTPS.
- server
Group StringId - ID of the backend server group associated with the listener.
- start
Port Number - Start port for all-port listening. Range: 1–65535. When Port is '0', this parameter is required.
- status String
- Listener status. Creating: being created. Active: running. Deleting: being deleted. Disabled: disabled.
- List<Property Map>
- updated
Time String - Last operation time of the listener.
- waf
Protection StringEnabled - Send traffic passing through the Layer 7 listener to the Web Application Firewall for inspection and filtering. on: yes. off: no.
Supporting Types
ListenerDomainExtension, ListenerDomainExtensionArgs
- Cert
Center stringCertificate Id - Certificate ID of the extended domain name.
- Certificate
Source string - Certificate source for the extended domain name to be added. Value: cert_center: SSL certificate from Volcano Engine Certificate Center. This parameter is required when adding an extended domain name.
- Domain string
- Domain name. Supports both wildcard and exact domain names. Specifications: 1. Must contain at least one '.', and cannot start or end with '.'. 2. Only letters, numbers, '.', '-', and '' are allowed. 3. Length must be between 1 and 128 characters. 4. Wildcard domain: Use '' to replace one or more characters. 5. Exact domain: A domain name that strictly follows domain name specifications.
- Cert
Center stringCertificate Id - Certificate ID of the extended domain name.
- Certificate
Source string - Certificate source for the extended domain name to be added. Value: cert_center: SSL certificate from Volcano Engine Certificate Center. This parameter is required when adding an extended domain name.
- Domain string
- Domain name. Supports both wildcard and exact domain names. Specifications: 1. Must contain at least one '.', and cannot start or end with '.'. 2. Only letters, numbers, '.', '-', and '' are allowed. 3. Length must be between 1 and 128 characters. 4. Wildcard domain: Use '' to replace one or more characters. 5. Exact domain: A domain name that strictly follows domain name specifications.
- cert
Center StringCertificate Id - Certificate ID of the extended domain name.
- certificate
Source String - Certificate source for the extended domain name to be added. Value: cert_center: SSL certificate from Volcano Engine Certificate Center. This parameter is required when adding an extended domain name.
- domain String
- Domain name. Supports both wildcard and exact domain names. Specifications: 1. Must contain at least one '.', and cannot start or end with '.'. 2. Only letters, numbers, '.', '-', and '' are allowed. 3. Length must be between 1 and 128 characters. 4. Wildcard domain: Use '' to replace one or more characters. 5. Exact domain: A domain name that strictly follows domain name specifications.
- cert
Center stringCertificate Id - Certificate ID of the extended domain name.
- certificate
Source string - Certificate source for the extended domain name to be added. Value: cert_center: SSL certificate from Volcano Engine Certificate Center. This parameter is required when adding an extended domain name.
- domain string
- Domain name. Supports both wildcard and exact domain names. Specifications: 1. Must contain at least one '.', and cannot start or end with '.'. 2. Only letters, numbers, '.', '-', and '' are allowed. 3. Length must be between 1 and 128 characters. 4. Wildcard domain: Use '' to replace one or more characters. 5. Exact domain: A domain name that strictly follows domain name specifications.
- cert_
center_ strcertificate_ id - Certificate ID of the extended domain name.
- certificate_
source str - Certificate source for the extended domain name to be added. Value: cert_center: SSL certificate from Volcano Engine Certificate Center. This parameter is required when adding an extended domain name.
- domain str
- Domain name. Supports both wildcard and exact domain names. Specifications: 1. Must contain at least one '.', and cannot start or end with '.'. 2. Only letters, numbers, '.', '-', and '' are allowed. 3. Length must be between 1 and 128 characters. 4. Wildcard domain: Use '' to replace one or more characters. 5. Exact domain: A domain name that strictly follows domain name specifications.
- cert
Center StringCertificate Id - Certificate ID of the extended domain name.
- certificate
Source String - Certificate source for the extended domain name to be added. Value: cert_center: SSL certificate from Volcano Engine Certificate Center. This parameter is required when adding an extended domain name.
- domain String
- Domain name. Supports both wildcard and exact domain names. Specifications: 1. Must contain at least one '.', and cannot start or end with '.'. 2. Only letters, numbers, '.', '-', and '' are allowed. 3. Length must be between 1 and 128 characters. 4. Wildcard domain: Use '' to replace one or more characters. 5. Exact domain: A domain name that strictly follows domain name specifications.
ListenerHealthCheck, ListenerHealthCheckArgs
- Domain string
- Domain name for health check. Must be set to the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must contain at least one period (.), and cannot start or end with a period (.). Each string can include letters, numbers, hyphens (-), and periods (.), with hyphens (-) not allowed at the beginning or end of the string. Length limit: 1 to 128 characters. If this parameter is not provided or no value is specified, the default is empty, meaning CLB uses the private IP address of each backend server for health checks.
- Enabled string
- Whether health check is enabled for the listener. on (default): enabled. off: disabled.
- Healthy
Threshold int - Health threshold, i.e., the number of consecutive successful health checks. Range: 2–10, default is 3, unit: times.
- Http
Code string - HTTP status codes for healthy checks. This parameter is effective when Protocol is HTTP or HTTPS and HealthCheck.Enabled is on. Values: http2xx (default), http3xx, http4xx, http5xx. Separate multiple status codes with a comma (,).
- Interval int
- Interval for performing health checks. Range: 1–300, default is 2, in seconds.
- Method string
- Listener health check method. GET: server must support the GET method. HEAD: server returns only HEAD header information, which reduces backend overhead, but requires server support for the HEAD method.
- Port int
- Health check port. Value range: 1–65535.
- Timeout int
- Health check response timeout. If the backend server does not respond correctly within the specified time, the health check is considered 'abnormal'. Value range: 1 to 60. Default: 2. Unit: seconds.
- Udp
Expect string - Expected response string for health check. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- Udp
Request string - Request string for performing health checks. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. The values of HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- Unhealthy
Threshold int - Unhealthy threshold, which is the number of consecutive health check failures. Value range: 2–10. Default: 3. Unit: occurrences.
- Uri string
- Health check path. Must be configured as the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must start with '/'. Only letters, digits, hyphens (-), underscores (_), slashes (/), periods (.), percent signs (%), question marks (?), #, &, and equals signs (=) are allowed. Length: 1–128 characters. If not specified or no value is provided, the default is '/'.
- Domain string
- Domain name for health check. Must be set to the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must contain at least one period (.), and cannot start or end with a period (.). Each string can include letters, numbers, hyphens (-), and periods (.), with hyphens (-) not allowed at the beginning or end of the string. Length limit: 1 to 128 characters. If this parameter is not provided or no value is specified, the default is empty, meaning CLB uses the private IP address of each backend server for health checks.
- Enabled string
- Whether health check is enabled for the listener. on (default): enabled. off: disabled.
- Healthy
Threshold int - Health threshold, i.e., the number of consecutive successful health checks. Range: 2–10, default is 3, unit: times.
- Http
Code string - HTTP status codes for healthy checks. This parameter is effective when Protocol is HTTP or HTTPS and HealthCheck.Enabled is on. Values: http2xx (default), http3xx, http4xx, http5xx. Separate multiple status codes with a comma (,).
- Interval int
- Interval for performing health checks. Range: 1–300, default is 2, in seconds.
- Method string
- Listener health check method. GET: server must support the GET method. HEAD: server returns only HEAD header information, which reduces backend overhead, but requires server support for the HEAD method.
- Port int
- Health check port. Value range: 1–65535.
- Timeout int
- Health check response timeout. If the backend server does not respond correctly within the specified time, the health check is considered 'abnormal'. Value range: 1 to 60. Default: 2. Unit: seconds.
- Udp
Expect string - Expected response string for health check. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- Udp
Request string - Request string for performing health checks. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. The values of HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- Unhealthy
Threshold int - Unhealthy threshold, which is the number of consecutive health check failures. Value range: 2–10. Default: 3. Unit: occurrences.
- Uri string
- Health check path. Must be configured as the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must start with '/'. Only letters, digits, hyphens (-), underscores (_), slashes (/), periods (.), percent signs (%), question marks (?), #, &, and equals signs (=) are allowed. Length: 1–128 characters. If not specified or no value is provided, the default is '/'.
- domain String
- Domain name for health check. Must be set to the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must contain at least one period (.), and cannot start or end with a period (.). Each string can include letters, numbers, hyphens (-), and periods (.), with hyphens (-) not allowed at the beginning or end of the string. Length limit: 1 to 128 characters. If this parameter is not provided or no value is specified, the default is empty, meaning CLB uses the private IP address of each backend server for health checks.
- enabled String
- Whether health check is enabled for the listener. on (default): enabled. off: disabled.
- healthy
Threshold Integer - Health threshold, i.e., the number of consecutive successful health checks. Range: 2–10, default is 3, unit: times.
- http
Code String - HTTP status codes for healthy checks. This parameter is effective when Protocol is HTTP or HTTPS and HealthCheck.Enabled is on. Values: http2xx (default), http3xx, http4xx, http5xx. Separate multiple status codes with a comma (,).
- interval Integer
- Interval for performing health checks. Range: 1–300, default is 2, in seconds.
- method String
- Listener health check method. GET: server must support the GET method. HEAD: server returns only HEAD header information, which reduces backend overhead, but requires server support for the HEAD method.
- port Integer
- Health check port. Value range: 1–65535.
- timeout Integer
- Health check response timeout. If the backend server does not respond correctly within the specified time, the health check is considered 'abnormal'. Value range: 1 to 60. Default: 2. Unit: seconds.
- udp
Expect String - Expected response string for health check. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- udp
Request String - Request string for performing health checks. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. The values of HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- unhealthy
Threshold Integer - Unhealthy threshold, which is the number of consecutive health check failures. Value range: 2–10. Default: 3. Unit: occurrences.
- uri String
- Health check path. Must be configured as the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must start with '/'. Only letters, digits, hyphens (-), underscores (_), slashes (/), periods (.), percent signs (%), question marks (?), #, &, and equals signs (=) are allowed. Length: 1–128 characters. If not specified or no value is provided, the default is '/'.
- domain string
- Domain name for health check. Must be set to the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must contain at least one period (.), and cannot start or end with a period (.). Each string can include letters, numbers, hyphens (-), and periods (.), with hyphens (-) not allowed at the beginning or end of the string. Length limit: 1 to 128 characters. If this parameter is not provided or no value is specified, the default is empty, meaning CLB uses the private IP address of each backend server for health checks.
- enabled string
- Whether health check is enabled for the listener. on (default): enabled. off: disabled.
- healthy
Threshold number - Health threshold, i.e., the number of consecutive successful health checks. Range: 2–10, default is 3, unit: times.
- http
Code string - HTTP status codes for healthy checks. This parameter is effective when Protocol is HTTP or HTTPS and HealthCheck.Enabled is on. Values: http2xx (default), http3xx, http4xx, http5xx. Separate multiple status codes with a comma (,).
- interval number
- Interval for performing health checks. Range: 1–300, default is 2, in seconds.
- method string
- Listener health check method. GET: server must support the GET method. HEAD: server returns only HEAD header information, which reduces backend overhead, but requires server support for the HEAD method.
- port number
- Health check port. Value range: 1–65535.
- timeout number
- Health check response timeout. If the backend server does not respond correctly within the specified time, the health check is considered 'abnormal'. Value range: 1 to 60. Default: 2. Unit: seconds.
- udp
Expect string - Expected response string for health check. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- udp
Request string - Request string for performing health checks. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. The values of HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- unhealthy
Threshold number - Unhealthy threshold, which is the number of consecutive health check failures. Value range: 2–10. Default: 3. Unit: occurrences.
- uri string
- Health check path. Must be configured as the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must start with '/'. Only letters, digits, hyphens (-), underscores (_), slashes (/), periods (.), percent signs (%), question marks (?), #, &, and equals signs (=) are allowed. Length: 1–128 characters. If not specified or no value is provided, the default is '/'.
- domain str
- Domain name for health check. Must be set to the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must contain at least one period (.), and cannot start or end with a period (.). Each string can include letters, numbers, hyphens (-), and periods (.), with hyphens (-) not allowed at the beginning or end of the string. Length limit: 1 to 128 characters. If this parameter is not provided or no value is specified, the default is empty, meaning CLB uses the private IP address of each backend server for health checks.
- enabled str
- Whether health check is enabled for the listener. on (default): enabled. off: disabled.
- healthy_
threshold int - Health threshold, i.e., the number of consecutive successful health checks. Range: 2–10, default is 3, unit: times.
- http_
code str - HTTP status codes for healthy checks. This parameter is effective when Protocol is HTTP or HTTPS and HealthCheck.Enabled is on. Values: http2xx (default), http3xx, http4xx, http5xx. Separate multiple status codes with a comma (,).
- interval int
- Interval for performing health checks. Range: 1–300, default is 2, in seconds.
- method str
- Listener health check method. GET: server must support the GET method. HEAD: server returns only HEAD header information, which reduces backend overhead, but requires server support for the HEAD method.
- port int
- Health check port. Value range: 1–65535.
- timeout int
- Health check response timeout. If the backend server does not respond correctly within the specified time, the health check is considered 'abnormal'. Value range: 1 to 60. Default: 2. Unit: seconds.
- udp_
expect str - Expected response string for health check. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- udp_
request str - Request string for performing health checks. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. The values of HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- unhealthy_
threshold int - Unhealthy threshold, which is the number of consecutive health check failures. Value range: 2–10. Default: 3. Unit: occurrences.
- uri str
- Health check path. Must be configured as the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must start with '/'. Only letters, digits, hyphens (-), underscores (_), slashes (/), periods (.), percent signs (%), question marks (?), #, &, and equals signs (=) are allowed. Length: 1–128 characters. If not specified or no value is provided, the default is '/'.
- domain String
- Domain name for health check. Must be set to the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must contain at least one period (.), and cannot start or end with a period (.). Each string can include letters, numbers, hyphens (-), and periods (.), with hyphens (-) not allowed at the beginning or end of the string. Length limit: 1 to 128 characters. If this parameter is not provided or no value is specified, the default is empty, meaning CLB uses the private IP address of each backend server for health checks.
- enabled String
- Whether health check is enabled for the listener. on (default): enabled. off: disabled.
- healthy
Threshold Number - Health threshold, i.e., the number of consecutive successful health checks. Range: 2–10, default is 3, unit: times.
- http
Code String - HTTP status codes for healthy checks. This parameter is effective when Protocol is HTTP or HTTPS and HealthCheck.Enabled is on. Values: http2xx (default), http3xx, http4xx, http5xx. Separate multiple status codes with a comma (,).
- interval Number
- Interval for performing health checks. Range: 1–300, default is 2, in seconds.
- method String
- Listener health check method. GET: server must support the GET method. HEAD: server returns only HEAD header information, which reduces backend overhead, but requires server support for the HEAD method.
- port Number
- Health check port. Value range: 1–65535.
- timeout Number
- Health check response timeout. If the backend server does not respond correctly within the specified time, the health check is considered 'abnormal'. Value range: 1 to 60. Default: 2. Unit: seconds.
- udp
Expect String - Expected response string for health check. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- udp
Request String - Request string for performing health checks. Only letters and numbers are allowed, with a maximum length of 64 characters. This parameter takes effect when Protocol is set to UDP and HealthCheck.Enabled is set to on. The values of HealthCheck.UdpRequest and HealthCheck.UdpExpect must either both be empty or both be non-empty.
- unhealthy
Threshold Number - Unhealthy threshold, which is the number of consecutive health check failures. Value range: 2–10. Default: 3. Unit: occurrences.
- uri String
- Health check path. Must be configured as the actual address provided by the backend server. This parameter takes effect when Protocol is set to HTTP or HTTPS and HealthCheck.Enabled is on. Must start with '/'. Only letters, digits, hyphens (-), underscores (_), slashes (/), periods (.), percent signs (%), question marks (?), #, &, and equals signs (=) are allowed. Length: 1–128 characters. If not specified or no value is provided, the default is '/'.
ListenerTag, ListenerTagArgs
- Key string
- Tag key for user tags. Length range: 1–128 characters. Supports input of characters from all languages, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). If the tag key starts or ends with a space, the system automatically removes it.
- Value string
- Tag value for user tags. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
- Key string
- Tag key for user tags. Length range: 1–128 characters. Supports input of characters from all languages, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). If the tag key starts or ends with a space, the system automatically removes it.
- Value string
- Tag value for user tags. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
- key String
- Tag key for user tags. Length range: 1–128 characters. Supports input of characters from all languages, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). If the tag key starts or ends with a space, the system automatically removes it.
- value String
- Tag value for user tags. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
- key string
- Tag key for user tags. Length range: 1–128 characters. Supports input of characters from all languages, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). If the tag key starts or ends with a space, the system automatically removes it.
- value string
- Tag value for user tags. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
- key str
- Tag key for user tags. Length range: 1–128 characters. Supports input of characters from all languages, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). If the tag key starts or ends with a space, the system automatically removes it.
- value str
- Tag value for user tags. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
- key String
- Tag key for user tags. Length range: 1–128 characters. Supports input of characters from all languages, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). If the tag key starts or ends with a space, the system automatically removes it.
- value String
- Tag value for user tags. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
Import
$ pulumi import volcenginecc:clb/listener:Listener example "listener_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
