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

RoutingRule interface

路由规则表示要处理的流量以及发送位置以及运行状况探测信息的规范。

扩展

属性

acceptedProtocols

要与此规则匹配的协议方案

enabledState

是否启用此规则的使用。 允许的值为“Enabled”或“Disabled”

frontendEndpoints

与此规则关联的前端终结点

name

资源名称。

patternsToMatch

规则的路由模式。

resourceState

资源状态。 注意:此属性不会序列化。 它只能由服务器填充。

routeConfiguration

对路由配置的引用。

rulesEngine

对要应用于此路由的特定规则引擎配置的引用。

type

资源类型。 注意:此属性不会序列化。 它只能由服务器填充。

webApplicationFirewallPolicyLink

为每个路由规则定义 Web 应用程序防火墙策略(如果适用)

继承属性

id

资源 ID。

属性详细信息

acceptedProtocols

要与此规则匹配的协议方案

acceptedProtocols?: string[]

属性值

string[]

enabledState

是否启用此规则的使用。 允许的值为“Enabled”或“Disabled”

enabledState?: string

属性值

string

frontendEndpoints

与此规则关联的前端终结点

frontendEndpoints?: SubResource[]

属性值

name

资源名称。

name?: string

属性值

string

patternsToMatch

规则的路由模式。

patternsToMatch?: string[]

属性值

string[]

resourceState

资源状态。 注意:此属性不会序列化。 它只能由服务器填充。

resourceState?: string

属性值

string

routeConfiguration

对路由配置的引用。

routeConfiguration?: RouteConfigurationUnion

属性值

rulesEngine

对要应用于此路由的特定规则引擎配置的引用。

rulesEngine?: SubResource

属性值

type

资源类型。 注意:此属性不会序列化。 它只能由服务器填充。

type?: string

属性值

string

为每个路由规则定义 Web 应用程序防火墙策略(如果适用)

webApplicationFirewallPolicyLink?: RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink

属性值

继承属性详细信息

id

资源 ID。

id?: string

属性值

string

继承自 SubResource.id