Thresholds

Manage workspace thresholds.

IMPORTANT: The Fastly Next-Gen WAF API is only available to customers with access to the Next-Gen WAF product in the Fastly control panel. If you have access to the Next-Gen WAF control panel, check out the Next-Gen WAF API.

Data model

A threshold configuration.

actionstringThe action to take when a threshold is exceeded. Use block_immediately to block every request carrying the configured signal unconditionally, with no rate window applied. When using block_immediately, the interval, limit, duration, and dont_notify fields are stored as provided but not evaluated. Supported only for Pentest, CVE, XXE, and AWS-SSRF signals. Required.
dont_notifybooleanWhether to silence notifications when the action is taken. Has no effect when action is block_immediately. Notifications are never sent for that action.
durationintegerDuration the action is in place. Default duration is 86,400 seconds (1 day).
enabledbooleanWhether this threshold is active. Required.
idstringThreshold ID. Read-only.
intervalintegerThreshold interval in seconds. Default interval is 3600 seconds (1 hour).
limitintegerThreshold limit. Default limit is 10.
namestringThreshold name.
signalstringThe name of the signal this threshold is acting on. Required.

Endpoints

List thresholds

GET/ngwaf/v1/workspaces/workspace_id/thresholds

Create a new workspace threshold

POST/ngwaf/v1/workspaces/workspace_id/thresholds

Retrieve threshold

GET/ngwaf/v1/workspaces/workspace_id/thresholds/threshold_id

Remove a threshold

DELETE/ngwaf/v1/workspaces/workspace_id/thresholds/threshold_id

Edit threshold

PATCH/ngwaf/v1/workspaces/workspace_id/thresholds/threshold_id