Class Listener
The congfiguration of the listener. For more information about backend set configuration, see Managing Load Balancer Listeners.
Inherited Members
Namespace: Oci.NetworkloadbalancerService.Models
Assembly: OCI.DotNetSDK.Networkloadbalancer.dll
Syntax
public class Listener
Properties
DefaultBackendSetName
Declaration
[Required(ErrorMessage = "DefaultBackendSetName is required.")]
[JsonProperty(PropertyName = "defaultBackendSetName")]
public string DefaultBackendSetName { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the associated backend set.
|
Remarks
Required
IpVersion
Declaration
[JsonProperty(PropertyName = "ipVersion")]
[JsonConverter(typeof(ResponseEnumConverter))]
public IpVersion? IpVersion { get; set; }
Property Value
Type | Description |
---|---|
IpVersion? | IP version associated with the listener. |
IsPpv2Enabled
Declaration
[JsonProperty(PropertyName = "isPpv2Enabled")]
public bool? IsPpv2Enabled { get; set; }
Property Value
Type | Description |
---|---|
bool? | Property to enable/disable PPv2 feature for this listener. |
L3IpIdleTimeout
Declaration
[JsonProperty(PropertyName = "l3IpIdleTimeout")]
public int? L3IpIdleTimeout { get; set; }
Property Value
Type | Description |
---|---|
int? | The duration for L3IP idle timeout in seconds. Example: 200 |
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | A friendly name for the listener. It must be unique and it cannot be changed.
|
Remarks
Required
Port
Declaration
[Required(ErrorMessage = "Port is required.")]
[JsonProperty(PropertyName = "port")]
public int? Port { get; set; }
Property Value
Type | Description |
---|---|
int? | The communication port for the listener.
|
Remarks
Required
Protocol
Declaration
[Required(ErrorMessage = "Protocol is required.")]
[JsonProperty(PropertyName = "protocol")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ListenerProtocols? Protocol { get; set; }
Property Value
Type | Description |
---|---|
ListenerProtocols? | 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.
|
Remarks
Required
TcpIdleTimeout
Declaration
[JsonProperty(PropertyName = "tcpIdleTimeout")]
public int? TcpIdleTimeout { get; set; }
Property Value
Type | Description |
---|---|
int? | The duration for TCP idle timeout in seconds. Example: 300 |
UdpIdleTimeout
Declaration
[JsonProperty(PropertyName = "udpIdleTimeout")]
public int? UdpIdleTimeout { get; set; }
Property Value
Type | Description |
---|---|
int? | The duration for UDP idle timeout in seconds. Example: 120 |