Skip to main content
WAFs

Create a web application firewall

Creates a WAF for a domain with upstream servers and selected protection profile. The domain must be a naked hostname (no scheme, path, or port) and must not already be in use in Gatekeeper by another active LB/WAF. This operation is synchronous and returns the created resource.

POST
/wafs
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
botguardProtectionboolean

Enable Botguard request inspection/protection (advanced profile only).

cacheDynamicPagesboolean

Cache dynamic page responses when eligible.

cacheStaticFilesboolean

Cache static assets at the edge.

ddosProtectionboolean

Enable baseline DDoS mitigation (advanced profile only).

ddosProtectionAdvancedboolean

Enable advanced DDoS mitigation controls (advanced profile only).

domainstringrequired

Naked domain to protect (for example example.com). Do not include http(s), path, or port.

enableHttp3boolean

Enable HTTP/3 (QUIC) support on the edge.

namestringrequired

Human-readable WAF name (max 255 chars).

protectionLevelenum<string>

WAF profile: monitoring (observability-focused, relaxed blocking), full (all protections enabled), or advanced (manual toggle control for protection flags).

Available options: monitoring, full, advanced
upstreamsobject[]required

Backend upstream targets for protected traffic.

Minimum array length: 1
upstreamsUseHttpsboolean

Use HTTPS (443) to upstream servers when true; HTTP (80) when false.

Response

application/json

WAF created

domainstring

Canonical naked domain protected by this WAF.

idstring

WAF device ID. Use this value for get/patch/delete operations.

namestring

Human-readable WAF name.

protectionLevelenum<string>

Current WAF protection profile applied to this domain.

Available options: monitoring, full, advanced
settingsobject

Effective WAF edge settings currently applied in Gatekeeper.

upstreamsobject[]

Backend upstream servers currently attached to this WAF.