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

NetworkSecurityRule.DefinitionStages.WithSourceAddress<ParentT> 接口

类型参数

ParentT

附加此定义后要返回到的父定义的阶段

public interface WithSourceAddress

允许指定源地址的网络规则定义的阶段。

方法摘要

修饰符和类型 方法和描述
NetworkSecurityRule.DefinitionStages.WithSourcePort<ParentT> fromAddress(String cidr)

指定应用此规则的流量源地址前缀。

NetworkSecurityRule.DefinitionStages.WithSourcePort<ParentT> fromAnyAddress()

指定规则应用于任何流量源地址。

方法详细信息

fromAddress

public WithSourcePort fromAddress(String cidr)

指定应用此规则的流量源地址前缀。

Parameters:

cidr - 以 CIDR 表示法表示的 IP 地址前缀

Returns:

定义的下一阶段

fromAnyAddress

public WithSourcePort fromAnyAddress()

指定规则应用于任何流量源地址。

Returns:

定义的下一阶段

适用于