arazzo: 1.0.1
info:
title: Cloudflare Create WAF Override
summary: Create a URI-based WAF override, read it back, then list the overrides.
description: >-
A WAF override scopes managed-rule behavior to specific URLs. The workflow
creates a URI-based WAF override for a list of URLs, reads it back by id to
confirm it persisted, and lists the zone's overrides. This targets the
previous version of WAF managed rules, which is what the override endpoints
operate on. Each step inlines its request and asserts both the documented
HTTP 200 status and the Cloudflare {success, result} envelope flag.
version: 1.0.0
sourceDescriptions:
- name: zonesApi
url: ../openapi/cloudflare-zones-api-openapi.yml
type: openapi
workflows:
- workflowId: create-waf-override
summary: Create a WAF override, fetch it by id, and list the overrides.
description: >-
Creates a URI-based WAF override for the supplied URLs, retrieves it by id to
confirm it persisted, and lists the zone's WAF overrides.
inputs:
type: object
required:
- zoneId
- urls
properties:
zoneId:
type: string
description: The unique identifier of the zone.
urls:
type: array
items:
type: string
description: The list of URL patterns the override applies to.
description:
type: string
description: A human-readable description for the override.
steps:
- stepId: createOverride
description: Create a URI-based WAF override for the supplied URLs.
operationId: waf-overrides-create-a-waf-override
parameters:
- name: zone_identifier
in: path
value: $inputs.zoneId
requestBody:
contentType: application/json
payload:
urls: $inputs.urls
description: $inputs.description
successCriteria:
- condition: $statusCode == 200
- condition: $response.body#/success == true
outputs:
overrideId: $response.body#/result/id
- stepId: getOverride
description: Fetch the WAF override by id to confirm it persisted.
operationId: waf-overrides-get-a-waf-override
parameters:
- name: zone_identifier
in: path
value: $inputs.zoneId
- name: id
in: path
value: $steps.createOverride.outputs.overrideId
successCriteria:
- condition: $statusCode == 200
- condition: $response.body#/success == true
outputs:
overrideId: $response.body#/result/id
- stepId: listOverrides
description: List the zone's WAF overrides to confirm the new override is present.
operationId: waf-overrides-list-waf-overrides
parameters:
- name: zone_identifier
in: path
value: $inputs.zoneId
successCriteria:
- condition: $statusCode == 200
- condition: $response.body#/success == true
outputs:
overrides: $response.body#/result
outputs:
overrideId: $steps.getOverride.outputs.overrideId
overrides: $steps.listOverrides.outputs.overrides
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.