NetworkSecurityGroupSecurityRule Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Security Rule data model for Network Security Groups.
public class NetworkSecurityGroupSecurityRule
public class NetworkSecurityGroupSecurityRule : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ResourceMover.Models.NetworkSecurityGroupSecurityRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ResourceMover.Models.NetworkSecurityGroupSecurityRule>
type NetworkSecurityGroupSecurityRule = class
type NetworkSecurityGroupSecurityRule = class
interface IJsonModel<NetworkSecurityGroupSecurityRule>
interface IPersistableModel<NetworkSecurityGroupSecurityRule>
Public Class NetworkSecurityGroupSecurityRule
Public Class NetworkSecurityGroupSecurityRule
Implements IJsonModel(Of NetworkSecurityGroupSecurityRule), IPersistableModel(Of NetworkSecurityGroupSecurityRule)
- Inheritance
-
NetworkSecurityGroupSecurityRule
- Implements
Constructors
NetworkSecurityGroupSecurityRule() |
Initializes a new instance of NetworkSecurityGroupSecurityRule. |
Properties
Access |
Gets or sets whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. |
Description |
Gets or sets a description for this rule. Restricted to 140 chars. |
DestinationAddressPrefix |
Gets or sets destination address prefix. CIDR or source IP range. A “*” can also be used to match all source IPs. Default tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. |
DestinationPortRange |
Gets or sets Destination Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports. |
Direction |
Gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic. |
Name |
Gets or sets the Security rule name. |
Priority |
Gets or sets the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. |
Protocol |
Gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(*). |
SourceAddressPrefix |
Gets or sets source address prefix. CIDR or source IP range. A “*” can also be used to match all source IPs. Default tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. If this is an ingress rule, specifies where network traffic originates from. |
SourcePortRange |
Gets or sets Source Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports. |
Explicit Interface Implementations
IJsonModel<NetworkSecurityGroupSecurityRule>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<NetworkSecurityGroupSecurityRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<NetworkSecurityGroupSecurityRule>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<NetworkSecurityGroupSecurityRule>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<NetworkSecurityGroupSecurityRule>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET