bunnycdn.cache.purge ​
Purge Bunny CDN cache for specific URLs or an entire pull zone
Purge cache for a Bunny CDN pull zone or specific URLs.
To purge specific URLs, provide the urls list. To purge the entire pull zone, provide pull_zone_id with an empty urls list.
Inputs:
- pull_zone_id: Pull zone ID for full-zone purge (optional, required when urls is empty).
- urls: List of fully-qualified URLs to purge (optional).
Outputs (terminal state_data):
- purge_everything: bool — true when the entire zone was purged
- urls_purged: list — URLs that were individually purged
Plugin required: context.get_plugin("bunnycdn") must expose .api_key.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-bunnycdn |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
pull_zone_id | integer | No | — | Pull zone ID (required for full-zone purge) |
urls | json | No | — | List of fully-qualified URLs to purge |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
pull_zone_id | integer | No | — | — |
urls | json | No | — | — |
purge_everything | boolean | No | — | — |
urls_purged | list | 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": "bunnycdn.cache.purge",
"initial_data": {
"pull_zone_id": 123,
"urls": "value"
}
}