共用方式為


INetworkSecurityRule Interface

Definition

A network security rule in a network security group.

public interface INetworkSecurityRule : Microsoft.Azure.Management.ResourceManager.Fluent.Core.IChildResource<Microsoft.Azure.Management.Network.Fluent.INetworkSecurityGroup>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasInner<Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleInner>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasParent<Microsoft.Azure.Management.Network.Fluent.INetworkSecurityGroup>
type INetworkSecurityRule = interface
    interface IHasInner<SecurityRuleInner>
    interface IChildResource<INetworkSecurityGroup>
    interface IHasName
    interface IIndexable
    interface IHasParent<INetworkSecurityGroup>
Public Interface INetworkSecurityRule
Implements IChildResource(Of INetworkSecurityGroup), IHasInner(Of SecurityRuleInner), IHasParent(Of INetworkSecurityGroup)
Implements

Properties

Access

Gets the type of access the rule enforces.

Description

Gets the user-defined description of the security rule.

DestinationAddressPrefix

Gets the destination address prefix the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "" means "any".

DestinationAddressPrefixes

Gets the list of destination address prefixes the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "" means "any", or IP addresses.

DestinationApplicationSecurityGroupIds

Gets list of application security group ids specified as destination.

DestinationPortRange

Gets the destination port range that the rule applies to, in the format "##-##", where "" means any.

DestinationPortRanges

Gets the destination port ranges that the rule applies to, in the format "##-##", where "" means any.

Direction

Gets the direction of the network traffic that the network security rule applies to.

Inner (Inherited from IHasInner<T>)
Key (Inherited from IIndexable)
Name

Gets the name of the resource

(Inherited from IHasName)
Parent

Gets the parent of this child resource.

(Inherited from IHasParent<ParentT>)
Priority

Gets the priority number of this rule based on which this rule will be applied relative to the priority numbers of any other rules specified for this network security group.

Protocol

Gets the network protocol the rule applies to.

SourceAddressPrefix

Gets the source address prefix the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "" means "any".

SourceAddressPrefixes

Gets the list of source address prefixes the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "" means "any", or IP addresses.

SourceApplicationSecurityGroupIds

Gets list of application security group ids specified as source.

SourcePortRange

Gets the source port range that the rule applies to, in the format "##-##", where "" means "any".

SourcePortRanges

Gets the source port ranges that the rule applies to, in the format "##-##", where "" means "any".

Applies to