Data Source: oci_network_load_balancer_listeners
This data source provides the list of Listeners in Oracle Cloud Infrastructure Network Load Balancer service.
Lists all listeners associated with a given network load balancer.
Example Usage
data "oci_network_load_balancer_listeners" "test_listeners" {
#Required
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.test_network_load_balancer.id
}
Argument Reference
The following arguments are supported:
network_load_balancer_id
- (Required) The OCID of the network load balancer to update.
Attributes Reference
The following attributes are exported:
listener_collection
- The list of listener_collection.
Listener Reference
The following attributes are exported:
default_backend_set_name
- The name of the associated backend set. Example:example_backend_set
ip_version
- IP version associated with the listener.is_ppv2enabled
- Property to enable/disable PPv2 feature for this listener.name
- A friendly name for the listener. It must be unique and it cannot be changed. Example:example_listener
port
- The communication port for the listener. Example:80
protocol
- The protocol on which the listener accepts connection requests. For public network load balancers, ANY protocol refers to TCP/UDP with the wildcard port. For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). “ListNetworkLoadBalancersProtocols” API is deprecated and it will not return the updated values. Use the allowed values for the protocol instead. Example:TCP
tcp_idle_timeout
- The duration for TCP idle timeout in seconds. Example:300
udp_idle_timeout
- The duration for UDP idle timeout in seconds. Example:120