Skip to main content
GET
/
storagezone
List Storage Zones
curl --request GET \
  --url https://api.bunny.net/storagezone \
  --header 'AccessKey: <api-key>'
{
  "Items": [
    {
      "Id": 123,
      "UserId": "<string>",
      "Name": "<string>",
      "Password": "<string>",
      "DateModified": "2023-11-07T05:31:56Z",
      "Deleted": true,
      "StorageUsed": 123,
      "FilesStored": 123,
      "Region": "<string>",
      "ReplicationRegions": [
        "<string>"
      ],
      "PullZones": [
        {
          "Id": 123,
          "Name": "<string>",
          "OriginUrl": "<string>",
          "Enabled": true,
          "Suspended": true,
          "Hostnames": [
            {
              "Id": 123,
              "Value": "<string>",
              "ForceSSL": true,
              "IsSystemHostname": true,
              "IsManagedHostname": true,
              "HasCertificate": true,
              "Certificate": "<string>",
              "CertificateKey": "<string>",
              "CertificateKeyType": 0,
              "CertificateProvisionType": 0
            }
          ],
          "StorageZoneId": 123,
          "EdgeScriptId": 123,
          "EdgeScriptExecutionPhase": 0,
          "MiddlewareScriptId": 123,
          "MagicContainersAppId": "<string>",
          "MagicContainersEndpointId": "<string>",
          "AllowedReferrers": [
            "<string>"
          ],
          "BlockedReferrers": [
            "<string>"
          ],
          "BlockedIps": [
            "<string>"
          ],
          "EnableGeoZoneUS": true,
          "EnableGeoZoneEU": true,
          "EnableGeoZoneASIA": true,
          "EnableGeoZoneSA": true,
          "EnableGeoZoneAF": true,
          "ZoneSecurityEnabled": true,
          "ZoneSecurityKey": "<string>",
          "ZoneSecurityIncludeHashRemoteIP": true,
          "IgnoreQueryStrings": true,
          "MonthlyBandwidthLimit": 123,
          "MonthlyBandwidthUsed": 123,
          "MonthlyCharges": 123,
          "AddHostHeader": true,
          "OriginHostHeader": "<string>",
          "Type": 0,
          "AccessControlOriginHeaderExtensions": [
            "<string>"
          ],
          "EnableAccessControlOriginHeader": true,
          "DisableCookies": true,
          "BudgetRedirectedCountries": [
            "<string>"
          ],
          "BlockedCountries": [
            "<string>"
          ],
          "EnableOriginShield": true,
          "CacheControlMaxAgeOverride": 123,
          "CacheControlPublicMaxAgeOverride": 123,
          "BurstSize": 123,
          "RequestLimit": 123,
          "BlockRootPathAccess": true,
          "BlockPostRequests": true,
          "LimitRatePerSecond": 123,
          "LimitRateAfter": 123,
          "ConnectionLimitPerIPCount": 123,
          "PriceOverride": 123,
          "OptimizerPricing": 123,
          "AddCanonicalHeader": true,
          "EnableLogging": true,
          "EnableCacheSlice": true,
          "EnableSmartCache": true,
          "EdgeRules": [
            {
              "Guid": "<string>",
              "ActionType": 0,
              "ActionParameter1": "<string>",
              "ActionParameter2": "<string>",
              "ActionParameter3": "<string>",
              "Triggers": [
                {
                  "Type": 0,
                  "PatternMatches": [
                    "<string>"
                  ],
                  "PatternMatchingType": 0,
                  "Parameter1": "<string>"
                }
              ],
              "ExtraActions": [
                {
                  "ActionType": 0,
                  "ActionParameter1": "<string>",
                  "ActionParameter2": "<string>",
                  "ActionParameter3": "<string>"
                }
              ],
              "TriggerMatchingType": 0,
              "Description": "<string>",
              "Enabled": true,
              "OrderIndex": 123,
              "ReadOnly": true
            }
          ],
          "EnableWebPVary": true,
          "EnableAvifVary": true,
          "EnableCountryCodeVary": true,
          "EnableCountryStateCodeVary": true,
          "EnableMobileVary": true,
          "EnableCookieVary": true,
          "CookieVaryParameters": [
            "<string>"
          ],
          "EnableHostnameVary": true,
          "CnameDomain": "<string>",
          "AWSSigningEnabled": true,
          "AWSSigningKey": "<string>",
          "AWSSigningSecret": "<string>",
          "AWSSigningRegionName": "<string>",
          "LoggingIPAnonymizationEnabled": true,
          "EnableTLS1": true,
          "EnableTLS1_1": true,
          "VerifyOriginSSL": true,
          "ErrorPageEnableCustomCode": true,
          "ErrorPageCustomCode": "<string>",
          "ErrorPageEnableStatuspageWidget": true,
          "ErrorPageStatuspageCode": "<string>",
          "ErrorPageWhitelabel": true,
          "OriginShieldZoneCode": "<string>",
          "LogForwardingEnabled": true,
          "LogForwardingHostname": "<string>",
          "LogForwardingPort": 123,
          "LogForwardingToken": "<string>",
          "LogForwardingProtocol": 0,
          "LoggingSaveToStorage": true,
          "LoggingStorageZoneId": 123,
          "FollowRedirects": true,
          "VideoLibraryId": 123,
          "DnsRecordId": 123,
          "DnsZoneId": 123,
          "DnsRecordValue": "<string>",
          "OptimizerEnabled": true,
          "OptimizerTunnelEnabled": true,
          "OptimizerDesktopMaxWidth": 2500,
          "OptimizerMobileMaxWidth": 2500,
          "OptimizerImageQuality": 50,
          "OptimizerMobileImageQuality": 50,
          "OptimizerEnableWebP": true,
          "OptimizerPrerenderHtml": true,
          "OptimizerEnableManipulationEngine": true,
          "OptimizerMinifyCSS": true,
          "OptimizerMinifyJavaScript": true,
          "OptimizerWatermarkEnabled": true,
          "OptimizerWatermarkUrl": "<string>",
          "OptimizerWatermarkPosition": 0,
          "OptimizerWatermarkOffset": 123,
          "OptimizerWatermarkMinImageSize": 123,
          "OptimizerAutomaticOptimizationEnabled": true,
          "PermaCacheStorageZoneId": 123,
          "PermaCacheType": 0,
          "OriginRetries": 123,
          "OriginConnectTimeout": 123,
          "OriginResponseTimeout": 123,
          "UseStaleWhileUpdating": true,
          "UseStaleWhileOffline": true,
          "OriginRetry5XXResponses": true,
          "OriginRetryConnectionTimeout": true,
          "OriginRetryResponseTimeout": true,
          "OriginRetryDelay": 123,
          "QueryStringVaryParameters": [
            "<string>"
          ],
          "OriginShieldEnableConcurrencyLimit": true,
          "OriginShieldMaxConcurrentRequests": 123,
          "EnableSafeHop": true,
          "CacheErrorResponses": true,
          "OriginShieldQueueMaxWaitTime": 123,
          "OriginShieldMaxQueuedRequests": 123,
          "OptimizerClasses": [
            {
              "Name": "<string>",
              "Properties": {}
            }
          ],
          "OptimizerForceClasses": true,
          "OptimizerStaticHtmlEnabled": true,
          "OptimizerStaticHtmlWordPressPath": "<string>",
          "OptimizerStaticHtmlWordPressBypassCookie": "<string>",
          "UseBackgroundUpdate": true,
          "EnableAutoSSL": true,
          "EnableQueryStringOrdering": true,
          "LogAnonymizationType": 0,
          "LogFormat": 0,
          "LogForwardingFormat": 0,
          "ShieldDDosProtectionType": 0,
          "ShieldDDosProtectionEnabled": true,
          "OriginType": 0,
          "EnableRequestCoalescing": true,
          "RequestCoalescingTimeout": 123,
          "OriginLinkValue": "<string>",
          "DisableLetsEncrypt": true,
          "EnableBunnyImageAi": true,
          "BunnyAiImageBlueprints": [
            {
              "Name": "<string>",
              "Properties": {}
            }
          ],
          "PreloadingScreenEnabled": true,
          "PreloadingScreenShowOnFirstVisit": true,
          "PreloadingScreenCode": "<string>",
          "PreloadingScreenLogoUrl": "<string>",
          "PreloadingScreenCodeEnabled": true,
          "PreloadingScreenTheme": 0,
          "PreloadingScreenDelay": 123,
          "EUUSDiscount": 123,
          "SouthAmericaDiscount": 123,
          "AfricaDiscount": 123,
          "AsiaOceaniaDiscount": 123,
          "RoutingFilters": [
            "<string>"
          ],
          "BlockNoneReferrer": true,
          "StickySessionType": 0,
          "StickySessionCookieName": "<string>",
          "StickySessionClientHeaders": "<string>",
          "UserId": "<string>",
          "CacheVersion": 123,
          "OptimizerEnableUpscaling": true,
          "EnableWebSockets": true,
          "MaxWebSocketConnections": 123
        }
      ],
      "ReadOnlyPassword": "<string>",
      "Rewrite404To200": true,
      "Custom404FilePath": "<string>",
      "StorageHostname": "<string>",
      "ZoneTier": 0,
      "ReplicationChangeInProgress": true,
      "PriceOverride": 123,
      "Discount": 123,
      "StorageZoneType": 0
    }
  ],
  "CurrentPage": 123,
  "TotalItems": 123,
  "HasMoreItems": true
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Query Parameters

page
integer<int32>
default:0
Required range: 1 <= x <= 2147483647
perPage
integer<int32>
default:1000
Required range: 5 <= x <= 1000
includeDeleted
boolean
default:false
search
string | null

The search term that will be used to filter the results

Response

The list of storage zones on the account

Items
object[] | null
CurrentPage
integer<int32>
TotalItems
integer<int32>
HasMoreItems
boolean