你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NetworkRuleSet 构造函数

定义

重载

NetworkRuleSet()

初始化 NetworkRuleSet 类的新实例。

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

初始化 NetworkRuleSet 类的新实例。

NetworkRuleSet()

初始化 NetworkRuleSet 类的新实例。

public NetworkRuleSet ();
Public Sub New ()

适用于

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

初始化 NetworkRuleSet 类的新实例。

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)

参数

defaultAction
DefaultAction

指定在没有其他规则匹配时允许或拒绝的默认操作。 可能的值包括:“Allow”、“Deny”

bypass
String

指定是否绕过日志记录/指标/AzureServices 的流量。 可能的值为日志记录的任意组合|指标 |AzureServices (例如,“日志记录,指标”) ,或无,以绕过任何这些流量。 可能的值包括:“None”、“Logging”、“Metrics”、“AzureServices”

resourceAccessRules
IList<ResourceAccessRule>

设置资源访问规则

virtualNetworkRules
IList<VirtualNetworkRule>

设置虚拟网络规则

ipRules
IList<IPRule>

设置 IP ACL 规则

适用于