The bunny.net connector lets your AI agent act in each user's bunny.net account. Each user connects their own bunny.net API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 56 tools.
- Tools
- 56
- What they doRead · write · destructive
- 25 · 20 · 1125 read20 write11 destructive
- Users sign in with
- API key
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the bunny.net connection
In AgentKit > Connections, create a bunny.net connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'bunnynet'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize bunny.net:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'bunnynet_dns_zones_list',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "bunnynet"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize bunny.net:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="bunnynet_dns_zones_list",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user opens the link once and enters their bunny.net credentials there. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolbunnynet_audit_log_getGet the account audit log for one day: who changed which resource and how.Read-onlyGet Audit Log
Get the account audit log for one day: who changed which resource and how. Returns log entries with actor, product, resource, action and time, and a continuation token for more. Pass the token back to get the next page.
Inputs
datestringrequired- Day to read, YYYY-MM-DD. Example: 2026-05-20.
actor_idarray- Only changes by these users or API keys. Example: ["9a8b7c6d"].
continuation_tokenstring- Token from the previous page. Example: eyJwIjoxfQ.
limitinteger- Maximum entries. Example: 100.
orderstring- Sort order. Example: Ascending.one of
AscendingDescending productarray- Only these products. Example: ["PullZone"].
resource_idarray- Only these resource IDs. Example: ["1234567"].
resource_typearray- Only these resource types. Example: ["PullZone"].
bunnynet_dns_records_listList the records in a DNS zone, with paging, a type filter and a search.Read-onlyList DNS Records
List the records in a DNS zone, with paging, a type filter and a search. Returns each record's ID, type, name, value, TTL and routing settings.
Inputs
dns_zone_idintegerrequired- ID of the DNS zone. Get it from bunnynet_dns_zones_list. Example: 123456.
pageinteger- Page number, starting at 1. Example: 1.
per_pageinteger- Items per page (5 to 1000). Example: 100.
searchstring- Text to filter results by name. Example: example.
typeinteger- Only records of this type. Example: 0.one of
0123456789101112131415
bunnynet_dns_zone_availability_checkCheck whether a domain can be added as a DNS zone.Read-onlyCheck DNS Zone Availability
Check whether a domain can be added as a DNS zone. Returns whether the name is available.
Inputs
namestringrequired- Domain name to check, such as example.com. Example: example.com.
bunnynet_dns_zone_exportExport a DNS zone's records as a BIND zone file.Read-onlyExport DNS Zone
Export a DNS zone's records as a BIND zone file. Returns the zone file as text.
Inputs
dns_zone_idintegerrequired- ID of the dns zone. Get it from bunnynet_dns_zones_list. Example: 123456.
bunnynet_dns_zone_getGet one DNS zone by ID.Read-onlyGet DNS Zone
Get one DNS zone by ID. Returns the zone's domain, nameserver settings, SOA email, DNSSEC state and its records.
Inputs
dns_zone_idintegerrequired- ID of the dns zone. Get it from bunnynet_dns_zones_list. Example: 123456.
viewinteger- 0 = Full 1 = Lite. Example: 0.one of
01
bunnynet_dns_zone_statistics_getGet DNS query statistics for a zone over a period.Read-onlyGet DNS Zone Statistics
Get DNS query statistics for a zone over a period. Returns total queries and queries by type and over time.
Inputs
dns_zone_idintegerrequired- ID of the dns zone. Get it from bunnynet_dns_zones_list. Example: 123456.
date_fromstring- Start of the period, ISO 8601 date or date-time. Defaults to 30 days ago. Example: 2026-05-01.
date_tostring- End of the period, ISO 8601 date or date-time. Defaults to now. Example: 2026-05-31.
bunnynet_dns_zones_listList DNS zones in the account, with paging and a name search.Read-onlyList DNS Zones
List DNS zones in the account, with paging and a name search. Returns each zone's ID, domain, nameservers and record count. Use bunnynet_dns_zone_get for one zone with its records.
Inputs
pageinteger- Page number, starting at 1. Example: 1.
per_pageinteger- Items per page (5 to 1000). Example: 100.
searchstring- Text to filter results by name. Example: example.
viewinteger- 0 = Full 1 = Lite. Example: 0.one of
01
bunnynet_load_balancer_getGet one load balancer profile with its origin groups and origins.Read-onlyGet Load Balancer
Get one load balancer profile with its origin groups and origins. Returns the profile's name, balancing method, sticky sessions and origins.
Inputs
load_balancer_idintegerrequired- ID of the load balancer. Get it from bunnynet_load_balancers_list. Example: 4567.
bunnynet_load_balancer_statistics_getGet traffic statistics for a load balancer over a period.Read-onlyGet Load Balancer Statistics
Get traffic statistics for a load balancer over a period. Returns requests and origin health over time.
Inputs
load_balancer_idintegerrequired- ID of the load balancer. Get it from bunnynet_load_balancers_list. Example: 4567.
exact_rangeboolean- true to use the exact times. Example: false.
fromstring- Start of the period, ISO 8601. Example: 2026-05-01.
hourlyboolean- true for hourly data points, false for daily. Example: false.
tostring- End of the period, ISO 8601. Example: 2026-05-31.
bunnynet_load_balancers_listList load balancer profiles.Read-onlyList Load Balancers
List load balancer profiles. Returns each profile's ID, name, origin groups and settings.
Inputs
countinteger- Items per page. Example: 50.
pageinteger- Page number, starting at 1. Example: 1.
bunnynet_pull_zone_availability_checkCheck whether a pull zone name is free.Read-onlyCheck Pull Zone Name
Check whether a pull zone name is free. Returns whether the name is available.
Inputs
namestringrequired- Pull zone name to check. Example: my-site-cdn.
bunnynet_pull_zone_getGet one pull zone by ID.Read-onlyGet Pull Zone
Get one pull zone by ID. Returns the zone's origin, hostnames, edge rules, cache, security and optimizer settings.
Inputs
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
include_certificateboolean- true to include SSL certificate data for the hostnames. Example: false.
bunnynet_pull_zone_optimizer_statistics_getGet Bunny Optimizer statistics for a pull zone over a period.Read-onlyGet Optimizer Statistics
Get Bunny Optimizer statistics for a pull zone over a period. Returns optimized requests, traffic saved and average processing time.
Inputs
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
date_fromstring- Start of the period, ISO 8601 date or date-time. Defaults to 30 days ago. Example: 2026-05-01.
date_tostring- End of the period, ISO 8601 date or date-time. Defaults to now. Example: 2026-05-31.
hourlyboolean- true for hourly data points, false for daily. Example: false.
bunnynet_pull_zones_listList pull zones (CDN zones), with paging and a name search.Read-onlyList Pull Zones
List pull zones (CDN zones), with paging and a name search. Returns each zone's ID, name, origin, hostnames, enabled regions and traffic settings. Use bunnynet_pull_zone_get for one zone.
Inputs
include_certificateboolean- true to include SSL certificate data for the hostnames. Example: false.
pageinteger- Page number, starting at 1. Example: 1.
per_pageinteger- Items per page (5 to 1000). Example: 100.
searchstring- Text to filter results by name. Example: example.
bunnynet_regions_listList the bunny.net edge regions with their pricing.Read-onlyList Edge Regions
List the bunny.net edge regions with their pricing. Returns each region's ID, name, continent and price per GB.
Inputs
This tool takes no inputs.
bunnynet_searchSearch pull zones, storage zones, DNS zones, video libraries and other resources in the account by name.Read-onlySearch Resources
Search pull zones, storage zones, DNS zones, video libraries and other resources in the account by name. Returns matching resources with their type, ID and name. Use it when you know a name but not the resource type or ID.
Inputs
searchstringrequired- Text to search for. Example: my-site.
frominteger- Offset of the first result. Example: 0.
sizeinteger- Number of results. Example: 20.
bunnynet_statistics_getGet CDN traffic statistics for the account or one pull zone: bandwidth, requests, cache hit rate, errors and origin traffic over a period.Read-onlyGet CDN Statistics
Get CDN traffic statistics for the account or one pull zone: bandwidth, requests, cache hit rate, errors and origin traffic over a period. Returns totals and time series charts. Use the load_* flags to add optional series.
Inputs
date_fromstring- Start of the period, ISO 8601 date or date-time. Defaults to 30 days ago. Example: 2026-05-01.
date_tostring- End of the period, ISO 8601 date or date-time. Defaults to now. Example: 2026-05-31.
exact_rangeboolean- true to use the exact dates instead of whole days. Example: true.
hourlyboolean- true for hourly data points, false for daily. Example: false.
load_bandwidth_usedboolean- true to include bandwidth used. Example: true.
load_errorsboolean- true to include error counts. Example: true.
load_geographic_traffic_distributionboolean- true to include traffic by country. Example: true.
load_origin_response_timesboolean- true to include origin response times. Example: true.
load_origin_shield_bandwidthboolean- true to include origin shield bandwidth. Example: true.
load_origin_trafficboolean- true to include origin traffic. Example: true.
load_requests_servedboolean- true to include requests served. Example: true.
pull_zoneinteger- Only this pull zone ID; -1 or empty for all. Example: 1234567.
server_zone_idinteger- Only this edge region ID. Example: 1.
bunnynet_storage_zone_availability_checkCheck whether a storage zone name is free.Read-onlyCheck Storage Zone Name
Check whether a storage zone name is free. Returns whether the name is available.
Inputs
namestringrequired- Storage zone name to check. Example: my-files.
bunnynet_storage_zone_getGet one storage zone by ID.Read-onlyGet Storage Zone
Get one storage zone by ID. Returns the zone's name, region, replication, usage, files count and linked pull zones.
Inputs
storage_zone_idintegerrequired- ID of the storage zone. Get it from bunnynet_storage_zones_list. Example: 234567.
bunnynet_storage_zone_regions_listList the regions where storage zones can be created.Read-onlyList Storage Regions
List the regions where storage zones can be created. Returns each region's code, name and pricing.
Inputs
This tool takes no inputs.
bunnynet_storage_zone_statistics_getGet storage statistics for a zone over a period.Read-onlyGet Storage Zone Statistics
Get storage statistics for a zone over a period. Returns storage used and file count over time.
Inputs
storage_zone_idintegerrequired- ID of the storage zone. Get it from bunnynet_storage_zones_list. Example: 234567.
date_fromstring- Start of the period, ISO 8601 date or date-time. Defaults to 30 days ago. Example: 2026-05-01.
date_tostring- End of the period, ISO 8601 date or date-time. Defaults to now. Example: 2026-05-31.
bunnynet_storage_zones_listList storage zones, with paging and a name search.Read-onlyList Storage Zones
List storage zones, with paging and a name search. Returns each zone's ID, name, region, replication regions, usage and linked pull zones. Storage zone passwords in the response give file-level access; handle them carefully.
Inputs
include_deletedboolean- true to include deleted zones. Example: false.
pageinteger- Page number, starting at 1. Example: 1.
per_pageinteger- Items per page (5 to 1000). Example: 100.
searchstring- Text to filter results by name. Example: example.
bunnynet_video_libraries_listList Bunny Stream video libraries, with paging and a name search.Read-onlyList Video Libraries
List Bunny Stream video libraries, with paging and a name search. Returns each library's ID, name, video count, storage and traffic usage and settings.
Inputs
pageinteger- Page number, starting at 1. Example: 1.
per_pageinteger- Items per page (5 to 1000). Example: 100.
searchstring- Text to filter results by name. Example: example.
bunnynet_video_library_getGet one Bunny Stream video library by ID.Read-onlyGet Video Library
Get one Bunny Stream video library by ID. Returns the library's name, video count, regions, encoding and player settings.
Inputs
video_library_idintegerrequired- ID of the video library. Get it from bunnynet_video_libraries_list. Example: 345678.
bunnynet_video_library_languages_listList the languages supported for video captions and the player.Read-onlyList Video Languages
List the languages supported for video captions and the player. Returns each language's code and name.
Inputs
This tool takes no inputs.
bunnynet_dns_record_addAdd a record to a DNS zone.WriteAdd DNS Record
Add a record to a DNS zone. Returns the new record with its ID.
Inputs
dns_zone_idintegerrequired- ID of the DNS zone. Get it from bunnynet_dns_zones_list. Example: 123456.
typeintegerrequired- <details> <summary>Show all 16 values</summary> | Value | Name | |---|---| | `0` | A | | `1` | AAAA | | `2` | CNAME | | `3` | TXT | | `4` | MX | | `5` | Redirect | | `6` | Flatten | | `7` | Pull Zone | | `8` | SRV | | `9` | CAA | | `10` | PTR | | `11` | Script | | `12` | NS | | `13` | SVCB | | `14` | HTTPS | | `15` | TLSA | </details>. Example: 0.one of
0123456789101112131415 valuestringrequired- Record value, such as an IP address, hostname or text. Example: 203.0.113.10.
acceleratedboolean- true to route the record through the bunny.net CDN. Example: false.
commentstring- Comment. Example: Main website.
disabledboolean- Disabled. Example: false.
flagsinteger- Flags, for CAA records. Example: 0.
monitor_typeinteger- 0 = None 1 = Ping 2 = HTTP 3 = Monitor. Example: 0.one of
0123 namestring- Record name relative to the zone, such as www; leave empty for the zone apex. Example: www.
portinteger- Port, for SRV records. Example: 443.
priorityinteger- Priority, for MX and SRV records. Example: 10.
pull_zone_idinteger- Pull zone ID, for a Pull Zone (7) record. Example: 1234567.
smart_routing_typeinteger- 0 = None 1 = Latency 2 = Geolocation. Example: 0.one of
012 tagstring- CAA tag, such as issue. Example: issue.
ttlinteger- Time to live in seconds. Example: 300.
weightinteger- Weight, for SRV records and weighted routing. Example: 100.
bunnynet_dns_record_updateUpdate a DNS record's value, TTL or routing settings.WriteUpdate DNS Record
Update a DNS record's value, TTL or routing settings. Returns an empty response on success. Only the fields you pass change.
Inputs
dns_record_idintegerrequired- ID of the DNS record. Get it from bunnynet_dns_records_list. Example: 9876543.
dns_zone_idintegerrequired- ID of the DNS zone. Get it from bunnynet_dns_zones_list. Example: 123456.
acceleratedboolean- true to route the record through the bunny.net CDN. Example: false.
commentstring- Comment. Example: Main website.
disabledboolean- Disabled. Example: false.
flagsinteger- Flags, for CAA records. Example: 0.
monitor_typeinteger- 0 = None 1 = Ping 2 = HTTP 3 = Monitor. Example: 0.one of
0123 namestring- Record name relative to the zone, such as www; leave empty for the zone apex. Example: www.
portinteger- Port, for SRV records. Example: 443.
priorityinteger- Priority, for MX and SRV records. Example: 10.
pull_zone_idinteger- Pull zone ID, for a Pull Zone (7) record. Example: 1234567.
smart_routing_typeinteger- 0 = None 1 = Latency 2 = Geolocation. Example: 0.one of
012 tagstring- CAA tag, such as issue. Example: issue.
ttlinteger- Time to live in seconds. Example: 300.
typeinteger- <details> <summary>Show all 16 values</summary> | Value | Name | |---|---| | `0` | A | | `1` | AAAA | | `2` | CNAME | | `3` | TXT | | `4` | MX | | `5` | Redirect | | `6` | Flatten | | `7` | Pull Zone | | `8` | SRV | | `9` | CAA | | `10` | PTR | | `11` | Script | | `12` | NS | | `13` | SVCB | | `14` | HTTPS | | `15` | TLSA | </details>. Example: 0.one of
0123456789101112131415 valuestring- Record value, such as an IP address, hostname or text. Example: 203.0.113.10.
weightinteger- Weight, for SRV records and weighted routing. Example: 100.
bunnynet_dns_zone_createAdd a domain as a DNS zone.WriteCreate DNS Zone
Add a domain as a DNS zone. Returns the new zone with its ID and the nameservers to set at the registrar. Use bunnynet_dns_zone_availability_check first.
Inputs
domainstringrequired- Domain name to add, such as example.com. Example: example.com.
recordsarray- Optional array of DNS records to add when creating the zone. Example: [{}].
bunnynet_dns_zone_dnssec_enableEnable DNSSEC on a DNS zone.WriteEnable DNSSEC
Enable DNSSEC on a DNS zone. Returns the DS record details to add at the domain registrar.
- Idempotent
Inputs
dns_zone_idintegerrequired- ID of the dns zone. Get it from bunnynet_dns_zones_list. Example: 123456.
bunnynet_dns_zone_updateUpdate a DNS zone's nameserver, SOA email or logging settings.WriteUpdate DNS Zone
Update a DNS zone's nameserver, SOA email or logging settings. Returns the updated zone. Only the fields you pass change.
Inputs
dns_zone_idintegerrequired- ID of the dns zone. Get it from bunnynet_dns_zones_list. Example: 123456.
certificate_key_typeinteger- Sets the certificate private key type for wildcard certificates for this zone 0 = ECDSA 1 = RSA. Example: 0.one of
01 custom_nameservers_enabledboolean- Custom Nameservers Enabled. Example: false.
log_anonymization_typeinteger- Gets the log anonymization type for this zone 0 = One Digit 1 = Drop. Example: 0.one of
01 logging_enabledboolean- Logging Enabled. Example: true.
logging_ip_anonymization_enabledboolean- Determines if the log anonoymization should be enabled. Example: true.
nameserver1string- Nameserver1. Example: ns1.example.com.
nameserver2string- Nameserver2. Example: ns2.example.com.
soa_emailstring- Soa Email. Example: hostmaster@example.com.
bunnynet_edge_rule_add_or_updateAdd an edge rule to a pull zone, or update one by passing its Guid.WriteAdd or Update Edge Rule
Add an edge rule to a pull zone, or update one by passing its Guid. Returns an empty response on success. Edge rules run actions, such as redirects or header changes, when triggers match.
Inputs
action_typeintegerrequired- The action type of the edge rule <details> <summary>Show all 38 values</summary> | Value | Name | |---|---| | `0` | Force SSL | | `1` | Redirect | | `2` | Origin URL | | `3` | Override Cache Time | | `4` | Block Request | | `5` | Set Response Header | | `6` | Set Request Header | | `7` | Force Download | | `8` | Disable Token Authentication | | `9` | Enable Token Authentication | | `10` | Override Cache Time Public | | `11` | Ignore Query String | | `12` | Disable Optimizer | | `13` | Force Compression | | `14` | Set Status Code | | `15` | Bypass Perma-Cache | | `16` | Override Browser Cache Time | | `17` | Origin Storage | | `18` | Set Network Rate Limit | | `19` | Set Connection Limit | | `20` | Set Requests Per Second Limit | | `21` | Run Edge Script | | `22` | Origin Magic Containers | | `23` | Disable WAF | | `24` | Retry Origin | | `25` | Override Browser Cache Response Header | | `26` | Remove Browser Cache Response Header | | `27` | Disable Shield Challenge | | `28` | Disable Shield | | `29` | Disable Shield Bot Detection | | `30` | Bypass AWS S3 Authentication | | `31` | Disable Shield Access Lists | | `32` | Disable Shield Rate Limiting | | `33` | Enable Request Coalescing | | `34` | Disable Request Coalescing | | `35` | Use Load Balancer | | `36` | Force Load Balancer Sticky Session Mode | | `37` | Strip Cookies (Client to Origin) | </details>. Example: 1.one of
012345678910111213141516171819202122232425262728293031323334353637 pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
triggersarrayrequired- Trigger conditions: each has Type (0 URL, 1 request header, 2 response header, 3 file extension, 4 country, 5 remote IP, .), PatternMatches (list of patterns) and PatternMatchingType (0 match any, 1 match all, 2 match none). Example: [{"Type": 0, "PatternMatches": ["*/old/*"], "PatternMatchingType": 0}].
action_parameter1string- First action parameter, such as the redirect URL. Example: https://example.com/new.
action_parameter2string- Second action parameter, such as a header value. Example: 301.
descriptionstring- The description of the edge rule. Example: Redirect old paths.
enabledboolean- Determines if the edge rule is currently enabled or not. Example: true.
guidstring- ID of the edge rule to update; leave empty to add a new rule. Example: 3f1c2a9e-6b4d-4e8a-9c21-7d5e0b1a2f34.
trigger_matching_typeinteger- The trigger matching type 0 = Match Any 1 = Match All 2 = Match None. Example: 0.one of
012
bunnynet_edge_rule_enabled_setTurn an edge rule on or off.WriteEnable or Disable Edge Rule
Turn an edge rule on or off. Returns an empty response on success.
- Idempotent
Inputs
edge_rule_idstringrequired- GUID of the edge rule. Get it from bunnynet_pull_zone_get (EdgeRules). Example: 3f1c2a9e-6b4d-4e8a-9c21-7d5e0b1a2f34.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
idinteger- ID of the pull zone; the same value as pull_zone_id. Example: 1234567.
valueboolean- true to enable the rule, false to disable it. Example: true.
bunnynet_free_certificate_loadIssue a free Let's Encrypt certificate for a custom hostname on a pull zone.WriteLoad Free Certificate
Issue a free Let's Encrypt certificate for a custom hostname on a pull zone. Returns an empty response on success. The hostname's CNAME must already point at the zone.
- Idempotent
Inputs
hostnamestringrequired- Custom hostname to issue the certificate for. Example: cdn.example.com.
use_only_http01boolean- true to validate only with the HTTP-01 challenge. Example: false.
bunnynet_pull_zone_allowed_referrer_addAdd a referrer hostname to a pull zone's allow list.WriteAdd Allowed Referrer
Add a referrer hostname to a pull zone's allow list. Returns an empty response on success.
- Idempotent
Inputs
hostnamestringrequired- Referrer hostname, such as example.com; wildcards like *.example.com are allowed. Example: example.com.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_pull_zone_blocked_ip_addAdd an IP address to a pull zone's block list.WriteAdd Blocked IP
Add an IP address to a pull zone's block list. Returns an empty response on success.
- Idempotent
Inputs
blocked_ipstringrequired- IP address to block or unblock, such as 203.0.113.7. Example: 203.0.113.7.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_pull_zone_blocked_referrer_addAdd a referrer hostname to a pull zone's block list.WriteAdd Blocked Referrer
Add a referrer hostname to a pull zone's block list. Returns an empty response on success.
- Idempotent
Inputs
hostnamestringrequired- Referrer hostname, such as example.com; wildcards like *.example.com are allowed. Example: example.com.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_pull_zone_cache_purgePurge the whole cache of a pull zone, or only files with a cache tag.WritePurge Pull Zone Cache
Purge the whole cache of a pull zone, or only files with a cache tag. Returns an empty response on success. Use bunnynet_url_purge to purge a single URL.
Inputs
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
cache_tagstring- Only purge files with this cache tag. Example: product-images.
bunnynet_pull_zone_createCreate a pull zone (CDN zone) for an origin URL or a storage zone.WriteCreate Pull Zone
Create a pull zone (CDN zone) for an origin URL or a storage zone. Returns the new pull zone with its ID and b-cdn.net hostname. Use bunnynet_pull_zone_availability_check to check the name first.
Inputs
namestringrequired- Name of the pull zone; it becomes <name>.b-cdn.net. Example: my-site-cdn.
add_canonical_headerboolean- Determines if the canonical header should be added by this zone. Example: false.
blocked_countriesarray- Two-letter country codes to block. Example: ["KP"].
cache_control_browser_max_age_overrideinteger- Browser cache time in seconds; -1 follows the origin. Example: -1.
cache_control_max_age_overrideinteger- Edge cache time in seconds; -1 follows the origin's Cache-Control. Example: -1.
enable_auto_sslboolean- If set to true, any hostnames added to this Pull Zone will automatically enable SSL. Example: true.
enable_geo_zone_afboolean- Determines if the delivery from the Africa region should be enabled for this pull zone. Example: true.
enable_geo_zone_asiaboolean- Determines if the delivery from the Asia / Oceania regions should be enabled for this pull zone. Example: true.
enable_geo_zone_euboolean- Determines if the delivery from the Europe region should be enabled for this pull zone. Example: true.
enable_geo_zone_saboolean- Determines if the delivery from the South America region should be enabled for this pull zone. Example: true.
enable_geo_zone_usboolean- Determines if the delivery from the North America region should be enabled for this pull zone. Example: true.
enable_loggingboolean- Determines if the logging should be enabled for this zone. Example: true.
enable_origin_shieldboolean- Determines if the origin shield should be enabled. Example: false.
enable_smart_cacheboolean- Enable Smart Cache. Example: true.
enable_web_socketsboolean- Determines if WebSocket connections are allowed for this Pull Zone. Example: false.
ignore_query_stringsboolean- Determines if the Pull Zone should ignore query strings when serving cached objects (Vary by Query String). Example: true.
monthly_bandwidth_limitinteger- Monthly bandwidth limit in bytes; 0 for no limit. Example: 0.
optimizer_enabledboolean- Determines if the optimizer should be enabled for this zone. Example: false.
origin_host_headerstring- Sets the host header that will be sent to the origin. Example: origin.example.com.
origin_shield_zone_codestring- Origin shield location code, such as FR or IL. Example: FR.
origin_urlstring- Origin URL the CDN pulls files from, such as https://origin.example.com. Example: https://origin.example.com.
storage_zone_idinteger- ID of a storage zone to use as the origin instead of an origin URL. Example: 234567.
typeinteger- Tier: 0 Premium (standard network), 1 Volume (cheaper, fewer locations). Example: 0.one of
01
bunnynet_pull_zone_force_ssl_setTurn HTTPS redirection on or off for a hostname of a pull zone.WriteSet Force SSL
Turn HTTPS redirection on or off for a hostname of a pull zone. Returns an empty response on success.
- Idempotent
Inputs
force_sslbooleanrequired- true to redirect HTTP to HTTPS. Example: true.
hostnamestringrequired- Hostname, such as cdn.example.com. Example: cdn.example.com.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_pull_zone_hostname_addAdd a custom hostname to a pull zone.WriteAdd Custom Hostname
Add a custom hostname to a pull zone. Returns an empty response on success. Point a CNAME at the zone's b-cdn.net hostname, then load a free certificate with bunnynet_free_certificate_load.
Inputs
hostnamestringrequired- Hostname, such as cdn.example.com. Example: cdn.example.com.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_pull_zone_updateUpdate a pull zone's origin, regions, caching, security or optimizer settings.WriteUpdate Pull Zone
Update a pull zone's origin, regions, caching, security or optimizer settings. Returns the updated pull zone. Only the fields you pass change.
Inputs
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
add_canonical_headerboolean- Determines if the canonical header should be added by this zone. Example: false.
blocked_countriesarray- Two-letter country codes to block. Example: ["KP"].
cache_control_browser_max_age_overrideinteger- Browser cache time in seconds; -1 follows the origin. Example: -1.
cache_control_max_age_overrideinteger- Edge cache time in seconds; -1 follows the origin's Cache-Control. Example: -1.
enable_auto_sslboolean- If set to true, any hostnames added to this Pull Zone will automatically enable SSL. Example: true.
enable_geo_zone_afboolean- Determines if the delivery from the Africa region should be enabled for this pull zone. Example: true.
enable_geo_zone_asiaboolean- Determines if the delivery from the Asia / Oceania regions should be enabled for this pull zone. Example: true.
enable_geo_zone_euboolean- Determines if the delivery from the Europe region should be enabled for this pull zone. Example: true.
enable_geo_zone_saboolean- Determines if the delivery from the South America region should be enabled for this pull zone. Example: true.
enable_geo_zone_usboolean- Determines if the delivery from the North America region should be enabled for this pull zone. Example: true.
enable_loggingboolean- Determines if the logging should be enabled for this zone. Example: true.
enable_origin_shieldboolean- Determines if the origin shield should be enabled. Example: false.
enable_smart_cacheboolean- Enable Smart Cache. Example: true.
enable_web_socketsboolean- Determines if WebSocket connections are allowed for this Pull Zone. Example: false.
ignore_query_stringsboolean- Determines if the Pull Zone should ignore query strings when serving cached objects (Vary by Query String). Example: true.
monthly_bandwidth_limitinteger- Monthly bandwidth limit in bytes; 0 for no limit. Example: 0.
optimizer_enabledboolean- Determines if the optimizer should be enabled for this zone. Example: false.
origin_host_headerstring- Sets the host header that will be sent to the origin. Example: origin.example.com.
origin_shield_zone_codestring- Origin shield location code, such as FR or IL. Example: FR.
origin_urlstring- Origin URL the CDN pulls files from, such as https://origin.example.com. Example: https://origin.example.com.
storage_zone_idinteger- ID of a storage zone to use as the origin instead of an origin URL. Example: 234567.
typeinteger- Tier: 0 Premium (standard network), 1 Volume (cheaper, fewer locations). Example: 0.one of
01
bunnynet_storage_zone_createCreate a storage zone for files.WriteCreate Storage Zone
Create a storage zone for files. Returns the new zone with its ID. Use bunnynet_storage_zone_regions_list for region codes.
Inputs
namestringrequired- Name of the storage zone. Example: my-files.
regionstringrequired- Main region code, such as DE, NY, LA, SG or SYD. Example: DE.
replication_regionsarray- Extra region codes to replicate files to. Example: ["NY"].
storage_zone_typeinteger- Storage zone type. Example: 0.one of
01 zone_tierinteger- 0 Standard (HDD), 1 Edge (SSD). Example: 0.one of
01
bunnynet_storage_zone_updateUpdate a storage zone's replication regions, origin URL or 404 handling.WriteUpdate Storage Zone
Update a storage zone's replication regions, origin URL or 404 handling. Returns an empty response on success. Only the fields you pass change.
Inputs
storage_zone_idintegerrequired- ID of the storage zone. Get it from bunnynet_storage_zones_list. Example: 234567.
custom404_file_pathstring- Path of a custom 404 page. Example: /404.html.
origin_urlstring- Fallback origin URL for missing files. Example: https://origin.example.com.
replication_zonesarray- Region codes to replicate to. Example: ["NY"].
rewrite404_to200boolean- true to answer 404s with status 200. Example: false.
bunnynet_url_purgePurge one URL, or URLs matching a wildcard, from the CDN cache.WritePurge URL
Purge one URL, or URLs matching a wildcard, from the CDN cache. Returns an empty response on success. Use bunnynet_pull_zone_cache_purge to purge a whole zone.
Inputs
urlstringrequired- URL to purge; a trailing * purges everything under the path. Example: https://my-site-cdn.b-cdn.net/images/logo.png.
asyncboolean- true to return before the purge finishes. Example: false.
exact_pathboolean- true to purge only the exact path, ignoring query strings. Example: false.
bunnynet_video_library_createCreate a Bunny Stream video library.WriteCreate Video Library
Create a Bunny Stream video library. Returns the new library with its ID.
Inputs
namestringrequired- The name of the Video Library. Example: Product videos.
allow_direct_playboolean- (Optional) Determines if direct play URLs should be enabled for the library. Example: true.
enable_mp4_fallbackboolean- (Optional) Determines if MP4 fallback should be enabled for this library. Example: false.
enable_transcribingboolean- true to create captions automatically. Example: false.
encoding_tierinteger- 0 free tier encoding, 1 premium encoding. Example: 0.one of
01 keep_original_filesboolean- (Optional) Determines if the original file should be kept after the video is processed. Example: true.
replication_regionsarray- Storage region codes to replicate videos to. Example: ["NY"].
transcribing_caption_languagesarray- Language codes for automatic captions. Example: ["en"].
bunnynet_dns_record_deleteDelete a record from a DNS zone.DestructiveDelete DNS Record
Delete a record from a DNS zone. Returns an empty response on success.
- Idempotent
Inputs
dns_record_idintegerrequired- ID of the DNS record. Get it from bunnynet_dns_records_list. Example: 9876543.
dns_zone_idintegerrequired- ID of the DNS zone. Get it from bunnynet_dns_zones_list. Example: 123456.
bunnynet_dns_zone_deleteDelete a DNS zone and all its records.DestructiveDelete DNS Zone
Delete a DNS zone and all its records. Returns an empty response on success.
- Idempotent
Inputs
dns_zone_idintegerrequired- ID of the dns zone. Get it from bunnynet_dns_zones_list. Example: 123456.
bunnynet_dns_zone_dnssec_disableDisable DNSSEC on a DNS zone.DestructiveDisable DNSSEC
Disable DNSSEC on a DNS zone. Returns the updated DNSSEC state. Remove the DS record at the registrar first.
- Idempotent
Inputs
dns_zone_idintegerrequired- ID of the dns zone. Get it from bunnynet_dns_zones_list. Example: 123456.
bunnynet_edge_rule_deleteDelete an edge rule from a pull zone.DestructiveDelete Edge Rule
Delete an edge rule from a pull zone. Returns an empty response on success.
- Idempotent
Inputs
edge_rule_idstringrequired- GUID of the edge rule. Get it from bunnynet_pull_zone_get (EdgeRules). Example: 3f1c2a9e-6b4d-4e8a-9c21-7d5e0b1a2f34.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_pull_zone_allowed_referrer_removeRemove a referrer hostname from a pull zone's allow list.DestructiveRemove Allowed Referrer
Remove a referrer hostname from a pull zone's allow list. Returns an empty response on success.
- Idempotent
Inputs
hostnamestringrequired- Referrer hostname, such as example.com; wildcards like *.example.com are allowed. Example: example.com.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_pull_zone_blocked_ip_removeRemove an IP address from a pull zone's block list.DestructiveRemove Blocked IP
Remove an IP address from a pull zone's block list. Returns an empty response on success.
- Idempotent
Inputs
blocked_ipstringrequired- IP address to block or unblock, such as 203.0.113.7. Example: 203.0.113.7.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_pull_zone_blocked_referrer_removeRemove a referrer hostname from a pull zone's block list.DestructiveRemove Blocked Referrer
Remove a referrer hostname from a pull zone's block list. Returns an empty response on success.
- Idempotent
Inputs
hostnamestringrequired- Referrer hostname, such as example.com; wildcards like *.example.com are allowed. Example: example.com.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_pull_zone_deleteDelete a pull zone.DestructiveDelete Pull Zone
Delete a pull zone. Its hostnames stop serving content. Returns an empty response on success.
- Idempotent
Inputs
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_pull_zone_hostname_removeRemove a custom hostname from a pull zone.DestructiveRemove Custom Hostname
Remove a custom hostname from a pull zone. Returns an empty response on success.
- Idempotent
Inputs
hostnamestringrequired- Hostname, such as cdn.example.com. Example: cdn.example.com.
pull_zone_idintegerrequired- ID of the pull zone. Get it from bunnynet_pull_zones_list. Example: 1234567.
bunnynet_storage_zone_deleteDelete a storage zone and all its files.DestructiveDelete Storage Zone
Delete a storage zone and all its files. Returns an empty response on success.
- Idempotent
Inputs
storage_zone_idintegerrequired- ID of the storage zone. Get it from bunnynet_storage_zones_list. Example: 234567.
delete_linked_pull_zonesboolean- true to also delete pull zones that use this storage zone. Example: false.
bunnynet_video_library_deleteDelete a Bunny Stream video library and all its videos.DestructiveDelete Video Library
Delete a Bunny Stream video library and all its videos. Returns an empty response on success.
- Idempotent
Inputs
video_library_idintegerrequired- ID of the video library. Get it from bunnynet_video_libraries_list. Example: 345678.
No tools match.