TcpOptions

class oci.core.models.TcpOptions(**kwargs)

Bases: object

Optional object to specify ports for a TCP rule. If you specify TCP as the protocol but omit this object, then all ports are allowed.

__init__(**kwargs)

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

Parameters:
  • destination_port_range (PortRange) -- The value to assign to the destination_port_range property of this TcpOptions.
  • source_port_range (PortRange) -- The value to assign to the source_port_range property of this TcpOptions.
destination_port_range

Gets the destination_port_range of this TcpOptions. An inclusive range of allowed destination ports. Use the same number for the min and max to indicate a single port. Defaults to all ports if not specified.

Returns:The destination_port_range of this TcpOptions.
Return type:PortRange
source_port_range

Gets the source_port_range of this TcpOptions. An inclusive range of allowed source ports. Use the same number for the min and max to indicate a single port. Defaults to all ports if not specified.

Returns:The source_port_range of this TcpOptions.
Return type:PortRange