다음을 통해 공유


NetworkRuleSet Constructors

Definition

Overloads

NetworkRuleSet()

Initializes a new instance of the NetworkRuleSet class.

NetworkRuleSet(DefaultAction, String, IList<ResourceAccessRule>, IList<VirtualNetworkRule>, IList<IPRule>)

Initializes a new instance of the NetworkRuleSet class.

NetworkRuleSet()

Initializes a new instance of the NetworkRuleSet class.

public NetworkRuleSet ();
Public Sub New ()

Applies to

NetworkRuleSet(DefaultAction, String, IList<ResourceAccessRule>, IList<VirtualNetworkRule>, IList<IPRule>)

Initializes a new instance of the NetworkRuleSet class.

public NetworkRuleSet (Microsoft.Azure.Management.Storage.Models.DefaultAction defaultAction, string bypass = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.ResourceAccessRule> resourceAccessRules = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.VirtualNetworkRule> virtualNetworkRules = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.IPRule> ipRules = default);
new Microsoft.Azure.Management.Storage.Models.NetworkRuleSet : Microsoft.Azure.Management.Storage.Models.DefaultAction * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.ResourceAccessRule> * System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.VirtualNetworkRule> * System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.IPRule> -> Microsoft.Azure.Management.Storage.Models.NetworkRuleSet
Public Sub New (defaultAction As DefaultAction, Optional bypass As String = Nothing, Optional resourceAccessRules As IList(Of ResourceAccessRule) = Nothing, Optional virtualNetworkRules As IList(Of VirtualNetworkRule) = Nothing, Optional ipRules As IList(Of IPRule) = Nothing)

Parameters

defaultAction
DefaultAction

Specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'

bypass
String

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'

resourceAccessRules
IList<ResourceAccessRule>

Sets the resource access rules

virtualNetworkRules
IList<VirtualNetworkRule>

Sets the virtual network rules

ipRules
IList<IPRule>

Sets the IP ACL rules

Applies to