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

EffectiveNetworkSecurityRule interface

有效的网络安全规则。

属性

access

是允许还是拒绝网络流量。 可能的值为:“Allow”和“Deny”。

destinationAddressPrefix

目标地址前缀。

destinationAddressPrefixes

目标地址前缀。 预期值包括 CIDR IP 范围、VirtualNetwork (默认标记、AzureLoadBalancer、Internet) 、系统标记和星号 (*) 。

destinationPortRange

目标端口或范围。

destinationPortRanges

目标端口范围。 预期值包括介于 0 和 65535 之间的单个整数、使用“-”作为分隔符 (的范围(例如 100-400) )或星号 (*)

direction

规则的方向。 可能的值为:“Inbound and Outbound”。

expandedDestinationAddressPrefix

展开的目标地址前缀。

expandedSourceAddressPrefix

扩展的源地址前缀。

name

如果用户) 创建,则 (用户指定的安全规则的名称。

priority

规则的优先级。

protocol

此规则适用的网络协议。 可能的值为:“Tcp”、“Udp”和“All”。

sourceAddressPrefix

源地址前缀。

sourceAddressPrefixes

源地址前缀。 预期值包括 CIDR IP 范围、VirtualNetwork (默认标记、AzureLoadBalancer、Internet) 、系统标记和星号 (*) 。

sourcePortRange

源端口或范围。

sourcePortRanges

源端口范围。 预期值包括介于 0 和 65535 之间的单个整数、使用“-”作为分隔符 (的范围(例如 100-400) )或星号 (*)

属性详细信息

access

是允许还是拒绝网络流量。 可能的值为:“Allow”和“Deny”。

access?: string

属性值

string

destinationAddressPrefix

目标地址前缀。

destinationAddressPrefix?: string

属性值

string

destinationAddressPrefixes

目标地址前缀。 预期值包括 CIDR IP 范围、VirtualNetwork (默认标记、AzureLoadBalancer、Internet) 、系统标记和星号 (*) 。

destinationAddressPrefixes?: string[]

属性值

string[]

destinationPortRange

目标端口或范围。

destinationPortRange?: string

属性值

string

destinationPortRanges

目标端口范围。 预期值包括介于 0 和 65535 之间的单个整数、使用“-”作为分隔符 (的范围(例如 100-400) )或星号 (*)

destinationPortRanges?: string[]

属性值

string[]

direction

规则的方向。 可能的值为:“Inbound and Outbound”。

direction?: string

属性值

string

expandedDestinationAddressPrefix

展开的目标地址前缀。

expandedDestinationAddressPrefix?: string[]

属性值

string[]

expandedSourceAddressPrefix

扩展的源地址前缀。

expandedSourceAddressPrefix?: string[]

属性值

string[]

name

如果用户) 创建,则 (用户指定的安全规则的名称。

name?: string

属性值

string

priority

规则的优先级。

priority?: number

属性值

number

protocol

此规则适用的网络协议。 可能的值为:“Tcp”、“Udp”和“All”。

protocol?: string

属性值

string

sourceAddressPrefix

源地址前缀。

sourceAddressPrefix?: string

属性值

string

sourceAddressPrefixes

源地址前缀。 预期值包括 CIDR IP 范围、VirtualNetwork (默认标记、AzureLoadBalancer、Internet) 、系统标记和星号 (*) 。

sourceAddressPrefixes?: string[]

属性值

string[]

sourcePortRange

源端口或范围。

sourcePortRange?: string

属性值

string

sourcePortRanges

源端口范围。 预期值包括介于 0 和 65535 之间的单个整数、使用“-”作为分隔符 (的范围(例如 100-400) )或星号 (*)

sourcePortRanges?: string[]

属性值

string[]