Skip to content
Start here

Overrides

List WAF overrides
Deprecated
client.firewall.waf.overrides.list(OverrideListParams { zone_id, page, per_page } params, RequestOptionsoptions?): V4PagePaginationArray<Override { id, description, groups, 5 more } >
GET/zones/{zone_id}/firewall/waf/overrides
Get a WAF override
Deprecated
client.firewall.waf.overrides.get(stringoverridesID, OverrideGetParams { zone_id } params, RequestOptionsoptions?): Override { id, description, groups, 5 more }
GET/zones/{zone_id}/firewall/waf/overrides/{overrides_id}
Create a WAF override
Deprecated
client.firewall.waf.overrides.create(OverrideCreateParams { zone_id, urls } params, RequestOptionsoptions?): Override { id, description, groups, 5 more }
POST/zones/{zone_id}/firewall/waf/overrides
Update WAF override
Deprecated
client.firewall.waf.overrides.update(stringoverridesID, OverrideUpdateParams { zone_id, id, rewrite_action, 2 more } params, RequestOptionsoptions?): Override { id, description, groups, 5 more }
PUT/zones/{zone_id}/firewall/waf/overrides/{overrides_id}
Delete a WAF override
Deprecated
client.firewall.waf.overrides.delete(stringoverridesID, OverrideDeleteParams { zone_id } params, RequestOptionsoptions?): OverrideDeleteResponse { id }
DELETE/zones/{zone_id}/firewall/waf/overrides/{overrides_id}
ModelsExpand Collapse
Override { id, description, groups, 5 more }
id?: string

The unique identifier of the WAF override.

maxLength32
description?: string | null

An informative summary of the current URI-based WAF override.

maxLength1024
groups?: Record<string, unknown>

An object that allows you to enable or disable WAF rule groups for the current WAF override. Each key of this object must be the ID of a WAF rule group, and each value must be a valid WAF action (usually default or disable). When creating a new URI-based WAF override, you must provide a groups object or a rules object.

paused?: boolean

When true, indicates that the rule is currently paused.

priority?: number

The relative priority of the current URI-based WAF override when multiple overrides match a single URL. A lower number indicates higher priority. Higher priority overrides may overwrite values set by lower priority overrides.

maximum1000000000
minimum-1000000000
rewrite_action?: RewriteAction { block, challenge, default, 2 more }

Specifies that, when a WAF rule matches, its configured action will be replaced by the action configured in this object.

rules?: WAFRule { , , , 2 more }

An object that allows you to override the action of specific WAF rules. Each key of this object must be the ID of a WAF rule, and each value must be a valid WAF action. Unless you are disabling a rule, ensure that you also enable the rule group that this WAF rule belongs to. When creating a new URI-based WAF override, you must provide a groups object or a rules object.

urls?: Array<OverrideURL>

The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.

OverrideURL = string
RewriteAction { block, challenge, default, 2 more }

Specifies that, when a WAF rule matches, its configured action will be replaced by the action configured in this object.

block?: "challenge" | "block" | "simulate" | 2 more

The WAF rule action to apply.

One of the following:
"challenge"
"block"
"simulate"
"disable"
"default"
challenge?: "challenge" | "block" | "simulate" | 2 more

The WAF rule action to apply.

One of the following:
"challenge"
"block"
"simulate"
"disable"
"default"
default?: "challenge" | "block" | "simulate" | 2 more

The WAF rule action to apply.

One of the following:
"challenge"
"block"
"simulate"
"disable"
"default"
disable?: "challenge" | "block" | "simulate" | 2 more

The WAF rule action to apply.

One of the following:
"challenge"
"block"
"simulate"
"disable"
"default"
simulate?: "challenge" | "block" | "simulate" | 2 more

The WAF rule action to apply.

One of the following:
"challenge"
"block"
"simulate"
"disable"
"default"
WAFRule = Record<string, "challenge" | "block" | "simulate" | 2 more>

An object that allows you to override the action of specific WAF rules. Each key of this object must be the ID of a WAF rule, and each value must be a valid WAF action. Unless you are disabling a rule, ensure that you also enable the rule group that this WAF rule belongs to. When creating a new URI-based WAF override, you must provide a groups object or a rules object.

One of the following:
"challenge"
"block"
"simulate"
"disable"
"default"
OverrideDeleteResponse { id }
id?: string

The unique identifier of the WAF override.

maxLength32