Bunny.net

App · 3 actions

Inventory Bunny CDN pull zones and report traffic, requests and cache hit rates across your account or for a specific zone.

Actions

ActionWhat it does
Get a Bunny CDN pull zoneLook up whether a zone is enabled or suspended, along with its public hostnames and TLS status.
Get Bunny CDN traffic statisticsRead bytes served, requests and cache hit rate.
List Bunny CDN pull zonesFind pull zone IDs, names, status and hostnames.

Get a Bunny CDN pull zone

Look up whether a zone is enabled or suspended, along with its public hostnames and TLS status.

Inputs

Zone IDzone_idnumberRequired
Numeric pull zone ID.At least 1.

Outputs

dataobject
The response from Bunny.net.
Example output
{
  "data": {
    "Enabled": true,
    "Hostnames": [
      {
        "ForceSSL": true,
        "HasCertificate": true,
        "Value": "example"
      }
    ],
    "Id": 1,
    "Name": "example",
    "Suspended": true
  }
}

Get Bunny CDN traffic statistics

Read bytes served, requests and cache hit rate. Leave the dates blank to use Bunny.net's last 30 days.

Inputs

Zone IDzone_idnumber
Numeric pull zone ID. Leave blank for account-wide totals.At least 1.
Start timestart_timedate and time
Start of the reporting period, with the time zone.
End timeend_timedate and time
End of the reporting period, with the time zone.

Outputs

dataobject
The response from Bunny.net.
Example output
{
  "data": {
    "BandwidthUsedChart": {},
    "CacheHitRate": 1,
    "RequestsServedChart": {},
    "TotalBandwidthUsed": 1,
    "TotalRequestsServed": 1
  }
}

List Bunny CDN pull zones

Find pull zone IDs, names, status and hostnames. Search by name or page through the account.

Inputs

Queryquerytext
Text to look for in pull zone names.
Pagepagenumber
Page number. Bunny.net starts at page 0.At least 0.
Page sizepage_sizenumber
Number of pull zones per page (5 to 100).From 5 to 100.

Outputs

dataobject
The response from Bunny.net.
Example output
{
  "data": {
    "CurrentPage": 1,
    "HasMoreItems": true,
    "Items": [
      {
        "Enabled": true,
        "Hostnames": [
          {
            "ForceSSL": true,
            "HasCertificate": true,
            "Value": "example"
          }
        ],
        "Id": 1,
        "Name": "example",
        "Suspended": true
      }
    ],
    "TotalItems": 1
  }
}

On this page