curl --request GET \
--url https://api.bunny.net/storagezone \
--header 'AccessKey: <api-key>'[
{
"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,
"EnableExtendedLogging": true
}
],
"ReadOnlyPassword": "<string>",
"Rewrite404To200": true,
"Custom404FilePath": "<string>",
"StorageHostname": "<string>",
"ZoneTier": 0,
"ReplicationChangeInProgress": true,
"PriceOverride": 123,
"Discount": 123,
"StorageZoneType": 0
}
]curl --request GET \
--url https://api.bunny.net/storagezone \
--header 'AccessKey: <api-key>'[
{
"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,
"EnableExtendedLogging": true
}
],
"ReadOnlyPassword": "<string>",
"Rewrite404To200": true,
"Custom404FilePath": "<string>",
"StorageHostname": "<string>",
"ZoneTier": 0,
"ReplicationChangeInProgress": true,
"PriceOverride": 123,
"Discount": 123,
"StorageZoneType": 0
}
]API Access Key authorization header
The page number to return. When set to 0 (default), all items are returned as a plain array. When set to a value greater than 0, items are returned in a paginated response object.
1 <= x <= 21474836475 <= x <= 1000The search term that will be used to filter the results
The list of storage zones on the account. When the page parameter is set to a value greater than 0, the response will be a paginated object with Items, CurrentPage, TotalItems and HasMoreItems properties instead of a plain array.
The ID of the storage zone
The ID of the user that owns the storage zone
The name of the storage zone
The API access key or FTP password
The date when the zone was last modified
Determines if the zone was deleted or not
The total amount of storage used by this zone
The total number of files stored by this zone
The main region used by the storage zone
The replication regions enabled for this storage zone
The list of pull zones connected to this storage zone
Show child attributes
The read-only API access key or FTP password
Determines if the storage zone will rewrite 404 status codes to 200 status codes
The custom 404 error path that will be returned in case of a missing file.
Determines the storage hostname for this zone
Determines the storage zone tier that is storing the data
0, 1 Determines if the storage zone is currently enabling a new replication region
The custom price override for this zone. Unit is $/TB/month.
The Storage Zone specific pricing discount.
The Storage Zone S3 support type
0, 1 Was this page helpful?