Sdílet prostřednictvím


ArmNetworkModelFactory.EffectiveDefaultSecurityAdminRule Method

Definition

Initializes a new instance of EffectiveDefaultSecurityAdminRule.

public static Azure.ResourceManager.Network.Models.EffectiveDefaultSecurityAdminRule EffectiveDefaultSecurityAdminRule (Azure.Core.ResourceIdentifier resourceId = default, string configurationDescription = default, string ruleCollectionDescription = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkManagerSecurityGroupItem> ruleCollectionAppliesToGroups = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkConfigurationGroup> ruleGroups = default, string description = default, string flag = default, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol? protocol = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.AddressPrefixItem> sources = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.AddressPrefixItem> destinations = default, System.Collections.Generic.IEnumerable<string> sourcePortRanges = default, System.Collections.Generic.IEnumerable<string> destinationPortRanges = default, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleAccess? access = default, int? priority = default, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection? direction = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, Guid? resourceGuid = default);
static member EffectiveDefaultSecurityAdminRule : Azure.Core.ResourceIdentifier * string * string * seq<Azure.ResourceManager.Network.Models.NetworkManagerSecurityGroupItem> * seq<Azure.ResourceManager.Network.Models.NetworkConfigurationGroup> * string * string * Nullable<Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol> * seq<Azure.ResourceManager.Network.Models.AddressPrefixItem> * seq<Azure.ResourceManager.Network.Models.AddressPrefixItem> * seq<string> * seq<string> * Nullable<Azure.ResourceManager.Network.Models.SecurityConfigurationRuleAccess> * Nullable<int> * Nullable<Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<Guid> -> Azure.ResourceManager.Network.Models.EffectiveDefaultSecurityAdminRule
Public Shared Function EffectiveDefaultSecurityAdminRule (Optional resourceId As ResourceIdentifier = Nothing, Optional configurationDescription As String = Nothing, Optional ruleCollectionDescription As String = Nothing, Optional ruleCollectionAppliesToGroups As IEnumerable(Of NetworkManagerSecurityGroupItem) = Nothing, Optional ruleGroups As IEnumerable(Of NetworkConfigurationGroup) = Nothing, Optional description As String = Nothing, Optional flag As String = Nothing, Optional protocol As Nullable(Of SecurityConfigurationRuleProtocol) = Nothing, Optional sources As IEnumerable(Of AddressPrefixItem) = Nothing, Optional destinations As IEnumerable(Of AddressPrefixItem) = Nothing, Optional sourcePortRanges As IEnumerable(Of String) = Nothing, Optional destinationPortRanges As IEnumerable(Of String) = Nothing, Optional access As Nullable(Of SecurityConfigurationRuleAccess) = Nothing, Optional priority As Nullable(Of Integer) = Nothing, Optional direction As Nullable(Of SecurityConfigurationRuleDirection) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional resourceGuid As Nullable(Of Guid) = Nothing) As EffectiveDefaultSecurityAdminRule

Parameters

resourceId
ResourceIdentifier

Resource ID.

configurationDescription
String

A description of the security admin configuration.

ruleCollectionDescription
String

A description of the rule collection.

ruleCollectionAppliesToGroups
IEnumerable<NetworkManagerSecurityGroupItem>

Groups for rule collection.

ruleGroups
IEnumerable<NetworkConfigurationGroup>

Effective configuration groups.

description
String

A description for this rule. Restricted to 140 chars.

flag
String

Default rule flag.

protocol
Nullable<SecurityConfigurationRuleProtocol>

Network protocol this rule applies to.

sources
IEnumerable<AddressPrefixItem>

The CIDR or source IP ranges.

destinations
IEnumerable<AddressPrefixItem>

The destination address prefixes. CIDR or destination IP ranges.

sourcePortRanges
IEnumerable<String>

The source port ranges.

destinationPortRanges
IEnumerable<String>

The destination port ranges.

access
Nullable<SecurityConfigurationRuleAccess>

Indicates the access allowed for this particular rule.

priority
Nullable<Int32>

The priority of the rule. The value can be between 1 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.

direction
Nullable<SecurityConfigurationRuleDirection>

Indicates if the traffic matched against the rule in inbound or outbound.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the resource.

resourceGuid
Nullable<Guid>

Unique identifier for this resource.

Returns

A new EffectiveDefaultSecurityAdminRule instance for mocking.

Applies to