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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Security Command Center v2 API - Class IpRules (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.IpRules)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.IpRules)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.IpRules) \n\n public sealed class IpRules : IMessage\u003cIpRules\u003e, IEquatable\u003cIpRules\u003e, IDeepCloneable\u003cIpRules\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class IpRules.\n\nIP rules associated with the finding. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e IpRules \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[IpRules](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.IpRules), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[IpRules](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.IpRules), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[IpRules](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.IpRules), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### IpRules()\n\n public IpRules()\n\n### IpRules(IpRules)\n\n public IpRules(IpRules other)\n\nProperties\n----------\n\n### Allowed\n\n public Allowed Allowed { get; set; }\n\nTuple with allowed rules.\n\n### Denied\n\n public Denied Denied { get; set; }\n\nTuple with denied rules.\n\n### DestinationIpRanges\n\n public RepeatedField\u003cstring\u003e DestinationIpRanges { get; }\n\nIf destination IP ranges are specified, the firewall rule applies only to\ntraffic that has a destination IP address in these ranges. These ranges\nmust be expressed in CIDR format. Only supports IPv4.\n\n### Direction\n\n public IpRules.Types.Direction Direction { get; set; }\n\nThe direction that the rule is applicable to, one of ingress or egress.\n\n### ExposedServices\n\n public RepeatedField\u003cstring\u003e ExposedServices { get; }\n\nName of the network protocol service, such as FTP, that is exposed by the\nopen port. Follows the naming convention available at:\n\u003chttps://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml\u003e.\n\n### RulesCase\n\n public IpRules.RulesOneofCase RulesCase { get; }\n\n### SourceIpRanges\n\n public RepeatedField\u003cstring\u003e SourceIpRanges { get; }\n\nIf source IP ranges are specified, the firewall rule applies only to\ntraffic that has a source IP address in these ranges. These ranges must be\nexpressed in CIDR format. Only supports IPv4."]]