你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EffectiveNetworkSecurityRule 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
有效的网络安全规则。
public class EffectiveNetworkSecurityRule
type EffectiveNetworkSecurityRule = class
Public Class EffectiveNetworkSecurityRule
- 继承
-
EffectiveNetworkSecurityRule
构造函数
EffectiveNetworkSecurityRule() |
初始化 EffectiveNetworkSecurityRule 类的新实例。 |
EffectiveNetworkSecurityRule(String, String, String, String, IList<String>, IList<String>, String, String, IList<String>, IList<String>, IList<String>, IList<String>, String, Nullable<Int32>, String) |
初始化 EffectiveNetworkSecurityRule 类的新实例。 |
属性
Access |
获取或设置是允许还是拒绝网络流量。 可能的值包括:“Allow”、“Deny” |
DestinationAddressPrefix |
获取或设置目标地址前缀。 |
DestinationAddressPrefixes |
获取或设置目标地址前缀。 预期值包括 CIDR IP 范围、VirtualNetwork (默认标记、AzureLoadBalancer、Internet) 、系统标记和星号 (*) 。 |
DestinationPortRange |
获取或设置目标端口或范围。 |
DestinationPortRanges |
获取或设置目标端口范围。 预期值包括介于 0 和 65535 之间的单个整数、使用“-”作为分隔符 (的范围(例如 100-400) )或星号 (*) 。 |
Direction |
获取或设置规则的方向。 可能的值包括:“Inbound”、“Outbound” |
ExpandedDestinationAddressPrefix |
获取或设置展开的目标地址前缀。 |
ExpandedSourceAddressPrefix |
获取或设置扩展的源地址前缀。 |
Name |
获取或设置由用户 (指定的安全规则的名称(如果由用户) 创建)。 |
Priority |
获取或设置规则的优先级。 |
Protocol |
获取或设置此规则适用的网络协议。 可能的值包括:“Tcp”、“Udp”、“All” |
SourceAddressPrefix |
获取或设置源地址前缀。 |
SourceAddressPrefixes |
获取或设置源地址前缀。 预期值包括 CIDR IP 范围、VirtualNetwork (默认标记、AzureLoadBalancer、Internet) 、系统标记和星号 (*) 。 |
SourcePortRange |
获取或设置源端口或范围。 |
SourcePortRanges |
获取或设置源端口范围。 预期值包括介于 0 和 65535 之间的单个整数、使用“-”作为分隔符 (的范围(例如 100-400) )或星号 (*) 。 |