Class IpRules (1.39.0)

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

IP rules associated with the finding.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
direction google.cloud.securitycenter_v2.types.IpRules.Direction
The direction that the rule is applicable to, one of ingress or egress.
allowed google.cloud.securitycenter_v2.types.Allowed
Tuple with allowed rules. This field is a member of oneof_ rules.
denied google.cloud.securitycenter_v2.types.Denied
Tuple with denied rules. This field is a member of oneof_ rules.
source_ip_ranges MutableSequence[str]
If source IP ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
destination_ip_ranges MutableSequence[str]
If destination IP ranges are specified, the firewall rule applies only to traffic that has a destination IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
exposed_services MutableSequence[str]
Name of the network protocol service, such as FTP, that is exposed by the open port. Follows the naming convention available at: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.

Classes

Direction

Direction(value)

The type of direction that the rule is applicable to, one of ingress or egress. Not applicable to OPEN_X_PORT findings.