curl --request GET \
--url https://api.bunny.net/pullzone/{id} \
--header 'AccessKey: <api-key>'{
"Id": 123,
"Enabled": true,
"Suspended": true,
"StorageZoneId": 123,
"EdgeScriptId": 123,
"EnableGeoZoneUS": true,
"EnableGeoZoneEU": true,
"EnableGeoZoneASIA": true,
"EnableGeoZoneSA": true,
"EnableGeoZoneAF": true,
"ZoneSecurityEnabled": true,
"ZoneSecurityIncludeHashRemoteIP": true,
"IgnoreQueryStrings": true,
"MonthlyBandwidthLimit": 123,
"MonthlyBandwidthUsed": 123,
"MonthlyCharges": 123,
"AddHostHeader": true,
"EnableAccessControlOriginHeader": true,
"DisableCookies": true,
"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,
"EnableWebPVary": true,
"EnableAvifVary": true,
"EnableCountryCodeVary": true,
"EnableCountryStateCodeVary": true,
"EnableMobileVary": true,
"EnableCookieVary": true,
"EnableHostnameVary": true,
"AWSSigningEnabled": true,
"LoggingIPAnonymizationEnabled": true,
"EnableTLS1": true,
"EnableTLS1_1": true,
"VerifyOriginSSL": true,
"ErrorPageEnableCustomCode": true,
"ErrorPageEnableStatuspageWidget": true,
"ErrorPageWhitelabel": true,
"LogForwardingEnabled": true,
"LogForwardingPort": 123,
"LoggingSaveToStorage": true,
"LoggingStorageZoneId": 123,
"FollowRedirects": true,
"VideoLibraryId": 123,
"DnsRecordId": 123,
"DnsZoneId": 123,
"OptimizerEnabled": true,
"OptimizerTunnelEnabled": true,
"OptimizerDesktopMaxWidth": 2500,
"OptimizerMobileMaxWidth": 2500,
"OptimizerImageQuality": 50,
"OptimizerMobileImageQuality": 50,
"OptimizerEnableWebP": true,
"OptimizerPrerenderHtml": true,
"OptimizerEnableManipulationEngine": true,
"OptimizerMinifyCSS": true,
"OptimizerMinifyJavaScript": true,
"OptimizerWatermarkEnabled": true,
"OptimizerWatermarkOffset": 123,
"OptimizerWatermarkMinImageSize": 123,
"OptimizerAutomaticOptimizationEnabled": true,
"PermaCacheStorageZoneId": 123,
"OriginRetries": 123,
"OriginConnectTimeout": 123,
"OriginResponseTimeout": 123,
"UseStaleWhileUpdating": true,
"UseStaleWhileOffline": true,
"OriginRetry5XXResponses": true,
"OriginRetryConnectionTimeout": true,
"OriginRetryResponseTimeout": true,
"OriginRetryDelay": 123,
"OriginShieldEnableConcurrencyLimit": true,
"OriginShieldMaxConcurrentRequests": 123,
"EnableSafeHop": true,
"CacheErrorResponses": true,
"OriginShieldQueueMaxWaitTime": 123,
"OriginShieldMaxQueuedRequests": 123,
"OptimizerForceClasses": true,
"UseBackgroundUpdate": true,
"EnableAutoSSL": true,
"EnableQueryStringOrdering": true,
"ShieldDDosProtectionEnabled": true,
"EnableRequestCoalescing": true,
"RequestCoalescingTimeout": 123,
"DisableLetsEncrypt": true,
"EnableBunnyImageAi": true,
"PreloadingScreenEnabled": true,
"PreloadingScreenShowOnFirstVisit": true,
"PreloadingScreenCodeEnabled": true,
"PreloadingScreenDelay": 123,
"EUUSDiscount": 123,
"SouthAmericaDiscount": 123,
"AfricaDiscount": 123,
"AsiaOceaniaDiscount": 123,
"BlockNoneReferrer": true,
"CacheVersion": 123,
"OptimizerEnableUpscaling": true,
"EnableWebSockets": true,
"MaxWebSocketConnections": 123,
"Name": "<string>",
"OriginUrl": "<string>",
"Hostnames": [
{
"Id": 123,
"ForceSSL": true,
"IsSystemHostname": true,
"IsManagedHostname": true,
"HasCertificate": true,
"Value": "<string>",
"Certificate": "<string>",
"CertificateKey": "<string>",
"CertificateKeyType": "Ecdsa",
"CertificateProvisionType": "Unknown"
}
],
"EdgeScriptExecutionPhase": "Cache",
"MiddlewareScriptId": 123,
"MagicContainersAppId": "<string>",
"MagicContainersEndpointId": "<string>",
"AllowedReferrers": [
"<string>"
],
"BlockedReferrers": [
"<string>"
],
"BlockedIps": [
"<string>"
],
"ZoneSecurityKey": "<string>",
"OriginHostHeader": "<string>",
"Type": "Premium",
"AccessControlOriginHeaderExtensions": [
"<string>"
],
"BudgetRedirectedCountries": [
"<string>"
],
"BlockedCountries": [
"<string>"
],
"EdgeRules": [
{
"Guid": "<string>",
"ActionType": "ForceSSL",
"ActionParameter1": "<string>",
"ActionParameter2": "<string>",
"ActionParameter3": "<string>",
"Triggers": [
{
"Type": "Url",
"PatternMatchingType": 0,
"PatternMatches": [
"<string>"
],
"Parameter1": "<string>"
}
],
"ExtraActions": [
{
"ActionType": "<unknown>",
"ActionParameter1": "<string>",
"ActionParameter2": "<string>",
"ActionParameter3": "<string>"
}
],
"TriggerMatchingType": 0,
"Description": "<string>",
"Enabled": true,
"OrderIndex": 123
}
],
"CookieVaryParameters": [
"<string>"
],
"CnameDomain": "<string>",
"AWSSigningKey": "<string>",
"AWSSigningSecret": "<string>",
"AWSSigningRegionName": "<string>",
"ErrorPageCustomCode": "<string>",
"ErrorPageStatuspageCode": "<string>",
"OriginShieldZoneCode": "<string>",
"LogForwardingHostname": "<string>",
"LogForwardingToken": "<string>",
"LogForwardingProtocol": "UDP",
"DnsRecordValue": "<string>",
"OptimizerWatermarkUrl": "<string>",
"OptimizerWatermarkPosition": {},
"PermaCacheType": "Automatic",
"QueryStringVaryParameters": [
"<string>"
],
"OptimizerClasses": [
{
"Name": "<string>",
"Properties": {}
}
],
"OptimizerStaticHtmlWordPressPath": "<string>",
"OptimizerStaticHtmlWordPressBypassCookie": "<string>",
"LogAnonymizationType": "OneDigit",
"LogFormat": "Plain",
"LogForwardingFormat": "Plain",
"ShieldDDosProtectionType": "DetectOnly",
"OriginType": "OriginUrl",
"OriginLinkValue": "<string>",
"BunnyAiImageBlueprints": [
{
"Name": "<string>",
"Properties": {}
}
],
"PreloadingScreenCode": "<string>",
"PreloadingScreenLogoUrl": "<string>",
"PreloadingScreenTheme": "Light",
"RoutingFilters": [
"<string>"
],
"StickySessionType": "Off",
"StickySessionCookieName": "<string>",
"StickySessionClientHeaders": "<string>",
"UserId": "<string>"
}The Pull Zone with the requested ID
curl --request GET \
--url https://api.bunny.net/pullzone/{id} \
--header 'AccessKey: <api-key>'{
"Id": 123,
"Enabled": true,
"Suspended": true,
"StorageZoneId": 123,
"EdgeScriptId": 123,
"EnableGeoZoneUS": true,
"EnableGeoZoneEU": true,
"EnableGeoZoneASIA": true,
"EnableGeoZoneSA": true,
"EnableGeoZoneAF": true,
"ZoneSecurityEnabled": true,
"ZoneSecurityIncludeHashRemoteIP": true,
"IgnoreQueryStrings": true,
"MonthlyBandwidthLimit": 123,
"MonthlyBandwidthUsed": 123,
"MonthlyCharges": 123,
"AddHostHeader": true,
"EnableAccessControlOriginHeader": true,
"DisableCookies": true,
"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,
"EnableWebPVary": true,
"EnableAvifVary": true,
"EnableCountryCodeVary": true,
"EnableCountryStateCodeVary": true,
"EnableMobileVary": true,
"EnableCookieVary": true,
"EnableHostnameVary": true,
"AWSSigningEnabled": true,
"LoggingIPAnonymizationEnabled": true,
"EnableTLS1": true,
"EnableTLS1_1": true,
"VerifyOriginSSL": true,
"ErrorPageEnableCustomCode": true,
"ErrorPageEnableStatuspageWidget": true,
"ErrorPageWhitelabel": true,
"LogForwardingEnabled": true,
"LogForwardingPort": 123,
"LoggingSaveToStorage": true,
"LoggingStorageZoneId": 123,
"FollowRedirects": true,
"VideoLibraryId": 123,
"DnsRecordId": 123,
"DnsZoneId": 123,
"OptimizerEnabled": true,
"OptimizerTunnelEnabled": true,
"OptimizerDesktopMaxWidth": 2500,
"OptimizerMobileMaxWidth": 2500,
"OptimizerImageQuality": 50,
"OptimizerMobileImageQuality": 50,
"OptimizerEnableWebP": true,
"OptimizerPrerenderHtml": true,
"OptimizerEnableManipulationEngine": true,
"OptimizerMinifyCSS": true,
"OptimizerMinifyJavaScript": true,
"OptimizerWatermarkEnabled": true,
"OptimizerWatermarkOffset": 123,
"OptimizerWatermarkMinImageSize": 123,
"OptimizerAutomaticOptimizationEnabled": true,
"PermaCacheStorageZoneId": 123,
"OriginRetries": 123,
"OriginConnectTimeout": 123,
"OriginResponseTimeout": 123,
"UseStaleWhileUpdating": true,
"UseStaleWhileOffline": true,
"OriginRetry5XXResponses": true,
"OriginRetryConnectionTimeout": true,
"OriginRetryResponseTimeout": true,
"OriginRetryDelay": 123,
"OriginShieldEnableConcurrencyLimit": true,
"OriginShieldMaxConcurrentRequests": 123,
"EnableSafeHop": true,
"CacheErrorResponses": true,
"OriginShieldQueueMaxWaitTime": 123,
"OriginShieldMaxQueuedRequests": 123,
"OptimizerForceClasses": true,
"UseBackgroundUpdate": true,
"EnableAutoSSL": true,
"EnableQueryStringOrdering": true,
"ShieldDDosProtectionEnabled": true,
"EnableRequestCoalescing": true,
"RequestCoalescingTimeout": 123,
"DisableLetsEncrypt": true,
"EnableBunnyImageAi": true,
"PreloadingScreenEnabled": true,
"PreloadingScreenShowOnFirstVisit": true,
"PreloadingScreenCodeEnabled": true,
"PreloadingScreenDelay": 123,
"EUUSDiscount": 123,
"SouthAmericaDiscount": 123,
"AfricaDiscount": 123,
"AsiaOceaniaDiscount": 123,
"BlockNoneReferrer": true,
"CacheVersion": 123,
"OptimizerEnableUpscaling": true,
"EnableWebSockets": true,
"MaxWebSocketConnections": 123,
"Name": "<string>",
"OriginUrl": "<string>",
"Hostnames": [
{
"Id": 123,
"ForceSSL": true,
"IsSystemHostname": true,
"IsManagedHostname": true,
"HasCertificate": true,
"Value": "<string>",
"Certificate": "<string>",
"CertificateKey": "<string>",
"CertificateKeyType": "Ecdsa",
"CertificateProvisionType": "Unknown"
}
],
"EdgeScriptExecutionPhase": "Cache",
"MiddlewareScriptId": 123,
"MagicContainersAppId": "<string>",
"MagicContainersEndpointId": "<string>",
"AllowedReferrers": [
"<string>"
],
"BlockedReferrers": [
"<string>"
],
"BlockedIps": [
"<string>"
],
"ZoneSecurityKey": "<string>",
"OriginHostHeader": "<string>",
"Type": "Premium",
"AccessControlOriginHeaderExtensions": [
"<string>"
],
"BudgetRedirectedCountries": [
"<string>"
],
"BlockedCountries": [
"<string>"
],
"EdgeRules": [
{
"Guid": "<string>",
"ActionType": "ForceSSL",
"ActionParameter1": "<string>",
"ActionParameter2": "<string>",
"ActionParameter3": "<string>",
"Triggers": [
{
"Type": "Url",
"PatternMatchingType": 0,
"PatternMatches": [
"<string>"
],
"Parameter1": "<string>"
}
],
"ExtraActions": [
{
"ActionType": "<unknown>",
"ActionParameter1": "<string>",
"ActionParameter2": "<string>",
"ActionParameter3": "<string>"
}
],
"TriggerMatchingType": 0,
"Description": "<string>",
"Enabled": true,
"OrderIndex": 123
}
],
"CookieVaryParameters": [
"<string>"
],
"CnameDomain": "<string>",
"AWSSigningKey": "<string>",
"AWSSigningSecret": "<string>",
"AWSSigningRegionName": "<string>",
"ErrorPageCustomCode": "<string>",
"ErrorPageStatuspageCode": "<string>",
"OriginShieldZoneCode": "<string>",
"LogForwardingHostname": "<string>",
"LogForwardingToken": "<string>",
"LogForwardingProtocol": "UDP",
"DnsRecordValue": "<string>",
"OptimizerWatermarkUrl": "<string>",
"OptimizerWatermarkPosition": {},
"PermaCacheType": "Automatic",
"QueryStringVaryParameters": [
"<string>"
],
"OptimizerClasses": [
{
"Name": "<string>",
"Properties": {}
}
],
"OptimizerStaticHtmlWordPressPath": "<string>",
"OptimizerStaticHtmlWordPressBypassCookie": "<string>",
"LogAnonymizationType": "OneDigit",
"LogFormat": "Plain",
"LogForwardingFormat": "Plain",
"ShieldDDosProtectionType": "DetectOnly",
"OriginType": "OriginUrl",
"OriginLinkValue": "<string>",
"BunnyAiImageBlueprints": [
{
"Name": "<string>",
"Properties": {}
}
],
"PreloadingScreenCode": "<string>",
"PreloadingScreenLogoUrl": "<string>",
"PreloadingScreenTheme": "Light",
"RoutingFilters": [
"<string>"
],
"StickySessionType": "Off",
"StickySessionCookieName": "<string>",
"StickySessionClientHeaders": "<string>",
"UserId": "<string>"
}API Access Key authorization header
The ID of the Pull Zone that should be returned
Determines if the result hostnames should contain the SSL certificate
The Pull Zone with the requested ID
The unique ID of the pull zone.
True unless reached resource limits or account owning it ran out of funds.
The ID of the storage zone that the pull zone is linked to
The ID of the edge script that the pull zone is linked to
Determines if the delivery from the North American region is enabled for this pull zone
Determines if the delivery from the European region is enabled for this pull zone
Determines if the delivery from the Asian / Oceanian region is enabled for this pull zone
Determines if the delivery from the South American region is enabled for this pull zone
Determines if the delivery from the Africa region is enabled for this pull zone
True if the URL secure token authentication security is enabled
True if the zone security hash should include the remote IP
True if the Pull Zone is ignoring query strings when serving cached objects
The monthly limit of bandwidth in bytes that the pullzone is allowed to use
The amount of bandwidth in bytes that the pull zone used this month
The total monthly charges for this so zone so far
Determines if the Pull Zone should forward the current hostname to the origin
Determines if the CORS headers should be enabled
Determines if the cookies are disabled for the pull zone
If true the server will use the origin shield feature
The override cache time for the pull zone
The override cache time for the pull zone for the end client
Excessive requests are delayed until their number exceeds the maximum burst size.
Max number of requests per IP per second
If true, access to root path will return a 403 error
If true, POST requests to the zone will be blocked
The maximum rate at which the zone will transfer data in kb/s. 0 for unlimited
The amount of data after the rate limit will be activated
The number of connections limited per IP for this zone
The custom price override for this zone. Unit is $/Byte.
Monthly pricing for Bunny Optimizer for this pull zone
Determines if the Add Canonical Header is enabled for this Pull Zone
Determines if the logging is enabled for this Pull Zone
Determines if the cache slice (Optimize for video) feature is enabled for the Pull Zone
Determines if smart caching is enabled for this zone
Determines if the WebP Vary feature is enabled.
Determines if the AVIF Vary feature is enabled.
Determines if the Country Code Vary feature is enabled.
Determines if the Country State Code Vary feature should be enabled.
Determines if the Mobile Vary feature is enabled.
Determines if the Cookie Vary feature is enabled.
Determines if the Hostname Vary feature is enabled.
Determines if the AWS Signing is enabled
Determines if the TLS 1 is enabled on the Pull Zone
Determines if the TLS 1 is enabled on the Pull Zone
Determines if the TLS 1.1 is enabled on the Pull Zone
Determines if the Pull Zone should verify the origin SSL certificate
Determines if custom error page code should be enabled.
Determines if the statuspage widget should be displayed on the error pages
Determines if the error pages should be whitelabel or not
Determines if the log forawrding is enabled
The log forwarding port
Determines if the permanent logging feature is enabled
The ID of the logging storage zone that is configured for this Pull Zone
Determines if the zone will follow origin redirects
The ID of the video library that the zone is linked to
The ID of the DNS record tied to this pull zone
The ID of the DNS zone tied to this pull zone
Determines if the optimizer should be enabled for this zone
Determines if the optimizer origin tunnel system is enabled for this zone
Determines the maximum automatic image size for desktop clients
0 <= x <= 5000Determines the maximum automatic image size for mobile clients
0 <= x <= 5000Determines the image quality for desktop clients
1 <= x <= 100Determines the image quality for mobile clients
1 <= x <= 100Determines if the WebP optimization should be enabled
Determines if the SEO HTML prerender is enabled
Determines the image manipulation should be enabled
Determines if the CSS minifcation should be enabled
Determines if the JavaScript minifcation should be enabled
Determines if image watermarking should be enabled
Sets the offset of the watermark image
Sets the minimum image size to which the watermark will be added
Determines if the automatic image optimization should be enabled
The IP of the storage zone used for Perma-Cache
The number of retries to the origin server
The amount of seconds to wait when connecting to the origin. Otherwise the request will fail or retry.
The amount of seconds to wait when waiting for the origin reply. Otherwise the request will fail or retry.
Determines if we should use stale cache while cache is updating
Determines if we should use stale cache while the origin is offline
Determines if we should retry the request in case of a 5XX response.
Determines if we should retry the request in case of a connection timeout.
Determines if we should retry the request in case of a response timeout.
Determines the amount of time that the CDN should wait before retrying an origin request.
Determines if the origin shield concurrency limit is enabled.
Determines the number of maximum concurrent requests allowed to the origin.
Determines if bunny.net should be caching error responses
Determines the max queue wait time
Determines the max number of origin requests that will remain in the queu
Determines if the optimizer class list should be enforced
Determines if cache update is performed in the background.
If set to true, any hostnames added to this Pull Zone will automatically enable SSL.
If set to true the query string ordering property is enabled.
Determines if request coalescing is currently enabled.
Determines the lock time for coalesced requests.
If true, the built-in let's encrypt is disabled and requests are passed to the origin.
Determines if the preloading screen is currently enabled
Determines if the preloading screen is shown on the first load from a user.
Determines if the custom preloader screen is enabled
The delay in miliseconds after which the preloading screen will be desplayed
The Pull Zone specific pricing discount for EU and US region.
The Pull Zone specific pricing discount for South America region.
The Pull Zone specific pricing discount for Africa region.
The Pull Zone specific pricing discount for Asia & Oceania region.
Determines if direct access to files will be blocked if not coming from allowed referrers
Whether to automatically upscale assets when using Optimizer.
Determines if WebSocket connections are allowed for this Pull Zone.
The maximum global simultaneous WebSocket connections allowed for this Pull Zone.
The name of the pull zone.
The origin URL of the pull zone where the files are fetched from.
The list of hostnames linked to this Pull Zone
Show child attributes
The phase of the request where the script will be executed
Cache, LoadBalancer "Cache"
The ID of the Magic Container application the pull zone is linked to
The ID of the Magic Container Endpoint the pull zone is linked to
The list of referrer hostnames that are allowed to access the pull zone.Requests containing the header Referer: hostname that is not on the list will be rejected.If empty, all the referrers are allowed
The list of referrer hostnames that are allowed to access the pull zone. Requests containing the header Referer: hostname that is not on the list will be rejected. If empty, all the referrers are allowed
The list of IPs that are blocked from accessing the pull zone. Requests coming from the following IPs will be rejected. If empty, all the IPs will be allowed
The security key used for secure URL token authentication
Determines the host header that will be sent to the origin
The type of the pull zone. Premium = 0, Volume = 1
Premium, Volume "Premium"
The list of extensions that will return the CORS headers
The list of budget redirected countries with the two-letter Alpha2 ISO codes
The list of blocked countries with the two-letter Alpha2 ISO codes
The list of edge rules on this Pull Zone
Show child attributes
Contains the list of vary parameters that will be used for vary cache by cookie string. If empty, cookie vary will not be used.
The CNAME domain of the pull zone for setting up custom hostnames
The AWS Signing region key
The AWS Signing region secret
The AWS Signing region name
Contains the custom error page code that will be returned
The statuspage code that will be used to build the status widget
The zone code of the origin shield
The log forwarding hostname
The log forwarding token value
Determines the log forwarding protocol type
UDP, TCP, TCPEncrypted, DataDog "UDP"
The cached version of the DNS record value
Sets the URL of the watermark image
Sets the position of the watermark image
Determines Perma-Cache behavior
Automatic, Manual "Automatic"
Contains the list of vary parameters that will be used for vary cache by query string. If empty, all parameters will be used to construct the key
Contains the list of optimizer classes
Show child attributes
Wordpress html path which should be bypassed by permacache in edge rule
Wordpress cookie which should be bypassed by permacache in edge rule
Gets the log anonymization type for this pull zone
OneDigit, Drop "OneDigit"
0 = Plain
1 = JSON
Plain, JSON "Plain"
0 = Plain
1 = JSON
Plain, JSON "Plain"
0 = DetectOnly
1 = ActiveStandard
2 = ActiveAggressive
DetectOnly, ActiveStandard, ActiveAggressive "DetectOnly"
The type of the origin for this Pull Zone
OriginUrl, DnsAccelerate, StorageZone, LoadBalancer, EdgeScript, MagicContainers, PushZone "OriginUrl"
Returns the link short preview value for the pull zone origin connection.
Show child attributes
The custom preloading screen code
The preloading screen logo URL
The currently configured preloading screem theme. (0 - Light, 1 - Dark)
Light, Dark "Light"
The list of routing filters enabled for this zone
Whether to use a Sticky Session mechanism for this pull zone
Off, On "Off"
Sticky Session Cookie Name
A set of comma-separated header names used to identify clients
User Id of the pull zone owner
Was this page helpful?