Class IpRule (1.39.0)

IpRule(mapping=None, *, ignore_unknown_fields=False, **kwargs)

IP rule information.

Attributes

Name Description
protocol str
The IP protocol this rule applies to. This value can either be one of the following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP, SCTP) or a string representation of the integer value.
port_ranges MutableSequence[google.cloud.securitycenter_v2.types.IpRule.PortRange]
Optional. An optional list of ports to which this rule applies. This field is only applicable for the UDP or (S)TCP protocols. Each entry must be either an integer or a range including a min and max port number.

Classes

PortRange

PortRange(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A port range which is inclusive of the min and max values. Values are between 0 and 2^16-1. The max can be equal / must be not smaller than the min value. If min and max are equal this indicates that it is a single port.