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 ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-cloudflare |
| Version | 1.0 |
Input Schema ​
No input fields required.
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
zones | list | No | — | — |
total | integer | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cloudflare.zones.list",
"initial_data": { }
}