Workspaces

Workspaces allows you to add, edit, and delete workspaces in your account.

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

attack_signal_thresholdsobjectAttack threshold parameters for system site alerts. Each threshold value is the number of attack signals per IP address that must be detected during the interval before the related IP address is flagged. Required.
client_ip_headersarraySpecifies the request headers containing the client IP address.
default_blocking_response_codeintegerThe status code returned when a request is blocked. This configuration is applied at the workspace but can be overwritten in rules. Accepted values are [301, 302, 400..599]. Required. [Default 406]
default_redirect_urlstringThe redirect URL used if default_blocking_response_code is 301 or 302.
descriptionstringUser-submitted description of a workspace. Required.
idstringA base62-encoded representation of a UUID used to uniquely identify a workspace. Required. Read-only.
ip_anonymizationstringAgents will anonymize IP addresses according to the option selected.
modestringUser-configured mode of a workspace. Required.
namestringUser-submitted display name of a workspace. Required.

Endpoints

List workspaces

GET/ngwaf/v1/workspaces

Create a workspace

POST/ngwaf/v1/workspaces

Get a workspace

GET/ngwaf/v1/workspaces/workspace_id

Remove a workspace

DELETE/ngwaf/v1/workspaces/workspace_id

Edit a workspace

PATCH/ngwaf/v1/workspaces/workspace_id