WebApplicationFirewallCustomRule interface

Defines contents of a web application rule.

Properties

action

Type of Actions.

etag

A unique read-only string that changes whenever the resource is updated. NOTE: This property will not be serialized. It can only be populated by the server.

groupByUserSession

List of user session identifier group by clauses.

matchConditions

List of match conditions.

name

The name of the resource that is unique within a policy. This name can be used to access the resource.

priority

Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.

rateLimitDuration

Duration over which Rate Limit policy will be applied. Applies only when ruleType is RateLimitRule.

rateLimitThreshold

Rate Limit threshold to apply in case ruleType is RateLimitRule. Must be greater than or equal to 1

ruleType

The rule type.

state

Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.

Property Details

action

Type of Actions.

action: string

Property Value

string

etag

A unique read-only string that changes whenever the resource is updated. NOTE: This property will not be serialized. It can only be populated by the server.

etag?: string

Property Value

string

groupByUserSession

List of user session identifier group by clauses.

groupByUserSession?: GroupByUserSession[]

Property Value

matchConditions

List of match conditions.

matchConditions: MatchCondition[]

Property Value

name

The name of the resource that is unique within a policy. This name can be used to access the resource.

name?: string

Property Value

string

priority

Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.

priority: number

Property Value

number

rateLimitDuration

Duration over which Rate Limit policy will be applied. Applies only when ruleType is RateLimitRule.

rateLimitDuration?: string

Property Value

string

rateLimitThreshold

Rate Limit threshold to apply in case ruleType is RateLimitRule. Must be greater than or equal to 1

rateLimitThreshold?: number

Property Value

number

ruleType

The rule type.

ruleType: string

Property Value

string

state

Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.

state?: string

Property Value

string