你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
NetworkSecurityRule 接口
public interface NetworkSecurityRule extends HasInner,ChildResource
网络安全组中的网络安全规则。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
Security |
access() |
String | description() |
String | destinationAddressPrefix() |
String | destinationPortRange() |
Security |
direction() |
int | priority() |
Security |
protocol() |
String | sourceAddressPrefix() |
String | sourcePortRange() |
继承成员
方法详细信息
access
public SecurityRuleAccess access()
Returns:
规则强制实施的访问类型
description
public String description()
Returns:
安全规则的用户定义说明
destinationAddressPrefix
public String destinationAddressPrefix()
Returns:
规则适用的目标地址前缀,使用 CIDR 表示法表示,格式为:“###.#.##”,“*”表示“any”
destinationPortRange
public String destinationPortRange()
Returns:
规则应用到的目标端口范围,格式为“##-##”,其中“*”表示任何
direction
public SecurityRuleDirection direction()
Returns:
网络安全规则所应用到的网络流量的方向。
priority
public int priority()
Returns:
此规则的优先级编号,将基于此规则应用相对于为此网络安全组指定的任何其他规则的优先级编号
protocol
public SecurityRuleProtocol protocol()
Returns:
规则应用于的网络协议
sourceAddressPrefix
public String sourceAddressPrefix()
Returns:
规则适用的源地址前缀,使用 CIDR 表示法表示,格式为:“###.#.####”,“*”表示“any”
sourcePortRange
public String sourcePortRange()
Returns:
规则适用的源端口范围,格式为“##-##”,其中“*”表示“any”
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈