ListenerSummary

class oci.network_load_balancer.models.ListenerSummary(**kwargs)

Bases: object

The configuration of the listener. For more information about listener configuration, see Managing Load Balancer Listeners.

Attributes

IP_VERSION_IPV4 A constant which can be used with the ip_version property of a ListenerSummary.
IP_VERSION_IPV6 A constant which can be used with the ip_version property of a ListenerSummary.
PROTOCOL_ANY A constant which can be used with the protocol property of a ListenerSummary.
PROTOCOL_TCP A constant which can be used with the protocol property of a ListenerSummary.
PROTOCOL_TCP_AND_UDP A constant which can be used with the protocol property of a ListenerSummary.
PROTOCOL_UDP A constant which can be used with the protocol property of a ListenerSummary.
default_backend_set_name [Required] Gets the default_backend_set_name of this ListenerSummary.
ip_version Gets the ip_version of this ListenerSummary.
name [Required] Gets the name of this ListenerSummary.
port [Required] Gets the port of this ListenerSummary.
protocol [Required] Gets the protocol of this ListenerSummary.

Methods

__init__(**kwargs) Initializes a new ListenerSummary object with values from keyword arguments.
IP_VERSION_IPV4 = 'IPV4'

A constant which can be used with the ip_version property of a ListenerSummary. This constant has a value of “IPV4”

IP_VERSION_IPV6 = 'IPV6'

A constant which can be used with the ip_version property of a ListenerSummary. This constant has a value of “IPV6”

PROTOCOL_ANY = 'ANY'

A constant which can be used with the protocol property of a ListenerSummary. This constant has a value of “ANY”

PROTOCOL_TCP = 'TCP'

A constant which can be used with the protocol property of a ListenerSummary. This constant has a value of “TCP”

PROTOCOL_TCP_AND_UDP = 'TCP_AND_UDP'

A constant which can be used with the protocol property of a ListenerSummary. This constant has a value of “TCP_AND_UDP”

PROTOCOL_UDP = 'UDP'

A constant which can be used with the protocol property of a ListenerSummary. This constant has a value of “UDP”

__init__(**kwargs)

Initializes a new ListenerSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • name (str) – The value to assign to the name property of this ListenerSummary.
  • default_backend_set_name (str) – The value to assign to the default_backend_set_name property of this ListenerSummary.
  • port (int) – The value to assign to the port property of this ListenerSummary.
  • protocol (str) – The value to assign to the protocol property of this ListenerSummary. Allowed values for this property are: “ANY”, “TCP”, “UDP”, “TCP_AND_UDP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • ip_version (str) – The value to assign to the ip_version property of this ListenerSummary. Allowed values for this property are: “IPV4”, “IPV6”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
default_backend_set_name

[Required] Gets the default_backend_set_name of this ListenerSummary. The name of the associated backend set.

Example: example_backend_set

Returns:The default_backend_set_name of this ListenerSummary.
Return type:str
ip_version

Gets the ip_version of this ListenerSummary. IP version associated with the listener.

Allowed values for this property are: “IPV4”, “IPV6”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The ip_version of this ListenerSummary.
Return type:str
name

[Required] Gets the name of this ListenerSummary. A friendly name for the listener. It must be unique and it cannot be changed.

Example: example_listener

Returns:The name of this ListenerSummary.
Return type:str
port

[Required] Gets the port of this ListenerSummary. The communication port for the listener.

Example: 80

Returns:The port of this ListenerSummary.
Return type:int
protocol

[Required] Gets the protocol of this ListenerSummary. 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

Allowed values for this property are: “ANY”, “TCP”, “UDP”, “TCP_AND_UDP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The protocol of this ListenerSummary.
Return type:str