v1

latestOpenAPI 3.0.42026-07-26263457588.1 KB
Pull Zone

Add/Update Edge Rule

post/pullzone/{pullZoneId}/edgerules/addOrUpdate

Path parameters

pullZoneIdinteger required

The ID of the Pull Zone where the Edge Rule will be created

Request body

Guidstring nullable

The unique GUID of the edge rule

ActionType0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 37

0 = ForceSSL 1 = Redirect 2 = OriginUrl 3 = OverrideCacheTime 4 = BlockRequest 5 = SetResponseHeader 6 = SetRequestHeader 7 = ForceDownload 8 = DisableTokenAuthentication 9 = EnableTokenAuthentication 10 = OverrideCacheTimePublic 11 = IgnoreQueryString 12 = DisableOptimizer 13 = ForceCompression 14 = SetStatusCode 15 = BypassPermaCache 16 = OverrideBrowserCacheTime 17 = OriginStorage 18 = SetNetworkRateLimit 19 = SetConnectionLimit 20 = SetRequestsPerSecondLimit 21 = RunEdgeScript 22 = OriginMagicContainers 23 = DisableWAF 24 = RetryOrigin 25 = OverrideBrowserCacheResponseHeader 26 = RemoveBrowserCacheResponseHeader 27 = DisableShieldChallenge 28 = DisableShield 29 = DisableShieldBotDetection 30 = BypassAwsS3Authentication 31 = DisableShieldAccessLists 32 = DisableShieldRateLimiting 33 = EnableRequestCoalescing 34 = DisableRequestCoalescing 37 = StripCookiesClientToOrigin

ActionParameter1string nullable

The Action parameter 1. The value depends on other parameters of the edge rule.

ActionParameter2string nullable

The Action parameter 2. The value depends on other parameters of the edge rule.

ActionParameter3string nullable

The Action parameter 3. The value depends on other parameters of the edge rule.

TriggerMatchingType0 | 1 | 2

0 = MatchAny 1 = MatchAll 2 = MatchNone

Descriptionstring nullable

The description of the edge rule

Enabledboolean

Determines if the edge rule is currently enabled or not

OrderIndexinteger

The index of the edge rule in the list of execution priority

ReadOnlyboolean

Determines if the edge rule is read-only and cannot be modified or deleted

Response

The Edge Rule was successfuly added