Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class IpRules.
IP rules associated with the finding.
Generated from protobuf message google.cloud.securitycenter.v2.IpRules
Namespace
Google \ Cloud \ SecurityCenter \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ direction
int
The direction that the rule is applicable to, one of ingress or egress.
↳ allowed
↳ denied
↳ source_ip_ranges
array
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
array
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
array
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 .
getDirection
The direction that the rule is applicable to, one of ingress or egress.
int
setDirection
The direction that the rule is applicable to, one of ingress or egress.
var
int
$this
getAllowed
Tuple with allowed rules.
hasAllowed
setAllowed
Tuple with allowed rules.
$this
getDenied
Tuple with denied rules.
hasDenied
setDenied
Tuple with denied rules.
$this
getSourceIpRanges
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.
setSourceIpRanges
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.
var
string[]
$this
getDestinationIpRanges
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.
setDestinationIpRanges
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.
var
string[]
$this
getExposedServices
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 .
setExposedServices
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 .
var
string[]
$this
getRules
string