Create a firewall
POST {{fastly_url}}/waf/firewalls
Create a firewall object for a particular service and service version using a defined prefetchcondition and response. If the prefetchcondition or the response is missing from the request body, Fastly will generate a default object on your service.
Authorization: API token with at least Engineer permissions.
Request Body
{"data"=>{"type"=>"waf_firewall", "attributes"=>{"prefetch_condition"=>"WAF_Condition", "response"=>"WAF_Error", "service_id"=>"SU1Z0isxPaozGVKXdv0eY", "service_version_number"=>1}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Host | string | ||
Content-Type | string | ||
Accept | string |