SecurityRuleData Class

Definition

A class representing the SecurityRule data model. Network security rule.

public class SecurityRuleData : Azure.ResourceManager.Network.Models.NetworkWritableResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Network.SecurityRuleData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Network.SecurityRuleData>
public class SecurityRuleData : Azure.ResourceManager.Network.Models.NetworkWritableResourceData
type SecurityRuleData = class
    inherit NetworkWritableResourceData
    interface IJsonModel<SecurityRuleData>
    interface IPersistableModel<SecurityRuleData>
type SecurityRuleData = class
    inherit NetworkWritableResourceData
Public Class SecurityRuleData
Inherits NetworkWritableResourceData
Implements IJsonModel(Of SecurityRuleData), IPersistableModel(Of SecurityRuleData)
Public Class SecurityRuleData
Inherits NetworkWritableResourceData
Inheritance
Implements

Constructors

SecurityRuleData()

Initializes a new instance of SecurityRuleData.

Properties

Access

The network traffic is allowed or denied.

Description

A description for this rule. Restricted to 140 chars.

DestinationAddressPrefix

The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.

DestinationAddressPrefixes

The destination address prefixes. CIDR or destination IP ranges.

DestinationApplicationSecurityGroups

The application security group specified as destination.

DestinationPortRange

The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.

DestinationPortRanges

The destination port ranges.

Direction

The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.

ETag

A unique read-only string that changes whenever the resource is updated.

Id

Resource ID.

(Inherited from NetworkWritableResourceData)
Name

Resource name.

(Inherited from NetworkWritableResourceData)
Priority

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

Network protocol this rule applies to.

ProvisioningState

The provisioning state of the security rule resource.

ResourceType

Resource type.

(Inherited from NetworkWritableResourceData)
SourceAddressPrefix

The CIDR or source IP range. Asterisk '*' 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.

SourceAddressPrefixes

The CIDR or source IP ranges.

SourceApplicationSecurityGroups

The application security group specified as source.

SourcePortRange

The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.

SourcePortRanges

The source port ranges.

Explicit Interface Implementations

IJsonModel<NetworkWritableResourceData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from NetworkWritableResourceData)
IJsonModel<NetworkWritableResourceData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from NetworkWritableResourceData)
IJsonModel<SecurityRuleData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<SecurityRuleData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<NetworkWritableResourceData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from NetworkWritableResourceData)
IPersistableModel<NetworkWritableResourceData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from NetworkWritableResourceData)
IPersistableModel<NetworkWritableResourceData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from NetworkWritableResourceData)
IPersistableModel<SecurityRuleData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SecurityRuleData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<SecurityRuleData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to