Share via


SecurityRuleInner Class

Definition

Network security rule.

[Microsoft.Rest.Serialization.JsonTransformation]
public class SecurityRuleInner : Microsoft.Azure.Management.ResourceManager.Fluent.SubResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type SecurityRuleInner = class
    inherit SubResource
Public Class SecurityRuleInner
Inherits SubResource
Inheritance
SecurityRuleInner
Attributes

Constructors

SecurityRuleInner()

Initializes a new instance of the SecurityRuleInner class.

SecurityRuleInner(SecurityRuleProtocol, SecurityRuleAccess, SecurityRuleDirection, String, String, String, String, String, IList<String>, IList<ApplicationSecurityGroupInner>, String, IList<String>, IList<ApplicationSecurityGroupInner>, IList<String>, IList<String>, Nullable<Int32>, ProvisioningState, String, String)

Initializes a new instance of the SecurityRuleInner class.

Properties

Access

Gets or sets the network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'

Description

Gets or sets a description for this rule. Restricted to 140 chars.

DestinationAddressPrefix

Gets or sets 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

Gets or sets the destination address prefixes. CIDR or destination IP ranges.

DestinationApplicationSecurityGroups

Gets or sets the application security group specified as destination.

DestinationPortRange

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

DestinationPortRanges

Gets or sets the destination port ranges.

Direction

Gets or sets the direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values include: 'Inbound', 'Outbound'

Etag

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

Id

Resource Id

(Inherited from SubResource)
Name

Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource.

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. Possible values include: 'Tcp', 'Udp', 'Icmp', 'Esp', '*', 'Ah'

ProvisioningState

Gets the provisioning state of the security rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

SourceAddressPrefix

Gets or sets 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

Gets or sets the CIDR or source IP ranges.

SourceApplicationSecurityGroups

Gets or sets the application security group specified as source.

SourcePortRange

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

SourcePortRanges

Gets or sets the source port ranges.

Methods

Validate()

Validate the object.

Applies to