View as Markdown
Cloudflare icon

Cloudflare ACTION

Create IP Access Rule

Creates a new IP Access Rule for an account. The rule will apply to all zones in the account. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Cloudflare account once, then configure and run Create IP Access Rule from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "cloudflare_api_key-create-ip-access-rule",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    cloudflare_api_key: { authProvisionId: "apn_xxxxxxx" },
    accountIdentifier: "Account ID",
    mode: "Mode",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create IP Access Rule inputs
Property Type Description
accountIdentifier Account ID string
Account that the IP access rule will apply to
Required Dynamic
mode Mode string
The action to apply to a matched request
Required
target Target string
The configuration target. The configuration value must match the target type
Required
value Value string
The value to match the target type
Required
notes Notes string
An informative summary of the rule, typically used as a reminder or explanation
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
cloudflare_api_key-create-ip-access-rule
Version
0.0.5
App
Cloudflare
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes