Skip to content
Start here

WAF

WAFOverrides

List WAF overrides
Deprecated
client.Firewall.WAF.Overrides.List(ctx, params) (*V4PagePaginationArray[Override], error)
GET/zones/{zone_id}/firewall/waf/overrides
Get a WAF override
Deprecated
client.Firewall.WAF.Overrides.Get(ctx, overridesID, query) (*Override, error)
GET/zones/{zone_id}/firewall/waf/overrides/{overrides_id}
Create a WAF override
Deprecated
client.Firewall.WAF.Overrides.New(ctx, params) (*Override, error)
POST/zones/{zone_id}/firewall/waf/overrides
Update WAF override
Deprecated
client.Firewall.WAF.Overrides.Update(ctx, overridesID, params) (*Override, error)
PUT/zones/{zone_id}/firewall/waf/overrides/{overrides_id}
Delete a WAF override
Deprecated
client.Firewall.WAF.Overrides.Delete(ctx, overridesID, body) (*WAFOverrideDeleteResponse, error)
DELETE/zones/{zone_id}/firewall/waf/overrides/{overrides_id}
ModelsExpand Collapse
type Override struct{…}
ID stringoptional

The unique identifier of the WAF override.

maxLength32
Description stringoptional

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

maxLength1024
Groups map[string, unknown]optional

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 booloptional

When true, indicates that the rule is currently paused.

Priority float64optional

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
RewriteAction RewriteActionoptional

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

Rules WAFRuleoptional

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 []OverrideURLoptional

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.

type OverrideURL string
type RewriteAction struct{…}

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

Block RewriteActionBlockoptional

The WAF rule action to apply.

One of the following:
const RewriteActionBlockChallenge RewriteActionBlock = "challenge"
const RewriteActionBlockBlock RewriteActionBlock = "block"
const RewriteActionBlockSimulate RewriteActionBlock = "simulate"
const RewriteActionBlockDisable RewriteActionBlock = "disable"
const RewriteActionBlockDefault RewriteActionBlock = "default"
Challenge RewriteActionChallengeoptional

The WAF rule action to apply.

One of the following:
const RewriteActionChallengeChallenge RewriteActionChallenge = "challenge"
const RewriteActionChallengeBlock RewriteActionChallenge = "block"
const RewriteActionChallengeSimulate RewriteActionChallenge = "simulate"
const RewriteActionChallengeDisable RewriteActionChallenge = "disable"
const RewriteActionChallengeDefault RewriteActionChallenge = "default"
Default RewriteActionDefaultoptional

The WAF rule action to apply.

One of the following:
const RewriteActionDefaultChallenge RewriteActionDefault = "challenge"
const RewriteActionDefaultBlock RewriteActionDefault = "block"
const RewriteActionDefaultSimulate RewriteActionDefault = "simulate"
const RewriteActionDefaultDisable RewriteActionDefault = "disable"
const RewriteActionDefaultDefault RewriteActionDefault = "default"
Disable RewriteActionDisableoptional

The WAF rule action to apply.

One of the following:
const RewriteActionDisableChallenge RewriteActionDisable = "challenge"
const RewriteActionDisableBlock RewriteActionDisable = "block"
const RewriteActionDisableSimulate RewriteActionDisable = "simulate"
const RewriteActionDisableDisable RewriteActionDisable = "disable"
const RewriteActionDisableDefault RewriteActionDisable = "default"
Simulate RewriteActionSimulateoptional

The WAF rule action to apply.

One of the following:
const RewriteActionSimulateChallenge RewriteActionSimulate = "challenge"
const RewriteActionSimulateBlock RewriteActionSimulate = "block"
const RewriteActionSimulateSimulate RewriteActionSimulate = "simulate"
const RewriteActionSimulateDisable RewriteActionSimulate = "disable"
const RewriteActionSimulateDefault RewriteActionSimulate = "default"
type WAFRule map[string, WAFRuleItem]

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:
const WAFRuleItemChallenge WAFRuleItem = "challenge"
const WAFRuleItemBlock WAFRuleItem = "block"
const WAFRuleItemSimulate WAFRuleItem = "simulate"
const WAFRuleItemDisable WAFRuleItem = "disable"
const WAFRuleItemDefault WAFRuleItem = "default"

WAFPackages

List WAF packages
Deprecated
client.Firewall.WAF.Packages.List(ctx, params) (*V4PagePaginationArray[WAFPackageListResponse], error)
GET/zones/{zone_id}/firewall/waf/packages
Get a WAF package
Deprecated
client.Firewall.WAF.Packages.Get(ctx, packageID, query) (*WAFPackageGetResponse, error)
GET/zones/{zone_id}/firewall/waf/packages/{package_id}

WAFPackagesGroups

List WAF rule groups
Deprecated
client.Firewall.WAF.Packages.Groups.List(ctx, packageID, params) (*V4PagePaginationArray[Group], error)
GET/zones/{zone_id}/firewall/waf/packages/{package_id}/groups
Get a WAF rule group
Deprecated
client.Firewall.WAF.Packages.Groups.Get(ctx, packageID, groupID, query) (*unknown, error)
GET/zones/{zone_id}/firewall/waf/packages/{package_id}/groups/{group_id}
Update a WAF rule group
Deprecated
client.Firewall.WAF.Packages.Groups.Edit(ctx, packageID, groupID, params) (*unknown, error)
PATCH/zones/{zone_id}/firewall/waf/packages/{package_id}/groups/{group_id}
ModelsExpand Collapse
type Group struct{…}
ID string

Defines the unique identifier of the rule group.

maxLength32
Description string

Defines an informative summary of what the rule group does.

Mode GroupMode

Defines the state of the rules contained in the rule group. When on, the rules in the group are configurable/usable.

One of the following:
const GroupModeOn GroupMode = "on"
const GroupModeOff GroupMode = "off"
Name string

Defines the name of the rule group.

RulesCount float64

Defines the number of rules in the current rule group.

AllowedModes []GroupAllowedModeoptional

Defines the available states for the rule group.

One of the following:
const GroupAllowedModeOn GroupAllowedMode = "on"
const GroupAllowedModeOff GroupAllowedMode = "off"
ModifiedRulesCount float64optional

Defines the number of rules within the group that have been modified from their default configuration.

PackageID stringoptional

Defines the unique identifier of a WAF package.

maxLength32

WAFPackagesRules

List WAF rules
Deprecated
client.Firewall.WAF.Packages.Rules.List(ctx, packageID, params) (*V4PagePaginationArray[WAFPackageRuleListResponse], error)
GET/zones/{zone_id}/firewall/waf/packages/{package_id}/rules
Get a WAF rule
Deprecated
client.Firewall.WAF.Packages.Rules.Get(ctx, packageID, ruleID, query) (*unknown, error)
GET/zones/{zone_id}/firewall/waf/packages/{package_id}/rules/{rule_id}
Update a WAF rule
Deprecated
client.Firewall.WAF.Packages.Rules.Edit(ctx, packageID, ruleID, params) (*WAFPackageRuleEditResponse, error)
PATCH/zones/{zone_id}/firewall/waf/packages/{package_id}/rules/{rule_id}
ModelsExpand Collapse
type AllowedModesAnomaly string

Defines the mode anomaly. When set to on, the current WAF rule will be used when evaluating the request. Applies to anomaly detection WAF rules.

One of the following:
const AllowedModesAnomalyOn AllowedModesAnomaly = "on"
const AllowedModesAnomalyOff AllowedModesAnomaly = "off"
type WAFRuleGroup struct{…}

Defines the rule group to which the current WAF rule belongs.

ID stringoptional

Defines the unique identifier of the rule group.

maxLength32
Name stringoptional

Defines the name of the rule group.