public sealed class IpRule : IMessage<IpRule>, IEquatable<IpRule>, IDeepCloneable<IpRule>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class IpRule.
IP rule information.
Namespace
Google.Cloud.SecurityCenter.V2Assembly
Google.Cloud.SecurityCenter.V2.dll
Constructors
IpRule()
public IpRule()
IpRule(IpRule)
public IpRule(IpRule other)
Parameter | |
---|---|
Name | Description |
other |
IpRule |
Properties
PortRanges
public RepeatedField<IpRule.Types.PortRange> PortRanges { get; }
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.
Property Value | |
---|---|
Type | Description |
RepeatedFieldIpRuleTypesPortRange |
Protocol
public string Protocol { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |