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

NetworkSecurityRule 类

定义

描述网络安全规则。

public class NetworkSecurityRule
type NetworkSecurityRule = class
Public Class NetworkSecurityRule
继承
NetworkSecurityRule

构造函数

NetworkSecurityRule()

初始化 NetworkSecurityRule 类的新实例。

NetworkSecurityRule(String, String, String, Int32, String, String, IList<String>, IList<String>, IList<String>, IList<String>)

初始化 NetworkSecurityRule 类的新实例。

属性

Access

获取或设置允许或拒绝的网络流量。 可能的值包括:“allow”、“deny”

Description

获取或设置网络安全规则说明。

DestinationAddressPrefixes

获取或设置目标地址前缀。 CIDR 或目标 IP 范围。

DestinationPortRanges

获取或设置目标端口范围。

Direction

获取或设置网络安全规则方向。 可能的值包括:“inbound”、“outbound”

Name

获取或设置网络安全规则名称。

Priority

获取或设置规则的优先级。 该值的范围可以是 1000 到 3000。 超出此范围的值是为 Service Fabric ManagerCluster 资源提供程序保留的。 集合中每个规则的优先级编号必须是唯一的。 优先级编号越低,规则优先级越高。

Protocol

获取或设置此规则适用的网络协议。 可能的值包括:“http”、“https”、“tcp”、“udp”、“icmp”、“ah”、“esp”

SourceAddressPrefixes

获取或设置 CIDR 或源 IP 范围。

SourcePortRanges

获取或设置源端口范围。

方法

Validate()

验证 对象。

适用于