v1

latestOpenAPI 3.0.42026-07-26263457588.1 KB
Pull Zone

Add Pull Zone

post/pullzone

Request body

OriginUrlstring nullable

Sets the origin URL of the Pull Zone

AllowedReferrersstring[] nullable

Sets 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

BlockedReferrersstring[] nullable

Sets the list of referrer hostnames that are blocked from accessing the pull zone.

BlockNoneReferrerboolean nullable
BlockedIpsstring[] nullable

Sets 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

EnableGeoZoneUSboolean nullable

Determines if the delivery from the North America region should be enabled for this pull zone

EnableGeoZoneEUboolean nullable

Determines if the delivery from the Europe region should be enabled for this pull zone

EnableGeoZoneASIAboolean nullable

Determines if the delivery from the Asia / Oceania regions should be enabled for this pull zone

EnableGeoZoneSAboolean nullable

Determines if the delivery from the South America region should be enabled for this pull zone

EnableGeoZoneAFboolean nullable

Determines if the delivery from the Africa region should be enabled for this pull zone

IpFamilyPolicy0 | 1 | 2 | 3

0 = IPv4Only 1 = DualStack 2 = DualStackPreferIPv6 3 = IPv6Only

BlockRootPathAccessboolean nullable

Determines if the zone should block requests to the root of the zone.

BlockPostRequestsboolean nullable

Determines if the POST requests to this zone should be rejected.

EnableQueryStringOrderingboolean nullable

Determines if the query string ordering should be enabled.

EnableWebpVaryboolean nullable

Determines if the WebP Vary feature should be enabled.

EnableAvifVaryboolean nullable

Determines if the AVIF Vary feature should be enabled.

EnableMobileVaryboolean nullable

Determines if the Mobile Vary feature is enabled.

EnableCountryCodeVaryboolean nullable

Determines if the Country Code Vary feature should be enabled.

EnableCountryStateCodeVaryboolean nullable

Determines if the Country State Code Vary feature should be enabled.

EnableHostnameVaryboolean nullable

Determines if the Hostname Vary feature should be enabled.

EnableCacheSliceboolean nullable

Determines if cache slicing (Optimize for video) should be enabled for this zone

ZoneSecurityEnabledboolean nullable

Determines if the zone token authentication security should be enabled

ZoneSecurityIncludeHashRemoteIPboolean nullable

Determines if the token authentication IP validation should be enabled

IgnoreQueryStringsboolean nullable

Determines if the Pull Zone should ignore query strings when serving cached objects (Vary by Query String)

MonthlyBandwidthLimitinteger nullable

Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use

AccessControlOriginHeaderExtensionsstring[] nullable

Sets the list of extensions that will return the CORS headers

EnableAccessControlOriginHeaderboolean nullable

Determines if CORS headers should be enabled

DisableCookiesboolean nullable

Determines if the Pull Zone should automatically remove cookies from the responses

BudgetRedirectedCountriesstring[] nullable

Sets the list of two letter Alpha2 country codes that will be redirected to the cheapest possible region

BlockedCountriesstring[] nullable

Sets the list of two letter Alpha2 country codes that will be blocked from accessing the zone

CacheControlMaxAgeOverrideinteger nullable

Sets the cache control override setting for this zone

CacheControlPublicMaxAgeOverrideinteger nullable

Sets the browser cache control override setting for this zone

CacheControlBrowserMaxAgeOverrideinteger nullable

(Deprecated) Sets the browser cache control override setting for this zone

AddHostHeaderboolean nullable

Determines if the zone should forward the requested host header to the origin

AddCanonicalHeaderboolean nullable

Determines if the canonical header should be added by this zone

EnableLoggingboolean nullable

Determines if the logging should be enabled for this zone

LoggingIPAnonymizationEnabledboolean nullable

Determines if the log anonoymization should be enabled

PermaCacheStorageZoneIdinteger nullable

The ID of the storage zone that should be used as the Perma-Cache

PermaCacheType0 | 1 nullable

0 = Automatic 1 = Manual

AWSSigningEnabledboolean nullable

Determines if the AWS signing should be enabled or not

AWSSigningKeystring nullable

Sets the AWS signing key

AWSSigningRegionNamestring nullable

Sets the AWS signing region name

AWSSigningSecretstring nullable

Sets the AWS signing secret key

EnableOriginShieldboolean nullable

Determines if the origin shield should be enabled

OriginShieldZoneCodestring nullable

Determines the zone code where the origin shield should be set up

EnableTLS1boolean nullable

Determines if the TLS 1 should be enabled on this zone

EnableTLS1_1boolean nullable

Determines if the TLS 1.1 should be enabled on this zone

CacheErrorResponsesboolean nullable

Determines if the cache error responses should be enabled on the zone

VerifyOriginSSLboolean nullable

Determines if the SSL certificate should be verified when connecting to the origin

LogForwardingEnabledboolean nullable

Sets the log forwarding token for the zone

LogForwardingHostnamestring nullable

Sets the log forwarding destination hostname for the zone

LogForwardingPortinteger nullable

Sets the log forwarding port for the zone

LogForwardingTokenstring nullable

Sets the log forwarding token for the zone

LogForwardingProtocol0 | 1 | 2 | 3

0 = UDP 1 = TCP 2 = TCPEncrypted 3 = DataDog

LoggingSaveToStorageboolean nullable

Determines if the logging permanent storage should be enabled

LoggingStorageZoneIdinteger nullable

Sets the Storage Zone id that should contain the logs from this Pull Zone

FollowRedirectsboolean nullable

Determines if the zone should follow redirects return by the oprigin and cache the response

ConnectionLimitPerIPCountinteger nullable

Determines the maximum number of connections per IP that will be allowed to connect to this Pull Zone

RequestLimitinteger nullable

Determines the maximum number of requests per second that will be allowed to connect to this Pull Zone

LimitRateAfternumber double nullable

Determines the amount of traffic transferred before the client is limited

LimitRatePerSecondinteger nullable

Determines the maximum number of requests per second coming from a single IP before it is blocked.

BurstSizeinteger nullable

Determines the maximum burst requests before an IP is blocked

ErrorPageEnableCustomCodeboolean nullable

Determines if custom error page code should be enabled.

ErrorPageCustomCodestring nullable

Contains the custom error page code that will be returned

ErrorPageEnableStatuspageWidgetboolean nullable

Determines if the statuspage widget should be displayed on the error pages

ErrorPageStatuspageCodestring nullable

The statuspage code that will be used to build the status widget

ErrorPageWhitelabelboolean nullable

Determines if the error pages should be whitelabel or not

OptimizerEnabledboolean nullable

Determines if the optimizer should be enabled for this zone

OptimizerTunnelEnabledboolean nullable

Determines if the optimizer origin tunnel system should be enabled for this zone

OptimizerDesktopMaxWidthinteger nullable

Determines the maximum automatic image size for desktop clients

OptimizerMobileMaxWidthinteger nullable

Determines the maximum automatic image size for mobile clients

OptimizerImageQualityinteger nullable

Determines the image quality for desktop clients

OptimizerMobileImageQualityinteger nullable

Determines the image quality for mobile clients

OptimizerEnableWebPboolean nullable

Determines if the WebP optimization should be enabled

OptimizerPrerenderHtmlboolean nullable

Determines if the SEO HTML prerender should be enabled

OptimizerEnableManipulationEngineboolean nullable

Determines the image manipulation should be enabled

OptimizerMinifyCSSboolean nullable

Determines if the CSS minifcation should be enabled

OptimizerMinifyJavaScriptboolean nullable

Determines if the JavaScript minifcation should be enabled

OptimizerWatermarkEnabledboolean nullable

Determines if image watermarking should be enabled

OptimizerWatermarkUrlstring nullable

Sets the URL of the watermark image

OptimizerWatermarkPosition0 | 1 | 2 | 3 | 4 | 5

0 = BottomLeft 1 = BottomRight 2 = TopLeft 3 = TopRight 4 = Center 5 = CenterStretch

OptimizerWatermarkOffsetnumber double nullable

Sets the offset of the watermark image

OptimizerWatermarkMinImageSizeinteger nullable

Sets the minimum image size to which the watermark will be added

OptimizerAutomaticOptimizationEnabledboolean nullable

Determines if the automatic image optimization should be enabled

OptimizerForceClassesboolean nullable

Determines if the optimizer classes should be forced

OptimizerStaticHtmlEnabledboolean nullable

Determines whether optimizer static html feature enabled

OptimizerStaticHtmlWordPressPathstring nullable

Wordpress html path which should be bypassed by permacache in edge rule

OptimizerStaticHtmlWordPressBypassCookiestring nullable

Wordpress cookie which should be bypassed by permacache in edge rule

Type0 | 1

0 = Premium 1 = Volume

OriginRetriesinteger nullable

The number of retries to the origin server

OriginConnectTimeoutinteger nullable

The amount of seconds to wait when connecting to the origin. Otherwise the request will fail or retry.

OriginResponseTimeoutinteger nullable

The amount of seconds to wait when waiting for the origin reply. Otherwise the request will fail or retry.

UseStaleWhileUpdatingboolean nullable

Determines if we should use stale cache while cache is updating

UseStaleWhileOfflineboolean nullable

Determines if we should use stale cache while the origin is offline

OriginRetry5XXResponsesboolean nullable

Determines if we should retry the request in case of a 5XX response.

OriginRetryConnectionTimeoutboolean nullable

Determines if we should retry the request in case of a connection timeout.

OriginRetryResponseTimeoutboolean nullable

Determines if we should retry the request in case of a response timeout.

OriginRetryDelayinteger nullable

Determines the amount of time that the CDN should wait before retrying an origin request.

DnsOriginPortinteger nullable

Determines the origin port of the pull zone.

DnsOriginSchemestring nullable

Determines the origin scheme of the pull zone.

QueryStringVaryParametersstring[] nullable

Contains the list of vary parameters that will be used for vary cache by query string. Only alphanumeric characters, dashes and underscores are allowed (values that contain other characters are ignorred). If empty, all parameters will be used to construct the key.

OriginShieldEnableConcurrencyLimitboolean nullable

Determines if the origin shield concurrency limit is enabled.

OriginShieldMaxConcurrentRequestsinteger nullable

Determines the number of maximum concurrent requests allowed to the origin.

EnableCookieVaryboolean nullable

Determines if the Cookie Vary feature is enabled.

CookieVaryParametersstring[] nullable

Contains the list of vary parameters that will be used for vary cache by cookie string.Only alphanumeric characters, dashes and underscores are allowed (values that contain other characters are ignorred). If empty, cookie vary will not be used.

EnableSafeHopboolean nullable
OriginShieldQueueMaxWaitTimeinteger nullable

Determines the max queue wait time

OriginShieldMaxQueuedRequestsinteger nullable

Determines the max number of origin requests that will remain in the queue

UseBackgroundUpdateboolean nullable

Determines if cache update is performed in the background.

EnableAutoSSLboolean nullable

If set to true, any hostnames added to this Pull Zone will automatically enable SSL.

LogAnonymizationType0 | 1

0 = OneDigit 1 = Drop

StorageZoneIdinteger nullable

The ID of the storage zone that will be used as the origin

EdgeScriptIdinteger nullable

The ID of the edge script that will be used as the origin

MiddlewareScriptIdinteger nullable

The ID of the middleware script

EdgeScriptExecutionPhase0 | 1

0 = Cache 1 = LoadBalancer

OriginType0 | 1 | 2 | 3 | 4 | 5 | 6

0 = OriginUrl 1 = DnsAccelerate 2 = StorageZone 3 = LoadBalancer 4 = EdgeScript 5 = MagicContainers 6 = PushZone

MagicContainersAppIdstring nullable
MagicContainersEndpointIdstring nullable
LogFormat0 | 1

0 = Plain 1 = JSON

LogForwardingFormat0 | 1

0 = Plain 1 = JSON

ShieldDDosProtectionType0 | 1 | 2

0 = DetectOnly 1 = ActiveStandard 2 = ActiveAggressive

ShieldDDosProtectionEnabledboolean nullable
OriginHostHeaderstring nullable

Sets the host header that will be sent to the origin

EnableSmartCacheboolean nullable
EnableRequestCoalescingboolean nullable

Determines if request coalescing is currently enabled.

RequestCoalescingTimeoutinteger nullable

Determines the lock time for coalesced requests.

DisableLetsEncryptboolean nullable

If set to true, the built-in let's encrypt will be disabled and requests are passed to the origin.

EnableBunnyImageAiboolean nullable
PreloadingScreenEnabledboolean nullable

Determines if the preloading screen is currently enabled

PreloadingScreenCodestring nullable

The custom preloading screen coed

PreloadingScreenLogoUrlstring nullable

The preloading screen logo URL

PreloadingScreenShowOnFirstVisitboolean

Determines if the preloading screen is shown on the first load from a user.

PreloadingScreenTheme0 | 1

0 = Light 1 = Dark

PreloadingScreenCodeEnabledboolean nullable

Determines if the custom preloader screen should be enabled

PreloadingScreenDelayinteger nullable

The delay in miliseconds after which the preloading screen will be displayed (0 - 10000ms)

RoutingFiltersstring[] nullable

The list of routing filters enabled for this zone

StickySessionType0 | 1

0 = Off 1 = On

StickySessionCookieNamestring nullable

Sticky Session Cookie Name

StickySessionClientHeadersstring nullable

A set of comma-separated header names used to identify clients

OptimizerEnableUpscalingboolean nullable

Determines if Optimizer is allowed to upscale images

EnableWebSocketsboolean nullable

Determines if WebSocket connections are allowed for this Pull Zone.

MaxWebSocketConnectionsinteger nullable

The maximum global simultaneous WebSocket connections allowed for this Pull Zone. Allowed tiers: 500, 1,000, 2,500, 5,000, 10,000, 25,000. If you send a non-tier value, the value is rounded up to the next tier. Values over 25,000 are rejected, please contact sales if required.

CacheKeyHeadersstring nullable

Vary Cache by Request Headers (comma delimited)

Namestring required

The name of the pull zone.

Response

The Pull Zone was successfuly added