Skip to content
Proud to collaborate with Microsoft for Startups

cloudflare.zones.list ​

List Cloudflare zones for the configured account

List Cloudflare zones for the account configured on the connection.

Lets a caller discover a zone_id (so cloudflare.dns.list_records and friends can be fed a zone instead of having the id pasted by hand).

Inputs:

  • (none) — the account is taken from the cloudflare plugin/connection.

Outputs (terminal state_data):

  • zones: list of
  • total: int — number of zones returned

Plugin required: context.get_plugin("cloudflare") must expose .api_token and .account_id.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-cloudflare
Version1.0

Input Schema ​

No input fields required.

Output Schema ​

FieldTypeRequiredDefaultDescription
zoneslistNo——
totalintegerNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "cloudflare.zones.list",
  "initial_data": { }
}