# Bunny.net

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

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/bunny-net

## Actions

### 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 ID (`zone_id`, number, required): Numeric pull zone ID. At least 1.

**Outputs**

- `data` (object): The response from Bunny.net.

**Example output**

```json
{
  "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 ID (`zone_id`, number): Numeric pull zone ID. Leave blank for account-wide totals. At least 1.
- Start time (`start_time`, date and time): Start of the reporting period, with the time zone.
- End time (`end_time`, date and time): End of the reporting period, with the time zone.

**Outputs**

- `data` (object): The response from Bunny.net.

**Example output**

```json
{
  "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**

- Query (`query`, text): Text to look for in pull zone names.
- Page (`page`, number): Page number. Bunny.net starts at page 0. At least 0.
- Page size (`page_size`, number): Number of pull zones per page (5 to 100). From 5 to 100.

**Outputs**

- `data` (object): The response from Bunny.net.

**Example output**

```json
{
  "data": {
    "CurrentPage": 1,
    "HasMoreItems": true,
    "Items": [
      {
        "Enabled": true,
        "Hostnames": [
          {
            "ForceSSL": true,
            "HasCertificate": true,
            "Value": "example"
          }
        ],
        "Id": 1,
        "Name": "example",
        "Suspended": true
      }
    ],
    "TotalItems": 1
  }
}
```
