» huaweicloud_lb_listener_v2

Manages a V2 listener resource within HuaweiCloud.

» Example Usage

resource "huaweicloud_lb_listener_v2" "listener_1" {
  protocol        = "HTTP"
  protocol_port   = 8080
  loadbalancer_id = "d9415786-5f1a-428b-b35f-2f1523e146d2"
}

» Argument Reference

The following arguments are supported:

  • region - (Optional) The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new Listener.

  • protocol - (Required) The protocol can either be TCP, HTTP, HTTPS or TERMINATED_HTTPS. Changing this creates a new Listener.

  • protocol_port - (Required) The port on which to listen for client traffic. Changing this creates a new Listener.

  • tenant_id - (Optional) Required for admins. The UUID of the tenant who owns the Listener. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new Listener.

  • loadbalancer_id - (Required) The load balancer on which to provision this Listener. Changing this creates a new Listener.

  • name - (Optional) Human-readable name for the Listener. Does not have to be unique.

  • default_pool_id - (Optional) The ID of the default pool with which the Listener is associated. Changing this creates a new Listener.

  • description - (Optional) Human-readable description for the Listener.

  • connection_limit - (Optional) The maximum number of connections allowed for the Listener. The value ranges from -1 to 2,147,483,647. This parameter is reserved and has been not used. Only the administrator can specify the maximum number of connections.

  • http2_enable - (Optional) Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.

  • default_tls_container_ref - (Optional) Specifies the ID of the server certificate used by the listener. This parameter is mandatory when protocol is set to TERMINATED_HTTPS.

  • sni_container_refs - (Optional) Lists the IDs of SNI certificates (server certificates with a domain name) used by the listener. This parameter is valid when protocol is set to TERMINATED_HTTPS.

  • admin_state_up - (Optional) The administrative state of the Listener. A valid value is true (UP) or false (DOWN).

» Attributes Reference

The following attributes are exported: