Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeAtomic
LibraryApp-bunnycdn
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
pull_zone_idintegerNo—Pull zone ID (required for full-zone purge)
urlsjsonNo—List of fully-qualified URLs to purge

Output Schema ​

FieldTypeRequiredDefaultDescription
pull_zone_idintegerNo——
urlsjsonNo——
purge_everythingbooleanNo——
urls_purgedlistNo——
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": "bunnycdn.cache.purge",
  "initial_data": {
    "pull_zone_id": 123,
    "urls": "value"
  }
}