Security Command Center v2 API - Class IpRules (1.2.0)

public sealed class IpRules : IMessage<IpRules>, IEquatable<IpRules>, IDeepCloneable<IpRules>, IBufferMessage, IMessage

Reference documentation and code samples for the Security Command Center v2 API class IpRules.

IP rules associated with the finding.

Inheritance

object > IpRules

Namespace

Google.Cloud.SecurityCenter.V2

Assembly

Google.Cloud.SecurityCenter.V2.dll

Constructors

IpRules()

public IpRules()

IpRules(IpRules)

public IpRules(IpRules other)
Parameter
Name Description
other IpRules

Properties

Allowed

public Allowed Allowed { get; set; }

Tuple with allowed rules.

Property Value
Type Description
Allowed

Denied

public Denied Denied { get; set; }

Tuple with denied rules.

Property Value
Type Description
Denied

DestinationIpRanges

public RepeatedField<string> DestinationIpRanges { get; }

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.

Property Value
Type Description
RepeatedFieldstring

Direction

public IpRules.Types.Direction Direction { get; set; }

The direction that the rule is applicable to, one of ingress or egress.

Property Value
Type Description
IpRulesTypesDirection

ExposedServices

public RepeatedField<string> ExposedServices { get; }

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.

Property Value
Type Description
RepeatedFieldstring

RulesCase

public IpRules.RulesOneofCase RulesCase { get; }
Property Value
Type Description
IpRulesRulesOneofCase

SourceIpRanges

public RepeatedField<string> SourceIpRanges { get; }

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.

Property Value
Type Description
RepeatedFieldstring