Cloudflare · Arazzo Workflow

Cloudflare Update Entrypoint Ruleset

Version 1.0.0

Read a phase entrypoint ruleset, then replace its rules in one update.

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

update-entrypoint-ruleset
Read a phase entrypoint ruleset and replace its rules.
Fetches the entrypoint ruleset for a phase, then updates it to contain a single rule applying the supplied action on a matching expression.
2 steps inputs: phase, ruleAction, ruleExpression, zoneId outputs: newVersion, previousVersion, rulesetId
1
getEntrypoint
Read the current entrypoint ruleset for the phase to capture its version.
2
updateEntrypoint
Replace the entrypoint ruleset rules with a single rule, creating a new version.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Cloudflare Update Entrypoint Ruleset
  summary: Read a phase entrypoint ruleset, then replace its rules in one update.
  description: >-
    Each ruleset phase has a single entrypoint ruleset that Cloudflare evaluates
    for that phase. The workflow reads the current entrypoint ruleset for a
    phase to capture its version, then replaces its rule list with a new rule in
    one update, creating a new version. 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: update-entrypoint-ruleset
  summary: Read a phase entrypoint ruleset and replace its rules.
  description: >-
    Fetches the entrypoint ruleset for a phase, then updates it to contain a
    single rule applying the supplied action on a matching expression.
  inputs:
    type: object
    required:
    - zoneId
    - phase
    - ruleAction
    - ruleExpression
    properties:
      zoneId:
        type: string
        description: The unique identifier of the zone.
      phase:
        type: string
        description: >-
          The ruleset phase whose entrypoint will be updated (e.g.
          http_request_firewall_custom).
      ruleAction:
        type: string
        description: The action the replacement rule applies (e.g. block, challenge).
      ruleExpression:
        type: string
        description: The Cloudflare expression that triggers the replacement rule.
  steps:
  - stepId: getEntrypoint
    description: Read the current entrypoint ruleset for the phase to capture its version.
    operationId: getZoneEntrypointRuleset
    parameters:
    - name: zone_id
      in: path
      value: $inputs.zoneId
    - name: ruleset_phase
      in: path
      value: $inputs.phase
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.success == true
      type: jsonpath
    outputs:
      version: $response.body#/result/version
  - stepId: updateEntrypoint
    description: >-
      Replace the entrypoint ruleset rules with a single rule, creating a new
      version.
    operationId: updateZoneEntrypointRuleset
    parameters:
    - name: zone_id
      in: path
      value: $inputs.zoneId
    - name: ruleset_phase
      in: path
      value: $inputs.phase
    requestBody:
      contentType: application/json
      payload:
        rules:
        - action: $inputs.ruleAction
          expression: $inputs.ruleExpression
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.success == true
      type: jsonpath
    outputs:
      rulesetId: $response.body#/result/id
      version: $response.body#/result/version
  outputs:
    previousVersion: $steps.getEntrypoint.outputs.version
    rulesetId: $steps.updateEntrypoint.outputs.rulesetId
    newVersion: $steps.updateEntrypoint.outputs.version

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-update-entrypoint-ruleset-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.