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

SecurityRule 类

定义

网络安全规则。

[Microsoft.Rest.Serialization.JsonTransformation]
public class SecurityRule : Microsoft.Azure.Management.Network.Models.SubResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type SecurityRule = class
    inherit SubResource
Public Class SecurityRule
Inherits SubResource
继承
SecurityRule
属性

构造函数

SecurityRule()

初始化 SecurityRule 类的新实例。

SecurityRule(String, String, String, String, String, String, String, String, IList<String>, IList<ApplicationSecurityGroup>, String, IList<String>, IList<ApplicationSecurityGroup>, IList<String>, IList<String>, Nullable<Int32>, String, String, String, String)

初始化 SecurityRule 类的新实例。

属性

Access

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

Description

获取或设置此规则的说明。 限制为 140 个字符。

DestinationAddressPrefix

获取或设置目标地址前缀。 CIDR 或目标 IP 范围。 也可以使用星号“*”来匹配所有源 IP。 也可以使用“VirtualNetwork”、“AzureLoadBalancer”和“Internet”等默认标记。

DestinationAddressPrefixes

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

DestinationApplicationSecurityGroups

获取或设置指定为目标的应用程序安全组。

DestinationPortRange

获取或设置目标端口或范围。 介于 0 和 65535 之间的整数或范围。 星号“*”也可用于匹配所有端口。

DestinationPortRanges

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

Direction

获取或设置规则的方向。 direction 指定是要针对传入流量还是传出流量评估该规则。 可能的值包括:“Inbound”、“Outbound”

Etag

获取一个唯一的只读字符串,该字符串在资源更新时会更改。

Id

获取或设置资源 ID。

(继承自 SubResource)
Name

获取或设置资源组中唯一的资源的名称。 此名称可用于访问资源。

Priority

获取或设置规则的优先级。 该值可以介于 100 和 4096 之间。 集合中每个规则的优先级编号必须是唯一的。 优先级编号越低,规则优先级越高。

Protocol

获取或设置此规则适用的网络协议。 可能的值包括:“Tcp”、“Udp”、“Icmp”、“Esp”、“*”、“Ah”

ProvisioningState

获取安全规则资源的预配状态。 可能的值包括:“Succeeded”、“Updateing”、“删除”、“Failed”

SourceAddressPrefix

获取或设置 CIDR 或源 IP 范围。 也可以使用星号“*”来匹配所有源 IP。 也可以使用“VirtualNetwork”、“AzureLoadBalancer”和“Internet”等默认标记。 如果这是入口规则,则指定网络流量的来源。

SourceAddressPrefixes

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

SourceApplicationSecurityGroups

获取或设置指定为源的应用程序安全组。

SourcePortRange

获取或设置源端口或范围。 介于 0 和 65535 之间的整数或范围。 星号“*”也可用于匹配所有端口。

SourcePortRanges

获取或设置源端口范围。

Type

获取或设置资源的类型。

方法

Validate()

验证 对象。

适用于