Logo
Fastly Developer Hub API Documentation

Create or update status of a tagged group of rules

POST {{fastly_url}}/service/{{service_id}}/wafs/{{firewall_id}}/rule_statuses?force&name

Create or update all rule statuses for a particular service and firewall, based on tag name. By default, only rule status for enabled rules (with status log or block) will be updated. To update rule statuses for disabled rules under the specified tag, use the force attribute.

Authorization: Requires API token, API token with at least Engineer permissions.

 

Body PARAM

Key Datatype Required Description 
force
null Whether or not to update rule statuses for disabled rules. Optional.
name
null The tag name to use to determine the set of rules to update. For example, OWASP or language-php.



HEADERS

Key Datatype Required Description 
Host
string
Content-Type
string
Accept
string




RESPONSES

status

Curl
curl -X POST 'https://api.fastly.com/service//wafs//rule_statuses?force&name?force=&name=' -H 'Host: api.fastly.com' -H 'Content-Type: application/vnd.api+json' -H 'Accept: application/vnd.api+json' -d '{"data":{"type":"rule_status","attributes":{"status":"block","name":"application-FBC Market","force":true}}}'

ENDPOINTS