Skip to content
Start here

Packages

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}

PackagesGroups

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

PackagesRules

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.