Cloudflare · Arazzo Workflow

Cloudflare Toggle WAF Setting

Version 1.0.0

Read the zone WAF setting, change it, then read it back to confirm.

1 workflow 1 source API 1 provider
View Spec View on GitHub AI GatewayAPI GatewayArtificial IntelligenceCDNCloudContainersDDoS ProtectionDNSEdgeEdge ComputingObject StoragePlatformReal-Time CommunicationSecurityServerlessWeb PerformanceArazzoWorkflows

Provider

cloudflare

Workflows

toggle-waf-setting
Read, change, and re-read the zone WAF setting.
Reads the current Web Application Firewall setting, changes it to the supplied value, and reads it back to confirm the change.
3 steps inputs: value, zoneId outputs: confirmedValue, previousValue
1
getWafSetting
Read the current zone WAF setting before changing it.
2
changeWafSetting
Change the zone WAF setting to the requested value.
3
verifyWafSetting
Read the WAF setting back to confirm the change was applied.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Cloudflare Toggle WAF Setting
  summary: Read the zone WAF setting, change it, then read it back to confirm.
  description: >-
    The zone-level Web Application Firewall setting turns Cloudflare's managed
    WAF on or off for the zone. The workflow reads the current WAF setting,
    changes it to the requested value, and reads it back to confirm the change
    took effect. 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: toggle-waf-setting
  summary: Read, change, and re-read the zone WAF setting.
  description: >-
    Reads the current Web Application Firewall setting, changes it to the
    supplied value, and reads it back to confirm the change.
  inputs:
    type: object
    required:
    - zoneId
    - value
    properties:
      zoneId:
        type: string
        description: The unique identifier of the zone.
      value:
        type: string
        description: The desired WAF setting state (on or off).
  steps:
  - stepId: getWafSetting
    description: Read the current zone WAF setting before changing it.
    operationId: zone-settings-get-web-application-firewall-(-waf)-setting
    parameters:
    - name: zone_id
      in: path
      value: $inputs.zoneId
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.success == true
      type: jsonpath
    outputs:
      previousValue: $response.body#/result/value
  - stepId: changeWafSetting
    description: Change the zone WAF setting to the requested value.
    operationId: zone-settings-change-web-application-firewall-(-waf)-setting
    parameters:
    - name: zone_id
      in: path
      value: $inputs.zoneId
    requestBody:
      contentType: application/json
      payload:
        value: $inputs.value
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.success == true
      type: jsonpath
    outputs:
      newValue: $response.body#/result/value
  - stepId: verifyWafSetting
    description: Read the WAF setting back to confirm the change was applied.
    operationId: zone-settings-get-web-application-firewall-(-waf)-setting
    parameters:
    - name: zone_id
      in: path
      value: $inputs.zoneId
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.success == true
      type: jsonpath
    - context: $response.body
      condition: $.result.value == $inputs.value
      type: jsonpath
    outputs:
      confirmedValue: $response.body#/result/value
  outputs:
    previousValue: $steps.getWafSetting.outputs.previousValue
    confirmedValue: $steps.verifyWafSetting.outputs.confirmedValue

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/cloudflare-toggle-waf-setting-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.