bunny_list_pull_zones
List pull zones
List the CDN pull zones on the account. By default returns a compact view per zone (id, name, origin URL, enabled/suspended, hostnames, linked storage zone, bandwidth and charges this month); set full=true for every setting. bunny.net: GET /pullzone.
Parametersfullpagesearchper_page
bunny_get_pull_zone
Get a pull zone
Fetch one pull zone with all its settings: origin, hostnames, caching, security, edge rules (with their GUIDs, needed by bunny_set_edge_rule_enabled), blocked IPs, limits and usage. Secrets (token-auth key, AWS signing secret, certificate private keys) are redacted. bunny.net: GET /pullzone/{id}.
Parameterspull_zone_idrequiredinclude_certificate
bunny_list_storage_zones
List storage zones
List the edge storage zones on the account: region, replication regions, storage used, file count, tier and connected pull zones. Storage passwords are redacted. bunny.net: GET /storagezone.
Parameterspagesearchper_pageinclude_deleted
bunny_get_storage_zone
Get a storage zone
Fetch one edge storage zone: hostname, region, replication, storage used, files stored, 404 handling and connected pull zones. Storage passwords are redacted. bunny.net: GET /storagezone/{id}.
Parametersstorage_zone_idrequired
bunny_get_storage_zone_statistics
Get storage zone statistics
Daily charts of storage used and file count for one storage zone. bunny.net: GET /storagezone/{id}/statistics.
Parametersdate_todate_fromstorage_zone_idrequired
bunny_list_dns_zones
List DNS zones
List the DNS zones hosted on bunny.net, with nameserver detection, DNSSEC and logging status. bunny.net: GET /dnszone.
Parameterspagesearchper_page
bunny_get_dns_zone
Get a DNS zone
Fetch one DNS zone with its settings and records. bunny.net: GET /dnszone/{id}.
Parameterszone_idrequired
bunny_list_dns_records
List DNS records
List the records in one DNS zone, optionally filtered by type or search term. Record Type comes back as bunny.net's integer code (0=A, 1=AAAA, 2=CNAME, 3=TXT, 4=MX, 5=Redirect, 6=Flatten, 7=PullZone, 8=SRV, 9=CAA, 10=PTR, 11=Script, 12=NS, 13=SVCB, 14=HTTPS, 15=TLSA). bunny.net: GET /dnszone/{zoneId}/records.
Parameterspagetypesearchzone_idrequiredper_page
bunny_export_dns_zone
Export a DNS zone
Export one DNS zone as a BIND zone file (plain text) — handy for review, diffing or backup before a change. bunny.net: GET /dnszone/{id}/export.
Parameterszone_idrequired
bunny_list_video_libraries
List video libraries
List the Stream video libraries: video count, storage and traffic usage, linked pull/storage zones and player/encoding settings. Library API keys are redacted. bunny.net: GET /videolibrary.
Parameterspagesearchper_page
bunny_get_video_library
Get a video library
Fetch one Stream video library with its full configuration (resolutions, DRM, referrer rules, transcribing, watermark). Library API keys are redacted. bunny.net: GET /videolibrary/{id}.
Parameterslibrary_idrequired
bunny_get_statistics
Get CDN statistics
CDN traffic statistics for the account or one pull zone: total bandwidth, origin traffic, requests served, cache hit rate and average origin response time, plus optional charts (bandwidth, requests, origin traffic, response times, 3xx/4xx/5xx errors, geographic distribution). bunny.net: GET /statistics.
Parametershourlydate_todate_fromregion_idload_errorspull_zone_idload_bandwidth_usedload_origin_trafficload_requests_servedload_origin_response_timesload_geographic_traffic_distribution
bunny_list_regions
List edge regions
List bunny.net's edge regions with their IDs, codes, location and per-GB traffic price. A cheap way to confirm the API key works. bunny.net: GET /region.
Takes no parameters.
bunny_get_billing
Get billing details
The account balance, this month's charges broken down by product (traffic per continent, storage, DNS, Stream, scripting, Shield, ...) and recent billing records. Payment-method tokens are redacted. bunny.net: GET /billing.
Takes no parameters.
bunny_get_audit_log
Get the audit log
Who changed what on one day: the account audit log (timestamp, product, resource, action, actor and a diff). Paginate with continuation_token. bunny.net: GET /user/audit/{date}.
Parametersdaterequiredlimitorderproductactor_idresource_idresource_typecontinuation_token
bunny_purge_pull_zone_cache
Purge a pull zone's cache
WRITE. Purge the cached content of one pull zone — everything, or only files carrying a cache tag. Nothing is lost (the CDN refetches from the origin) but the origin takes the refill load. bunny.net: POST /pullzone/{id}/purgeCache.
Parameterscache_tagpull_zone_idrequired
bunny_purge_url
Purge a URL from cache
WRITE. Purge one URL from the CDN cache. A URL ending in '/' purges everything under it unless exact_path is true; a '*' wildcard is also accepted. The CDN refetches from the origin. bunny.net: POST /purge.
Parametersurlrequiredasyncexact_path
bunny_add_dns_record
Add a DNS record
WRITE. Add a record to a DNS zone. Takes effect on live DNS. bunny.net: PUT /dnszone/{zoneId}/records.
Parameterstagttlnamerequiredporttyperequiredflagsvaluerequiredweightcommentzone_idrequireddisabledpriority+2 more
bunny_update_dns_record
Update a DNS record
WRITE. Update an existing DNS record. Takes effect on live DNS. Read the record first with bunny_list_dns_records and pass its type, name and value along with any other fields you want to keep or change. bunny.net: POST /dnszone/{zoneId}/records/{id}.
Parameterstagttlnamerequiredporttyperequiredflagsvaluerequiredweightcommentzone_idrequireddisabledpriority+3 more
bunny_set_edge_rule_enabled
Enable or disable an edge rule
WRITE. Turn one edge rule on a pull zone on or off (reversible — the rule is kept). Get the rule's GUID from bunny_get_pull_zone (EdgeRules[].Guid). bunny.net: POST /pullzone/{pullZoneId}/edgerules/{edgeRuleId}/setEdgeRuleEnabled.
Parametersenabledrequirededge_rule_idrequiredpull_zone_idrequired
bunny_add_blocked_ip
Block an IP on a pull zone
WRITE. Block an IP address from a pull zone (undo with bunny_remove_blocked_ip). bunny.net: POST /pullzone/{id}/addBlockedIp.
Parametersiprequiredpull_zone_idrequired
bunny_remove_blocked_ip
Unblock an IP on a pull zone
WRITE. Remove an IP address from a pull zone's block list. bunny.net: POST /pullzone/{id}/removeBlockedIp.
Parametersiprequiredpull_zone_idrequired