1. Packages
  2. Gcore Provider
  3. API Docs
  4. CdnResourceRule
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core

    CDN resource rules set custom caching, delivery, and security options for specific URL patterns or file types.

    Example Usage

    Basic CDN rule

    Create a CDN resource rule that matches a URL pattern and overrides the origin protocol.

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    // Create a CDN resource rule
    const example = new gcore.CdnResourceRule("example", {
        resourceId: 12345,
        name: "my-cdn-rule",
        rule: "/assets/*.png",
        ruleType: 0,
        active: true,
        overrideOriginProtocol: "HTTPS",
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    # Create a CDN resource rule
    example = gcore.CdnResourceRule("example",
        resource_id=12345,
        name="my-cdn-rule",
        rule="/assets/*.png",
        rule_type=0,
        active=True,
        override_origin_protocol="HTTPS")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create a CDN resource rule
    		_, err := gcore.NewCdnResourceRule(ctx, "example", &gcore.CdnResourceRuleArgs{
    			ResourceId:             pulumi.Float64(12345),
    			Name:                   pulumi.String("my-cdn-rule"),
    			Rule:                   pulumi.String("/assets/*.png"),
    			RuleType:               pulumi.Float64(0),
    			Active:                 pulumi.Bool(true),
    			OverrideOriginProtocol: pulumi.String("HTTPS"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        // Create a CDN resource rule
        var example = new Gcore.CdnResourceRule("example", new()
        {
            ResourceId = 12345,
            Name = "my-cdn-rule",
            Rule = "/assets/*.png",
            RuleType = 0,
            Active = true,
            OverrideOriginProtocol = "HTTPS",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.CdnResourceRule;
    import com.pulumi.gcore.CdnResourceRuleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // Create a CDN resource rule
            var example = new CdnResourceRule("example", CdnResourceRuleArgs.builder()
                .resourceId(12345.0)
                .name("my-cdn-rule")
                .rule("/assets/*.png")
                .ruleType(0.0)
                .active(true)
                .overrideOriginProtocol("HTTPS")
                .build());
    
        }
    }
    
    resources:
      # Create a CDN resource rule
      example:
        type: gcore:CdnResourceRule
        properties:
          resourceId: 12345
          name: my-cdn-rule
          rule: /assets/*.png
          ruleType: 0
          active: true
          overrideOriginProtocol: HTTPS
    

    Create CdnResourceRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CdnResourceRule(name: string, args: CdnResourceRuleArgs, opts?: CustomResourceOptions);
    @overload
    def CdnResourceRule(resource_name: str,
                        args: CdnResourceRuleArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CdnResourceRule(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        resource_id: Optional[float] = None,
                        rule: Optional[str] = None,
                        rule_type: Optional[float] = None,
                        active: Optional[bool] = None,
                        name: Optional[str] = None,
                        options: Optional[CdnResourceRuleOptionsArgs] = None,
                        origin_group: Optional[float] = None,
                        override_origin_protocol: Optional[str] = None,
                        weight: Optional[float] = None)
    func NewCdnResourceRule(ctx *Context, name string, args CdnResourceRuleArgs, opts ...ResourceOption) (*CdnResourceRule, error)
    public CdnResourceRule(string name, CdnResourceRuleArgs args, CustomResourceOptions? opts = null)
    public CdnResourceRule(String name, CdnResourceRuleArgs args)
    public CdnResourceRule(String name, CdnResourceRuleArgs args, CustomResourceOptions options)
    
    type: gcore:CdnResourceRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CdnResourceRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CdnResourceRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CdnResourceRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CdnResourceRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CdnResourceRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cdnResourceRuleResource = new Gcore.Index.CdnResourceRule("cdnResourceRuleResource", new()
    {
        ResourceId = 0,
        Rule = "string",
        RuleType = 0,
        Active = false,
        Name = "string",
        Options = new Gcore.Inputs.CdnResourceRuleOptionsArgs
        {
            AllowedHttpMethods = new Gcore.Inputs.CdnResourceRuleOptionsAllowedHttpMethodsArgs
            {
                Enabled = false,
                Values = new[]
                {
                    "string",
                },
            },
            BotProtection = new Gcore.Inputs.CdnResourceRuleOptionsBotProtectionArgs
            {
                BotChallenge = new Gcore.Inputs.CdnResourceRuleOptionsBotProtectionBotChallengeArgs
                {
                    Enabled = false,
                },
                Enabled = false,
            },
            BrotliCompression = new Gcore.Inputs.CdnResourceRuleOptionsBrotliCompressionArgs
            {
                Enabled = false,
                Values = new[]
                {
                    "string",
                },
            },
            BrowserCacheSettings = new Gcore.Inputs.CdnResourceRuleOptionsBrowserCacheSettingsArgs
            {
                Enabled = false,
                Value = "string",
            },
            Cors = new Gcore.Inputs.CdnResourceRuleOptionsCorsArgs
            {
                Enabled = false,
                Values = new[]
                {
                    "string",
                },
                Always = false,
            },
            CountryAcl = new Gcore.Inputs.CdnResourceRuleOptionsCountryAclArgs
            {
                Enabled = false,
                ExceptedValues = new[]
                {
                    "string",
                },
                PolicyType = "string",
            },
            DisableProxyForceRanges = new Gcore.Inputs.CdnResourceRuleOptionsDisableProxyForceRangesArgs
            {
                Enabled = false,
                Value = false,
            },
            EdgeCacheSettings = new Gcore.Inputs.CdnResourceRuleOptionsEdgeCacheSettingsArgs
            {
                Enabled = false,
                CustomValues = 
                {
                    { "string", "string" },
                },
                Default = "string",
                Value = "string",
            },
            Fastedge = new Gcore.Inputs.CdnResourceRuleOptionsFastedgeArgs
            {
                Enabled = false,
                OnRequestBody = new Gcore.Inputs.CdnResourceRuleOptionsFastedgeOnRequestBodyArgs
                {
                    AppId = "string",
                    Enabled = false,
                    ExecuteOnEdge = false,
                    ExecuteOnShield = false,
                    InterruptOnError = false,
                },
                OnRequestHeaders = new Gcore.Inputs.CdnResourceRuleOptionsFastedgeOnRequestHeadersArgs
                {
                    AppId = "string",
                    Enabled = false,
                    ExecuteOnEdge = false,
                    ExecuteOnShield = false,
                    InterruptOnError = false,
                },
                OnResponseBody = new Gcore.Inputs.CdnResourceRuleOptionsFastedgeOnResponseBodyArgs
                {
                    AppId = "string",
                    Enabled = false,
                    ExecuteOnEdge = false,
                    ExecuteOnShield = false,
                    InterruptOnError = false,
                },
                OnResponseHeaders = new Gcore.Inputs.CdnResourceRuleOptionsFastedgeOnResponseHeadersArgs
                {
                    AppId = "string",
                    Enabled = false,
                    ExecuteOnEdge = false,
                    ExecuteOnShield = false,
                    InterruptOnError = false,
                },
            },
            FetchCompressed = new Gcore.Inputs.CdnResourceRuleOptionsFetchCompressedArgs
            {
                Enabled = false,
                Value = false,
            },
            FollowOriginRedirect = new Gcore.Inputs.CdnResourceRuleOptionsFollowOriginRedirectArgs
            {
                Codes = new[]
                {
                    0,
                },
                Enabled = false,
            },
            ForceReturn = new Gcore.Inputs.CdnResourceRuleOptionsForceReturnArgs
            {
                Body = "string",
                Code = 0,
                Enabled = false,
                TimeInterval = new Gcore.Inputs.CdnResourceRuleOptionsForceReturnTimeIntervalArgs
                {
                    EndTime = "string",
                    StartTime = "string",
                    TimeZone = "string",
                },
            },
            ForwardHostHeader = new Gcore.Inputs.CdnResourceRuleOptionsForwardHostHeaderArgs
            {
                Enabled = false,
                Value = false,
            },
            GzipOn = new Gcore.Inputs.CdnResourceRuleOptionsGzipOnArgs
            {
                Enabled = false,
                Value = false,
            },
            HostHeader = new Gcore.Inputs.CdnResourceRuleOptionsHostHeaderArgs
            {
                Enabled = false,
                Value = "string",
            },
            IgnoreCookie = new Gcore.Inputs.CdnResourceRuleOptionsIgnoreCookieArgs
            {
                Enabled = false,
                Value = false,
            },
            IgnoreQueryString = new Gcore.Inputs.CdnResourceRuleOptionsIgnoreQueryStringArgs
            {
                Enabled = false,
                Value = false,
            },
            ImageStack = new Gcore.Inputs.CdnResourceRuleOptionsImageStackArgs
            {
                Enabled = false,
                AvifEnabled = false,
                PngLossless = false,
                Quality = 0,
                WebpEnabled = false,
            },
            IpAddressAcl = new Gcore.Inputs.CdnResourceRuleOptionsIpAddressAclArgs
            {
                Enabled = false,
                ExceptedValues = new[]
                {
                    "string",
                },
                PolicyType = "string",
            },
            LimitBandwidth = new Gcore.Inputs.CdnResourceRuleOptionsLimitBandwidthArgs
            {
                Enabled = false,
                LimitType = "string",
                Buffer = 0,
                Speed = 0,
            },
            ProxyCacheKey = new Gcore.Inputs.CdnResourceRuleOptionsProxyCacheKeyArgs
            {
                Enabled = false,
                Value = "string",
            },
            ProxyCacheMethodsSet = new Gcore.Inputs.CdnResourceRuleOptionsProxyCacheMethodsSetArgs
            {
                Enabled = false,
                Value = false,
            },
            ProxyConnectTimeout = new Gcore.Inputs.CdnResourceRuleOptionsProxyConnectTimeoutArgs
            {
                Enabled = false,
                Value = "string",
            },
            ProxyReadTimeout = new Gcore.Inputs.CdnResourceRuleOptionsProxyReadTimeoutArgs
            {
                Enabled = false,
                Value = "string",
            },
            QueryParamsBlacklist = new Gcore.Inputs.CdnResourceRuleOptionsQueryParamsBlacklistArgs
            {
                Enabled = false,
                Values = new[]
                {
                    "string",
                },
            },
            QueryParamsWhitelist = new Gcore.Inputs.CdnResourceRuleOptionsQueryParamsWhitelistArgs
            {
                Enabled = false,
                Values = new[]
                {
                    "string",
                },
            },
            QueryStringForwarding = new Gcore.Inputs.CdnResourceRuleOptionsQueryStringForwardingArgs
            {
                Enabled = false,
                ForwardFromFileTypes = new[]
                {
                    "string",
                },
                ForwardToFileTypes = new[]
                {
                    "string",
                },
                ForwardExceptKeys = new[]
                {
                    "string",
                },
                ForwardOnlyKeys = new[]
                {
                    "string",
                },
            },
            RedirectHttpToHttps = new Gcore.Inputs.CdnResourceRuleOptionsRedirectHttpToHttpsArgs
            {
                Enabled = false,
                Value = false,
            },
            RedirectHttpsToHttp = new Gcore.Inputs.CdnResourceRuleOptionsRedirectHttpsToHttpArgs
            {
                Enabled = false,
                Value = false,
            },
            ReferrerAcl = new Gcore.Inputs.CdnResourceRuleOptionsReferrerAclArgs
            {
                Enabled = false,
                ExceptedValues = new[]
                {
                    "string",
                },
                PolicyType = "string",
            },
            RequestLimiter = new Gcore.Inputs.CdnResourceRuleOptionsRequestLimiterArgs
            {
                Enabled = false,
                Rate = 0,
                Burst = 0,
                Delay = 0,
                RateUnit = "string",
            },
            ResponseHeadersHidingPolicy = new Gcore.Inputs.CdnResourceRuleOptionsResponseHeadersHidingPolicyArgs
            {
                Enabled = false,
                Mode = "string",
                Excepteds = new[]
                {
                    "string",
                },
            },
            Rewrite = new Gcore.Inputs.CdnResourceRuleOptionsRewriteArgs
            {
                Body = "string",
                Enabled = false,
                Flag = "string",
            },
            SecureKey = new Gcore.Inputs.CdnResourceRuleOptionsSecureKeyArgs
            {
                Enabled = false,
                Key = "string",
                Type = 0,
            },
            Slice = new Gcore.Inputs.CdnResourceRuleOptionsSliceArgs
            {
                Enabled = false,
                Value = false,
            },
            Sni = new Gcore.Inputs.CdnResourceRuleOptionsSniArgs
            {
                CustomHostname = "string",
                Enabled = false,
                SniType = "string",
            },
            Stale = new Gcore.Inputs.CdnResourceRuleOptionsStaleArgs
            {
                Enabled = false,
                Values = new[]
                {
                    "string",
                },
            },
            StaticRequestHeaders = new Gcore.Inputs.CdnResourceRuleOptionsStaticRequestHeadersArgs
            {
                Enabled = false,
                Value = 
                {
                    { "string", "string" },
                },
            },
            StaticResponseHeaders = new Gcore.Inputs.CdnResourceRuleOptionsStaticResponseHeadersArgs
            {
                Enabled = false,
                Values = new[]
                {
                    new Gcore.Inputs.CdnResourceRuleOptionsStaticResponseHeadersValueArgs
                    {
                        Name = "string",
                        Values = new[]
                        {
                            "string",
                        },
                        Always = false,
                    },
                },
            },
            UserAgentAcl = new Gcore.Inputs.CdnResourceRuleOptionsUserAgentAclArgs
            {
                Enabled = false,
                ExceptedValues = new[]
                {
                    "string",
                },
                PolicyType = "string",
            },
            Waap = new Gcore.Inputs.CdnResourceRuleOptionsWaapArgs
            {
                Enabled = false,
                Value = false,
            },
            Websockets = new Gcore.Inputs.CdnResourceRuleOptionsWebsocketsArgs
            {
                Enabled = false,
                Value = false,
            },
        },
        OriginGroup = 0,
        OverrideOriginProtocol = "string",
        Weight = 0,
    });
    
    example, err := gcore.NewCdnResourceRule(ctx, "cdnResourceRuleResource", &gcore.CdnResourceRuleArgs{
    	ResourceId: pulumi.Float64(0),
    	Rule:       pulumi.String("string"),
    	RuleType:   pulumi.Float64(0),
    	Active:     pulumi.Bool(false),
    	Name:       pulumi.String("string"),
    	Options: &gcore.CdnResourceRuleOptionsArgs{
    		AllowedHttpMethods: &gcore.CdnResourceRuleOptionsAllowedHttpMethodsArgs{
    			Enabled: pulumi.Bool(false),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		BotProtection: &gcore.CdnResourceRuleOptionsBotProtectionArgs{
    			BotChallenge: &gcore.CdnResourceRuleOptionsBotProtectionBotChallengeArgs{
    				Enabled: pulumi.Bool(false),
    			},
    			Enabled: pulumi.Bool(false),
    		},
    		BrotliCompression: &gcore.CdnResourceRuleOptionsBrotliCompressionArgs{
    			Enabled: pulumi.Bool(false),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		BrowserCacheSettings: &gcore.CdnResourceRuleOptionsBrowserCacheSettingsArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.String("string"),
    		},
    		Cors: &gcore.CdnResourceRuleOptionsCorsArgs{
    			Enabled: pulumi.Bool(false),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Always: pulumi.Bool(false),
    		},
    		CountryAcl: &gcore.CdnResourceRuleOptionsCountryAclArgs{
    			Enabled: pulumi.Bool(false),
    			ExceptedValues: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			PolicyType: pulumi.String("string"),
    		},
    		DisableProxyForceRanges: &gcore.CdnResourceRuleOptionsDisableProxyForceRangesArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		EdgeCacheSettings: &gcore.CdnResourceRuleOptionsEdgeCacheSettingsArgs{
    			Enabled: pulumi.Bool(false),
    			CustomValues: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			Default: pulumi.String("string"),
    			Value:   pulumi.String("string"),
    		},
    		Fastedge: &gcore.CdnResourceRuleOptionsFastedgeArgs{
    			Enabled: pulumi.Bool(false),
    			OnRequestBody: &gcore.CdnResourceRuleOptionsFastedgeOnRequestBodyArgs{
    				AppId:            pulumi.String("string"),
    				Enabled:          pulumi.Bool(false),
    				ExecuteOnEdge:    pulumi.Bool(false),
    				ExecuteOnShield:  pulumi.Bool(false),
    				InterruptOnError: pulumi.Bool(false),
    			},
    			OnRequestHeaders: &gcore.CdnResourceRuleOptionsFastedgeOnRequestHeadersArgs{
    				AppId:            pulumi.String("string"),
    				Enabled:          pulumi.Bool(false),
    				ExecuteOnEdge:    pulumi.Bool(false),
    				ExecuteOnShield:  pulumi.Bool(false),
    				InterruptOnError: pulumi.Bool(false),
    			},
    			OnResponseBody: &gcore.CdnResourceRuleOptionsFastedgeOnResponseBodyArgs{
    				AppId:            pulumi.String("string"),
    				Enabled:          pulumi.Bool(false),
    				ExecuteOnEdge:    pulumi.Bool(false),
    				ExecuteOnShield:  pulumi.Bool(false),
    				InterruptOnError: pulumi.Bool(false),
    			},
    			OnResponseHeaders: &gcore.CdnResourceRuleOptionsFastedgeOnResponseHeadersArgs{
    				AppId:            pulumi.String("string"),
    				Enabled:          pulumi.Bool(false),
    				ExecuteOnEdge:    pulumi.Bool(false),
    				ExecuteOnShield:  pulumi.Bool(false),
    				InterruptOnError: pulumi.Bool(false),
    			},
    		},
    		FetchCompressed: &gcore.CdnResourceRuleOptionsFetchCompressedArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		FollowOriginRedirect: &gcore.CdnResourceRuleOptionsFollowOriginRedirectArgs{
    			Codes: pulumi.Float64Array{
    				pulumi.Float64(0),
    			},
    			Enabled: pulumi.Bool(false),
    		},
    		ForceReturn: &gcore.CdnResourceRuleOptionsForceReturnArgs{
    			Body:    pulumi.String("string"),
    			Code:    pulumi.Float64(0),
    			Enabled: pulumi.Bool(false),
    			TimeInterval: &gcore.CdnResourceRuleOptionsForceReturnTimeIntervalArgs{
    				EndTime:   pulumi.String("string"),
    				StartTime: pulumi.String("string"),
    				TimeZone:  pulumi.String("string"),
    			},
    		},
    		ForwardHostHeader: &gcore.CdnResourceRuleOptionsForwardHostHeaderArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		GzipOn: &gcore.CdnResourceRuleOptionsGzipOnArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		HostHeader: &gcore.CdnResourceRuleOptionsHostHeaderArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.String("string"),
    		},
    		IgnoreCookie: &gcore.CdnResourceRuleOptionsIgnoreCookieArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		IgnoreQueryString: &gcore.CdnResourceRuleOptionsIgnoreQueryStringArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		ImageStack: &gcore.CdnResourceRuleOptionsImageStackArgs{
    			Enabled:     pulumi.Bool(false),
    			AvifEnabled: pulumi.Bool(false),
    			PngLossless: pulumi.Bool(false),
    			Quality:     pulumi.Float64(0),
    			WebpEnabled: pulumi.Bool(false),
    		},
    		IpAddressAcl: &gcore.CdnResourceRuleOptionsIpAddressAclArgs{
    			Enabled: pulumi.Bool(false),
    			ExceptedValues: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			PolicyType: pulumi.String("string"),
    		},
    		LimitBandwidth: &gcore.CdnResourceRuleOptionsLimitBandwidthArgs{
    			Enabled:   pulumi.Bool(false),
    			LimitType: pulumi.String("string"),
    			Buffer:    pulumi.Float64(0),
    			Speed:     pulumi.Float64(0),
    		},
    		ProxyCacheKey: &gcore.CdnResourceRuleOptionsProxyCacheKeyArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.String("string"),
    		},
    		ProxyCacheMethodsSet: &gcore.CdnResourceRuleOptionsProxyCacheMethodsSetArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		ProxyConnectTimeout: &gcore.CdnResourceRuleOptionsProxyConnectTimeoutArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.String("string"),
    		},
    		ProxyReadTimeout: &gcore.CdnResourceRuleOptionsProxyReadTimeoutArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.String("string"),
    		},
    		QueryParamsBlacklist: &gcore.CdnResourceRuleOptionsQueryParamsBlacklistArgs{
    			Enabled: pulumi.Bool(false),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		QueryParamsWhitelist: &gcore.CdnResourceRuleOptionsQueryParamsWhitelistArgs{
    			Enabled: pulumi.Bool(false),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		QueryStringForwarding: &gcore.CdnResourceRuleOptionsQueryStringForwardingArgs{
    			Enabled: pulumi.Bool(false),
    			ForwardFromFileTypes: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			ForwardToFileTypes: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			ForwardExceptKeys: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			ForwardOnlyKeys: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		RedirectHttpToHttps: &gcore.CdnResourceRuleOptionsRedirectHttpToHttpsArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		RedirectHttpsToHttp: &gcore.CdnResourceRuleOptionsRedirectHttpsToHttpArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		ReferrerAcl: &gcore.CdnResourceRuleOptionsReferrerAclArgs{
    			Enabled: pulumi.Bool(false),
    			ExceptedValues: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			PolicyType: pulumi.String("string"),
    		},
    		RequestLimiter: &gcore.CdnResourceRuleOptionsRequestLimiterArgs{
    			Enabled:  pulumi.Bool(false),
    			Rate:     pulumi.Float64(0),
    			Burst:    pulumi.Float64(0),
    			Delay:    pulumi.Float64(0),
    			RateUnit: pulumi.String("string"),
    		},
    		ResponseHeadersHidingPolicy: &gcore.CdnResourceRuleOptionsResponseHeadersHidingPolicyArgs{
    			Enabled: pulumi.Bool(false),
    			Mode:    pulumi.String("string"),
    			Excepteds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		Rewrite: &gcore.CdnResourceRuleOptionsRewriteArgs{
    			Body:    pulumi.String("string"),
    			Enabled: pulumi.Bool(false),
    			Flag:    pulumi.String("string"),
    		},
    		SecureKey: &gcore.CdnResourceRuleOptionsSecureKeyArgs{
    			Enabled: pulumi.Bool(false),
    			Key:     pulumi.String("string"),
    			Type:    pulumi.Float64(0),
    		},
    		Slice: &gcore.CdnResourceRuleOptionsSliceArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		Sni: &gcore.CdnResourceRuleOptionsSniArgs{
    			CustomHostname: pulumi.String("string"),
    			Enabled:        pulumi.Bool(false),
    			SniType:        pulumi.String("string"),
    		},
    		Stale: &gcore.CdnResourceRuleOptionsStaleArgs{
    			Enabled: pulumi.Bool(false),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		StaticRequestHeaders: &gcore.CdnResourceRuleOptionsStaticRequestHeadersArgs{
    			Enabled: pulumi.Bool(false),
    			Value: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    		StaticResponseHeaders: &gcore.CdnResourceRuleOptionsStaticResponseHeadersArgs{
    			Enabled: pulumi.Bool(false),
    			Values: gcore.CdnResourceRuleOptionsStaticResponseHeadersValueArray{
    				&gcore.CdnResourceRuleOptionsStaticResponseHeadersValueArgs{
    					Name: pulumi.String("string"),
    					Values: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					Always: pulumi.Bool(false),
    				},
    			},
    		},
    		UserAgentAcl: &gcore.CdnResourceRuleOptionsUserAgentAclArgs{
    			Enabled: pulumi.Bool(false),
    			ExceptedValues: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			PolicyType: pulumi.String("string"),
    		},
    		Waap: &gcore.CdnResourceRuleOptionsWaapArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    		Websockets: &gcore.CdnResourceRuleOptionsWebsocketsArgs{
    			Enabled: pulumi.Bool(false),
    			Value:   pulumi.Bool(false),
    		},
    	},
    	OriginGroup:            pulumi.Float64(0),
    	OverrideOriginProtocol: pulumi.String("string"),
    	Weight:                 pulumi.Float64(0),
    })
    
    var cdnResourceRuleResource = new CdnResourceRule("cdnResourceRuleResource", CdnResourceRuleArgs.builder()
        .resourceId(0.0)
        .rule("string")
        .ruleType(0.0)
        .active(false)
        .name("string")
        .options(CdnResourceRuleOptionsArgs.builder()
            .allowedHttpMethods(CdnResourceRuleOptionsAllowedHttpMethodsArgs.builder()
                .enabled(false)
                .values("string")
                .build())
            .botProtection(CdnResourceRuleOptionsBotProtectionArgs.builder()
                .botChallenge(CdnResourceRuleOptionsBotProtectionBotChallengeArgs.builder()
                    .enabled(false)
                    .build())
                .enabled(false)
                .build())
            .brotliCompression(CdnResourceRuleOptionsBrotliCompressionArgs.builder()
                .enabled(false)
                .values("string")
                .build())
            .browserCacheSettings(CdnResourceRuleOptionsBrowserCacheSettingsArgs.builder()
                .enabled(false)
                .value("string")
                .build())
            .cors(CdnResourceRuleOptionsCorsArgs.builder()
                .enabled(false)
                .values("string")
                .always(false)
                .build())
            .countryAcl(CdnResourceRuleOptionsCountryAclArgs.builder()
                .enabled(false)
                .exceptedValues("string")
                .policyType("string")
                .build())
            .disableProxyForceRanges(CdnResourceRuleOptionsDisableProxyForceRangesArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .edgeCacheSettings(CdnResourceRuleOptionsEdgeCacheSettingsArgs.builder()
                .enabled(false)
                .customValues(Map.of("string", "string"))
                .default_("string")
                .value("string")
                .build())
            .fastedge(CdnResourceRuleOptionsFastedgeArgs.builder()
                .enabled(false)
                .onRequestBody(CdnResourceRuleOptionsFastedgeOnRequestBodyArgs.builder()
                    .appId("string")
                    .enabled(false)
                    .executeOnEdge(false)
                    .executeOnShield(false)
                    .interruptOnError(false)
                    .build())
                .onRequestHeaders(CdnResourceRuleOptionsFastedgeOnRequestHeadersArgs.builder()
                    .appId("string")
                    .enabled(false)
                    .executeOnEdge(false)
                    .executeOnShield(false)
                    .interruptOnError(false)
                    .build())
                .onResponseBody(CdnResourceRuleOptionsFastedgeOnResponseBodyArgs.builder()
                    .appId("string")
                    .enabled(false)
                    .executeOnEdge(false)
                    .executeOnShield(false)
                    .interruptOnError(false)
                    .build())
                .onResponseHeaders(CdnResourceRuleOptionsFastedgeOnResponseHeadersArgs.builder()
                    .appId("string")
                    .enabled(false)
                    .executeOnEdge(false)
                    .executeOnShield(false)
                    .interruptOnError(false)
                    .build())
                .build())
            .fetchCompressed(CdnResourceRuleOptionsFetchCompressedArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .followOriginRedirect(CdnResourceRuleOptionsFollowOriginRedirectArgs.builder()
                .codes(0.0)
                .enabled(false)
                .build())
            .forceReturn(CdnResourceRuleOptionsForceReturnArgs.builder()
                .body("string")
                .code(0.0)
                .enabled(false)
                .timeInterval(CdnResourceRuleOptionsForceReturnTimeIntervalArgs.builder()
                    .endTime("string")
                    .startTime("string")
                    .timeZone("string")
                    .build())
                .build())
            .forwardHostHeader(CdnResourceRuleOptionsForwardHostHeaderArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .gzipOn(CdnResourceRuleOptionsGzipOnArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .hostHeader(CdnResourceRuleOptionsHostHeaderArgs.builder()
                .enabled(false)
                .value("string")
                .build())
            .ignoreCookie(CdnResourceRuleOptionsIgnoreCookieArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .ignoreQueryString(CdnResourceRuleOptionsIgnoreQueryStringArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .imageStack(CdnResourceRuleOptionsImageStackArgs.builder()
                .enabled(false)
                .avifEnabled(false)
                .pngLossless(false)
                .quality(0.0)
                .webpEnabled(false)
                .build())
            .ipAddressAcl(CdnResourceRuleOptionsIpAddressAclArgs.builder()
                .enabled(false)
                .exceptedValues("string")
                .policyType("string")
                .build())
            .limitBandwidth(CdnResourceRuleOptionsLimitBandwidthArgs.builder()
                .enabled(false)
                .limitType("string")
                .buffer(0.0)
                .speed(0.0)
                .build())
            .proxyCacheKey(CdnResourceRuleOptionsProxyCacheKeyArgs.builder()
                .enabled(false)
                .value("string")
                .build())
            .proxyCacheMethodsSet(CdnResourceRuleOptionsProxyCacheMethodsSetArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .proxyConnectTimeout(CdnResourceRuleOptionsProxyConnectTimeoutArgs.builder()
                .enabled(false)
                .value("string")
                .build())
            .proxyReadTimeout(CdnResourceRuleOptionsProxyReadTimeoutArgs.builder()
                .enabled(false)
                .value("string")
                .build())
            .queryParamsBlacklist(CdnResourceRuleOptionsQueryParamsBlacklistArgs.builder()
                .enabled(false)
                .values("string")
                .build())
            .queryParamsWhitelist(CdnResourceRuleOptionsQueryParamsWhitelistArgs.builder()
                .enabled(false)
                .values("string")
                .build())
            .queryStringForwarding(CdnResourceRuleOptionsQueryStringForwardingArgs.builder()
                .enabled(false)
                .forwardFromFileTypes("string")
                .forwardToFileTypes("string")
                .forwardExceptKeys("string")
                .forwardOnlyKeys("string")
                .build())
            .redirectHttpToHttps(CdnResourceRuleOptionsRedirectHttpToHttpsArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .redirectHttpsToHttp(CdnResourceRuleOptionsRedirectHttpsToHttpArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .referrerAcl(CdnResourceRuleOptionsReferrerAclArgs.builder()
                .enabled(false)
                .exceptedValues("string")
                .policyType("string")
                .build())
            .requestLimiter(CdnResourceRuleOptionsRequestLimiterArgs.builder()
                .enabled(false)
                .rate(0.0)
                .burst(0.0)
                .delay(0.0)
                .rateUnit("string")
                .build())
            .responseHeadersHidingPolicy(CdnResourceRuleOptionsResponseHeadersHidingPolicyArgs.builder()
                .enabled(false)
                .mode("string")
                .excepteds("string")
                .build())
            .rewrite(CdnResourceRuleOptionsRewriteArgs.builder()
                .body("string")
                .enabled(false)
                .flag("string")
                .build())
            .secureKey(CdnResourceRuleOptionsSecureKeyArgs.builder()
                .enabled(false)
                .key("string")
                .type(0.0)
                .build())
            .slice(CdnResourceRuleOptionsSliceArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .sni(CdnResourceRuleOptionsSniArgs.builder()
                .customHostname("string")
                .enabled(false)
                .sniType("string")
                .build())
            .stale(CdnResourceRuleOptionsStaleArgs.builder()
                .enabled(false)
                .values("string")
                .build())
            .staticRequestHeaders(CdnResourceRuleOptionsStaticRequestHeadersArgs.builder()
                .enabled(false)
                .value(Map.of("string", "string"))
                .build())
            .staticResponseHeaders(CdnResourceRuleOptionsStaticResponseHeadersArgs.builder()
                .enabled(false)
                .values(CdnResourceRuleOptionsStaticResponseHeadersValueArgs.builder()
                    .name("string")
                    .values("string")
                    .always(false)
                    .build())
                .build())
            .userAgentAcl(CdnResourceRuleOptionsUserAgentAclArgs.builder()
                .enabled(false)
                .exceptedValues("string")
                .policyType("string")
                .build())
            .waap(CdnResourceRuleOptionsWaapArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .websockets(CdnResourceRuleOptionsWebsocketsArgs.builder()
                .enabled(false)
                .value(false)
                .build())
            .build())
        .originGroup(0.0)
        .overrideOriginProtocol("string")
        .weight(0.0)
        .build());
    
    cdn_resource_rule_resource = gcore.CdnResourceRule("cdnResourceRuleResource",
        resource_id=0,
        rule="string",
        rule_type=0,
        active=False,
        name="string",
        options={
            "allowed_http_methods": {
                "enabled": False,
                "values": ["string"],
            },
            "bot_protection": {
                "bot_challenge": {
                    "enabled": False,
                },
                "enabled": False,
            },
            "brotli_compression": {
                "enabled": False,
                "values": ["string"],
            },
            "browser_cache_settings": {
                "enabled": False,
                "value": "string",
            },
            "cors": {
                "enabled": False,
                "values": ["string"],
                "always": False,
            },
            "country_acl": {
                "enabled": False,
                "excepted_values": ["string"],
                "policy_type": "string",
            },
            "disable_proxy_force_ranges": {
                "enabled": False,
                "value": False,
            },
            "edge_cache_settings": {
                "enabled": False,
                "custom_values": {
                    "string": "string",
                },
                "default": "string",
                "value": "string",
            },
            "fastedge": {
                "enabled": False,
                "on_request_body": {
                    "app_id": "string",
                    "enabled": False,
                    "execute_on_edge": False,
                    "execute_on_shield": False,
                    "interrupt_on_error": False,
                },
                "on_request_headers": {
                    "app_id": "string",
                    "enabled": False,
                    "execute_on_edge": False,
                    "execute_on_shield": False,
                    "interrupt_on_error": False,
                },
                "on_response_body": {
                    "app_id": "string",
                    "enabled": False,
                    "execute_on_edge": False,
                    "execute_on_shield": False,
                    "interrupt_on_error": False,
                },
                "on_response_headers": {
                    "app_id": "string",
                    "enabled": False,
                    "execute_on_edge": False,
                    "execute_on_shield": False,
                    "interrupt_on_error": False,
                },
            },
            "fetch_compressed": {
                "enabled": False,
                "value": False,
            },
            "follow_origin_redirect": {
                "codes": [0],
                "enabled": False,
            },
            "force_return": {
                "body": "string",
                "code": 0,
                "enabled": False,
                "time_interval": {
                    "end_time": "string",
                    "start_time": "string",
                    "time_zone": "string",
                },
            },
            "forward_host_header": {
                "enabled": False,
                "value": False,
            },
            "gzip_on": {
                "enabled": False,
                "value": False,
            },
            "host_header": {
                "enabled": False,
                "value": "string",
            },
            "ignore_cookie": {
                "enabled": False,
                "value": False,
            },
            "ignore_query_string": {
                "enabled": False,
                "value": False,
            },
            "image_stack": {
                "enabled": False,
                "avif_enabled": False,
                "png_lossless": False,
                "quality": 0,
                "webp_enabled": False,
            },
            "ip_address_acl": {
                "enabled": False,
                "excepted_values": ["string"],
                "policy_type": "string",
            },
            "limit_bandwidth": {
                "enabled": False,
                "limit_type": "string",
                "buffer": 0,
                "speed": 0,
            },
            "proxy_cache_key": {
                "enabled": False,
                "value": "string",
            },
            "proxy_cache_methods_set": {
                "enabled": False,
                "value": False,
            },
            "proxy_connect_timeout": {
                "enabled": False,
                "value": "string",
            },
            "proxy_read_timeout": {
                "enabled": False,
                "value": "string",
            },
            "query_params_blacklist": {
                "enabled": False,
                "values": ["string"],
            },
            "query_params_whitelist": {
                "enabled": False,
                "values": ["string"],
            },
            "query_string_forwarding": {
                "enabled": False,
                "forward_from_file_types": ["string"],
                "forward_to_file_types": ["string"],
                "forward_except_keys": ["string"],
                "forward_only_keys": ["string"],
            },
            "redirect_http_to_https": {
                "enabled": False,
                "value": False,
            },
            "redirect_https_to_http": {
                "enabled": False,
                "value": False,
            },
            "referrer_acl": {
                "enabled": False,
                "excepted_values": ["string"],
                "policy_type": "string",
            },
            "request_limiter": {
                "enabled": False,
                "rate": 0,
                "burst": 0,
                "delay": 0,
                "rate_unit": "string",
            },
            "response_headers_hiding_policy": {
                "enabled": False,
                "mode": "string",
                "excepteds": ["string"],
            },
            "rewrite": {
                "body": "string",
                "enabled": False,
                "flag": "string",
            },
            "secure_key": {
                "enabled": False,
                "key": "string",
                "type": 0,
            },
            "slice": {
                "enabled": False,
                "value": False,
            },
            "sni": {
                "custom_hostname": "string",
                "enabled": False,
                "sni_type": "string",
            },
            "stale": {
                "enabled": False,
                "values": ["string"],
            },
            "static_request_headers": {
                "enabled": False,
                "value": {
                    "string": "string",
                },
            },
            "static_response_headers": {
                "enabled": False,
                "values": [{
                    "name": "string",
                    "values": ["string"],
                    "always": False,
                }],
            },
            "user_agent_acl": {
                "enabled": False,
                "excepted_values": ["string"],
                "policy_type": "string",
            },
            "waap": {
                "enabled": False,
                "value": False,
            },
            "websockets": {
                "enabled": False,
                "value": False,
            },
        },
        origin_group=0,
        override_origin_protocol="string",
        weight=0)
    
    const cdnResourceRuleResource = new gcore.CdnResourceRule("cdnResourceRuleResource", {
        resourceId: 0,
        rule: "string",
        ruleType: 0,
        active: false,
        name: "string",
        options: {
            allowedHttpMethods: {
                enabled: false,
                values: ["string"],
            },
            botProtection: {
                botChallenge: {
                    enabled: false,
                },
                enabled: false,
            },
            brotliCompression: {
                enabled: false,
                values: ["string"],
            },
            browserCacheSettings: {
                enabled: false,
                value: "string",
            },
            cors: {
                enabled: false,
                values: ["string"],
                always: false,
            },
            countryAcl: {
                enabled: false,
                exceptedValues: ["string"],
                policyType: "string",
            },
            disableProxyForceRanges: {
                enabled: false,
                value: false,
            },
            edgeCacheSettings: {
                enabled: false,
                customValues: {
                    string: "string",
                },
                "default": "string",
                value: "string",
            },
            fastedge: {
                enabled: false,
                onRequestBody: {
                    appId: "string",
                    enabled: false,
                    executeOnEdge: false,
                    executeOnShield: false,
                    interruptOnError: false,
                },
                onRequestHeaders: {
                    appId: "string",
                    enabled: false,
                    executeOnEdge: false,
                    executeOnShield: false,
                    interruptOnError: false,
                },
                onResponseBody: {
                    appId: "string",
                    enabled: false,
                    executeOnEdge: false,
                    executeOnShield: false,
                    interruptOnError: false,
                },
                onResponseHeaders: {
                    appId: "string",
                    enabled: false,
                    executeOnEdge: false,
                    executeOnShield: false,
                    interruptOnError: false,
                },
            },
            fetchCompressed: {
                enabled: false,
                value: false,
            },
            followOriginRedirect: {
                codes: [0],
                enabled: false,
            },
            forceReturn: {
                body: "string",
                code: 0,
                enabled: false,
                timeInterval: {
                    endTime: "string",
                    startTime: "string",
                    timeZone: "string",
                },
            },
            forwardHostHeader: {
                enabled: false,
                value: false,
            },
            gzipOn: {
                enabled: false,
                value: false,
            },
            hostHeader: {
                enabled: false,
                value: "string",
            },
            ignoreCookie: {
                enabled: false,
                value: false,
            },
            ignoreQueryString: {
                enabled: false,
                value: false,
            },
            imageStack: {
                enabled: false,
                avifEnabled: false,
                pngLossless: false,
                quality: 0,
                webpEnabled: false,
            },
            ipAddressAcl: {
                enabled: false,
                exceptedValues: ["string"],
                policyType: "string",
            },
            limitBandwidth: {
                enabled: false,
                limitType: "string",
                buffer: 0,
                speed: 0,
            },
            proxyCacheKey: {
                enabled: false,
                value: "string",
            },
            proxyCacheMethodsSet: {
                enabled: false,
                value: false,
            },
            proxyConnectTimeout: {
                enabled: false,
                value: "string",
            },
            proxyReadTimeout: {
                enabled: false,
                value: "string",
            },
            queryParamsBlacklist: {
                enabled: false,
                values: ["string"],
            },
            queryParamsWhitelist: {
                enabled: false,
                values: ["string"],
            },
            queryStringForwarding: {
                enabled: false,
                forwardFromFileTypes: ["string"],
                forwardToFileTypes: ["string"],
                forwardExceptKeys: ["string"],
                forwardOnlyKeys: ["string"],
            },
            redirectHttpToHttps: {
                enabled: false,
                value: false,
            },
            redirectHttpsToHttp: {
                enabled: false,
                value: false,
            },
            referrerAcl: {
                enabled: false,
                exceptedValues: ["string"],
                policyType: "string",
            },
            requestLimiter: {
                enabled: false,
                rate: 0,
                burst: 0,
                delay: 0,
                rateUnit: "string",
            },
            responseHeadersHidingPolicy: {
                enabled: false,
                mode: "string",
                excepteds: ["string"],
            },
            rewrite: {
                body: "string",
                enabled: false,
                flag: "string",
            },
            secureKey: {
                enabled: false,
                key: "string",
                type: 0,
            },
            slice: {
                enabled: false,
                value: false,
            },
            sni: {
                customHostname: "string",
                enabled: false,
                sniType: "string",
            },
            stale: {
                enabled: false,
                values: ["string"],
            },
            staticRequestHeaders: {
                enabled: false,
                value: {
                    string: "string",
                },
            },
            staticResponseHeaders: {
                enabled: false,
                values: [{
                    name: "string",
                    values: ["string"],
                    always: false,
                }],
            },
            userAgentAcl: {
                enabled: false,
                exceptedValues: ["string"],
                policyType: "string",
            },
            waap: {
                enabled: false,
                value: false,
            },
            websockets: {
                enabled: false,
                value: false,
            },
        },
        originGroup: 0,
        overrideOriginProtocol: "string",
        weight: 0,
    });
    
    type: gcore:CdnResourceRule
    properties:
        active: false
        name: string
        options:
            allowedHttpMethods:
                enabled: false
                values:
                    - string
            botProtection:
                botChallenge:
                    enabled: false
                enabled: false
            brotliCompression:
                enabled: false
                values:
                    - string
            browserCacheSettings:
                enabled: false
                value: string
            cors:
                always: false
                enabled: false
                values:
                    - string
            countryAcl:
                enabled: false
                exceptedValues:
                    - string
                policyType: string
            disableProxyForceRanges:
                enabled: false
                value: false
            edgeCacheSettings:
                customValues:
                    string: string
                default: string
                enabled: false
                value: string
            fastedge:
                enabled: false
                onRequestBody:
                    appId: string
                    enabled: false
                    executeOnEdge: false
                    executeOnShield: false
                    interruptOnError: false
                onRequestHeaders:
                    appId: string
                    enabled: false
                    executeOnEdge: false
                    executeOnShield: false
                    interruptOnError: false
                onResponseBody:
                    appId: string
                    enabled: false
                    executeOnEdge: false
                    executeOnShield: false
                    interruptOnError: false
                onResponseHeaders:
                    appId: string
                    enabled: false
                    executeOnEdge: false
                    executeOnShield: false
                    interruptOnError: false
            fetchCompressed:
                enabled: false
                value: false
            followOriginRedirect:
                codes:
                    - 0
                enabled: false
            forceReturn:
                body: string
                code: 0
                enabled: false
                timeInterval:
                    endTime: string
                    startTime: string
                    timeZone: string
            forwardHostHeader:
                enabled: false
                value: false
            gzipOn:
                enabled: false
                value: false
            hostHeader:
                enabled: false
                value: string
            ignoreCookie:
                enabled: false
                value: false
            ignoreQueryString:
                enabled: false
                value: false
            imageStack:
                avifEnabled: false
                enabled: false
                pngLossless: false
                quality: 0
                webpEnabled: false
            ipAddressAcl:
                enabled: false
                exceptedValues:
                    - string
                policyType: string
            limitBandwidth:
                buffer: 0
                enabled: false
                limitType: string
                speed: 0
            proxyCacheKey:
                enabled: false
                value: string
            proxyCacheMethodsSet:
                enabled: false
                value: false
            proxyConnectTimeout:
                enabled: false
                value: string
            proxyReadTimeout:
                enabled: false
                value: string
            queryParamsBlacklist:
                enabled: false
                values:
                    - string
            queryParamsWhitelist:
                enabled: false
                values:
                    - string
            queryStringForwarding:
                enabled: false
                forwardExceptKeys:
                    - string
                forwardFromFileTypes:
                    - string
                forwardOnlyKeys:
                    - string
                forwardToFileTypes:
                    - string
            redirectHttpToHttps:
                enabled: false
                value: false
            redirectHttpsToHttp:
                enabled: false
                value: false
            referrerAcl:
                enabled: false
                exceptedValues:
                    - string
                policyType: string
            requestLimiter:
                burst: 0
                delay: 0
                enabled: false
                rate: 0
                rateUnit: string
            responseHeadersHidingPolicy:
                enabled: false
                excepteds:
                    - string
                mode: string
            rewrite:
                body: string
                enabled: false
                flag: string
            secureKey:
                enabled: false
                key: string
                type: 0
            slice:
                enabled: false
                value: false
            sni:
                customHostname: string
                enabled: false
                sniType: string
            stale:
                enabled: false
                values:
                    - string
            staticRequestHeaders:
                enabled: false
                value:
                    string: string
            staticResponseHeaders:
                enabled: false
                values:
                    - always: false
                      name: string
                      values:
                        - string
            userAgentAcl:
                enabled: false
                exceptedValues:
                    - string
                policyType: string
            waap:
                enabled: false
                value: false
            websockets:
                enabled: false
                value: false
        originGroup: 0
        overrideOriginProtocol: string
        resourceId: 0
        rule: string
        ruleType: 0
        weight: 0
    

    CdnResourceRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CdnResourceRule resource accepts the following input properties:

    ResourceId double
    Rule string
    Path to the file or folder for which the rule will be applied.
    RuleType double

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    Active bool

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    Name string
    Rule name.
    Options CdnResourceRuleOptions

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    OriginGroup double

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    OverrideOriginProtocol string

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    Weight double

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    ResourceId float64
    Rule string
    Path to the file or folder for which the rule will be applied.
    RuleType float64

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    Active bool

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    Name string
    Rule name.
    Options CdnResourceRuleOptionsArgs

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    OriginGroup float64

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    OverrideOriginProtocol string

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    Weight float64

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    resourceId Double
    rule String
    Path to the file or folder for which the rule will be applied.
    ruleType Double

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    active Boolean

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    name String
    Rule name.
    options CdnResourceRuleOptions

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    originGroup Double

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    overrideOriginProtocol String

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    weight Double

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    resourceId number
    rule string
    Path to the file or folder for which the rule will be applied.
    ruleType number

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    active boolean

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    name string
    Rule name.
    options CdnResourceRuleOptions

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    originGroup number

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    overrideOriginProtocol string

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    weight number

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    resource_id float
    rule str
    Path to the file or folder for which the rule will be applied.
    rule_type float

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    active bool

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    name str
    Rule name.
    options CdnResourceRuleOptionsArgs

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    origin_group float

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    override_origin_protocol str

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    weight float

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    resourceId Number
    rule String
    Path to the file or folder for which the rule will be applied.
    ruleType Number

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    active Boolean

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    name String
    Rule name.
    options Property Map

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    originGroup Number

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    overrideOriginProtocol String

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    weight Number

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CdnResourceRule resource produces the following output properties:

    CdnResourceRuleId double
    Rule ID.
    Deleted bool

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    Id string
    The provider-assigned unique ID for this managed resource.
    OriginProtocol string

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    PresetApplied bool

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    PrimaryRule double
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    CdnResourceRuleId float64
    Rule ID.
    Deleted bool

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    Id string
    The provider-assigned unique ID for this managed resource.
    OriginProtocol string

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    PresetApplied bool

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    PrimaryRule float64
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    cdnResourceRuleId Double
    Rule ID.
    deleted Boolean

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    id String
    The provider-assigned unique ID for this managed resource.
    originProtocol String

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    presetApplied Boolean

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    primaryRule Double
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    cdnResourceRuleId number
    Rule ID.
    deleted boolean

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    id string
    The provider-assigned unique ID for this managed resource.
    originProtocol string

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    presetApplied boolean

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    primaryRule number
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    cdn_resource_rule_id float
    Rule ID.
    deleted bool

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    id str
    The provider-assigned unique ID for this managed resource.
    origin_protocol str

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    preset_applied bool

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    primary_rule float
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    cdnResourceRuleId Number
    Rule ID.
    deleted Boolean

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    id String
    The provider-assigned unique ID for this managed resource.
    originProtocol String

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    presetApplied Boolean

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    primaryRule Number
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.

    Look up Existing CdnResourceRule Resource

    Get an existing CdnResourceRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CdnResourceRuleState, opts?: CustomResourceOptions): CdnResourceRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active: Optional[bool] = None,
            cdn_resource_rule_id: Optional[float] = None,
            deleted: Optional[bool] = None,
            name: Optional[str] = None,
            options: Optional[CdnResourceRuleOptionsArgs] = None,
            origin_group: Optional[float] = None,
            origin_protocol: Optional[str] = None,
            override_origin_protocol: Optional[str] = None,
            preset_applied: Optional[bool] = None,
            primary_rule: Optional[float] = None,
            resource_id: Optional[float] = None,
            rule: Optional[str] = None,
            rule_type: Optional[float] = None,
            weight: Optional[float] = None) -> CdnResourceRule
    func GetCdnResourceRule(ctx *Context, name string, id IDInput, state *CdnResourceRuleState, opts ...ResourceOption) (*CdnResourceRule, error)
    public static CdnResourceRule Get(string name, Input<string> id, CdnResourceRuleState? state, CustomResourceOptions? opts = null)
    public static CdnResourceRule get(String name, Output<String> id, CdnResourceRuleState state, CustomResourceOptions options)
    resources:  _:    type: gcore:CdnResourceRule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Active bool

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    CdnResourceRuleId double
    Rule ID.
    Deleted bool

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    Name string
    Rule name.
    Options CdnResourceRuleOptions

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    OriginGroup double

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    OriginProtocol string

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    OverrideOriginProtocol string

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    PresetApplied bool

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    PrimaryRule double
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    ResourceId double
    Rule string
    Path to the file or folder for which the rule will be applied.
    RuleType double

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    Weight double

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    Active bool

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    CdnResourceRuleId float64
    Rule ID.
    Deleted bool

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    Name string
    Rule name.
    Options CdnResourceRuleOptionsArgs

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    OriginGroup float64

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    OriginProtocol string

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    OverrideOriginProtocol string

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    PresetApplied bool

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    PrimaryRule float64
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    ResourceId float64
    Rule string
    Path to the file or folder for which the rule will be applied.
    RuleType float64

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    Weight float64

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    active Boolean

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    cdnResourceRuleId Double
    Rule ID.
    deleted Boolean

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    name String
    Rule name.
    options CdnResourceRuleOptions

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    originGroup Double

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    originProtocol String

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    overrideOriginProtocol String

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    presetApplied Boolean

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    primaryRule Double
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    resourceId Double
    rule String
    Path to the file or folder for which the rule will be applied.
    ruleType Double

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    weight Double

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    active boolean

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    cdnResourceRuleId number
    Rule ID.
    deleted boolean

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    name string
    Rule name.
    options CdnResourceRuleOptions

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    originGroup number

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    originProtocol string

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    overrideOriginProtocol string

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    presetApplied boolean

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    primaryRule number
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    resourceId number
    rule string
    Path to the file or folder for which the rule will be applied.
    ruleType number

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    weight number

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    active bool

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    cdn_resource_rule_id float
    Rule ID.
    deleted bool

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    name str
    Rule name.
    options CdnResourceRuleOptionsArgs

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    origin_group float

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    origin_protocol str

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    override_origin_protocol str

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    preset_applied bool

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    primary_rule float
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    resource_id float
    rule str
    Path to the file or folder for which the rule will be applied.
    rule_type float

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    weight float

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    active Boolean

    Enables or disables a rule.

    Possible values:

    • true - Rule is active, rule settings are applied.
    • false - Rule is inactive, rule settings are not applied.
    cdnResourceRuleId Number
    Rule ID.
    deleted Boolean

    Defines whether the rule has been deleted.

    Possible values:

    • true - Rule has been deleted.
    • false - Rule has not been deleted.
    name String
    Rule name.
    options Property Map

    List of options that can be configured for the rule.

    In case of null value the option is not added to the rule. Option inherits its value from the CDN resource settings.

    originGroup Number

    ID of the origin group to which the rule is applied.

    If the origin group is not specified, the rule is applied to the origin group that the CDN resource is associated with.

    originProtocol String

    Protocol used by CDN servers to request content from an origin source.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols. Available values: "HTTPS", "HTTP", "MATCH".
    overrideOriginProtocol String

    Sets a protocol other than the one specified in the CDN resource settings to connect to the origin.

    Possible values:

    • HTTPS - CDN servers connect to origin via HTTPS protocol.
    • HTTP - CDN servers connect to origin via HTTP protocol.
    • MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
    • null - originProtocol setting is inherited from the CDN resource settings. Available values: "HTTPS", "HTTP", "MATCH".
    presetApplied Boolean

    Defines whether the rule has an applied preset.

    Possible values:

    • true - Rule has a preset applied.
    • false - Rule does not have a preset applied.

    If a preset is applied to the rule, the options included in the preset cannot be edited for the rule.

    primaryRule Number
    ID of the rule with which the current rule is synchronized within the CDN resource shared cache zone feature.
    resourceId Number
    rule String
    Path to the file or folder for which the rule will be applied.
    ruleType Number

    Rule type.

    Possible values:

    • Type 0 - Regular expression. Must start with '^/' or '/'.
    • Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
    weight Number

    Rule execution order: from lowest (1) to highest.

    If requested URI matches multiple rules, the one higher in the order of the rules will be applied.

    Supporting Types

    CdnResourceRuleOptions, CdnResourceRuleOptionsArgs

    AllowedHttpMethods CdnResourceRuleOptionsAllowedHttpMethods
    HTTP methods allowed for content requests from the CDN.
    BotProtection CdnResourceRuleOptionsBotProtection
    Allows to prevent online services from overloading and ensure your business workflow running smoothly.
    BrotliCompression CdnResourceRuleOptionsBrotliCompression
    Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    BrowserCacheSettings CdnResourceRuleOptionsBrowserCacheSettings

    Cache expiration time for users browsers in seconds.

    Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.

    Responses with other codes will not be cached.

    CacheHttpHeaders CdnResourceRuleOptionsCacheHttpHeaders

    Legacy option. Use the response_headers_hiding_policy option instead.

    HTTP Headers that must be included in the response.

    Deprecated: Deprecated

    Cors CdnResourceRuleOptionsCors

    Enables or disables CORS (Cross-Origin Resource Sharing) header support.

    CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.

    CountryAcl CdnResourceRuleOptionsCountryAcl
    Enables control access to content for specified countries.
    DisableCache CdnResourceRuleOptionsDisableCache

    Legacy option. Use the edge_cache_settings option instead.

    Allows the complete disabling of content caching.

    Deprecated: Deprecated

    DisableProxyForceRanges CdnResourceRuleOptionsDisableProxyForceRanges
    Allows 206 responses regardless of the settings of an origin source.
    EdgeCacheSettings CdnResourceRuleOptionsEdgeCacheSettings

    Cache expiration time for CDN servers.

    value and default fields cannot be used simultaneously.

    Fastedge CdnResourceRuleOptionsFastedge

    Allows to configure FastEdge app to be called on different request/response phases.

    Note: At least one of on_request_headers, on_request_body, on_response_headers, or on_response_body must be specified.

    FetchCompressed CdnResourceRuleOptionsFetchCompressed

    Makes the CDN request compressed content from the origin.

    The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.

    Notes:

    1. fetch_compressed is not supported with gzipON or brotli_compression or slice options enabled.
    2. fetch_compressed overrides gzipON and brotli_compression in rule. If you enable it in CDN resource and want to use gzipON and brotli_compression in a rule, you have to specify "fetch_compressed": false in the rule.
    FollowOriginRedirect CdnResourceRuleOptionsFollowOriginRedirect
    Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
    ForceReturn CdnResourceRuleOptionsForceReturn

    Applies custom HTTP response codes for CDN content.

    The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.

    ForwardHostHeader CdnResourceRuleOptionsForwardHostHeader

    Forwards the Host header from a end-user request to an origin server.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    GzipOn CdnResourceRuleOptionsGzipOn

    Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.

    Notes:

    1. Compression with gzip is not supported with fetch_compressed or slice options enabled.
    2. fetch_compressed option in CDN resource settings overrides gzipON in rules. If you enable fetch_compressed in CDN resource and want to enable gzipON in rules, you need to specify "fetch_compressed":false for rules.
    HostHeader CdnResourceRuleOptionsHostHeader

    Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.

    If the option is null, the Host Header value is equal to first CNAME.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    IgnoreCookie CdnResourceRuleOptionsIgnoreCookie
    Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    IgnoreQueryString CdnResourceRuleOptionsIgnoreQueryString

    How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    ImageStack CdnResourceRuleOptionsImageStack
    Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
    IpAddressAcl CdnResourceRuleOptionsIpAddressAcl

    Controls access to the CDN resource content for specific IP addresses.

    If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.

    We recommend you use a script for automatically update IP ACL. Read more.

    LimitBandwidth CdnResourceRuleOptionsLimitBandwidth
    Allows to control the download speed per connection.
    ProxyCacheKey CdnResourceRuleOptionsProxyCacheKey

    Allows you to modify your cache key. If omitted, the default value is $request_uri.

    Combine the specified variables to create a key for caching.

    • $request_uri
    • $scheme
    • $uri

    Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.

    ProxyCacheMethodsSet CdnResourceRuleOptionsProxyCacheMethodsSet
    Caching for POST requests along with default GET and HEAD.
    ProxyConnectTimeout CdnResourceRuleOptionsProxyConnectTimeout
    The time limit for establishing a connection with the origin.
    ProxyReadTimeout CdnResourceRuleOptionsProxyReadTimeout

    The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.

    Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).

    QueryParamsBlacklist CdnResourceRuleOptionsQueryParamsBlacklist

    Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    QueryParamsWhitelist CdnResourceRuleOptionsQueryParamsWhitelist

    Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    QueryStringForwarding CdnResourceRuleOptionsQueryStringForwarding
    The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
    RedirectHttpToHttps CdnResourceRuleOptionsRedirectHttpToHttps

    Enables redirect from HTTP to HTTPS.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    RedirectHttpsToHttp CdnResourceRuleOptionsRedirectHttpsToHttp

    Enables redirect from HTTPS to HTTP.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    ReferrerAcl CdnResourceRuleOptionsReferrerAcl
    Controls access to the CDN resource content for specified domain names.
    RequestLimiter CdnResourceRuleOptionsRequestLimiter
    Option allows to limit the amount of HTTP requests.
    ResponseHeadersHidingPolicy CdnResourceRuleOptionsResponseHeadersHidingPolicy
    Hides HTTP headers from an origin server in the CDN response.
    Rewrite CdnResourceRuleOptionsRewrite
    Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
    SecureKey CdnResourceRuleOptionsSecureKey
    Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
    Slice CdnResourceRuleOptionsSlice

    Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.

    The option is based on the Slice module.

    Notes:

    1. Origin must support HTTP Range requests.
    2. Not supported with gzipON, brotli_compression or fetch_compressed options enabled.
    Sni CdnResourceRuleOptionsSni

    The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.

    SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.

    The option works only if originProtocol parameter is HTTPS or MATCH.

    Stale CdnResourceRuleOptionsStale
    Serves stale cached content in case of origin unavailability.
    StaticHeaders CdnResourceRuleOptionsStaticHeaders

    Legacy option. Use the static_response_headers option instead.

    Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.

    Deprecated: Deprecated

    StaticRequestHeaders CdnResourceRuleOptionsStaticRequestHeaders
    Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
    StaticResponseHeaders CdnResourceRuleOptionsStaticResponseHeaders
    Custom HTTP Headers that a CDN server adds to a response.
    UserAgentAcl CdnResourceRuleOptionsUserAgentAcl
    Controls access to the content for specified User-Agents.
    Waap CdnResourceRuleOptionsWaap
    Allows to enable WAAP (Web Application and API Protection).
    Websockets CdnResourceRuleOptionsWebsockets
    Enables or disables WebSockets connections to an origin server.
    AllowedHttpMethods CdnResourceRuleOptionsAllowedHttpMethods
    HTTP methods allowed for content requests from the CDN.
    BotProtection CdnResourceRuleOptionsBotProtection
    Allows to prevent online services from overloading and ensure your business workflow running smoothly.
    BrotliCompression CdnResourceRuleOptionsBrotliCompression
    Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    BrowserCacheSettings CdnResourceRuleOptionsBrowserCacheSettings

    Cache expiration time for users browsers in seconds.

    Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.

    Responses with other codes will not be cached.

    CacheHttpHeaders CdnResourceRuleOptionsCacheHttpHeaders

    Legacy option. Use the response_headers_hiding_policy option instead.

    HTTP Headers that must be included in the response.

    Deprecated: Deprecated

    Cors CdnResourceRuleOptionsCors

    Enables or disables CORS (Cross-Origin Resource Sharing) header support.

    CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.

    CountryAcl CdnResourceRuleOptionsCountryAcl
    Enables control access to content for specified countries.
    DisableCache CdnResourceRuleOptionsDisableCache

    Legacy option. Use the edge_cache_settings option instead.

    Allows the complete disabling of content caching.

    Deprecated: Deprecated

    DisableProxyForceRanges CdnResourceRuleOptionsDisableProxyForceRanges
    Allows 206 responses regardless of the settings of an origin source.
    EdgeCacheSettings CdnResourceRuleOptionsEdgeCacheSettings

    Cache expiration time for CDN servers.

    value and default fields cannot be used simultaneously.

    Fastedge CdnResourceRuleOptionsFastedge

    Allows to configure FastEdge app to be called on different request/response phases.

    Note: At least one of on_request_headers, on_request_body, on_response_headers, or on_response_body must be specified.

    FetchCompressed CdnResourceRuleOptionsFetchCompressed

    Makes the CDN request compressed content from the origin.

    The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.

    Notes:

    1. fetch_compressed is not supported with gzipON or brotli_compression or slice options enabled.
    2. fetch_compressed overrides gzipON and brotli_compression in rule. If you enable it in CDN resource and want to use gzipON and brotli_compression in a rule, you have to specify "fetch_compressed": false in the rule.
    FollowOriginRedirect CdnResourceRuleOptionsFollowOriginRedirect
    Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
    ForceReturn CdnResourceRuleOptionsForceReturn

    Applies custom HTTP response codes for CDN content.

    The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.

    ForwardHostHeader CdnResourceRuleOptionsForwardHostHeader

    Forwards the Host header from a end-user request to an origin server.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    GzipOn CdnResourceRuleOptionsGzipOn

    Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.

    Notes:

    1. Compression with gzip is not supported with fetch_compressed or slice options enabled.
    2. fetch_compressed option in CDN resource settings overrides gzipON in rules. If you enable fetch_compressed in CDN resource and want to enable gzipON in rules, you need to specify "fetch_compressed":false for rules.
    HostHeader CdnResourceRuleOptionsHostHeader

    Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.

    If the option is null, the Host Header value is equal to first CNAME.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    IgnoreCookie CdnResourceRuleOptionsIgnoreCookie
    Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    IgnoreQueryString CdnResourceRuleOptionsIgnoreQueryString

    How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    ImageStack CdnResourceRuleOptionsImageStack
    Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
    IpAddressAcl CdnResourceRuleOptionsIpAddressAcl

    Controls access to the CDN resource content for specific IP addresses.

    If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.

    We recommend you use a script for automatically update IP ACL. Read more.

    LimitBandwidth CdnResourceRuleOptionsLimitBandwidth
    Allows to control the download speed per connection.
    ProxyCacheKey CdnResourceRuleOptionsProxyCacheKey

    Allows you to modify your cache key. If omitted, the default value is $request_uri.

    Combine the specified variables to create a key for caching.

    • $request_uri
    • $scheme
    • $uri

    Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.

    ProxyCacheMethodsSet CdnResourceRuleOptionsProxyCacheMethodsSet
    Caching for POST requests along with default GET and HEAD.
    ProxyConnectTimeout CdnResourceRuleOptionsProxyConnectTimeout
    The time limit for establishing a connection with the origin.
    ProxyReadTimeout CdnResourceRuleOptionsProxyReadTimeout

    The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.

    Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).

    QueryParamsBlacklist CdnResourceRuleOptionsQueryParamsBlacklist

    Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    QueryParamsWhitelist CdnResourceRuleOptionsQueryParamsWhitelist

    Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    QueryStringForwarding CdnResourceRuleOptionsQueryStringForwarding
    The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
    RedirectHttpToHttps CdnResourceRuleOptionsRedirectHttpToHttps

    Enables redirect from HTTP to HTTPS.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    RedirectHttpsToHttp CdnResourceRuleOptionsRedirectHttpsToHttp

    Enables redirect from HTTPS to HTTP.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    ReferrerAcl CdnResourceRuleOptionsReferrerAcl
    Controls access to the CDN resource content for specified domain names.
    RequestLimiter CdnResourceRuleOptionsRequestLimiter
    Option allows to limit the amount of HTTP requests.
    ResponseHeadersHidingPolicy CdnResourceRuleOptionsResponseHeadersHidingPolicy
    Hides HTTP headers from an origin server in the CDN response.
    Rewrite CdnResourceRuleOptionsRewrite
    Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
    SecureKey CdnResourceRuleOptionsSecureKey
    Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
    Slice CdnResourceRuleOptionsSlice

    Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.

    The option is based on the Slice module.

    Notes:

    1. Origin must support HTTP Range requests.
    2. Not supported with gzipON, brotli_compression or fetch_compressed options enabled.
    Sni CdnResourceRuleOptionsSni

    The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.

    SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.

    The option works only if originProtocol parameter is HTTPS or MATCH.

    Stale CdnResourceRuleOptionsStale
    Serves stale cached content in case of origin unavailability.
    StaticHeaders CdnResourceRuleOptionsStaticHeaders

    Legacy option. Use the static_response_headers option instead.

    Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.

    Deprecated: Deprecated

    StaticRequestHeaders CdnResourceRuleOptionsStaticRequestHeaders
    Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
    StaticResponseHeaders CdnResourceRuleOptionsStaticResponseHeaders
    Custom HTTP Headers that a CDN server adds to a response.
    UserAgentAcl CdnResourceRuleOptionsUserAgentAcl
    Controls access to the content for specified User-Agents.
    Waap CdnResourceRuleOptionsWaap
    Allows to enable WAAP (Web Application and API Protection).
    Websockets CdnResourceRuleOptionsWebsockets
    Enables or disables WebSockets connections to an origin server.
    allowedHttpMethods CdnResourceRuleOptionsAllowedHttpMethods
    HTTP methods allowed for content requests from the CDN.
    botProtection CdnResourceRuleOptionsBotProtection
    Allows to prevent online services from overloading and ensure your business workflow running smoothly.
    brotliCompression CdnResourceRuleOptionsBrotliCompression
    Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    browserCacheSettings CdnResourceRuleOptionsBrowserCacheSettings

    Cache expiration time for users browsers in seconds.

    Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.

    Responses with other codes will not be cached.

    cacheHttpHeaders CdnResourceRuleOptionsCacheHttpHeaders

    Legacy option. Use the response_headers_hiding_policy option instead.

    HTTP Headers that must be included in the response.

    Deprecated: Deprecated

    cors CdnResourceRuleOptionsCors

    Enables or disables CORS (Cross-Origin Resource Sharing) header support.

    CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.

    countryAcl CdnResourceRuleOptionsCountryAcl
    Enables control access to content for specified countries.
    disableCache CdnResourceRuleOptionsDisableCache

    Legacy option. Use the edge_cache_settings option instead.

    Allows the complete disabling of content caching.

    Deprecated: Deprecated

    disableProxyForceRanges CdnResourceRuleOptionsDisableProxyForceRanges
    Allows 206 responses regardless of the settings of an origin source.
    edgeCacheSettings CdnResourceRuleOptionsEdgeCacheSettings

    Cache expiration time for CDN servers.

    value and default fields cannot be used simultaneously.

    fastedge CdnResourceRuleOptionsFastedge

    Allows to configure FastEdge app to be called on different request/response phases.

    Note: At least one of on_request_headers, on_request_body, on_response_headers, or on_response_body must be specified.

    fetchCompressed CdnResourceRuleOptionsFetchCompressed

    Makes the CDN request compressed content from the origin.

    The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.

    Notes:

    1. fetch_compressed is not supported with gzipON or brotli_compression or slice options enabled.
    2. fetch_compressed overrides gzipON and brotli_compression in rule. If you enable it in CDN resource and want to use gzipON and brotli_compression in a rule, you have to specify "fetch_compressed": false in the rule.
    followOriginRedirect CdnResourceRuleOptionsFollowOriginRedirect
    Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
    forceReturn CdnResourceRuleOptionsForceReturn

    Applies custom HTTP response codes for CDN content.

    The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.

    forwardHostHeader CdnResourceRuleOptionsForwardHostHeader

    Forwards the Host header from a end-user request to an origin server.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    gzipOn CdnResourceRuleOptionsGzipOn

    Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.

    Notes:

    1. Compression with gzip is not supported with fetch_compressed or slice options enabled.
    2. fetch_compressed option in CDN resource settings overrides gzipON in rules. If you enable fetch_compressed in CDN resource and want to enable gzipON in rules, you need to specify "fetch_compressed":false for rules.
    hostHeader CdnResourceRuleOptionsHostHeader

    Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.

    If the option is null, the Host Header value is equal to first CNAME.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    ignoreCookie CdnResourceRuleOptionsIgnoreCookie
    Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    ignoreQueryString CdnResourceRuleOptionsIgnoreQueryString

    How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    imageStack CdnResourceRuleOptionsImageStack
    Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
    ipAddressAcl CdnResourceRuleOptionsIpAddressAcl

    Controls access to the CDN resource content for specific IP addresses.

    If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.

    We recommend you use a script for automatically update IP ACL. Read more.

    limitBandwidth CdnResourceRuleOptionsLimitBandwidth
    Allows to control the download speed per connection.
    proxyCacheKey CdnResourceRuleOptionsProxyCacheKey

    Allows you to modify your cache key. If omitted, the default value is $request_uri.

    Combine the specified variables to create a key for caching.

    • $request_uri
    • $scheme
    • $uri

    Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.

    proxyCacheMethodsSet CdnResourceRuleOptionsProxyCacheMethodsSet
    Caching for POST requests along with default GET and HEAD.
    proxyConnectTimeout CdnResourceRuleOptionsProxyConnectTimeout
    The time limit for establishing a connection with the origin.
    proxyReadTimeout CdnResourceRuleOptionsProxyReadTimeout

    The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.

    Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).

    queryParamsBlacklist CdnResourceRuleOptionsQueryParamsBlacklist

    Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    queryParamsWhitelist CdnResourceRuleOptionsQueryParamsWhitelist

    Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    queryStringForwarding CdnResourceRuleOptionsQueryStringForwarding
    The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
    redirectHttpToHttps CdnResourceRuleOptionsRedirectHttpToHttps

    Enables redirect from HTTP to HTTPS.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    redirectHttpsToHttp CdnResourceRuleOptionsRedirectHttpsToHttp

    Enables redirect from HTTPS to HTTP.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    referrerAcl CdnResourceRuleOptionsReferrerAcl
    Controls access to the CDN resource content for specified domain names.
    requestLimiter CdnResourceRuleOptionsRequestLimiter
    Option allows to limit the amount of HTTP requests.
    responseHeadersHidingPolicy CdnResourceRuleOptionsResponseHeadersHidingPolicy
    Hides HTTP headers from an origin server in the CDN response.
    rewrite CdnResourceRuleOptionsRewrite
    Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
    secureKey CdnResourceRuleOptionsSecureKey
    Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
    slice CdnResourceRuleOptionsSlice

    Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.

    The option is based on the Slice module.

    Notes:

    1. Origin must support HTTP Range requests.
    2. Not supported with gzipON, brotli_compression or fetch_compressed options enabled.
    sni CdnResourceRuleOptionsSni

    The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.

    SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.

    The option works only if originProtocol parameter is HTTPS or MATCH.

    stale CdnResourceRuleOptionsStale
    Serves stale cached content in case of origin unavailability.
    staticHeaders CdnResourceRuleOptionsStaticHeaders

    Legacy option. Use the static_response_headers option instead.

    Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.

    Deprecated: Deprecated

    staticRequestHeaders CdnResourceRuleOptionsStaticRequestHeaders
    Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
    staticResponseHeaders CdnResourceRuleOptionsStaticResponseHeaders
    Custom HTTP Headers that a CDN server adds to a response.
    userAgentAcl CdnResourceRuleOptionsUserAgentAcl
    Controls access to the content for specified User-Agents.
    waap CdnResourceRuleOptionsWaap
    Allows to enable WAAP (Web Application and API Protection).
    websockets CdnResourceRuleOptionsWebsockets
    Enables or disables WebSockets connections to an origin server.
    allowedHttpMethods CdnResourceRuleOptionsAllowedHttpMethods
    HTTP methods allowed for content requests from the CDN.
    botProtection CdnResourceRuleOptionsBotProtection
    Allows to prevent online services from overloading and ensure your business workflow running smoothly.
    brotliCompression CdnResourceRuleOptionsBrotliCompression
    Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    browserCacheSettings CdnResourceRuleOptionsBrowserCacheSettings

    Cache expiration time for users browsers in seconds.

    Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.

    Responses with other codes will not be cached.

    cacheHttpHeaders CdnResourceRuleOptionsCacheHttpHeaders

    Legacy option. Use the response_headers_hiding_policy option instead.

    HTTP Headers that must be included in the response.

    Deprecated: Deprecated

    cors CdnResourceRuleOptionsCors

    Enables or disables CORS (Cross-Origin Resource Sharing) header support.

    CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.

    countryAcl CdnResourceRuleOptionsCountryAcl
    Enables control access to content for specified countries.
    disableCache CdnResourceRuleOptionsDisableCache

    Legacy option. Use the edge_cache_settings option instead.

    Allows the complete disabling of content caching.

    Deprecated: Deprecated

    disableProxyForceRanges CdnResourceRuleOptionsDisableProxyForceRanges
    Allows 206 responses regardless of the settings of an origin source.
    edgeCacheSettings CdnResourceRuleOptionsEdgeCacheSettings

    Cache expiration time for CDN servers.

    value and default fields cannot be used simultaneously.

    fastedge CdnResourceRuleOptionsFastedge

    Allows to configure FastEdge app to be called on different request/response phases.

    Note: At least one of on_request_headers, on_request_body, on_response_headers, or on_response_body must be specified.

    fetchCompressed CdnResourceRuleOptionsFetchCompressed

    Makes the CDN request compressed content from the origin.

    The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.

    Notes:

    1. fetch_compressed is not supported with gzipON or brotli_compression or slice options enabled.
    2. fetch_compressed overrides gzipON and brotli_compression in rule. If you enable it in CDN resource and want to use gzipON and brotli_compression in a rule, you have to specify "fetch_compressed": false in the rule.
    followOriginRedirect CdnResourceRuleOptionsFollowOriginRedirect
    Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
    forceReturn CdnResourceRuleOptionsForceReturn

    Applies custom HTTP response codes for CDN content.

    The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.

    forwardHostHeader CdnResourceRuleOptionsForwardHostHeader

    Forwards the Host header from a end-user request to an origin server.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    gzipOn CdnResourceRuleOptionsGzipOn

    Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.

    Notes:

    1. Compression with gzip is not supported with fetch_compressed or slice options enabled.
    2. fetch_compressed option in CDN resource settings overrides gzipON in rules. If you enable fetch_compressed in CDN resource and want to enable gzipON in rules, you need to specify "fetch_compressed":false for rules.
    hostHeader CdnResourceRuleOptionsHostHeader

    Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.

    If the option is null, the Host Header value is equal to first CNAME.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    ignoreCookie CdnResourceRuleOptionsIgnoreCookie
    Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    ignoreQueryString CdnResourceRuleOptionsIgnoreQueryString

    How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    imageStack CdnResourceRuleOptionsImageStack
    Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
    ipAddressAcl CdnResourceRuleOptionsIpAddressAcl

    Controls access to the CDN resource content for specific IP addresses.

    If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.

    We recommend you use a script for automatically update IP ACL. Read more.

    limitBandwidth CdnResourceRuleOptionsLimitBandwidth
    Allows to control the download speed per connection.
    proxyCacheKey CdnResourceRuleOptionsProxyCacheKey

    Allows you to modify your cache key. If omitted, the default value is $request_uri.

    Combine the specified variables to create a key for caching.

    • $request_uri
    • $scheme
    • $uri

    Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.

    proxyCacheMethodsSet CdnResourceRuleOptionsProxyCacheMethodsSet
    Caching for POST requests along with default GET and HEAD.
    proxyConnectTimeout CdnResourceRuleOptionsProxyConnectTimeout
    The time limit for establishing a connection with the origin.
    proxyReadTimeout CdnResourceRuleOptionsProxyReadTimeout

    The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.

    Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).

    queryParamsBlacklist CdnResourceRuleOptionsQueryParamsBlacklist

    Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    queryParamsWhitelist CdnResourceRuleOptionsQueryParamsWhitelist

    Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    queryStringForwarding CdnResourceRuleOptionsQueryStringForwarding
    The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
    redirectHttpToHttps CdnResourceRuleOptionsRedirectHttpToHttps

    Enables redirect from HTTP to HTTPS.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    redirectHttpsToHttp CdnResourceRuleOptionsRedirectHttpsToHttp

    Enables redirect from HTTPS to HTTP.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    referrerAcl CdnResourceRuleOptionsReferrerAcl
    Controls access to the CDN resource content for specified domain names.
    requestLimiter CdnResourceRuleOptionsRequestLimiter
    Option allows to limit the amount of HTTP requests.
    responseHeadersHidingPolicy CdnResourceRuleOptionsResponseHeadersHidingPolicy
    Hides HTTP headers from an origin server in the CDN response.
    rewrite CdnResourceRuleOptionsRewrite
    Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
    secureKey CdnResourceRuleOptionsSecureKey
    Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
    slice CdnResourceRuleOptionsSlice

    Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.

    The option is based on the Slice module.

    Notes:

    1. Origin must support HTTP Range requests.
    2. Not supported with gzipON, brotli_compression or fetch_compressed options enabled.
    sni CdnResourceRuleOptionsSni

    The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.

    SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.

    The option works only if originProtocol parameter is HTTPS or MATCH.

    stale CdnResourceRuleOptionsStale
    Serves stale cached content in case of origin unavailability.
    staticHeaders CdnResourceRuleOptionsStaticHeaders

    Legacy option. Use the static_response_headers option instead.

    Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.

    Deprecated: Deprecated

    staticRequestHeaders CdnResourceRuleOptionsStaticRequestHeaders
    Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
    staticResponseHeaders CdnResourceRuleOptionsStaticResponseHeaders
    Custom HTTP Headers that a CDN server adds to a response.
    userAgentAcl CdnResourceRuleOptionsUserAgentAcl
    Controls access to the content for specified User-Agents.
    waap CdnResourceRuleOptionsWaap
    Allows to enable WAAP (Web Application and API Protection).
    websockets CdnResourceRuleOptionsWebsockets
    Enables or disables WebSockets connections to an origin server.
    allowed_http_methods CdnResourceRuleOptionsAllowedHttpMethods
    HTTP methods allowed for content requests from the CDN.
    bot_protection CdnResourceRuleOptionsBotProtection
    Allows to prevent online services from overloading and ensure your business workflow running smoothly.
    brotli_compression CdnResourceRuleOptionsBrotliCompression
    Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    browser_cache_settings CdnResourceRuleOptionsBrowserCacheSettings

    Cache expiration time for users browsers in seconds.

    Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.

    Responses with other codes will not be cached.

    cache_http_headers CdnResourceRuleOptionsCacheHttpHeaders

    Legacy option. Use the response_headers_hiding_policy option instead.

    HTTP Headers that must be included in the response.

    Deprecated: Deprecated

    cors CdnResourceRuleOptionsCors

    Enables or disables CORS (Cross-Origin Resource Sharing) header support.

    CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.

    country_acl CdnResourceRuleOptionsCountryAcl
    Enables control access to content for specified countries.
    disable_cache CdnResourceRuleOptionsDisableCache

    Legacy option. Use the edge_cache_settings option instead.

    Allows the complete disabling of content caching.

    Deprecated: Deprecated

    disable_proxy_force_ranges CdnResourceRuleOptionsDisableProxyForceRanges
    Allows 206 responses regardless of the settings of an origin source.
    edge_cache_settings CdnResourceRuleOptionsEdgeCacheSettings

    Cache expiration time for CDN servers.

    value and default fields cannot be used simultaneously.

    fastedge CdnResourceRuleOptionsFastedge

    Allows to configure FastEdge app to be called on different request/response phases.

    Note: At least one of on_request_headers, on_request_body, on_response_headers, or on_response_body must be specified.

    fetch_compressed CdnResourceRuleOptionsFetchCompressed

    Makes the CDN request compressed content from the origin.

    The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.

    Notes:

    1. fetch_compressed is not supported with gzipON or brotli_compression or slice options enabled.
    2. fetch_compressed overrides gzipON and brotli_compression in rule. If you enable it in CDN resource and want to use gzipON and brotli_compression in a rule, you have to specify "fetch_compressed": false in the rule.
    follow_origin_redirect CdnResourceRuleOptionsFollowOriginRedirect
    Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
    force_return CdnResourceRuleOptionsForceReturn

    Applies custom HTTP response codes for CDN content.

    The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.

    forward_host_header CdnResourceRuleOptionsForwardHostHeader

    Forwards the Host header from a end-user request to an origin server.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    gzip_on CdnResourceRuleOptionsGzipOn

    Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.

    Notes:

    1. Compression with gzip is not supported with fetch_compressed or slice options enabled.
    2. fetch_compressed option in CDN resource settings overrides gzipON in rules. If you enable fetch_compressed in CDN resource and want to enable gzipON in rules, you need to specify "fetch_compressed":false for rules.
    host_header CdnResourceRuleOptionsHostHeader

    Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.

    If the option is null, the Host Header value is equal to first CNAME.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    ignore_cookie CdnResourceRuleOptionsIgnoreCookie
    Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    ignore_query_string CdnResourceRuleOptionsIgnoreQueryString

    How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    image_stack CdnResourceRuleOptionsImageStack
    Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
    ip_address_acl CdnResourceRuleOptionsIpAddressAcl

    Controls access to the CDN resource content for specific IP addresses.

    If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.

    We recommend you use a script for automatically update IP ACL. Read more.

    limit_bandwidth CdnResourceRuleOptionsLimitBandwidth
    Allows to control the download speed per connection.
    proxy_cache_key CdnResourceRuleOptionsProxyCacheKey

    Allows you to modify your cache key. If omitted, the default value is $request_uri.

    Combine the specified variables to create a key for caching.

    • $request_uri
    • $scheme
    • $uri

    Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.

    proxy_cache_methods_set CdnResourceRuleOptionsProxyCacheMethodsSet
    Caching for POST requests along with default GET and HEAD.
    proxy_connect_timeout CdnResourceRuleOptionsProxyConnectTimeout
    The time limit for establishing a connection with the origin.
    proxy_read_timeout CdnResourceRuleOptionsProxyReadTimeout

    The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.

    Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).

    query_params_blacklist CdnResourceRuleOptionsQueryParamsBlacklist

    Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    query_params_whitelist CdnResourceRuleOptionsQueryParamsWhitelist

    Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    query_string_forwarding CdnResourceRuleOptionsQueryStringForwarding
    The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
    redirect_http_to_https CdnResourceRuleOptionsRedirectHttpToHttps

    Enables redirect from HTTP to HTTPS.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    redirect_https_to_http CdnResourceRuleOptionsRedirectHttpsToHttp

    Enables redirect from HTTPS to HTTP.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    referrer_acl CdnResourceRuleOptionsReferrerAcl
    Controls access to the CDN resource content for specified domain names.
    request_limiter CdnResourceRuleOptionsRequestLimiter
    Option allows to limit the amount of HTTP requests.
    response_headers_hiding_policy CdnResourceRuleOptionsResponseHeadersHidingPolicy
    Hides HTTP headers from an origin server in the CDN response.
    rewrite CdnResourceRuleOptionsRewrite
    Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
    secure_key CdnResourceRuleOptionsSecureKey
    Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
    slice CdnResourceRuleOptionsSlice

    Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.

    The option is based on the Slice module.

    Notes:

    1. Origin must support HTTP Range requests.
    2. Not supported with gzipON, brotli_compression or fetch_compressed options enabled.
    sni CdnResourceRuleOptionsSni

    The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.

    SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.

    The option works only if originProtocol parameter is HTTPS or MATCH.

    stale CdnResourceRuleOptionsStale
    Serves stale cached content in case of origin unavailability.
    static_headers CdnResourceRuleOptionsStaticHeaders

    Legacy option. Use the static_response_headers option instead.

    Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.

    Deprecated: Deprecated

    static_request_headers CdnResourceRuleOptionsStaticRequestHeaders
    Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
    static_response_headers CdnResourceRuleOptionsStaticResponseHeaders
    Custom HTTP Headers that a CDN server adds to a response.
    user_agent_acl CdnResourceRuleOptionsUserAgentAcl
    Controls access to the content for specified User-Agents.
    waap CdnResourceRuleOptionsWaap
    Allows to enable WAAP (Web Application and API Protection).
    websockets CdnResourceRuleOptionsWebsockets
    Enables or disables WebSockets connections to an origin server.
    allowedHttpMethods Property Map
    HTTP methods allowed for content requests from the CDN.
    botProtection Property Map
    Allows to prevent online services from overloading and ensure your business workflow running smoothly.
    brotliCompression Property Map
    Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    browserCacheSettings Property Map

    Cache expiration time for users browsers in seconds.

    Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.

    Responses with other codes will not be cached.

    cacheHttpHeaders Property Map

    Legacy option. Use the response_headers_hiding_policy option instead.

    HTTP Headers that must be included in the response.

    Deprecated: Deprecated

    cors Property Map

    Enables or disables CORS (Cross-Origin Resource Sharing) header support.

    CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.

    countryAcl Property Map
    Enables control access to content for specified countries.
    disableCache Property Map

    Legacy option. Use the edge_cache_settings option instead.

    Allows the complete disabling of content caching.

    Deprecated: Deprecated

    disableProxyForceRanges Property Map
    Allows 206 responses regardless of the settings of an origin source.
    edgeCacheSettings Property Map

    Cache expiration time for CDN servers.

    value and default fields cannot be used simultaneously.

    fastedge Property Map

    Allows to configure FastEdge app to be called on different request/response phases.

    Note: At least one of on_request_headers, on_request_body, on_response_headers, or on_response_body must be specified.

    fetchCompressed Property Map

    Makes the CDN request compressed content from the origin.

    The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.

    Notes:

    1. fetch_compressed is not supported with gzipON or brotli_compression or slice options enabled.
    2. fetch_compressed overrides gzipON and brotli_compression in rule. If you enable it in CDN resource and want to use gzipON and brotli_compression in a rule, you have to specify "fetch_compressed": false in the rule.
    followOriginRedirect Property Map
    Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
    forceReturn Property Map

    Applies custom HTTP response codes for CDN content.

    The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.

    forwardHostHeader Property Map

    Forwards the Host header from a end-user request to an origin server.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    gzipOn Property Map

    Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.

    Notes:

    1. Compression with gzip is not supported with fetch_compressed or slice options enabled.
    2. fetch_compressed option in CDN resource settings overrides gzipON in rules. If you enable fetch_compressed in CDN resource and want to enable gzipON in rules, you need to specify "fetch_compressed":false for rules.
    hostHeader Property Map

    Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.

    If the option is null, the Host Header value is equal to first CNAME.

    hostHeader and forward_host_header options cannot be enabled simultaneously.

    ignoreCookie Property Map
    Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    ignoreQueryString Property Map

    How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    imageStack Property Map
    Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
    ipAddressAcl Property Map

    Controls access to the CDN resource content for specific IP addresses.

    If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.

    We recommend you use a script for automatically update IP ACL. Read more.

    limitBandwidth Property Map
    Allows to control the download speed per connection.
    proxyCacheKey Property Map

    Allows you to modify your cache key. If omitted, the default value is $request_uri.

    Combine the specified variables to create a key for caching.

    • $request_uri
    • $scheme
    • $uri

    Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.

    proxyCacheMethodsSet Property Map
    Caching for POST requests along with default GET and HEAD.
    proxyConnectTimeout Property Map
    The time limit for establishing a connection with the origin.
    proxyReadTimeout Property Map

    The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.

    Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).

    queryParamsBlacklist Property Map

    Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    queryParamsWhitelist Property Map

    Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.

    ignoreQueryString, query_params_whitelist and query_params_blacklist options cannot be enabled simultaneously.

    queryStringForwarding Property Map
    The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
    redirectHttpToHttps Property Map

    Enables redirect from HTTP to HTTPS.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    redirectHttpsToHttp Property Map

    Enables redirect from HTTPS to HTTP.

    redirect_http_to_https and redirect_https_to_http options cannot be enabled simultaneously.

    referrerAcl Property Map
    Controls access to the CDN resource content for specified domain names.
    requestLimiter Property Map
    Option allows to limit the amount of HTTP requests.
    responseHeadersHidingPolicy Property Map
    Hides HTTP headers from an origin server in the CDN response.
    rewrite Property Map
    Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
    secureKey Property Map
    Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
    slice Property Map

    Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.

    The option is based on the Slice module.

    Notes:

    1. Origin must support HTTP Range requests.
    2. Not supported with gzipON, brotli_compression or fetch_compressed options enabled.
    sni Property Map

    The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.

    SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.

    The option works only if originProtocol parameter is HTTPS or MATCH.

    stale Property Map
    Serves stale cached content in case of origin unavailability.
    staticHeaders Property Map

    Legacy option. Use the static_response_headers option instead.

    Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.

    Deprecated: Deprecated

    staticRequestHeaders Property Map
    Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
    staticResponseHeaders Property Map
    Custom HTTP Headers that a CDN server adds to a response.
    userAgentAcl Property Map
    Controls access to the content for specified User-Agents.
    waap Property Map
    Allows to enable WAAP (Web Application and API Protection).
    websockets Property Map
    Enables or disables WebSockets connections to an origin server.

    CdnResourceRuleOptionsAllowedHttpMethods, CdnResourceRuleOptionsAllowedHttpMethodsArgs

    Enabled bool
    Controls the option state.
    Values List<string>
    Enabled bool
    Controls the option state.
    Values []string
    enabled Boolean
    Controls the option state.
    values List<String>
    enabled boolean
    Controls the option state.
    values string[]
    enabled bool
    Controls the option state.
    values Sequence[str]
    enabled Boolean
    Controls the option state.
    values List<String>

    CdnResourceRuleOptionsBotProtection, CdnResourceRuleOptionsBotProtectionArgs

    BotChallenge CdnResourceRuleOptionsBotProtectionBotChallenge
    Controls the bot challenge module state.
    Enabled bool
    Controls the option state.
    BotChallenge CdnResourceRuleOptionsBotProtectionBotChallenge
    Controls the bot challenge module state.
    Enabled bool
    Controls the option state.
    botChallenge CdnResourceRuleOptionsBotProtectionBotChallenge
    Controls the bot challenge module state.
    enabled Boolean
    Controls the option state.
    botChallenge CdnResourceRuleOptionsBotProtectionBotChallenge
    Controls the bot challenge module state.
    enabled boolean
    Controls the option state.
    bot_challenge CdnResourceRuleOptionsBotProtectionBotChallenge
    Controls the bot challenge module state.
    enabled bool
    Controls the option state.
    botChallenge Property Map
    Controls the bot challenge module state.
    enabled Boolean
    Controls the option state.

    CdnResourceRuleOptionsBotProtectionBotChallenge, CdnResourceRuleOptionsBotProtectionBotChallengeArgs

    Enabled bool
    Possible values:
    Enabled bool
    Possible values:
    enabled Boolean
    Possible values:
    enabled boolean
    Possible values:
    enabled bool
    Possible values:
    enabled Boolean
    Possible values:

    CdnResourceRuleOptionsBrotliCompression, CdnResourceRuleOptionsBrotliCompressionArgs

    Enabled bool
    Controls the option state.
    Values List<string>

    Allows to select the content types you want to compress.

    text/html is a mandatory content type.

    Enabled bool
    Controls the option state.
    Values []string

    Allows to select the content types you want to compress.

    text/html is a mandatory content type.

    enabled Boolean
    Controls the option state.
    values List<String>

    Allows to select the content types you want to compress.

    text/html is a mandatory content type.

    enabled boolean
    Controls the option state.
    values string[]

    Allows to select the content types you want to compress.

    text/html is a mandatory content type.

    enabled bool
    Controls the option state.
    values Sequence[str]

    Allows to select the content types you want to compress.

    text/html is a mandatory content type.

    enabled Boolean
    Controls the option state.
    values List<String>

    Allows to select the content types you want to compress.

    text/html is a mandatory content type.

    CdnResourceRuleOptionsBrowserCacheSettings, CdnResourceRuleOptionsBrowserCacheSettingsArgs

    Enabled bool
    Controls the option state.
    Value string

    Set the cache expiration time to '0s' to disable caching.

    The maximum duration is any equivalent to 1y.

    Enabled bool
    Controls the option state.
    Value string

    Set the cache expiration time to '0s' to disable caching.

    The maximum duration is any equivalent to 1y.

    enabled Boolean
    Controls the option state.
    value String

    Set the cache expiration time to '0s' to disable caching.

    The maximum duration is any equivalent to 1y.

    enabled boolean
    Controls the option state.
    value string

    Set the cache expiration time to '0s' to disable caching.

    The maximum duration is any equivalent to 1y.

    enabled bool
    Controls the option state.
    value str

    Set the cache expiration time to '0s' to disable caching.

    The maximum duration is any equivalent to 1y.

    enabled Boolean
    Controls the option state.
    value String

    Set the cache expiration time to '0s' to disable caching.

    The maximum duration is any equivalent to 1y.

    CdnResourceRuleOptionsCacheHttpHeaders, CdnResourceRuleOptionsCacheHttpHeadersArgs

    Enabled bool
    Controls the option state.
    Values List<string>
    Enabled bool
    Controls the option state.
    Values []string
    enabled Boolean
    Controls the option state.
    values List<String>
    enabled boolean
    Controls the option state.
    values string[]
    enabled bool
    Controls the option state.
    values Sequence[str]
    enabled Boolean
    Controls the option state.
    values List<String>

    CdnResourceRuleOptionsCors, CdnResourceRuleOptionsCorsArgs

    Enabled bool
    Controls the option state.
    Values List<string>

    Value of the Access-Control-Allow-Origin header.

    Possible values:

    • Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain. "value": ["*"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field. "value": ["domain.com", "second.dom.com"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response. "value": ["$http_origin"]
    Always bool

    Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response regardless of response code.
    • false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
    Enabled bool
    Controls the option state.
    Values []string

    Value of the Access-Control-Allow-Origin header.

    Possible values:

    • Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain. "value": ["*"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field. "value": ["domain.com", "second.dom.com"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response. "value": ["$http_origin"]
    Always bool

    Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response regardless of response code.
    • false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
    enabled Boolean
    Controls the option state.
    values List<String>

    Value of the Access-Control-Allow-Origin header.

    Possible values:

    • Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain. "value": ["*"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field. "value": ["domain.com", "second.dom.com"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response. "value": ["$http_origin"]
    always Boolean

    Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response regardless of response code.
    • false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
    enabled boolean
    Controls the option state.
    values string[]

    Value of the Access-Control-Allow-Origin header.

    Possible values:

    • Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain. "value": ["*"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field. "value": ["domain.com", "second.dom.com"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response. "value": ["$http_origin"]
    always boolean

    Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response regardless of response code.
    • false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
    enabled bool
    Controls the option state.
    values Sequence[str]

    Value of the Access-Control-Allow-Origin header.

    Possible values:

    • Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain. "value": ["*"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field. "value": ["domain.com", "second.dom.com"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response. "value": ["$http_origin"]
    always bool

    Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response regardless of response code.
    • false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
    enabled Boolean
    Controls the option state.
    values List<String>

    Value of the Access-Control-Allow-Origin header.

    Possible values:

    • Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain. "value": ["*"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field. "value": ["domain.com", "second.dom.com"]
    • Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response. "value": ["$http_origin"]
    always Boolean

    Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response regardless of response code.
    • false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.

    CdnResourceRuleOptionsCountryAcl, CdnResourceRuleOptionsCountryAclArgs

    Enabled bool
    Controls the option state.
    ExceptedValues List<string>

    List of countries according to ISO-3166-1.

    The meaning of the parameter depends on policy_type value:

    • allow - List of countries for which access is prohibited.
    • deny - List of countries for which access is allowed.
    PolicyType string

    Defines the type of CDN resource access policy.

    Possible values:

    • allow - Access is allowed for all the countries except for those specified in excepted_values field.
    • deny - Access is denied for all the countries except for those specified in excepted_values field. Available values: "allow", "deny".
    Enabled bool
    Controls the option state.
    ExceptedValues []string

    List of countries according to ISO-3166-1.

    The meaning of the parameter depends on policy_type value:

    • allow - List of countries for which access is prohibited.
    • deny - List of countries for which access is allowed.
    PolicyType string

    Defines the type of CDN resource access policy.

    Possible values:

    • allow - Access is allowed for all the countries except for those specified in excepted_values field.
    • deny - Access is denied for all the countries except for those specified in excepted_values field. Available values: "allow", "deny".
    enabled Boolean
    Controls the option state.
    exceptedValues List<String>

    List of countries according to ISO-3166-1.

    The meaning of the parameter depends on policy_type value:

    • allow - List of countries for which access is prohibited.
    • deny - List of countries for which access is allowed.
    policyType String

    Defines the type of CDN resource access policy.

    Possible values:

    • allow - Access is allowed for all the countries except for those specified in excepted_values field.
    • deny - Access is denied for all the countries except for those specified in excepted_values field. Available values: "allow", "deny".
    enabled boolean
    Controls the option state.
    exceptedValues string[]

    List of countries according to ISO-3166-1.

    The meaning of the parameter depends on policy_type value:

    • allow - List of countries for which access is prohibited.
    • deny - List of countries for which access is allowed.
    policyType string

    Defines the type of CDN resource access policy.

    Possible values:

    • allow - Access is allowed for all the countries except for those specified in excepted_values field.
    • deny - Access is denied for all the countries except for those specified in excepted_values field. Available values: "allow", "deny".
    enabled bool
    Controls the option state.
    excepted_values Sequence[str]

    List of countries according to ISO-3166-1.

    The meaning of the parameter depends on policy_type value:

    • allow - List of countries for which access is prohibited.
    • deny - List of countries for which access is allowed.
    policy_type str

    Defines the type of CDN resource access policy.

    Possible values:

    • allow - Access is allowed for all the countries except for those specified in excepted_values field.
    • deny - Access is denied for all the countries except for those specified in excepted_values field. Available values: "allow", "deny".
    enabled Boolean
    Controls the option state.
    exceptedValues List<String>

    List of countries according to ISO-3166-1.

    The meaning of the parameter depends on policy_type value:

    • allow - List of countries for which access is prohibited.
    • deny - List of countries for which access is allowed.
    policyType String

    Defines the type of CDN resource access policy.

    Possible values:

    • allow - Access is allowed for all the countries except for those specified in excepted_values field.
    • deny - Access is denied for all the countries except for those specified in excepted_values field. Available values: "allow", "deny".

    CdnResourceRuleOptionsDisableCache, CdnResourceRuleOptionsDisableCacheArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - content caching is disabled.
    • false - content caching is enabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - content caching is disabled.
    • false - content caching is enabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - content caching is disabled.
    • false - content caching is enabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - content caching is disabled.
    • false - content caching is enabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - content caching is disabled.
    • false - content caching is enabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - content caching is disabled.
    • false - content caching is enabled.

    CdnResourceRuleOptionsDisableProxyForceRanges, CdnResourceRuleOptionsDisableProxyForceRangesArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsEdgeCacheSettings, CdnResourceRuleOptionsEdgeCacheSettingsArgs

    Enabled bool
    Controls the option state.
    CustomValues Dictionary<string, string>

    A MAP object representing the caching time in seconds for a response with a specific response code.

    These settings have a higher priority than the value field.

    • Use any key to specify caching time for all response codes.
    • Use 0s value to disable caching for a specific response code.
    Default string

    Enables content caching according to the origin cache settings.

    The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.

    Responses with other codes will not be cached.

    The maximum duration is any equivalent to 1y.

    Value string

    Caching time.

    The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.

    Use 0s to disable caching.

    The maximum duration is any equivalent to 1y.

    Enabled bool
    Controls the option state.
    CustomValues map[string]string

    A MAP object representing the caching time in seconds for a response with a specific response code.

    These settings have a higher priority than the value field.

    • Use any key to specify caching time for all response codes.
    • Use 0s value to disable caching for a specific response code.
    Default string

    Enables content caching according to the origin cache settings.

    The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.

    Responses with other codes will not be cached.

    The maximum duration is any equivalent to 1y.

    Value string

    Caching time.

    The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.

    Use 0s to disable caching.

    The maximum duration is any equivalent to 1y.

    enabled Boolean
    Controls the option state.
    customValues Map<String,String>

    A MAP object representing the caching time in seconds for a response with a specific response code.

    These settings have a higher priority than the value field.

    • Use any key to specify caching time for all response codes.
    • Use 0s value to disable caching for a specific response code.
    default_ String

    Enables content caching according to the origin cache settings.

    The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.

    Responses with other codes will not be cached.

    The maximum duration is any equivalent to 1y.

    value String

    Caching time.

    The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.

    Use 0s to disable caching.

    The maximum duration is any equivalent to 1y.

    enabled boolean
    Controls the option state.
    customValues {[key: string]: string}

    A MAP object representing the caching time in seconds for a response with a specific response code.

    These settings have a higher priority than the value field.

    • Use any key to specify caching time for all response codes.
    • Use 0s value to disable caching for a specific response code.
    default string

    Enables content caching according to the origin cache settings.

    The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.

    Responses with other codes will not be cached.

    The maximum duration is any equivalent to 1y.

    value string

    Caching time.

    The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.

    Use 0s to disable caching.

    The maximum duration is any equivalent to 1y.

    enabled bool
    Controls the option state.
    custom_values Mapping[str, str]

    A MAP object representing the caching time in seconds for a response with a specific response code.

    These settings have a higher priority than the value field.

    • Use any key to specify caching time for all response codes.
    • Use 0s value to disable caching for a specific response code.
    default str

    Enables content caching according to the origin cache settings.

    The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.

    Responses with other codes will not be cached.

    The maximum duration is any equivalent to 1y.

    value str

    Caching time.

    The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.

    Use 0s to disable caching.

    The maximum duration is any equivalent to 1y.

    enabled Boolean
    Controls the option state.
    customValues Map<String>

    A MAP object representing the caching time in seconds for a response with a specific response code.

    These settings have a higher priority than the value field.

    • Use any key to specify caching time for all response codes.
    • Use 0s value to disable caching for a specific response code.
    default String

    Enables content caching according to the origin cache settings.

    The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.

    Responses with other codes will not be cached.

    The maximum duration is any equivalent to 1y.

    value String

    Caching time.

    The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.

    Use 0s to disable caching.

    The maximum duration is any equivalent to 1y.

    CdnResourceRuleOptionsFastedge, CdnResourceRuleOptionsFastedgeArgs

    Enabled bool
    Controls the option state.
    OnRequestBody CdnResourceRuleOptionsFastedgeOnRequestBody
    Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
    OnRequestHeaders CdnResourceRuleOptionsFastedgeOnRequestHeaders
    Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request, before cache.
    OnResponseBody CdnResourceRuleOptionsFastedgeOnResponseBody
    Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
    OnResponseHeaders CdnResourceRuleOptionsFastedgeOnResponseHeaders
    Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
    Enabled bool
    Controls the option state.
    OnRequestBody CdnResourceRuleOptionsFastedgeOnRequestBody
    Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
    OnRequestHeaders CdnResourceRuleOptionsFastedgeOnRequestHeaders
    Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request, before cache.
    OnResponseBody CdnResourceRuleOptionsFastedgeOnResponseBody
    Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
    OnResponseHeaders CdnResourceRuleOptionsFastedgeOnResponseHeaders
    Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
    enabled Boolean
    Controls the option state.
    onRequestBody CdnResourceRuleOptionsFastedgeOnRequestBody
    Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
    onRequestHeaders CdnResourceRuleOptionsFastedgeOnRequestHeaders
    Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request, before cache.
    onResponseBody CdnResourceRuleOptionsFastedgeOnResponseBody
    Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
    onResponseHeaders CdnResourceRuleOptionsFastedgeOnResponseHeaders
    Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
    enabled boolean
    Controls the option state.
    onRequestBody CdnResourceRuleOptionsFastedgeOnRequestBody
    Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
    onRequestHeaders CdnResourceRuleOptionsFastedgeOnRequestHeaders
    Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request, before cache.
    onResponseBody CdnResourceRuleOptionsFastedgeOnResponseBody
    Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
    onResponseHeaders CdnResourceRuleOptionsFastedgeOnResponseHeaders
    Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
    enabled bool
    Controls the option state.
    on_request_body CdnResourceRuleOptionsFastedgeOnRequestBody
    Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
    on_request_headers CdnResourceRuleOptionsFastedgeOnRequestHeaders
    Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request, before cache.
    on_response_body CdnResourceRuleOptionsFastedgeOnResponseBody
    Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
    on_response_headers CdnResourceRuleOptionsFastedgeOnResponseHeaders
    Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
    enabled Boolean
    Controls the option state.
    onRequestBody Property Map
    Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
    onRequestHeaders Property Map
    Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request, before cache.
    onResponseBody Property Map
    Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
    onResponseHeaders Property Map
    Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.

    CdnResourceRuleOptionsFastedgeOnRequestBody, CdnResourceRuleOptionsFastedgeOnRequestBodyArgs

    AppId string
    The ID of the application in FastEdge.
    Enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    ExecuteOnEdge bool
    Determines if the request should be executed at the edge nodes.
    ExecuteOnShield bool
    Determines if the request should be executed at the shield nodes.
    InterruptOnError bool
    Determines if the request execution should be interrupted when an error occurs.
    AppId string
    The ID of the application in FastEdge.
    Enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    ExecuteOnEdge bool
    Determines if the request should be executed at the edge nodes.
    ExecuteOnShield bool
    Determines if the request should be executed at the shield nodes.
    InterruptOnError bool
    Determines if the request execution should be interrupted when an error occurs.
    appId String
    The ID of the application in FastEdge.
    enabled Boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge Boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield Boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError Boolean
    Determines if the request execution should be interrupted when an error occurs.
    appId string
    The ID of the application in FastEdge.
    enabled boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError boolean
    Determines if the request execution should be interrupted when an error occurs.
    app_id str
    The ID of the application in FastEdge.
    enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    execute_on_edge bool
    Determines if the request should be executed at the edge nodes.
    execute_on_shield bool
    Determines if the request should be executed at the shield nodes.
    interrupt_on_error bool
    Determines if the request execution should be interrupted when an error occurs.
    appId String
    The ID of the application in FastEdge.
    enabled Boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge Boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield Boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError Boolean
    Determines if the request execution should be interrupted when an error occurs.

    CdnResourceRuleOptionsFastedgeOnRequestHeaders, CdnResourceRuleOptionsFastedgeOnRequestHeadersArgs

    AppId string
    The ID of the application in FastEdge.
    Enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    ExecuteOnEdge bool
    Determines if the request should be executed at the edge nodes.
    ExecuteOnShield bool
    Determines if the request should be executed at the shield nodes.
    InterruptOnError bool
    Determines if the request execution should be interrupted when an error occurs.
    AppId string
    The ID of the application in FastEdge.
    Enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    ExecuteOnEdge bool
    Determines if the request should be executed at the edge nodes.
    ExecuteOnShield bool
    Determines if the request should be executed at the shield nodes.
    InterruptOnError bool
    Determines if the request execution should be interrupted when an error occurs.
    appId String
    The ID of the application in FastEdge.
    enabled Boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge Boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield Boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError Boolean
    Determines if the request execution should be interrupted when an error occurs.
    appId string
    The ID of the application in FastEdge.
    enabled boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError boolean
    Determines if the request execution should be interrupted when an error occurs.
    app_id str
    The ID of the application in FastEdge.
    enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    execute_on_edge bool
    Determines if the request should be executed at the edge nodes.
    execute_on_shield bool
    Determines if the request should be executed at the shield nodes.
    interrupt_on_error bool
    Determines if the request execution should be interrupted when an error occurs.
    appId String
    The ID of the application in FastEdge.
    enabled Boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge Boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield Boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError Boolean
    Determines if the request execution should be interrupted when an error occurs.

    CdnResourceRuleOptionsFastedgeOnResponseBody, CdnResourceRuleOptionsFastedgeOnResponseBodyArgs

    AppId string
    The ID of the application in FastEdge.
    Enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    ExecuteOnEdge bool
    Determines if the request should be executed at the edge nodes.
    ExecuteOnShield bool
    Determines if the request should be executed at the shield nodes.
    InterruptOnError bool
    Determines if the request execution should be interrupted when an error occurs.
    AppId string
    The ID of the application in FastEdge.
    Enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    ExecuteOnEdge bool
    Determines if the request should be executed at the edge nodes.
    ExecuteOnShield bool
    Determines if the request should be executed at the shield nodes.
    InterruptOnError bool
    Determines if the request execution should be interrupted when an error occurs.
    appId String
    The ID of the application in FastEdge.
    enabled Boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge Boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield Boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError Boolean
    Determines if the request execution should be interrupted when an error occurs.
    appId string
    The ID of the application in FastEdge.
    enabled boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError boolean
    Determines if the request execution should be interrupted when an error occurs.
    app_id str
    The ID of the application in FastEdge.
    enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    execute_on_edge bool
    Determines if the request should be executed at the edge nodes.
    execute_on_shield bool
    Determines if the request should be executed at the shield nodes.
    interrupt_on_error bool
    Determines if the request execution should be interrupted when an error occurs.
    appId String
    The ID of the application in FastEdge.
    enabled Boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge Boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield Boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError Boolean
    Determines if the request execution should be interrupted when an error occurs.

    CdnResourceRuleOptionsFastedgeOnResponseHeaders, CdnResourceRuleOptionsFastedgeOnResponseHeadersArgs

    AppId string
    The ID of the application in FastEdge.
    Enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    ExecuteOnEdge bool
    Determines if the request should be executed at the edge nodes.
    ExecuteOnShield bool
    Determines if the request should be executed at the shield nodes.
    InterruptOnError bool
    Determines if the request execution should be interrupted when an error occurs.
    AppId string
    The ID of the application in FastEdge.
    Enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    ExecuteOnEdge bool
    Determines if the request should be executed at the edge nodes.
    ExecuteOnShield bool
    Determines if the request should be executed at the shield nodes.
    InterruptOnError bool
    Determines if the request execution should be interrupted when an error occurs.
    appId String
    The ID of the application in FastEdge.
    enabled Boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge Boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield Boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError Boolean
    Determines if the request execution should be interrupted when an error occurs.
    appId string
    The ID of the application in FastEdge.
    enabled boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError boolean
    Determines if the request execution should be interrupted when an error occurs.
    app_id str
    The ID of the application in FastEdge.
    enabled bool
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    execute_on_edge bool
    Determines if the request should be executed at the edge nodes.
    execute_on_shield bool
    Determines if the request should be executed at the shield nodes.
    interrupt_on_error bool
    Determines if the request execution should be interrupted when an error occurs.
    appId String
    The ID of the application in FastEdge.
    enabled Boolean
    Determines if the FastEdge application should be called whenever HTTP request headers are received.
    executeOnEdge Boolean
    Determines if the request should be executed at the edge nodes.
    executeOnShield Boolean
    Determines if the request should be executed at the shield nodes.
    interruptOnError Boolean
    Determines if the request execution should be interrupted when an error occurs.

    CdnResourceRuleOptionsFetchCompressed, CdnResourceRuleOptionsFetchCompressedArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsFollowOriginRedirect, CdnResourceRuleOptionsFollowOriginRedirectArgs

    Codes List<double>
    Redirect status code that the origin server returns.
    Enabled bool

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Codes []float64
    Redirect status code that the origin server returns.
    Enabled bool

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    codes List<Double>
    Redirect status code that the origin server returns.
    enabled Boolean

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    codes number[]
    Redirect status code that the origin server returns.
    enabled boolean

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    codes Sequence[float]
    Redirect status code that the origin server returns.
    enabled bool

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    codes List<Number>
    Redirect status code that the origin server returns.
    enabled Boolean

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsForceReturn, CdnResourceRuleOptionsForceReturnArgs

    Body string
    URL for redirection or text.
    Code double
    Status code value.
    Enabled bool
    Controls the option state.
    TimeInterval CdnResourceRuleOptionsForceReturnTimeInterval
    Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
    Body string
    URL for redirection or text.
    Code float64
    Status code value.
    Enabled bool
    Controls the option state.
    TimeInterval CdnResourceRuleOptionsForceReturnTimeInterval
    Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
    body String
    URL for redirection or text.
    code Double
    Status code value.
    enabled Boolean
    Controls the option state.
    timeInterval CdnResourceRuleOptionsForceReturnTimeInterval
    Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
    body string
    URL for redirection or text.
    code number
    Status code value.
    enabled boolean
    Controls the option state.
    timeInterval CdnResourceRuleOptionsForceReturnTimeInterval
    Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
    body str
    URL for redirection or text.
    code float
    Status code value.
    enabled bool
    Controls the option state.
    time_interval CdnResourceRuleOptionsForceReturnTimeInterval
    Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
    body String
    URL for redirection or text.
    code Number
    Status code value.
    enabled Boolean
    Controls the option state.
    timeInterval Property Map
    Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.

    CdnResourceRuleOptionsForceReturnTimeInterval, CdnResourceRuleOptionsForceReturnTimeIntervalArgs

    EndTime string
    Time until which a custom HTTP response code should be applied. Indicated in 24-hour format.
    StartTime string
    Time from which a custom HTTP response code should be applied. Indicated in 24-hour format.
    TimeZone string
    Time zone used to calculate time.
    EndTime string
    Time until which a custom HTTP response code should be applied. Indicated in 24-hour format.
    StartTime string
    Time from which a custom HTTP response code should be applied. Indicated in 24-hour format.
    TimeZone string
    Time zone used to calculate time.
    endTime String
    Time until which a custom HTTP response code should be applied. Indicated in 24-hour format.
    startTime String
    Time from which a custom HTTP response code should be applied. Indicated in 24-hour format.
    timeZone String
    Time zone used to calculate time.
    endTime string
    Time until which a custom HTTP response code should be applied. Indicated in 24-hour format.
    startTime string
    Time from which a custom HTTP response code should be applied. Indicated in 24-hour format.
    timeZone string
    Time zone used to calculate time.
    end_time str
    Time until which a custom HTTP response code should be applied. Indicated in 24-hour format.
    start_time str
    Time from which a custom HTTP response code should be applied. Indicated in 24-hour format.
    time_zone str
    Time zone used to calculate time.
    endTime String
    Time until which a custom HTTP response code should be applied. Indicated in 24-hour format.
    startTime String
    Time from which a custom HTTP response code should be applied. Indicated in 24-hour format.
    timeZone String
    Time zone used to calculate time.

    CdnResourceRuleOptionsForwardHostHeader, CdnResourceRuleOptionsForwardHostHeaderArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsGzipOn, CdnResourceRuleOptionsGzipOnArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsHostHeader, CdnResourceRuleOptionsHostHeaderArgs

    Enabled bool
    Controls the option state.
    Value string
    Host Header value.
    Enabled bool
    Controls the option state.
    Value string
    Host Header value.
    enabled Boolean
    Controls the option state.
    value String
    Host Header value.
    enabled boolean
    Controls the option state.
    value string
    Host Header value.
    enabled bool
    Controls the option state.
    value str
    Host Header value.
    enabled Boolean
    Controls the option state.
    value String
    Host Header value.

    CdnResourceRuleOptionsIgnoreCookie, CdnResourceRuleOptionsIgnoreCookieArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled, files with cookies are cached as one file.
    • false - Option is disabled, files with cookies are cached as different files.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled, files with cookies are cached as one file.
    • false - Option is disabled, files with cookies are cached as different files.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled, files with cookies are cached as one file.
    • false - Option is disabled, files with cookies are cached as different files.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled, files with cookies are cached as one file.
    • false - Option is disabled, files with cookies are cached as different files.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled, files with cookies are cached as one file.
    • false - Option is disabled, files with cookies are cached as different files.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled, files with cookies are cached as one file.
    • false - Option is disabled, files with cookies are cached as different files.

    CdnResourceRuleOptionsIgnoreQueryString, CdnResourceRuleOptionsIgnoreQueryStringArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsImageStack, CdnResourceRuleOptionsImageStackArgs

    Enabled bool
    Controls the option state.
    AvifEnabled bool
    Enables or disables automatic conversion of JPEG and PNG images to AVI format.
    PngLossless bool
    Enables or disables compression without quality loss for PNG format.
    Quality double
    Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
    WebpEnabled bool
    Enables or disables automatic conversion of JPEG and PNG images to WebP format.
    Enabled bool
    Controls the option state.
    AvifEnabled bool
    Enables or disables automatic conversion of JPEG and PNG images to AVI format.
    PngLossless bool
    Enables or disables compression without quality loss for PNG format.
    Quality float64
    Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
    WebpEnabled bool
    Enables or disables automatic conversion of JPEG and PNG images to WebP format.
    enabled Boolean
    Controls the option state.
    avifEnabled Boolean
    Enables or disables automatic conversion of JPEG and PNG images to AVI format.
    pngLossless Boolean
    Enables or disables compression without quality loss for PNG format.
    quality Double
    Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
    webpEnabled Boolean
    Enables or disables automatic conversion of JPEG and PNG images to WebP format.
    enabled boolean
    Controls the option state.
    avifEnabled boolean
    Enables or disables automatic conversion of JPEG and PNG images to AVI format.
    pngLossless boolean
    Enables or disables compression without quality loss for PNG format.
    quality number
    Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
    webpEnabled boolean
    Enables or disables automatic conversion of JPEG and PNG images to WebP format.
    enabled bool
    Controls the option state.
    avif_enabled bool
    Enables or disables automatic conversion of JPEG and PNG images to AVI format.
    png_lossless bool
    Enables or disables compression without quality loss for PNG format.
    quality float
    Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
    webp_enabled bool
    Enables or disables automatic conversion of JPEG and PNG images to WebP format.
    enabled Boolean
    Controls the option state.
    avifEnabled Boolean
    Enables or disables automatic conversion of JPEG and PNG images to AVI format.
    pngLossless Boolean
    Enables or disables compression without quality loss for PNG format.
    quality Number
    Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
    webpEnabled Boolean
    Enables or disables automatic conversion of JPEG and PNG images to WebP format.

    CdnResourceRuleOptionsIpAddressAcl, CdnResourceRuleOptionsIpAddressAclArgs

    Enabled bool
    Controls the option state.
    ExceptedValues List<string>

    List of IP addresses with a subnet mask.

    The meaning of the parameter depends on policy_type value:

    • allow - List of IP addresses for which access is prohibited.
    • deny - List of IP addresses for which access is allowed.

    Examples:

    • 192.168.3.2/32
    • 2a03:d000:2980:7::8/128
    PolicyType string

    IP access policy type.

    Possible values:

    • allow - Allow access to all IPs except IPs specified in "excepted_values" field.
    • deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
    Enabled bool
    Controls the option state.
    ExceptedValues []string

    List of IP addresses with a subnet mask.

    The meaning of the parameter depends on policy_type value:

    • allow - List of IP addresses for which access is prohibited.
    • deny - List of IP addresses for which access is allowed.

    Examples:

    • 192.168.3.2/32
    • 2a03:d000:2980:7::8/128
    PolicyType string

    IP access policy type.

    Possible values:

    • allow - Allow access to all IPs except IPs specified in "excepted_values" field.
    • deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
    enabled Boolean
    Controls the option state.
    exceptedValues List<String>

    List of IP addresses with a subnet mask.

    The meaning of the parameter depends on policy_type value:

    • allow - List of IP addresses for which access is prohibited.
    • deny - List of IP addresses for which access is allowed.

    Examples:

    • 192.168.3.2/32
    • 2a03:d000:2980:7::8/128
    policyType String

    IP access policy type.

    Possible values:

    • allow - Allow access to all IPs except IPs specified in "excepted_values" field.
    • deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
    enabled boolean
    Controls the option state.
    exceptedValues string[]

    List of IP addresses with a subnet mask.

    The meaning of the parameter depends on policy_type value:

    • allow - List of IP addresses for which access is prohibited.
    • deny - List of IP addresses for which access is allowed.

    Examples:

    • 192.168.3.2/32
    • 2a03:d000:2980:7::8/128
    policyType string

    IP access policy type.

    Possible values:

    • allow - Allow access to all IPs except IPs specified in "excepted_values" field.
    • deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
    enabled bool
    Controls the option state.
    excepted_values Sequence[str]

    List of IP addresses with a subnet mask.

    The meaning of the parameter depends on policy_type value:

    • allow - List of IP addresses for which access is prohibited.
    • deny - List of IP addresses for which access is allowed.

    Examples:

    • 192.168.3.2/32
    • 2a03:d000:2980:7::8/128
    policy_type str

    IP access policy type.

    Possible values:

    • allow - Allow access to all IPs except IPs specified in "excepted_values" field.
    • deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
    enabled Boolean
    Controls the option state.
    exceptedValues List<String>

    List of IP addresses with a subnet mask.

    The meaning of the parameter depends on policy_type value:

    • allow - List of IP addresses for which access is prohibited.
    • deny - List of IP addresses for which access is allowed.

    Examples:

    • 192.168.3.2/32
    • 2a03:d000:2980:7::8/128
    policyType String

    IP access policy type.

    Possible values:

    • allow - Allow access to all IPs except IPs specified in "excepted_values" field.
    • deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".

    CdnResourceRuleOptionsLimitBandwidth, CdnResourceRuleOptionsLimitBandwidthArgs

    Enabled bool
    Controls the option state.
    LimitType string

    Method of controlling the download speed per connection.

    Possible values:

    • static - Use speed and buffer fields to set the download speed limit.
    • dynamic - Use query strings speed and buffer to set the download speed limit.

    For example, when requesting content at the link

    http://cdn.example.com/video.mp4?speed=50k&buffer=500k
    

    the download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".

    Buffer double
    Amount of downloaded data after which the user will be rate limited.
    Speed double
    Maximum download speed per connection.
    Enabled bool
    Controls the option state.
    LimitType string

    Method of controlling the download speed per connection.

    Possible values:

    • static - Use speed and buffer fields to set the download speed limit.
    • dynamic - Use query strings speed and buffer to set the download speed limit.

    For example, when requesting content at the link

    http://cdn.example.com/video.mp4?speed=50k&buffer=500k
    

    the download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".

    Buffer float64
    Amount of downloaded data after which the user will be rate limited.
    Speed float64
    Maximum download speed per connection.
    enabled Boolean
    Controls the option state.
    limitType String

    Method of controlling the download speed per connection.

    Possible values:

    • static - Use speed and buffer fields to set the download speed limit.
    • dynamic - Use query strings speed and buffer to set the download speed limit.

    For example, when requesting content at the link

    http://cdn.example.com/video.mp4?speed=50k&buffer=500k
    

    the download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".

    buffer Double
    Amount of downloaded data after which the user will be rate limited.
    speed Double
    Maximum download speed per connection.
    enabled boolean
    Controls the option state.
    limitType string

    Method of controlling the download speed per connection.

    Possible values:

    • static - Use speed and buffer fields to set the download speed limit.
    • dynamic - Use query strings speed and buffer to set the download speed limit.

    For example, when requesting content at the link

    http://cdn.example.com/video.mp4?speed=50k&buffer=500k
    

    the download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".

    buffer number
    Amount of downloaded data after which the user will be rate limited.
    speed number
    Maximum download speed per connection.
    enabled bool
    Controls the option state.
    limit_type str

    Method of controlling the download speed per connection.

    Possible values:

    • static - Use speed and buffer fields to set the download speed limit.
    • dynamic - Use query strings speed and buffer to set the download speed limit.

    For example, when requesting content at the link

    http://cdn.example.com/video.mp4?speed=50k&buffer=500k
    

    the download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".

    buffer float
    Amount of downloaded data after which the user will be rate limited.
    speed float
    Maximum download speed per connection.
    enabled Boolean
    Controls the option state.
    limitType String

    Method of controlling the download speed per connection.

    Possible values:

    • static - Use speed and buffer fields to set the download speed limit.
    • dynamic - Use query strings speed and buffer to set the download speed limit.

    For example, when requesting content at the link

    http://cdn.example.com/video.mp4?speed=50k&buffer=500k
    

    the download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".

    buffer Number
    Amount of downloaded data after which the user will be rate limited.
    speed Number
    Maximum download speed per connection.

    CdnResourceRuleOptionsProxyCacheKey, CdnResourceRuleOptionsProxyCacheKeyArgs

    Enabled bool
    Controls the option state.
    Value string
    Key for caching.
    Enabled bool
    Controls the option state.
    Value string
    Key for caching.
    enabled Boolean
    Controls the option state.
    value String
    Key for caching.
    enabled boolean
    Controls the option state.
    value string
    Key for caching.
    enabled bool
    Controls the option state.
    value str
    Key for caching.
    enabled Boolean
    Controls the option state.
    value String
    Key for caching.

    CdnResourceRuleOptionsProxyCacheMethodsSet, CdnResourceRuleOptionsProxyCacheMethodsSetArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsProxyConnectTimeout, CdnResourceRuleOptionsProxyConnectTimeoutArgs

    Enabled bool
    Controls the option state.
    Value string

    Timeout value in seconds.

    Supported range: 1s - 5s.

    Enabled bool
    Controls the option state.
    Value string

    Timeout value in seconds.

    Supported range: 1s - 5s.

    enabled Boolean
    Controls the option state.
    value String

    Timeout value in seconds.

    Supported range: 1s - 5s.

    enabled boolean
    Controls the option state.
    value string

    Timeout value in seconds.

    Supported range: 1s - 5s.

    enabled bool
    Controls the option state.
    value str

    Timeout value in seconds.

    Supported range: 1s - 5s.

    enabled Boolean
    Controls the option state.
    value String

    Timeout value in seconds.

    Supported range: 1s - 5s.

    CdnResourceRuleOptionsProxyReadTimeout, CdnResourceRuleOptionsProxyReadTimeoutArgs

    Enabled bool
    Controls the option state.
    Value string

    Timeout value in seconds.

    Supported range: 1s - 30s.

    Enabled bool
    Controls the option state.
    Value string

    Timeout value in seconds.

    Supported range: 1s - 30s.

    enabled Boolean
    Controls the option state.
    value String

    Timeout value in seconds.

    Supported range: 1s - 30s.

    enabled boolean
    Controls the option state.
    value string

    Timeout value in seconds.

    Supported range: 1s - 30s.

    enabled bool
    Controls the option state.
    value str

    Timeout value in seconds.

    Supported range: 1s - 30s.

    enabled Boolean
    Controls the option state.
    value String

    Timeout value in seconds.

    Supported range: 1s - 30s.

    CdnResourceRuleOptionsQueryParamsBlacklist, CdnResourceRuleOptionsQueryParamsBlacklistArgs

    Enabled bool
    Controls the option state.
    Values List<string>
    List of query parameters.
    Enabled bool
    Controls the option state.
    Values []string
    List of query parameters.
    enabled Boolean
    Controls the option state.
    values List<String>
    List of query parameters.
    enabled boolean
    Controls the option state.
    values string[]
    List of query parameters.
    enabled bool
    Controls the option state.
    values Sequence[str]
    List of query parameters.
    enabled Boolean
    Controls the option state.
    values List<String>
    List of query parameters.

    CdnResourceRuleOptionsQueryParamsWhitelist, CdnResourceRuleOptionsQueryParamsWhitelistArgs

    Enabled bool
    Controls the option state.
    Values List<string>
    List of query parameters.
    Enabled bool
    Controls the option state.
    Values []string
    List of query parameters.
    enabled Boolean
    Controls the option state.
    values List<String>
    List of query parameters.
    enabled boolean
    Controls the option state.
    values string[]
    List of query parameters.
    enabled bool
    Controls the option state.
    values Sequence[str]
    List of query parameters.
    enabled Boolean
    Controls the option state.
    values List<String>
    List of query parameters.

    CdnResourceRuleOptionsQueryStringForwarding, CdnResourceRuleOptionsQueryStringForwardingArgs

    Enabled bool
    Controls the option state.
    ForwardFromFileTypes List<string>
    The forward_from_files_types field specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference.
    ForwardToFileTypes List<string>
    The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
    ForwardExceptKeys List<string>
    The forward_except_keys field provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance.
    ForwardOnlyKeys List<string>
    The forward_only_keys field allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
    Enabled bool
    Controls the option state.
    ForwardFromFileTypes []string
    The forward_from_files_types field specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference.
    ForwardToFileTypes []string
    The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
    ForwardExceptKeys []string
    The forward_except_keys field provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance.
    ForwardOnlyKeys []string
    The forward_only_keys field allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
    enabled Boolean
    Controls the option state.
    forwardFromFileTypes List<String>
    The forward_from_files_types field specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference.
    forwardToFileTypes List<String>
    The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
    forwardExceptKeys List<String>
    The forward_except_keys field provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance.
    forwardOnlyKeys List<String>
    The forward_only_keys field allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
    enabled boolean
    Controls the option state.
    forwardFromFileTypes string[]
    The forward_from_files_types field specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference.
    forwardToFileTypes string[]
    The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
    forwardExceptKeys string[]
    The forward_except_keys field provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance.
    forwardOnlyKeys string[]
    The forward_only_keys field allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
    enabled bool
    Controls the option state.
    forward_from_file_types Sequence[str]
    The forward_from_files_types field specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference.
    forward_to_file_types Sequence[str]
    The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
    forward_except_keys Sequence[str]
    The forward_except_keys field provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance.
    forward_only_keys Sequence[str]
    The forward_only_keys field allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
    enabled Boolean
    Controls the option state.
    forwardFromFileTypes List<String>
    The forward_from_files_types field specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference.
    forwardToFileTypes List<String>
    The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
    forwardExceptKeys List<String>
    The forward_except_keys field provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance.
    forwardOnlyKeys List<String>
    The forward_only_keys field allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.

    CdnResourceRuleOptionsRedirectHttpToHttps, CdnResourceRuleOptionsRedirectHttpToHttpsArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsRedirectHttpsToHttp, CdnResourceRuleOptionsRedirectHttpsToHttpArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsReferrerAcl, CdnResourceRuleOptionsReferrerAclArgs

    Enabled bool
    Controls the option state.
    ExceptedValues List<string>

    List of domain names or wildcard domains (without protocol: http:// or https://.)

    The meaning of the parameter depends on policy_type value:

    • allow - List of domain names for which access is prohibited.
    • deny - List of IP domain names for which access is allowed.

    Examples:

    • example.com
    • *.example.com
    PolicyType string

    Policy type.

    Possible values:

    • allow - Allow access to all domain names except the domain names specified in excepted_values field.
    • deny - Deny access to all domain names except the domain names specified in excepted_values field. Available values: "allow", "deny".
    Enabled bool
    Controls the option state.
    ExceptedValues []string

    List of domain names or wildcard domains (without protocol: http:// or https://.)

    The meaning of the parameter depends on policy_type value:

    • allow - List of domain names for which access is prohibited.
    • deny - List of IP domain names for which access is allowed.

    Examples:

    • example.com
    • *.example.com
    PolicyType string

    Policy type.

    Possible values:

    • allow - Allow access to all domain names except the domain names specified in excepted_values field.
    • deny - Deny access to all domain names except the domain names specified in excepted_values field. Available values: "allow", "deny".
    enabled Boolean
    Controls the option state.
    exceptedValues List<String>

    List of domain names or wildcard domains (without protocol: http:// or https://.)

    The meaning of the parameter depends on policy_type value:

    • allow - List of domain names for which access is prohibited.
    • deny - List of IP domain names for which access is allowed.

    Examples:

    • example.com
    • *.example.com
    policyType String

    Policy type.

    Possible values:

    • allow - Allow access to all domain names except the domain names specified in excepted_values field.
    • deny - Deny access to all domain names except the domain names specified in excepted_values field. Available values: "allow", "deny".
    enabled boolean
    Controls the option state.
    exceptedValues string[]

    List of domain names or wildcard domains (without protocol: http:// or https://.)

    The meaning of the parameter depends on policy_type value:

    • allow - List of domain names for which access is prohibited.
    • deny - List of IP domain names for which access is allowed.

    Examples:

    • example.com
    • *.example.com
    policyType string

    Policy type.

    Possible values:

    • allow - Allow access to all domain names except the domain names specified in excepted_values field.
    • deny - Deny access to all domain names except the domain names specified in excepted_values field. Available values: "allow", "deny".
    enabled bool
    Controls the option state.
    excepted_values Sequence[str]

    List of domain names or wildcard domains (without protocol: http:// or https://.)

    The meaning of the parameter depends on policy_type value:

    • allow - List of domain names for which access is prohibited.
    • deny - List of IP domain names for which access is allowed.

    Examples:

    • example.com
    • *.example.com
    policy_type str

    Policy type.

    Possible values:

    • allow - Allow access to all domain names except the domain names specified in excepted_values field.
    • deny - Deny access to all domain names except the domain names specified in excepted_values field. Available values: "allow", "deny".
    enabled Boolean
    Controls the option state.
    exceptedValues List<String>

    List of domain names or wildcard domains (without protocol: http:// or https://.)

    The meaning of the parameter depends on policy_type value:

    • allow - List of domain names for which access is prohibited.
    • deny - List of IP domain names for which access is allowed.

    Examples:

    • example.com
    • *.example.com
    policyType String

    Policy type.

    Possible values:

    • allow - Allow access to all domain names except the domain names specified in excepted_values field.
    • deny - Deny access to all domain names except the domain names specified in excepted_values field. Available values: "allow", "deny".

    CdnResourceRuleOptionsRequestLimiter, CdnResourceRuleOptionsRequestLimiterArgs

    Enabled bool
    Controls the option state.
    Rate double
    Maximum request rate.
    Burst double
    Delay double
    RateUnit string

    Units of measurement for the rate field.

    Possible values:

    • r/s - Requests per second.
    • r/m - Requests per minute.

    If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".

    Enabled bool
    Controls the option state.
    Rate float64
    Maximum request rate.
    Burst float64
    Delay float64
    RateUnit string

    Units of measurement for the rate field.

    Possible values:

    • r/s - Requests per second.
    • r/m - Requests per minute.

    If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".

    enabled Boolean
    Controls the option state.
    rate Double
    Maximum request rate.
    burst Double
    delay Double
    rateUnit String

    Units of measurement for the rate field.

    Possible values:

    • r/s - Requests per second.
    • r/m - Requests per minute.

    If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".

    enabled boolean
    Controls the option state.
    rate number
    Maximum request rate.
    burst number
    delay number
    rateUnit string

    Units of measurement for the rate field.

    Possible values:

    • r/s - Requests per second.
    • r/m - Requests per minute.

    If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".

    enabled bool
    Controls the option state.
    rate float
    Maximum request rate.
    burst float
    delay float
    rate_unit str

    Units of measurement for the rate field.

    Possible values:

    • r/s - Requests per second.
    • r/m - Requests per minute.

    If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".

    enabled Boolean
    Controls the option state.
    rate Number
    Maximum request rate.
    burst Number
    delay Number
    rateUnit String

    Units of measurement for the rate field.

    Possible values:

    • r/s - Requests per second.
    • r/m - Requests per minute.

    If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".

    CdnResourceRuleOptionsResponseHeadersHidingPolicy, CdnResourceRuleOptionsResponseHeadersHidingPolicyArgs

    Enabled bool
    Controls the option state.
    Mode string

    How HTTP headers are hidden from the response.

    Possible values:

    • show - Hide only HTTP headers listed in the excepted field.
    • hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
    Excepteds List<string>

    List of HTTP headers.

    Parameter meaning depends on the value of the mode field:

    • show - List of HTTP headers to hide from response.
    • hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.

    The following headers are required and cannot be hidden from response:

    • Connection
    • Content-Length
    • Content-Type
    • Date
    • Server
    Enabled bool
    Controls the option state.
    Mode string

    How HTTP headers are hidden from the response.

    Possible values:

    • show - Hide only HTTP headers listed in the excepted field.
    • hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
    Excepteds []string

    List of HTTP headers.

    Parameter meaning depends on the value of the mode field:

    • show - List of HTTP headers to hide from response.
    • hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.

    The following headers are required and cannot be hidden from response:

    • Connection
    • Content-Length
    • Content-Type
    • Date
    • Server
    enabled Boolean
    Controls the option state.
    mode String

    How HTTP headers are hidden from the response.

    Possible values:

    • show - Hide only HTTP headers listed in the excepted field.
    • hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
    excepteds List<String>

    List of HTTP headers.

    Parameter meaning depends on the value of the mode field:

    • show - List of HTTP headers to hide from response.
    • hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.

    The following headers are required and cannot be hidden from response:

    • Connection
    • Content-Length
    • Content-Type
    • Date
    • Server
    enabled boolean
    Controls the option state.
    mode string

    How HTTP headers are hidden from the response.

    Possible values:

    • show - Hide only HTTP headers listed in the excepted field.
    • hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
    excepteds string[]

    List of HTTP headers.

    Parameter meaning depends on the value of the mode field:

    • show - List of HTTP headers to hide from response.
    • hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.

    The following headers are required and cannot be hidden from response:

    • Connection
    • Content-Length
    • Content-Type
    • Date
    • Server
    enabled bool
    Controls the option state.
    mode str

    How HTTP headers are hidden from the response.

    Possible values:

    • show - Hide only HTTP headers listed in the excepted field.
    • hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
    excepteds Sequence[str]

    List of HTTP headers.

    Parameter meaning depends on the value of the mode field:

    • show - List of HTTP headers to hide from response.
    • hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.

    The following headers are required and cannot be hidden from response:

    • Connection
    • Content-Length
    • Content-Type
    • Date
    • Server
    enabled Boolean
    Controls the option state.
    mode String

    How HTTP headers are hidden from the response.

    Possible values:

    • show - Hide only HTTP headers listed in the excepted field.
    • hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
    excepteds List<String>

    List of HTTP headers.

    Parameter meaning depends on the value of the mode field:

    • show - List of HTTP headers to hide from response.
    • hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.

    The following headers are required and cannot be hidden from response:

    • Connection
    • Content-Length
    • Content-Type
    • Date
    • Server

    CdnResourceRuleOptionsRewrite, CdnResourceRuleOptionsRewriteArgs

    Body string
    Path for the Rewrite option.
    Enabled bool

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Flag string

    Flag for the Rewrite option.

    Possible values:

    • last - Stop processing the current set of ngx_http_rewrite_module directives and start a search for a new location matching changed URI.
    • break - Stop processing the current set of the Rewrite option.
    • redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with http://, https://, or $scheme.
    • permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
    Body string
    Path for the Rewrite option.
    Enabled bool

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Flag string

    Flag for the Rewrite option.

    Possible values:

    • last - Stop processing the current set of ngx_http_rewrite_module directives and start a search for a new location matching changed URI.
    • break - Stop processing the current set of the Rewrite option.
    • redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with http://, https://, or $scheme.
    • permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
    body String
    Path for the Rewrite option.
    enabled Boolean

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    flag String

    Flag for the Rewrite option.

    Possible values:

    • last - Stop processing the current set of ngx_http_rewrite_module directives and start a search for a new location matching changed URI.
    • break - Stop processing the current set of the Rewrite option.
    • redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with http://, https://, or $scheme.
    • permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
    body string
    Path for the Rewrite option.
    enabled boolean

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    flag string

    Flag for the Rewrite option.

    Possible values:

    • last - Stop processing the current set of ngx_http_rewrite_module directives and start a search for a new location matching changed URI.
    • break - Stop processing the current set of the Rewrite option.
    • redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with http://, https://, or $scheme.
    • permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
    body str
    Path for the Rewrite option.
    enabled bool

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    flag str

    Flag for the Rewrite option.

    Possible values:

    • last - Stop processing the current set of ngx_http_rewrite_module directives and start a search for a new location matching changed URI.
    • break - Stop processing the current set of the Rewrite option.
    • redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with http://, https://, or $scheme.
    • permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
    body String
    Path for the Rewrite option.
    enabled Boolean

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    flag String

    Flag for the Rewrite option.

    Possible values:

    • last - Stop processing the current set of ngx_http_rewrite_module directives and start a search for a new location matching changed URI.
    • break - Stop processing the current set of the Rewrite option.
    • redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with http://, https://, or $scheme.
    • permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".

    CdnResourceRuleOptionsSecureKey, CdnResourceRuleOptionsSecureKeyArgs

    Enabled bool
    Controls the option state.
    Key string
    Key generated on your side that will be used for URL signing.
    Type double

    Type of URL signing.

    Possible types:

    • Type 0 - Includes end user IP to secure token generation.
    • Type 2 - Excludes end user IP from secure token generation. Available values: 0, 2.
    Enabled bool
    Controls the option state.
    Key string
    Key generated on your side that will be used for URL signing.
    Type float64

    Type of URL signing.

    Possible types:

    • Type 0 - Includes end user IP to secure token generation.
    • Type 2 - Excludes end user IP from secure token generation. Available values: 0, 2.
    enabled Boolean
    Controls the option state.
    key String
    Key generated on your side that will be used for URL signing.
    type Double

    Type of URL signing.

    Possible types:

    • Type 0 - Includes end user IP to secure token generation.
    • Type 2 - Excludes end user IP from secure token generation. Available values: 0, 2.
    enabled boolean
    Controls the option state.
    key string
    Key generated on your side that will be used for URL signing.
    type number

    Type of URL signing.

    Possible types:

    • Type 0 - Includes end user IP to secure token generation.
    • Type 2 - Excludes end user IP from secure token generation. Available values: 0, 2.
    enabled bool
    Controls the option state.
    key str
    Key generated on your side that will be used for URL signing.
    type float

    Type of URL signing.

    Possible types:

    • Type 0 - Includes end user IP to secure token generation.
    • Type 2 - Excludes end user IP from secure token generation. Available values: 0, 2.
    enabled Boolean
    Controls the option state.
    key String
    Key generated on your side that will be used for URL signing.
    type Number

    Type of URL signing.

    Possible types:

    • Type 0 - Includes end user IP to secure token generation.
    • Type 2 - Excludes end user IP from secure token generation. Available values: 0, 2.

    CdnResourceRuleOptionsSlice, CdnResourceRuleOptionsSliceArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsSni, CdnResourceRuleOptionsSniArgs

    CustomHostname string
    Custom SNI hostname.
    Enabled bool

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    SniType string

    SNI (Server Name Indication) type.

    Possible values:

    • dynamic - SNI hostname depends on hostHeader and forward_host_header options. It has several possible combinations:
    • If the hostHeader option is enabled and specified, SNI hostname matches the Host header.
    • If the forward_host_header option is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN.
    • If the hostHeader and forward_host_header options are disabled, SNI hostname matches the primary CNAME.
    • custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
    CustomHostname string
    Custom SNI hostname.
    Enabled bool

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    SniType string

    SNI (Server Name Indication) type.

    Possible values:

    • dynamic - SNI hostname depends on hostHeader and forward_host_header options. It has several possible combinations:
    • If the hostHeader option is enabled and specified, SNI hostname matches the Host header.
    • If the forward_host_header option is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN.
    • If the hostHeader and forward_host_header options are disabled, SNI hostname matches the primary CNAME.
    • custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
    customHostname String
    Custom SNI hostname.
    enabled Boolean

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    sniType String

    SNI (Server Name Indication) type.

    Possible values:

    • dynamic - SNI hostname depends on hostHeader and forward_host_header options. It has several possible combinations:
    • If the hostHeader option is enabled and specified, SNI hostname matches the Host header.
    • If the forward_host_header option is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN.
    • If the hostHeader and forward_host_header options are disabled, SNI hostname matches the primary CNAME.
    • custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
    customHostname string
    Custom SNI hostname.
    enabled boolean

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    sniType string

    SNI (Server Name Indication) type.

    Possible values:

    • dynamic - SNI hostname depends on hostHeader and forward_host_header options. It has several possible combinations:
    • If the hostHeader option is enabled and specified, SNI hostname matches the Host header.
    • If the forward_host_header option is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN.
    • If the hostHeader and forward_host_header options are disabled, SNI hostname matches the primary CNAME.
    • custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
    custom_hostname str
    Custom SNI hostname.
    enabled bool

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    sni_type str

    SNI (Server Name Indication) type.

    Possible values:

    • dynamic - SNI hostname depends on hostHeader and forward_host_header options. It has several possible combinations:
    • If the hostHeader option is enabled and specified, SNI hostname matches the Host header.
    • If the forward_host_header option is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN.
    • If the hostHeader and forward_host_header options are disabled, SNI hostname matches the primary CNAME.
    • custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
    customHostname String
    Custom SNI hostname.
    enabled Boolean

    Controls the option state.

    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    sniType String

    SNI (Server Name Indication) type.

    Possible values:

    • dynamic - SNI hostname depends on hostHeader and forward_host_header options. It has several possible combinations:
    • If the hostHeader option is enabled and specified, SNI hostname matches the Host header.
    • If the forward_host_header option is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN.
    • If the hostHeader and forward_host_header options are disabled, SNI hostname matches the primary CNAME.
    • custom - custom SNI hostname is in use. Available values: "dynamic", "custom".

    CdnResourceRuleOptionsStale, CdnResourceRuleOptionsStaleArgs

    Enabled bool
    Controls the option state.
    Values List<string>
    Defines list of errors for which "Always online" option is applied.
    Enabled bool
    Controls the option state.
    Values []string
    Defines list of errors for which "Always online" option is applied.
    enabled Boolean
    Controls the option state.
    values List<String>
    Defines list of errors for which "Always online" option is applied.
    enabled boolean
    Controls the option state.
    values string[]
    Defines list of errors for which "Always online" option is applied.
    enabled bool
    Controls the option state.
    values Sequence[str]
    Defines list of errors for which "Always online" option is applied.
    enabled Boolean
    Controls the option state.
    values List<String>
    Defines list of errors for which "Always online" option is applied.

    CdnResourceRuleOptionsStaticHeaders, CdnResourceRuleOptionsStaticHeadersArgs

    Enabled bool
    Controls the option state.
    Value string

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
    Enabled bool
    Controls the option state.
    Value string

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
    enabled Boolean
    Controls the option state.
    value String

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
    enabled boolean
    Controls the option state.
    value string

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
    enabled bool
    Controls the option state.
    value str

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
    enabled Boolean
    Controls the option state.
    value String

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.

    CdnResourceRuleOptionsStaticRequestHeaders, CdnResourceRuleOptionsStaticRequestHeadersArgs

    Enabled bool
    Controls the option state.
    Value Dictionary<string, string>

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
    Enabled bool
    Controls the option state.
    Value map[string]string

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
    enabled Boolean
    Controls the option state.
    value Map<String,String>

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
    enabled boolean
    Controls the option state.
    value {[key: string]: string}

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
    enabled bool
    Controls the option state.
    value Mapping[str, str]

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
    enabled Boolean
    Controls the option state.
    value Map<String>

    A MAP for static headers in a format of header_name: header_value.

    Restrictions:

    • Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
    • Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.

    CdnResourceRuleOptionsStaticResponseHeaders, CdnResourceRuleOptionsStaticResponseHeadersArgs

    enabled Boolean
    Controls the option state.
    values List<Property Map>

    CdnResourceRuleOptionsStaticResponseHeadersValue, CdnResourceRuleOptionsStaticResponseHeadersValueArgs

    Name string
    HTTP Header name.
    Values List<string>

    Header value.

    Restrictions:

    • Maximum 512 symbols.
    • Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
    • Must start with a letter, number, asterisk or {.
    • Multiple values can be added.
    Always bool

    Defines whether the header will be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response from CDN regardless of response code.
    • false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
    Name string
    HTTP Header name.
    Values []string

    Header value.

    Restrictions:

    • Maximum 512 symbols.
    • Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
    • Must start with a letter, number, asterisk or {.
    • Multiple values can be added.
    Always bool

    Defines whether the header will be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response from CDN regardless of response code.
    • false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
    name String
    HTTP Header name.
    values List<String>

    Header value.

    Restrictions:

    • Maximum 512 symbols.
    • Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
    • Must start with a letter, number, asterisk or {.
    • Multiple values can be added.
    always Boolean

    Defines whether the header will be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response from CDN regardless of response code.
    • false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
    name string
    HTTP Header name.
    values string[]

    Header value.

    Restrictions:

    • Maximum 512 symbols.
    • Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
    • Must start with a letter, number, asterisk or {.
    • Multiple values can be added.
    always boolean

    Defines whether the header will be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response from CDN regardless of response code.
    • false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
    name str
    HTTP Header name.
    values Sequence[str]

    Header value.

    Restrictions:

    • Maximum 512 symbols.
    • Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
    • Must start with a letter, number, asterisk or {.
    • Multiple values can be added.
    always bool

    Defines whether the header will be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response from CDN regardless of response code.
    • false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
    name String
    HTTP Header name.
    values List<String>

    Header value.

    Restrictions:

    • Maximum 512 symbols.
    • Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
    • Must start with a letter, number, asterisk or {.
    • Multiple values can be added.
    always Boolean

    Defines whether the header will be added to a response from CDN regardless of response code.

    Possible values:

    • true - Header will be added to a response from CDN regardless of response code.
    • false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.

    CdnResourceRuleOptionsUserAgentAcl, CdnResourceRuleOptionsUserAgentAclArgs

    Enabled bool
    Controls the option state.
    ExceptedValues List<string>

    List of User-Agents that will be allowed/denied.

    The meaning of the parameter depends on policy_type:

    • allow - List of User-Agents for which access is prohibited.
    • deny - List of User-Agents for which access is allowed.

    You can provide exact User-Agent strings or regular expressions. Regular expressions must start with ~ (case-sensitive) or ~* (case-insensitive).

    Use an empty string "" to allow/deny access when the User-Agent header is empty.

    PolicyType string

    User-Agents policy type.

    Possible values:

    • allow - Allow access for all User-Agents except specified in excepted_values field.
    • deny - Deny access for all User-Agents except specified in excepted_values field. Available values: "allow", "deny".
    Enabled bool
    Controls the option state.
    ExceptedValues []string

    List of User-Agents that will be allowed/denied.

    The meaning of the parameter depends on policy_type:

    • allow - List of User-Agents for which access is prohibited.
    • deny - List of User-Agents for which access is allowed.

    You can provide exact User-Agent strings or regular expressions. Regular expressions must start with ~ (case-sensitive) or ~* (case-insensitive).

    Use an empty string "" to allow/deny access when the User-Agent header is empty.

    PolicyType string

    User-Agents policy type.

    Possible values:

    • allow - Allow access for all User-Agents except specified in excepted_values field.
    • deny - Deny access for all User-Agents except specified in excepted_values field. Available values: "allow", "deny".
    enabled Boolean
    Controls the option state.
    exceptedValues List<String>

    List of User-Agents that will be allowed/denied.

    The meaning of the parameter depends on policy_type:

    • allow - List of User-Agents for which access is prohibited.
    • deny - List of User-Agents for which access is allowed.

    You can provide exact User-Agent strings or regular expressions. Regular expressions must start with ~ (case-sensitive) or ~* (case-insensitive).

    Use an empty string "" to allow/deny access when the User-Agent header is empty.

    policyType String

    User-Agents policy type.

    Possible values:

    • allow - Allow access for all User-Agents except specified in excepted_values field.
    • deny - Deny access for all User-Agents except specified in excepted_values field. Available values: "allow", "deny".
    enabled boolean
    Controls the option state.
    exceptedValues string[]

    List of User-Agents that will be allowed/denied.

    The meaning of the parameter depends on policy_type:

    • allow - List of User-Agents for which access is prohibited.
    • deny - List of User-Agents for which access is allowed.

    You can provide exact User-Agent strings or regular expressions. Regular expressions must start with ~ (case-sensitive) or ~* (case-insensitive).

    Use an empty string "" to allow/deny access when the User-Agent header is empty.

    policyType string

    User-Agents policy type.

    Possible values:

    • allow - Allow access for all User-Agents except specified in excepted_values field.
    • deny - Deny access for all User-Agents except specified in excepted_values field. Available values: "allow", "deny".
    enabled bool
    Controls the option state.
    excepted_values Sequence[str]

    List of User-Agents that will be allowed/denied.

    The meaning of the parameter depends on policy_type:

    • allow - List of User-Agents for which access is prohibited.
    • deny - List of User-Agents for which access is allowed.

    You can provide exact User-Agent strings or regular expressions. Regular expressions must start with ~ (case-sensitive) or ~* (case-insensitive).

    Use an empty string "" to allow/deny access when the User-Agent header is empty.

    policy_type str

    User-Agents policy type.

    Possible values:

    • allow - Allow access for all User-Agents except specified in excepted_values field.
    • deny - Deny access for all User-Agents except specified in excepted_values field. Available values: "allow", "deny".
    enabled Boolean
    Controls the option state.
    exceptedValues List<String>

    List of User-Agents that will be allowed/denied.

    The meaning of the parameter depends on policy_type:

    • allow - List of User-Agents for which access is prohibited.
    • deny - List of User-Agents for which access is allowed.

    You can provide exact User-Agent strings or regular expressions. Regular expressions must start with ~ (case-sensitive) or ~* (case-insensitive).

    Use an empty string "" to allow/deny access when the User-Agent header is empty.

    policyType String

    User-Agents policy type.

    Possible values:

    • allow - Allow access for all User-Agents except specified in excepted_values field.
    • deny - Deny access for all User-Agents except specified in excepted_values field. Available values: "allow", "deny".

    CdnResourceRuleOptionsWaap, CdnResourceRuleOptionsWaapArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    CdnResourceRuleOptionsWebsockets, CdnResourceRuleOptionsWebsocketsArgs

    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    Enabled bool
    Controls the option state.
    Value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled boolean
    Controls the option state.
    value boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled bool
    Controls the option state.
    value bool
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.
    enabled Boolean
    Controls the option state.
    value Boolean
    Possible values:

    • true - Option is enabled.
    • false - Option is disabled.

    Import

    $ pulumi import gcore:index/cdnResourceRule:CdnResourceRule example '<resource_id>/<rule_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    Viewing docs for gcore 2.0.0-alpha.3
    published on Monday, Mar 30, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.