1. Packages
  2. Gcore Provider
  3. API Docs
  4. CdnRule
gcore 0.19.0 published on Monday, Apr 14, 2025 by g-core

gcore.CdnRule

Explore with Pulumi AI

Represent cdn resource rule

Create CdnRule Resource

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

Constructor syntax

new CdnRule(name: string, args: CdnRuleArgs, opts?: CustomResourceOptions);
@overload
def CdnRule(resource_name: str,
            args: CdnRuleArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def CdnRule(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,
            cdn_rule_id: Optional[str] = None,
            name: Optional[str] = None,
            options: Optional[CdnRuleOptionsArgs] = None,
            origin_group: Optional[float] = None,
            origin_protocol: Optional[str] = None,
            weight: Optional[float] = None)
func NewCdnRule(ctx *Context, name string, args CdnRuleArgs, opts ...ResourceOption) (*CdnRule, error)
public CdnRule(string name, CdnRuleArgs args, CustomResourceOptions? opts = null)
public CdnRule(String name, CdnRuleArgs args)
public CdnRule(String name, CdnRuleArgs args, CustomResourceOptions options)
type: gcore:CdnRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CdnRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CdnRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CdnRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CdnRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CdnRuleArgs
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 cdnRuleResource = new Gcore.CdnRule("cdnRuleResource", new()
{
    ResourceId = 0,
    Rule = "string",
    RuleType = 0,
    Active = false,
    CdnRuleId = "string",
    Name = "string",
    Options = new Gcore.Inputs.CdnRuleOptionsArgs
    {
        AllowedHttpMethods = new Gcore.Inputs.CdnRuleOptionsAllowedHttpMethodsArgs
        {
            Values = new[]
            {
                "string",
            },
            Enabled = false,
        },
        BrotliCompression = new Gcore.Inputs.CdnRuleOptionsBrotliCompressionArgs
        {
            Values = new[]
            {
                "string",
            },
            Enabled = false,
        },
        BrowserCacheSettings = new Gcore.Inputs.CdnRuleOptionsBrowserCacheSettingsArgs
        {
            Enabled = false,
            Value = "string",
        },
        Cors = new Gcore.Inputs.CdnRuleOptionsCorsArgs
        {
            Values = new[]
            {
                "string",
            },
            Always = false,
            Enabled = false,
        },
        CountryAcl = new Gcore.Inputs.CdnRuleOptionsCountryAclArgs
        {
            ExceptedValues = new[]
            {
                "string",
            },
            PolicyType = "string",
            Enabled = false,
        },
        DisableProxyForceRanges = new Gcore.Inputs.CdnRuleOptionsDisableProxyForceRangesArgs
        {
            Value = false,
            Enabled = false,
        },
        EdgeCacheSettings = new Gcore.Inputs.CdnRuleOptionsEdgeCacheSettingsArgs
        {
            CustomValues = 
            {
                { "string", "string" },
            },
            Default = "string",
            Enabled = false,
            Value = "string",
        },
        Fastedge = new Gcore.Inputs.CdnRuleOptionsFastedgeArgs
        {
            OnRequestHeaders = new Gcore.Inputs.CdnRuleOptionsFastedgeOnRequestHeadersArgs
            {
                AppId = "string",
                Enabled = false,
                ExecuteOnEdge = false,
                ExecuteOnShield = false,
                InterruptOnError = false,
            },
            Enabled = false,
        },
        FetchCompressed = new Gcore.Inputs.CdnRuleOptionsFetchCompressedArgs
        {
            Value = false,
            Enabled = false,
        },
        FollowOriginRedirect = new Gcore.Inputs.CdnRuleOptionsFollowOriginRedirectArgs
        {
            Codes = new[]
            {
                0,
            },
            Enabled = false,
        },
        ForceReturn = new Gcore.Inputs.CdnRuleOptionsForceReturnArgs
        {
            Code = 0,
            Body = "string",
            Enabled = false,
        },
        ForwardHostHeader = new Gcore.Inputs.CdnRuleOptionsForwardHostHeaderArgs
        {
            Value = false,
            Enabled = false,
        },
        GzipOn = new Gcore.Inputs.CdnRuleOptionsGzipOnArgs
        {
            Value = false,
            Enabled = false,
        },
        HostHeader = new Gcore.Inputs.CdnRuleOptionsHostHeaderArgs
        {
            Value = "string",
            Enabled = false,
        },
        IgnoreCookie = new Gcore.Inputs.CdnRuleOptionsIgnoreCookieArgs
        {
            Value = false,
            Enabled = false,
        },
        IgnoreQueryString = new Gcore.Inputs.CdnRuleOptionsIgnoreQueryStringArgs
        {
            Value = false,
            Enabled = false,
        },
        ImageStack = new Gcore.Inputs.CdnRuleOptionsImageStackArgs
        {
            Quality = 0,
            AvifEnabled = false,
            Enabled = false,
            PngLossless = false,
            WebpEnabled = false,
        },
        IpAddressAcl = new Gcore.Inputs.CdnRuleOptionsIpAddressAclArgs
        {
            ExceptedValues = new[]
            {
                "string",
            },
            PolicyType = "string",
            Enabled = false,
        },
        LimitBandwidth = new Gcore.Inputs.CdnRuleOptionsLimitBandwidthArgs
        {
            LimitType = "string",
            Buffer = 0,
            Enabled = false,
            Speed = 0,
        },
        ProxyCacheKey = new Gcore.Inputs.CdnRuleOptionsProxyCacheKeyArgs
        {
            Value = "string",
            Enabled = false,
        },
        ProxyCacheMethodsSet = new Gcore.Inputs.CdnRuleOptionsProxyCacheMethodsSetArgs
        {
            Value = false,
            Enabled = false,
        },
        ProxyConnectTimeout = new Gcore.Inputs.CdnRuleOptionsProxyConnectTimeoutArgs
        {
            Value = "string",
            Enabled = false,
        },
        ProxyReadTimeout = new Gcore.Inputs.CdnRuleOptionsProxyReadTimeoutArgs
        {
            Value = "string",
            Enabled = false,
        },
        QueryParamsBlacklist = new Gcore.Inputs.CdnRuleOptionsQueryParamsBlacklistArgs
        {
            Values = new[]
            {
                "string",
            },
            Enabled = false,
        },
        QueryParamsWhitelist = new Gcore.Inputs.CdnRuleOptionsQueryParamsWhitelistArgs
        {
            Values = new[]
            {
                "string",
            },
            Enabled = false,
        },
        QueryStringForwarding = new Gcore.Inputs.CdnRuleOptionsQueryStringForwardingArgs
        {
            ForwardFromFileTypes = new[]
            {
                "string",
            },
            ForwardToFileTypes = new[]
            {
                "string",
            },
            Enabled = false,
        },
        RedirectHttpToHttps = new Gcore.Inputs.CdnRuleOptionsRedirectHttpToHttpsArgs
        {
            Value = false,
            Enabled = false,
        },
        RedirectHttpsToHttp = new Gcore.Inputs.CdnRuleOptionsRedirectHttpsToHttpArgs
        {
            Value = false,
            Enabled = false,
        },
        ReferrerAcl = new Gcore.Inputs.CdnRuleOptionsReferrerAclArgs
        {
            ExceptedValues = new[]
            {
                "string",
            },
            PolicyType = "string",
            Enabled = false,
        },
        RequestLimiter = new Gcore.Inputs.CdnRuleOptionsRequestLimiterArgs
        {
            Burst = 0,
            Rate = 0,
            Delay = 0,
            Enabled = false,
            RateUnit = "string",
        },
        ResponseHeadersHidingPolicy = new Gcore.Inputs.CdnRuleOptionsResponseHeadersHidingPolicyArgs
        {
            Excepteds = new[]
            {
                "string",
            },
            Mode = "string",
            Enabled = false,
        },
        Rewrite = new Gcore.Inputs.CdnRuleOptionsRewriteArgs
        {
            Body = "string",
            Enabled = false,
            Flag = "string",
        },
        SecureKey = new Gcore.Inputs.CdnRuleOptionsSecureKeyArgs
        {
            Key = "string",
            Type = 0,
            Enabled = false,
        },
        Slice = new Gcore.Inputs.CdnRuleOptionsSliceArgs
        {
            Value = false,
            Enabled = false,
        },
        Sni = new Gcore.Inputs.CdnRuleOptionsSniArgs
        {
            CustomHostname = "string",
            Enabled = false,
            SniType = "string",
        },
        Stale = new Gcore.Inputs.CdnRuleOptionsStaleArgs
        {
            Values = new[]
            {
                "string",
            },
            Enabled = false,
        },
        StaticRequestHeaders = new Gcore.Inputs.CdnRuleOptionsStaticRequestHeadersArgs
        {
            Value = 
            {
                { "string", "string" },
            },
            Enabled = false,
        },
        StaticResponseHeaders = new Gcore.Inputs.CdnRuleOptionsStaticResponseHeadersArgs
        {
            Values = new[]
            {
                new Gcore.Inputs.CdnRuleOptionsStaticResponseHeadersValueArgs
                {
                    Name = "string",
                    Values = new[]
                    {
                        "string",
                    },
                    Always = false,
                },
            },
            Enabled = false,
        },
        UserAgentAcl = new Gcore.Inputs.CdnRuleOptionsUserAgentAclArgs
        {
            ExceptedValues = new[]
            {
                "string",
            },
            PolicyType = "string",
            Enabled = false,
        },
        Waap = new Gcore.Inputs.CdnRuleOptionsWaapArgs
        {
            Value = false,
            Enabled = false,
        },
        Waf = new Gcore.Inputs.CdnRuleOptionsWafArgs
        {
            Value = false,
            Enabled = false,
        },
        Websockets = new Gcore.Inputs.CdnRuleOptionsWebsocketsArgs
        {
            Value = false,
            Enabled = false,
        },
    },
    OriginGroup = 0,
    OriginProtocol = "string",
    Weight = 0,
});
Copy
example, err := gcore.NewCdnRule(ctx, "cdnRuleResource", &gcore.CdnRuleArgs{
ResourceId: pulumi.Float64(0),
Rule: pulumi.String("string"),
RuleType: pulumi.Float64(0),
Active: pulumi.Bool(false),
CdnRuleId: pulumi.String("string"),
Name: pulumi.String("string"),
Options: &.CdnRuleOptionsArgs{
AllowedHttpMethods: &.CdnRuleOptionsAllowedHttpMethodsArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
BrotliCompression: &.CdnRuleOptionsBrotliCompressionArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
BrowserCacheSettings: &.CdnRuleOptionsBrowserCacheSettingsArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
Cors: &.CdnRuleOptionsCorsArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Always: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
CountryAcl: &.CdnRuleOptionsCountryAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
DisableProxyForceRanges: &.CdnRuleOptionsDisableProxyForceRangesArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
EdgeCacheSettings: &.CdnRuleOptionsEdgeCacheSettingsArgs{
CustomValues: pulumi.StringMap{
"string": pulumi.String("string"),
},
Default: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
Fastedge: &.CdnRuleOptionsFastedgeArgs{
OnRequestHeaders: &.CdnRuleOptionsFastedgeOnRequestHeadersArgs{
AppId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ExecuteOnEdge: pulumi.Bool(false),
ExecuteOnShield: pulumi.Bool(false),
InterruptOnError: pulumi.Bool(false),
},
Enabled: pulumi.Bool(false),
},
FetchCompressed: &.CdnRuleOptionsFetchCompressedArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
FollowOriginRedirect: &.CdnRuleOptionsFollowOriginRedirectArgs{
Codes: pulumi.Float64Array{
pulumi.Float64(0),
},
Enabled: pulumi.Bool(false),
},
ForceReturn: &.CdnRuleOptionsForceReturnArgs{
Code: pulumi.Float64(0),
Body: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
ForwardHostHeader: &.CdnRuleOptionsForwardHostHeaderArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
GzipOn: &.CdnRuleOptionsGzipOnArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
HostHeader: &.CdnRuleOptionsHostHeaderArgs{
Value: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
IgnoreCookie: &.CdnRuleOptionsIgnoreCookieArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
IgnoreQueryString: &.CdnRuleOptionsIgnoreQueryStringArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
ImageStack: &.CdnRuleOptionsImageStackArgs{
Quality: pulumi.Float64(0),
AvifEnabled: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
PngLossless: pulumi.Bool(false),
WebpEnabled: pulumi.Bool(false),
},
IpAddressAcl: &.CdnRuleOptionsIpAddressAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
LimitBandwidth: &.CdnRuleOptionsLimitBandwidthArgs{
LimitType: pulumi.String("string"),
Buffer: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
Speed: pulumi.Float64(0),
},
ProxyCacheKey: &.CdnRuleOptionsProxyCacheKeyArgs{
Value: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
ProxyCacheMethodsSet: &.CdnRuleOptionsProxyCacheMethodsSetArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
ProxyConnectTimeout: &.CdnRuleOptionsProxyConnectTimeoutArgs{
Value: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
ProxyReadTimeout: &.CdnRuleOptionsProxyReadTimeoutArgs{
Value: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
QueryParamsBlacklist: &.CdnRuleOptionsQueryParamsBlacklistArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
QueryParamsWhitelist: &.CdnRuleOptionsQueryParamsWhitelistArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
QueryStringForwarding: &.CdnRuleOptionsQueryStringForwardingArgs{
ForwardFromFileTypes: pulumi.StringArray{
pulumi.String("string"),
},
ForwardToFileTypes: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
RedirectHttpToHttps: &.CdnRuleOptionsRedirectHttpToHttpsArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
RedirectHttpsToHttp: &.CdnRuleOptionsRedirectHttpsToHttpArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
ReferrerAcl: &.CdnRuleOptionsReferrerAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
RequestLimiter: &.CdnRuleOptionsRequestLimiterArgs{
Burst: pulumi.Float64(0),
Rate: pulumi.Float64(0),
Delay: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
RateUnit: pulumi.String("string"),
},
ResponseHeadersHidingPolicy: &.CdnRuleOptionsResponseHeadersHidingPolicyArgs{
Excepteds: pulumi.StringArray{
pulumi.String("string"),
},
Mode: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
Rewrite: &.CdnRuleOptionsRewriteArgs{
Body: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Flag: pulumi.String("string"),
},
SecureKey: &.CdnRuleOptionsSecureKeyArgs{
Key: pulumi.String("string"),
Type: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
},
Slice: &.CdnRuleOptionsSliceArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
Sni: &.CdnRuleOptionsSniArgs{
CustomHostname: pulumi.String("string"),
Enabled: pulumi.Bool(false),
SniType: pulumi.String("string"),
},
Stale: &.CdnRuleOptionsStaleArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
StaticRequestHeaders: &.CdnRuleOptionsStaticRequestHeadersArgs{
Value: pulumi.StringMap{
"string": pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
StaticResponseHeaders: &.CdnRuleOptionsStaticResponseHeadersArgs{
Values: .CdnRuleOptionsStaticResponseHeadersValueArray{
&.CdnRuleOptionsStaticResponseHeadersValueArgs{
Name: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
Always: pulumi.Bool(false),
},
},
Enabled: pulumi.Bool(false),
},
UserAgentAcl: &.CdnRuleOptionsUserAgentAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
Waap: &.CdnRuleOptionsWaapArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
Waf: &.CdnRuleOptionsWafArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
Websockets: &.CdnRuleOptionsWebsocketsArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
},
OriginGroup: pulumi.Float64(0),
OriginProtocol: pulumi.String("string"),
Weight: pulumi.Float64(0),
})
Copy
var cdnRuleResource = new CdnRule("cdnRuleResource", CdnRuleArgs.builder()
    .resourceId(0)
    .rule("string")
    .ruleType(0)
    .active(false)
    .cdnRuleId("string")
    .name("string")
    .options(CdnRuleOptionsArgs.builder()
        .allowedHttpMethods(CdnRuleOptionsAllowedHttpMethodsArgs.builder()
            .values("string")
            .enabled(false)
            .build())
        .brotliCompression(CdnRuleOptionsBrotliCompressionArgs.builder()
            .values("string")
            .enabled(false)
            .build())
        .browserCacheSettings(CdnRuleOptionsBrowserCacheSettingsArgs.builder()
            .enabled(false)
            .value("string")
            .build())
        .cors(CdnRuleOptionsCorsArgs.builder()
            .values("string")
            .always(false)
            .enabled(false)
            .build())
        .countryAcl(CdnRuleOptionsCountryAclArgs.builder()
            .exceptedValues("string")
            .policyType("string")
            .enabled(false)
            .build())
        .disableProxyForceRanges(CdnRuleOptionsDisableProxyForceRangesArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .edgeCacheSettings(CdnRuleOptionsEdgeCacheSettingsArgs.builder()
            .customValues(Map.of("string", "string"))
            .default_("string")
            .enabled(false)
            .value("string")
            .build())
        .fastedge(CdnRuleOptionsFastedgeArgs.builder()
            .onRequestHeaders(CdnRuleOptionsFastedgeOnRequestHeadersArgs.builder()
                .appId("string")
                .enabled(false)
                .executeOnEdge(false)
                .executeOnShield(false)
                .interruptOnError(false)
                .build())
            .enabled(false)
            .build())
        .fetchCompressed(CdnRuleOptionsFetchCompressedArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .followOriginRedirect(CdnRuleOptionsFollowOriginRedirectArgs.builder()
            .codes(0)
            .enabled(false)
            .build())
        .forceReturn(CdnRuleOptionsForceReturnArgs.builder()
            .code(0)
            .body("string")
            .enabled(false)
            .build())
        .forwardHostHeader(CdnRuleOptionsForwardHostHeaderArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .gzipOn(CdnRuleOptionsGzipOnArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .hostHeader(CdnRuleOptionsHostHeaderArgs.builder()
            .value("string")
            .enabled(false)
            .build())
        .ignoreCookie(CdnRuleOptionsIgnoreCookieArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .ignoreQueryString(CdnRuleOptionsIgnoreQueryStringArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .imageStack(CdnRuleOptionsImageStackArgs.builder()
            .quality(0)
            .avifEnabled(false)
            .enabled(false)
            .pngLossless(false)
            .webpEnabled(false)
            .build())
        .ipAddressAcl(CdnRuleOptionsIpAddressAclArgs.builder()
            .exceptedValues("string")
            .policyType("string")
            .enabled(false)
            .build())
        .limitBandwidth(CdnRuleOptionsLimitBandwidthArgs.builder()
            .limitType("string")
            .buffer(0)
            .enabled(false)
            .speed(0)
            .build())
        .proxyCacheKey(CdnRuleOptionsProxyCacheKeyArgs.builder()
            .value("string")
            .enabled(false)
            .build())
        .proxyCacheMethodsSet(CdnRuleOptionsProxyCacheMethodsSetArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .proxyConnectTimeout(CdnRuleOptionsProxyConnectTimeoutArgs.builder()
            .value("string")
            .enabled(false)
            .build())
        .proxyReadTimeout(CdnRuleOptionsProxyReadTimeoutArgs.builder()
            .value("string")
            .enabled(false)
            .build())
        .queryParamsBlacklist(CdnRuleOptionsQueryParamsBlacklistArgs.builder()
            .values("string")
            .enabled(false)
            .build())
        .queryParamsWhitelist(CdnRuleOptionsQueryParamsWhitelistArgs.builder()
            .values("string")
            .enabled(false)
            .build())
        .queryStringForwarding(CdnRuleOptionsQueryStringForwardingArgs.builder()
            .forwardFromFileTypes("string")
            .forwardToFileTypes("string")
            .enabled(false)
            .build())
        .redirectHttpToHttps(CdnRuleOptionsRedirectHttpToHttpsArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .redirectHttpsToHttp(CdnRuleOptionsRedirectHttpsToHttpArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .referrerAcl(CdnRuleOptionsReferrerAclArgs.builder()
            .exceptedValues("string")
            .policyType("string")
            .enabled(false)
            .build())
        .requestLimiter(CdnRuleOptionsRequestLimiterArgs.builder()
            .burst(0)
            .rate(0)
            .delay(0)
            .enabled(false)
            .rateUnit("string")
            .build())
        .responseHeadersHidingPolicy(CdnRuleOptionsResponseHeadersHidingPolicyArgs.builder()
            .excepteds("string")
            .mode("string")
            .enabled(false)
            .build())
        .rewrite(CdnRuleOptionsRewriteArgs.builder()
            .body("string")
            .enabled(false)
            .flag("string")
            .build())
        .secureKey(CdnRuleOptionsSecureKeyArgs.builder()
            .key("string")
            .type(0)
            .enabled(false)
            .build())
        .slice(CdnRuleOptionsSliceArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .sni(CdnRuleOptionsSniArgs.builder()
            .customHostname("string")
            .enabled(false)
            .sniType("string")
            .build())
        .stale(CdnRuleOptionsStaleArgs.builder()
            .values("string")
            .enabled(false)
            .build())
        .staticRequestHeaders(CdnRuleOptionsStaticRequestHeadersArgs.builder()
            .value(Map.of("string", "string"))
            .enabled(false)
            .build())
        .staticResponseHeaders(CdnRuleOptionsStaticResponseHeadersArgs.builder()
            .values(CdnRuleOptionsStaticResponseHeadersValueArgs.builder()
                .name("string")
                .values("string")
                .always(false)
                .build())
            .enabled(false)
            .build())
        .userAgentAcl(CdnRuleOptionsUserAgentAclArgs.builder()
            .exceptedValues("string")
            .policyType("string")
            .enabled(false)
            .build())
        .waap(CdnRuleOptionsWaapArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .waf(CdnRuleOptionsWafArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .websockets(CdnRuleOptionsWebsocketsArgs.builder()
            .value(false)
            .enabled(false)
            .build())
        .build())
    .originGroup(0)
    .originProtocol("string")
    .weight(0)
    .build());
Copy
cdn_rule_resource = gcore.CdnRule("cdnRuleResource",
    resource_id=0,
    rule="string",
    rule_type=0,
    active=False,
    cdn_rule_id="string",
    name="string",
    options={
        "allowed_http_methods": {
            "values": ["string"],
            "enabled": False,
        },
        "brotli_compression": {
            "values": ["string"],
            "enabled": False,
        },
        "browser_cache_settings": {
            "enabled": False,
            "value": "string",
        },
        "cors": {
            "values": ["string"],
            "always": False,
            "enabled": False,
        },
        "country_acl": {
            "excepted_values": ["string"],
            "policy_type": "string",
            "enabled": False,
        },
        "disable_proxy_force_ranges": {
            "value": False,
            "enabled": False,
        },
        "edge_cache_settings": {
            "custom_values": {
                "string": "string",
            },
            "default": "string",
            "enabled": False,
            "value": "string",
        },
        "fastedge": {
            "on_request_headers": {
                "app_id": "string",
                "enabled": False,
                "execute_on_edge": False,
                "execute_on_shield": False,
                "interrupt_on_error": False,
            },
            "enabled": False,
        },
        "fetch_compressed": {
            "value": False,
            "enabled": False,
        },
        "follow_origin_redirect": {
            "codes": [0],
            "enabled": False,
        },
        "force_return": {
            "code": 0,
            "body": "string",
            "enabled": False,
        },
        "forward_host_header": {
            "value": False,
            "enabled": False,
        },
        "gzip_on": {
            "value": False,
            "enabled": False,
        },
        "host_header": {
            "value": "string",
            "enabled": False,
        },
        "ignore_cookie": {
            "value": False,
            "enabled": False,
        },
        "ignore_query_string": {
            "value": False,
            "enabled": False,
        },
        "image_stack": {
            "quality": 0,
            "avif_enabled": False,
            "enabled": False,
            "png_lossless": False,
            "webp_enabled": False,
        },
        "ip_address_acl": {
            "excepted_values": ["string"],
            "policy_type": "string",
            "enabled": False,
        },
        "limit_bandwidth": {
            "limit_type": "string",
            "buffer": 0,
            "enabled": False,
            "speed": 0,
        },
        "proxy_cache_key": {
            "value": "string",
            "enabled": False,
        },
        "proxy_cache_methods_set": {
            "value": False,
            "enabled": False,
        },
        "proxy_connect_timeout": {
            "value": "string",
            "enabled": False,
        },
        "proxy_read_timeout": {
            "value": "string",
            "enabled": False,
        },
        "query_params_blacklist": {
            "values": ["string"],
            "enabled": False,
        },
        "query_params_whitelist": {
            "values": ["string"],
            "enabled": False,
        },
        "query_string_forwarding": {
            "forward_from_file_types": ["string"],
            "forward_to_file_types": ["string"],
            "enabled": False,
        },
        "redirect_http_to_https": {
            "value": False,
            "enabled": False,
        },
        "redirect_https_to_http": {
            "value": False,
            "enabled": False,
        },
        "referrer_acl": {
            "excepted_values": ["string"],
            "policy_type": "string",
            "enabled": False,
        },
        "request_limiter": {
            "burst": 0,
            "rate": 0,
            "delay": 0,
            "enabled": False,
            "rate_unit": "string",
        },
        "response_headers_hiding_policy": {
            "excepteds": ["string"],
            "mode": "string",
            "enabled": False,
        },
        "rewrite": {
            "body": "string",
            "enabled": False,
            "flag": "string",
        },
        "secure_key": {
            "key": "string",
            "type": 0,
            "enabled": False,
        },
        "slice": {
            "value": False,
            "enabled": False,
        },
        "sni": {
            "custom_hostname": "string",
            "enabled": False,
            "sni_type": "string",
        },
        "stale": {
            "values": ["string"],
            "enabled": False,
        },
        "static_request_headers": {
            "value": {
                "string": "string",
            },
            "enabled": False,
        },
        "static_response_headers": {
            "values": [{
                "name": "string",
                "values": ["string"],
                "always": False,
            }],
            "enabled": False,
        },
        "user_agent_acl": {
            "excepted_values": ["string"],
            "policy_type": "string",
            "enabled": False,
        },
        "waap": {
            "value": False,
            "enabled": False,
        },
        "waf": {
            "value": False,
            "enabled": False,
        },
        "websockets": {
            "value": False,
            "enabled": False,
        },
    },
    origin_group=0,
    origin_protocol="string",
    weight=0)
Copy
const cdnRuleResource = new gcore.CdnRule("cdnRuleResource", {
    resourceId: 0,
    rule: "string",
    ruleType: 0,
    active: false,
    cdnRuleId: "string",
    name: "string",
    options: {
        allowedHttpMethods: {
            values: ["string"],
            enabled: false,
        },
        brotliCompression: {
            values: ["string"],
            enabled: false,
        },
        browserCacheSettings: {
            enabled: false,
            value: "string",
        },
        cors: {
            values: ["string"],
            always: false,
            enabled: false,
        },
        countryAcl: {
            exceptedValues: ["string"],
            policyType: "string",
            enabled: false,
        },
        disableProxyForceRanges: {
            value: false,
            enabled: false,
        },
        edgeCacheSettings: {
            customValues: {
                string: "string",
            },
            "default": "string",
            enabled: false,
            value: "string",
        },
        fastedge: {
            onRequestHeaders: {
                appId: "string",
                enabled: false,
                executeOnEdge: false,
                executeOnShield: false,
                interruptOnError: false,
            },
            enabled: false,
        },
        fetchCompressed: {
            value: false,
            enabled: false,
        },
        followOriginRedirect: {
            codes: [0],
            enabled: false,
        },
        forceReturn: {
            code: 0,
            body: "string",
            enabled: false,
        },
        forwardHostHeader: {
            value: false,
            enabled: false,
        },
        gzipOn: {
            value: false,
            enabled: false,
        },
        hostHeader: {
            value: "string",
            enabled: false,
        },
        ignoreCookie: {
            value: false,
            enabled: false,
        },
        ignoreQueryString: {
            value: false,
            enabled: false,
        },
        imageStack: {
            quality: 0,
            avifEnabled: false,
            enabled: false,
            pngLossless: false,
            webpEnabled: false,
        },
        ipAddressAcl: {
            exceptedValues: ["string"],
            policyType: "string",
            enabled: false,
        },
        limitBandwidth: {
            limitType: "string",
            buffer: 0,
            enabled: false,
            speed: 0,
        },
        proxyCacheKey: {
            value: "string",
            enabled: false,
        },
        proxyCacheMethodsSet: {
            value: false,
            enabled: false,
        },
        proxyConnectTimeout: {
            value: "string",
            enabled: false,
        },
        proxyReadTimeout: {
            value: "string",
            enabled: false,
        },
        queryParamsBlacklist: {
            values: ["string"],
            enabled: false,
        },
        queryParamsWhitelist: {
            values: ["string"],
            enabled: false,
        },
        queryStringForwarding: {
            forwardFromFileTypes: ["string"],
            forwardToFileTypes: ["string"],
            enabled: false,
        },
        redirectHttpToHttps: {
            value: false,
            enabled: false,
        },
        redirectHttpsToHttp: {
            value: false,
            enabled: false,
        },
        referrerAcl: {
            exceptedValues: ["string"],
            policyType: "string",
            enabled: false,
        },
        requestLimiter: {
            burst: 0,
            rate: 0,
            delay: 0,
            enabled: false,
            rateUnit: "string",
        },
        responseHeadersHidingPolicy: {
            excepteds: ["string"],
            mode: "string",
            enabled: false,
        },
        rewrite: {
            body: "string",
            enabled: false,
            flag: "string",
        },
        secureKey: {
            key: "string",
            type: 0,
            enabled: false,
        },
        slice: {
            value: false,
            enabled: false,
        },
        sni: {
            customHostname: "string",
            enabled: false,
            sniType: "string",
        },
        stale: {
            values: ["string"],
            enabled: false,
        },
        staticRequestHeaders: {
            value: {
                string: "string",
            },
            enabled: false,
        },
        staticResponseHeaders: {
            values: [{
                name: "string",
                values: ["string"],
                always: false,
            }],
            enabled: false,
        },
        userAgentAcl: {
            exceptedValues: ["string"],
            policyType: "string",
            enabled: false,
        },
        waap: {
            value: false,
            enabled: false,
        },
        waf: {
            value: false,
            enabled: false,
        },
        websockets: {
            value: false,
            enabled: false,
        },
    },
    originGroup: 0,
    originProtocol: "string",
    weight: 0,
});
Copy
type: gcore:CdnRule
properties:
    active: false
    cdnRuleId: string
    name: string
    options:
        allowedHttpMethods:
            enabled: false
            values:
                - string
        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
            onRequestHeaders:
                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
        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
            forwardFromFileTypes:
                - 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
        waf:
            enabled: false
            value: false
        websockets:
            enabled: false
            value: false
    originGroup: 0
    originProtocol: string
    resourceId: 0
    rule: string
    ruleType: 0
    weight: 0
Copy

CdnRule 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 CdnRule resource accepts the following input properties:

ResourceId This property is required. double
Rule This property is required. string
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
RuleType This property is required. double
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
Active bool
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
CdnRuleId string
The ID of this resource.
Name string
Rule name
Options CdnRuleOptions
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
OriginGroup double
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
OriginProtocol string
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
Weight double
Rule weight that determines rule execution order: from the smallest (0) to the highest.
ResourceId This property is required. float64
Rule This property is required. string
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
RuleType This property is required. float64
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
Active bool
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
CdnRuleId string
The ID of this resource.
Name string
Rule name
Options CdnRuleOptionsArgs
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
OriginGroup float64
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
OriginProtocol string
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
Weight float64
Rule weight that determines rule execution order: from the smallest (0) to the highest.
resourceId This property is required. Double
rule This property is required. String
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
ruleType This property is required. Double
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
active Boolean
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
cdnRuleId String
The ID of this resource.
name String
Rule name
options CdnRuleOptions
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
originGroup Double
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
originProtocol String
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
weight Double
Rule weight that determines rule execution order: from the smallest (0) to the highest.
resourceId This property is required. number
rule This property is required. string
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
ruleType This property is required. number
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
active boolean
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
cdnRuleId string
The ID of this resource.
name string
Rule name
options CdnRuleOptions
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
originGroup number
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
originProtocol string
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
weight number
Rule weight that determines rule execution order: from the smallest (0) to the highest.
resource_id This property is required. float
rule This property is required. str
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
rule_type This property is required. float
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
active bool
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
cdn_rule_id str
The ID of this resource.
name str
Rule name
options CdnRuleOptionsArgs
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
origin_group float
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
origin_protocol str
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
weight float
Rule weight that determines rule execution order: from the smallest (0) to the highest.
resourceId This property is required. Number
rule This property is required. String
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
ruleType This property is required. Number
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
active Boolean
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
cdnRuleId String
The ID of this resource.
name String
Rule name
options Property Map
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
originGroup Number
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
originProtocol String
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
weight Number
Rule weight that determines rule execution order: from the smallest (0) to the highest.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CdnRule Resource

Get an existing CdnRule 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?: CdnRuleState, opts?: CustomResourceOptions): CdnRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        active: Optional[bool] = None,
        cdn_rule_id: Optional[str] = None,
        name: Optional[str] = None,
        options: Optional[CdnRuleOptionsArgs] = None,
        origin_group: Optional[float] = None,
        origin_protocol: Optional[str] = None,
        resource_id: Optional[float] = None,
        rule: Optional[str] = None,
        rule_type: Optional[float] = None,
        weight: Optional[float] = None) -> CdnRule
func GetCdnRule(ctx *Context, name string, id IDInput, state *CdnRuleState, opts ...ResourceOption) (*CdnRule, error)
public static CdnRule Get(string name, Input<string> id, CdnRuleState? state, CustomResourceOptions? opts = null)
public static CdnRule get(String name, Output<String> id, CdnRuleState state, CustomResourceOptions options)
resources:  _:    type: gcore:CdnRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
CdnRuleId string
The ID of this resource.
Name string
Rule name
Options CdnRuleOptions
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
OriginGroup double
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
OriginProtocol string
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
ResourceId double
Rule string
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
RuleType double
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
Weight double
Rule weight that determines rule execution order: from the smallest (0) to the highest.
Active bool
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
CdnRuleId string
The ID of this resource.
Name string
Rule name
Options CdnRuleOptionsArgs
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
OriginGroup float64
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
OriginProtocol string
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
ResourceId float64
Rule string
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
RuleType float64
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
Weight float64
Rule weight that determines rule execution order: from the smallest (0) to the highest.
active Boolean
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
cdnRuleId String
The ID of this resource.
name String
Rule name
options CdnRuleOptions
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
originGroup Double
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
originProtocol String
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
resourceId Double
rule String
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
ruleType Double
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
weight Double
Rule weight that determines rule execution order: from the smallest (0) to the highest.
active boolean
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
cdnRuleId string
The ID of this resource.
name string
Rule name
options CdnRuleOptions
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
originGroup number
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
originProtocol string
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
resourceId number
rule string
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
ruleType number
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
weight number
Rule weight that determines rule execution order: from the smallest (0) to the highest.
active bool
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
cdn_rule_id str
The ID of this resource.
name str
Rule name
options CdnRuleOptionsArgs
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
origin_group float
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
origin_protocol str
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
resource_id float
rule str
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
rule_type float
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
weight float
Rule weight that determines rule execution order: from the smallest (0) to the highest.
active Boolean
The setting allows to enable or disable a Rule. If not specified, it will be enabled.
cdnRuleId String
The ID of this resource.
name String
Rule name
options Property Map
Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
originGroup Number
ID of the Origins Group. Use one of your Origins Group or create a new one. You can use either 'origin' parameter or 'originGroup' in the resource definition.
originProtocol String
This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
resourceId Number
rule String
A pattern that defines when the rule is triggered. By default, we add a leading forward slash to any rule pattern. Specify a pattern without a forward slash.
ruleType Number
Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.
weight Number
Rule weight that determines rule execution order: from the smallest (0) to the highest.

Supporting Types

CdnRuleOptions
, CdnRuleOptionsArgs

AllowedHttpMethods CdnRuleOptionsAllowedHttpMethods
Specify allowed HTTP methods.
BrotliCompression CdnRuleOptionsBrotliCompression
Brotli compression option allows to compress content with brotli on the CDN's end. CDN servers will request only uncompressed content from the origin.
BrowserCacheSettings CdnRuleOptionsBrowserCacheSettings
Specify the cache expiration time for customers' browsers in seconds.
Cors CdnRuleOptionsCors
CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
CountryAcl CdnRuleOptionsCountryAcl
Country access policy enables control access to content for specified countries.
DisableProxyForceRanges CdnRuleOptionsDisableProxyForceRanges
The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
EdgeCacheSettings CdnRuleOptionsEdgeCacheSettings
The cache expiration time for CDN servers.
Fastedge CdnRuleOptionsFastedge
Allows to configure FastEdge app to be called on different request/response phases.
FetchCompressed CdnRuleOptionsFetchCompressed
Option allows to enable fetch compressed. CDN request and cache already compressed content. Your server should support compression. CDN servers will not ungzip your content even if a user's browser doesn't accept compression (nowadays almost all browsers support it).
FollowOriginRedirect CdnRuleOptionsFollowOriginRedirect
Enable 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 CdnRuleOptionsForceReturn
Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you are going to set up redirect.
ForwardHostHeader CdnRuleOptionsForwardHostHeader
When a CDN requests content from an origin server, the option allows to forward the Host header used in the request made to a CDN.
GzipOn CdnRuleOptionsGzipOn
GZip compression option allows to compress content with gzip on the CDN`s end. CDN servers will request only uncompressed content from the origin.
HostHeader CdnRuleOptionsHostHeader
Option allows to set 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, Host Header value is taken from the parent CDN resource's value.
IgnoreCookie CdnRuleOptionsIgnoreCookie
By default, files pulled from an origin source with cookies are not cached in a CDN. Enable this option to cache such objects.
IgnoreQueryString CdnRuleOptionsIgnoreQueryString
Ignore query string option determines how files with different query strings will be cached: either as one object (option is enabled) or as different objects (option is disabled).
ImageStack CdnRuleOptionsImageStack
Image stack option allows transforming JPG and PNG images (such as resizing or cropping) and automatically converting them to WebP or AVIF format. It is a paid option.
IpAddressAcl CdnRuleOptionsIpAddressAcl
IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
LimitBandwidth CdnRuleOptionsLimitBandwidth
The option allows to control the download speed per connection.
ProxyCacheKey CdnRuleOptionsProxyCacheKey
The option allows to modify the cache key. If omitted, the default value is $request*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 CdnRuleOptionsProxyCacheMethodsSet
Allows caching for GET, HEAD and POST requests.
ProxyConnectTimeout CdnRuleOptionsProxyConnectTimeout
The time limit for establishing a connection with the origin.
ProxyReadTimeout CdnRuleOptionsProxyReadTimeout
The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
QueryParamsBlacklist CdnRuleOptionsQueryParamsBlacklist
Specify list of query strings. Files with those query strings will be cached as one object.
QueryParamsWhitelist CdnRuleOptionsQueryParamsWhitelist
Specify list of query strings. Files with those query strings will be cached as different objects.
QueryStringForwarding CdnRuleOptionsQueryStringForwarding
The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
RedirectHttpToHttps CdnRuleOptionsRedirectHttpToHttps
When enabled, HTTP requests are redirected to HTTPS.
RedirectHttpsToHttp CdnRuleOptionsRedirectHttpsToHttp
When enabled, HTTPS requests are redirected to HTTP.
ReferrerAcl CdnRuleOptionsReferrerAcl
Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
RequestLimiter CdnRuleOptionsRequestLimiter
It allows to limit the amount of HTTP requests
ResponseHeadersHidingPolicy CdnRuleOptionsResponseHeadersHidingPolicy
Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
Rewrite CdnRuleOptionsRewrite
Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
SecureKey CdnRuleOptionsSecureKey
The option allows configuring an access with tokenized URLs. It makes impossible to access content without a valid (unexpired) hash key. When enabled, you need to specify a key that you use to generate a token.
Slice CdnRuleOptionsSlice
When enabled, files larger than 10 MB are requested and cached in parts (no larger than 10 MB each). It reduces time to first byte. The origin must support HTTP Range requests.
Sni CdnRuleOptionsSni
Specify the SNI (Server Name Indication). SNI (Server Name Indication) is generally only required if your origin is using 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 CdnRuleOptionsStale
The list of errors which Always Online option is applied for.
StaticRequestHeaders CdnRuleOptionsStaticRequestHeaders
Specify custom HTTP Headers for a CDN server to add to request.
StaticResponseHeaders CdnRuleOptionsStaticResponseHeaders
Specify custom HTTP Headers that a CDN server adds to a response.
UserAgentAcl CdnRuleOptionsUserAgentAcl
User agents policy option allows to control access to the content for specified user-agent.
Waap CdnRuleOptionsWaap
Option allows to enable WAAP (Web Application and API Protection).
Waf CdnRuleOptionsWaf
Option allows to enable Basic WAF to protect you against the most common threats.
Websockets CdnRuleOptionsWebsockets
WebSockets option allows WebSockets connections to an origin server.
AllowedHttpMethods CdnRuleOptionsAllowedHttpMethods
Specify allowed HTTP methods.
BrotliCompression CdnRuleOptionsBrotliCompression
Brotli compression option allows to compress content with brotli on the CDN's end. CDN servers will request only uncompressed content from the origin.
BrowserCacheSettings CdnRuleOptionsBrowserCacheSettings
Specify the cache expiration time for customers' browsers in seconds.
Cors CdnRuleOptionsCors
CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
CountryAcl CdnRuleOptionsCountryAcl
Country access policy enables control access to content for specified countries.
DisableProxyForceRanges CdnRuleOptionsDisableProxyForceRanges
The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
EdgeCacheSettings CdnRuleOptionsEdgeCacheSettings
The cache expiration time for CDN servers.
Fastedge CdnRuleOptionsFastedge
Allows to configure FastEdge app to be called on different request/response phases.
FetchCompressed CdnRuleOptionsFetchCompressed
Option allows to enable fetch compressed. CDN request and cache already compressed content. Your server should support compression. CDN servers will not ungzip your content even if a user's browser doesn't accept compression (nowadays almost all browsers support it).
FollowOriginRedirect CdnRuleOptionsFollowOriginRedirect
Enable 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 CdnRuleOptionsForceReturn
Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you are going to set up redirect.
ForwardHostHeader CdnRuleOptionsForwardHostHeader
When a CDN requests content from an origin server, the option allows to forward the Host header used in the request made to a CDN.
GzipOn CdnRuleOptionsGzipOn
GZip compression option allows to compress content with gzip on the CDN`s end. CDN servers will request only uncompressed content from the origin.
HostHeader CdnRuleOptionsHostHeader
Option allows to set 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, Host Header value is taken from the parent CDN resource's value.
IgnoreCookie CdnRuleOptionsIgnoreCookie
By default, files pulled from an origin source with cookies are not cached in a CDN. Enable this option to cache such objects.
IgnoreQueryString CdnRuleOptionsIgnoreQueryString
Ignore query string option determines how files with different query strings will be cached: either as one object (option is enabled) or as different objects (option is disabled).
ImageStack CdnRuleOptionsImageStack
Image stack option allows transforming JPG and PNG images (such as resizing or cropping) and automatically converting them to WebP or AVIF format. It is a paid option.
IpAddressAcl CdnRuleOptionsIpAddressAcl
IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
LimitBandwidth CdnRuleOptionsLimitBandwidth
The option allows to control the download speed per connection.
ProxyCacheKey CdnRuleOptionsProxyCacheKey
The option allows to modify the cache key. If omitted, the default value is $request*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 CdnRuleOptionsProxyCacheMethodsSet
Allows caching for GET, HEAD and POST requests.
ProxyConnectTimeout CdnRuleOptionsProxyConnectTimeout
The time limit for establishing a connection with the origin.
ProxyReadTimeout CdnRuleOptionsProxyReadTimeout
The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
QueryParamsBlacklist CdnRuleOptionsQueryParamsBlacklist
Specify list of query strings. Files with those query strings will be cached as one object.
QueryParamsWhitelist CdnRuleOptionsQueryParamsWhitelist
Specify list of query strings. Files with those query strings will be cached as different objects.
QueryStringForwarding CdnRuleOptionsQueryStringForwarding
The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
RedirectHttpToHttps CdnRuleOptionsRedirectHttpToHttps
When enabled, HTTP requests are redirected to HTTPS.
RedirectHttpsToHttp CdnRuleOptionsRedirectHttpsToHttp
When enabled, HTTPS requests are redirected to HTTP.
ReferrerAcl CdnRuleOptionsReferrerAcl
Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
RequestLimiter CdnRuleOptionsRequestLimiter
It allows to limit the amount of HTTP requests
ResponseHeadersHidingPolicy CdnRuleOptionsResponseHeadersHidingPolicy
Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
Rewrite CdnRuleOptionsRewrite
Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
SecureKey CdnRuleOptionsSecureKey
The option allows configuring an access with tokenized URLs. It makes impossible to access content without a valid (unexpired) hash key. When enabled, you need to specify a key that you use to generate a token.
Slice CdnRuleOptionsSlice
When enabled, files larger than 10 MB are requested and cached in parts (no larger than 10 MB each). It reduces time to first byte. The origin must support HTTP Range requests.
Sni CdnRuleOptionsSni
Specify the SNI (Server Name Indication). SNI (Server Name Indication) is generally only required if your origin is using 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 CdnRuleOptionsStale
The list of errors which Always Online option is applied for.
StaticRequestHeaders CdnRuleOptionsStaticRequestHeaders
Specify custom HTTP Headers for a CDN server to add to request.
StaticResponseHeaders CdnRuleOptionsStaticResponseHeaders
Specify custom HTTP Headers that a CDN server adds to a response.
UserAgentAcl CdnRuleOptionsUserAgentAcl
User agents policy option allows to control access to the content for specified user-agent.
Waap CdnRuleOptionsWaap
Option allows to enable WAAP (Web Application and API Protection).
Waf CdnRuleOptionsWaf
Option allows to enable Basic WAF to protect you against the most common threats.
Websockets CdnRuleOptionsWebsockets
WebSockets option allows WebSockets connections to an origin server.
allowedHttpMethods CdnRuleOptionsAllowedHttpMethods
Specify allowed HTTP methods.
brotliCompression CdnRuleOptionsBrotliCompression
Brotli compression option allows to compress content with brotli on the CDN's end. CDN servers will request only uncompressed content from the origin.
browserCacheSettings CdnRuleOptionsBrowserCacheSettings
Specify the cache expiration time for customers' browsers in seconds.
cors CdnRuleOptionsCors
CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
countryAcl CdnRuleOptionsCountryAcl
Country access policy enables control access to content for specified countries.
disableProxyForceRanges CdnRuleOptionsDisableProxyForceRanges
The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
edgeCacheSettings CdnRuleOptionsEdgeCacheSettings
The cache expiration time for CDN servers.
fastedge CdnRuleOptionsFastedge
Allows to configure FastEdge app to be called on different request/response phases.
fetchCompressed CdnRuleOptionsFetchCompressed
Option allows to enable fetch compressed. CDN request and cache already compressed content. Your server should support compression. CDN servers will not ungzip your content even if a user's browser doesn't accept compression (nowadays almost all browsers support it).
followOriginRedirect CdnRuleOptionsFollowOriginRedirect
Enable 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 CdnRuleOptionsForceReturn
Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you are going to set up redirect.
forwardHostHeader CdnRuleOptionsForwardHostHeader
When a CDN requests content from an origin server, the option allows to forward the Host header used in the request made to a CDN.
gzipOn CdnRuleOptionsGzipOn
GZip compression option allows to compress content with gzip on the CDN`s end. CDN servers will request only uncompressed content from the origin.
hostHeader CdnRuleOptionsHostHeader
Option allows to set 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, Host Header value is taken from the parent CDN resource's value.
ignoreCookie CdnRuleOptionsIgnoreCookie
By default, files pulled from an origin source with cookies are not cached in a CDN. Enable this option to cache such objects.
ignoreQueryString CdnRuleOptionsIgnoreQueryString
Ignore query string option determines how files with different query strings will be cached: either as one object (option is enabled) or as different objects (option is disabled).
imageStack CdnRuleOptionsImageStack
Image stack option allows transforming JPG and PNG images (such as resizing or cropping) and automatically converting them to WebP or AVIF format. It is a paid option.
ipAddressAcl CdnRuleOptionsIpAddressAcl
IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
limitBandwidth CdnRuleOptionsLimitBandwidth
The option allows to control the download speed per connection.
proxyCacheKey CdnRuleOptionsProxyCacheKey
The option allows to modify the cache key. If omitted, the default value is $request*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 CdnRuleOptionsProxyCacheMethodsSet
Allows caching for GET, HEAD and POST requests.
proxyConnectTimeout CdnRuleOptionsProxyConnectTimeout
The time limit for establishing a connection with the origin.
proxyReadTimeout CdnRuleOptionsProxyReadTimeout
The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
queryParamsBlacklist CdnRuleOptionsQueryParamsBlacklist
Specify list of query strings. Files with those query strings will be cached as one object.
queryParamsWhitelist CdnRuleOptionsQueryParamsWhitelist
Specify list of query strings. Files with those query strings will be cached as different objects.
queryStringForwarding CdnRuleOptionsQueryStringForwarding
The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
redirectHttpToHttps CdnRuleOptionsRedirectHttpToHttps
When enabled, HTTP requests are redirected to HTTPS.
redirectHttpsToHttp CdnRuleOptionsRedirectHttpsToHttp
When enabled, HTTPS requests are redirected to HTTP.
referrerAcl CdnRuleOptionsReferrerAcl
Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
requestLimiter CdnRuleOptionsRequestLimiter
It allows to limit the amount of HTTP requests
responseHeadersHidingPolicy CdnRuleOptionsResponseHeadersHidingPolicy
Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
rewrite CdnRuleOptionsRewrite
Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
secureKey CdnRuleOptionsSecureKey
The option allows configuring an access with tokenized URLs. It makes impossible to access content without a valid (unexpired) hash key. When enabled, you need to specify a key that you use to generate a token.
slice CdnRuleOptionsSlice
When enabled, files larger than 10 MB are requested and cached in parts (no larger than 10 MB each). It reduces time to first byte. The origin must support HTTP Range requests.
sni CdnRuleOptionsSni
Specify the SNI (Server Name Indication). SNI (Server Name Indication) is generally only required if your origin is using 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 CdnRuleOptionsStale
The list of errors which Always Online option is applied for.
staticRequestHeaders CdnRuleOptionsStaticRequestHeaders
Specify custom HTTP Headers for a CDN server to add to request.
staticResponseHeaders CdnRuleOptionsStaticResponseHeaders
Specify custom HTTP Headers that a CDN server adds to a response.
userAgentAcl CdnRuleOptionsUserAgentAcl
User agents policy option allows to control access to the content for specified user-agent.
waap CdnRuleOptionsWaap
Option allows to enable WAAP (Web Application and API Protection).
waf CdnRuleOptionsWaf
Option allows to enable Basic WAF to protect you against the most common threats.
websockets CdnRuleOptionsWebsockets
WebSockets option allows WebSockets connections to an origin server.
allowedHttpMethods CdnRuleOptionsAllowedHttpMethods
Specify allowed HTTP methods.
brotliCompression CdnRuleOptionsBrotliCompression
Brotli compression option allows to compress content with brotli on the CDN's end. CDN servers will request only uncompressed content from the origin.
browserCacheSettings CdnRuleOptionsBrowserCacheSettings
Specify the cache expiration time for customers' browsers in seconds.
cors CdnRuleOptionsCors
CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
countryAcl CdnRuleOptionsCountryAcl
Country access policy enables control access to content for specified countries.
disableProxyForceRanges CdnRuleOptionsDisableProxyForceRanges
The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
edgeCacheSettings CdnRuleOptionsEdgeCacheSettings
The cache expiration time for CDN servers.
fastedge CdnRuleOptionsFastedge
Allows to configure FastEdge app to be called on different request/response phases.
fetchCompressed CdnRuleOptionsFetchCompressed
Option allows to enable fetch compressed. CDN request and cache already compressed content. Your server should support compression. CDN servers will not ungzip your content even if a user's browser doesn't accept compression (nowadays almost all browsers support it).
followOriginRedirect CdnRuleOptionsFollowOriginRedirect
Enable 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 CdnRuleOptionsForceReturn
Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you are going to set up redirect.
forwardHostHeader CdnRuleOptionsForwardHostHeader
When a CDN requests content from an origin server, the option allows to forward the Host header used in the request made to a CDN.
gzipOn CdnRuleOptionsGzipOn
GZip compression option allows to compress content with gzip on the CDN`s end. CDN servers will request only uncompressed content from the origin.
hostHeader CdnRuleOptionsHostHeader
Option allows to set 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, Host Header value is taken from the parent CDN resource's value.
ignoreCookie CdnRuleOptionsIgnoreCookie
By default, files pulled from an origin source with cookies are not cached in a CDN. Enable this option to cache such objects.
ignoreQueryString CdnRuleOptionsIgnoreQueryString
Ignore query string option determines how files with different query strings will be cached: either as one object (option is enabled) or as different objects (option is disabled).
imageStack CdnRuleOptionsImageStack
Image stack option allows transforming JPG and PNG images (such as resizing or cropping) and automatically converting them to WebP or AVIF format. It is a paid option.
ipAddressAcl CdnRuleOptionsIpAddressAcl
IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
limitBandwidth CdnRuleOptionsLimitBandwidth
The option allows to control the download speed per connection.
proxyCacheKey CdnRuleOptionsProxyCacheKey
The option allows to modify the cache key. If omitted, the default value is $request*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 CdnRuleOptionsProxyCacheMethodsSet
Allows caching for GET, HEAD and POST requests.
proxyConnectTimeout CdnRuleOptionsProxyConnectTimeout
The time limit for establishing a connection with the origin.
proxyReadTimeout CdnRuleOptionsProxyReadTimeout
The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
queryParamsBlacklist CdnRuleOptionsQueryParamsBlacklist
Specify list of query strings. Files with those query strings will be cached as one object.
queryParamsWhitelist CdnRuleOptionsQueryParamsWhitelist
Specify list of query strings. Files with those query strings will be cached as different objects.
queryStringForwarding CdnRuleOptionsQueryStringForwarding
The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
redirectHttpToHttps CdnRuleOptionsRedirectHttpToHttps
When enabled, HTTP requests are redirected to HTTPS.
redirectHttpsToHttp CdnRuleOptionsRedirectHttpsToHttp
When enabled, HTTPS requests are redirected to HTTP.
referrerAcl CdnRuleOptionsReferrerAcl
Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
requestLimiter CdnRuleOptionsRequestLimiter
It allows to limit the amount of HTTP requests
responseHeadersHidingPolicy CdnRuleOptionsResponseHeadersHidingPolicy
Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
rewrite CdnRuleOptionsRewrite
Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
secureKey CdnRuleOptionsSecureKey
The option allows configuring an access with tokenized URLs. It makes impossible to access content without a valid (unexpired) hash key. When enabled, you need to specify a key that you use to generate a token.
slice CdnRuleOptionsSlice
When enabled, files larger than 10 MB are requested and cached in parts (no larger than 10 MB each). It reduces time to first byte. The origin must support HTTP Range requests.
sni CdnRuleOptionsSni
Specify the SNI (Server Name Indication). SNI (Server Name Indication) is generally only required if your origin is using 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 CdnRuleOptionsStale
The list of errors which Always Online option is applied for.
staticRequestHeaders CdnRuleOptionsStaticRequestHeaders
Specify custom HTTP Headers for a CDN server to add to request.
staticResponseHeaders CdnRuleOptionsStaticResponseHeaders
Specify custom HTTP Headers that a CDN server adds to a response.
userAgentAcl CdnRuleOptionsUserAgentAcl
User agents policy option allows to control access to the content for specified user-agent.
waap CdnRuleOptionsWaap
Option allows to enable WAAP (Web Application and API Protection).
waf CdnRuleOptionsWaf
Option allows to enable Basic WAF to protect you against the most common threats.
websockets CdnRuleOptionsWebsockets
WebSockets option allows WebSockets connections to an origin server.
allowed_http_methods CdnRuleOptionsAllowedHttpMethods
Specify allowed HTTP methods.
brotli_compression CdnRuleOptionsBrotliCompression
Brotli compression option allows to compress content with brotli on the CDN's end. CDN servers will request only uncompressed content from the origin.
browser_cache_settings CdnRuleOptionsBrowserCacheSettings
Specify the cache expiration time for customers' browsers in seconds.
cors CdnRuleOptionsCors
CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
country_acl CdnRuleOptionsCountryAcl
Country access policy enables control access to content for specified countries.
disable_proxy_force_ranges CdnRuleOptionsDisableProxyForceRanges
The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
edge_cache_settings CdnRuleOptionsEdgeCacheSettings
The cache expiration time for CDN servers.
fastedge CdnRuleOptionsFastedge
Allows to configure FastEdge app to be called on different request/response phases.
fetch_compressed CdnRuleOptionsFetchCompressed
Option allows to enable fetch compressed. CDN request and cache already compressed content. Your server should support compression. CDN servers will not ungzip your content even if a user's browser doesn't accept compression (nowadays almost all browsers support it).
follow_origin_redirect CdnRuleOptionsFollowOriginRedirect
Enable 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 CdnRuleOptionsForceReturn
Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you are going to set up redirect.
forward_host_header CdnRuleOptionsForwardHostHeader
When a CDN requests content from an origin server, the option allows to forward the Host header used in the request made to a CDN.
gzip_on CdnRuleOptionsGzipOn
GZip compression option allows to compress content with gzip on the CDN`s end. CDN servers will request only uncompressed content from the origin.
host_header CdnRuleOptionsHostHeader
Option allows to set 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, Host Header value is taken from the parent CDN resource's value.
ignore_cookie CdnRuleOptionsIgnoreCookie
By default, files pulled from an origin source with cookies are not cached in a CDN. Enable this option to cache such objects.
ignore_query_string CdnRuleOptionsIgnoreQueryString
Ignore query string option determines how files with different query strings will be cached: either as one object (option is enabled) or as different objects (option is disabled).
image_stack CdnRuleOptionsImageStack
Image stack option allows transforming JPG and PNG images (such as resizing or cropping) and automatically converting them to WebP or AVIF format. It is a paid option.
ip_address_acl CdnRuleOptionsIpAddressAcl
IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
limit_bandwidth CdnRuleOptionsLimitBandwidth
The option allows to control the download speed per connection.
proxy_cache_key CdnRuleOptionsProxyCacheKey
The option allows to modify the cache key. If omitted, the default value is $request*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 CdnRuleOptionsProxyCacheMethodsSet
Allows caching for GET, HEAD and POST requests.
proxy_connect_timeout CdnRuleOptionsProxyConnectTimeout
The time limit for establishing a connection with the origin.
proxy_read_timeout CdnRuleOptionsProxyReadTimeout
The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
query_params_blacklist CdnRuleOptionsQueryParamsBlacklist
Specify list of query strings. Files with those query strings will be cached as one object.
query_params_whitelist CdnRuleOptionsQueryParamsWhitelist
Specify list of query strings. Files with those query strings will be cached as different objects.
query_string_forwarding CdnRuleOptionsQueryStringForwarding
The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
redirect_http_to_https CdnRuleOptionsRedirectHttpToHttps
When enabled, HTTP requests are redirected to HTTPS.
redirect_https_to_http CdnRuleOptionsRedirectHttpsToHttp
When enabled, HTTPS requests are redirected to HTTP.
referrer_acl CdnRuleOptionsReferrerAcl
Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
request_limiter CdnRuleOptionsRequestLimiter
It allows to limit the amount of HTTP requests
response_headers_hiding_policy CdnRuleOptionsResponseHeadersHidingPolicy
Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
rewrite CdnRuleOptionsRewrite
Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
secure_key CdnRuleOptionsSecureKey
The option allows configuring an access with tokenized URLs. It makes impossible to access content without a valid (unexpired) hash key. When enabled, you need to specify a key that you use to generate a token.
slice CdnRuleOptionsSlice
When enabled, files larger than 10 MB are requested and cached in parts (no larger than 10 MB each). It reduces time to first byte. The origin must support HTTP Range requests.
sni CdnRuleOptionsSni
Specify the SNI (Server Name Indication). SNI (Server Name Indication) is generally only required if your origin is using 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 CdnRuleOptionsStale
The list of errors which Always Online option is applied for.
static_request_headers CdnRuleOptionsStaticRequestHeaders
Specify custom HTTP Headers for a CDN server to add to request.
static_response_headers CdnRuleOptionsStaticResponseHeaders
Specify custom HTTP Headers that a CDN server adds to a response.
user_agent_acl CdnRuleOptionsUserAgentAcl
User agents policy option allows to control access to the content for specified user-agent.
waap CdnRuleOptionsWaap
Option allows to enable WAAP (Web Application and API Protection).
waf CdnRuleOptionsWaf
Option allows to enable Basic WAF to protect you against the most common threats.
websockets CdnRuleOptionsWebsockets
WebSockets option allows WebSockets connections to an origin server.
allowedHttpMethods Property Map
Specify allowed HTTP methods.
brotliCompression Property Map
Brotli compression option allows to compress content with brotli on the CDN's end. CDN servers will request only uncompressed content from the origin.
browserCacheSettings Property Map
Specify the cache expiration time for customers' browsers in seconds.
cors Property Map
CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
countryAcl Property Map
Country access policy enables control access to content for specified countries.
disableProxyForceRanges Property Map
The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
edgeCacheSettings Property Map
The cache expiration time for CDN servers.
fastedge Property Map
Allows to configure FastEdge app to be called on different request/response phases.
fetchCompressed Property Map
Option allows to enable fetch compressed. CDN request and cache already compressed content. Your server should support compression. CDN servers will not ungzip your content even if a user's browser doesn't accept compression (nowadays almost all browsers support it).
followOriginRedirect Property Map
Enable 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
Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you are going to set up redirect.
forwardHostHeader Property Map
When a CDN requests content from an origin server, the option allows to forward the Host header used in the request made to a CDN.
gzipOn Property Map
GZip compression option allows to compress content with gzip on the CDN`s end. CDN servers will request only uncompressed content from the origin.
hostHeader Property Map
Option allows to set 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, Host Header value is taken from the parent CDN resource's value.
ignoreCookie Property Map
By default, files pulled from an origin source with cookies are not cached in a CDN. Enable this option to cache such objects.
ignoreQueryString Property Map
Ignore query string option determines how files with different query strings will be cached: either as one object (option is enabled) or as different objects (option is disabled).
imageStack Property Map
Image stack option allows transforming JPG and PNG images (such as resizing or cropping) and automatically converting them to WebP or AVIF format. It is a paid option.
ipAddressAcl Property Map
IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
limitBandwidth Property Map
The option allows to control the download speed per connection.
proxyCacheKey Property Map
The option allows to modify the cache key. If omitted, the default value is $request*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
Allows caching for GET, HEAD and POST requests.
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.
queryParamsBlacklist Property Map
Specify list of query strings. Files with those query strings will be cached as one object.
queryParamsWhitelist Property Map
Specify list of query strings. Files with those query strings will be cached as different objects.
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.
redirectHttpToHttps Property Map
When enabled, HTTP requests are redirected to HTTPS.
redirectHttpsToHttp Property Map
When enabled, HTTPS requests are redirected to HTTP.
referrerAcl Property Map
Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
requestLimiter Property Map
It allows to limit the amount of HTTP requests
responseHeadersHidingPolicy Property Map
Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
rewrite Property Map
Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
secureKey Property Map
The option allows configuring an access with tokenized URLs. It makes impossible to access content without a valid (unexpired) hash key. When enabled, you need to specify a key that you use to generate a token.
slice Property Map
When enabled, files larger than 10 MB are requested and cached in parts (no larger than 10 MB each). It reduces time to first byte. The origin must support HTTP Range requests.
sni Property Map
Specify the SNI (Server Name Indication). SNI (Server Name Indication) is generally only required if your origin is using 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
The list of errors which Always Online option is applied for.
staticRequestHeaders Property Map
Specify custom HTTP Headers for a CDN server to add to request.
staticResponseHeaders Property Map
Specify custom HTTP Headers that a CDN server adds to a response.
userAgentAcl Property Map
User agents policy option allows to control access to the content for specified user-agent.
waap Property Map
Option allows to enable WAAP (Web Application and API Protection).
waf Property Map
Option allows to enable Basic WAF to protect you against the most common threats.
websockets Property Map
WebSockets option allows WebSockets connections to an origin server.

CdnRuleOptionsAllowedHttpMethods
, CdnRuleOptionsAllowedHttpMethodsArgs

Values This property is required. List<string>
Available methods: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS.
Enabled bool
Values This property is required. []string
Available methods: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS.
Enabled bool
values This property is required. List<String>
Available methods: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS.
enabled Boolean
values This property is required. string[]
Available methods: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS.
enabled boolean
values This property is required. Sequence[str]
Available methods: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS.
enabled bool
values This property is required. List<String>
Available methods: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS.
enabled Boolean

CdnRuleOptionsBrotliCompression
, CdnRuleOptionsBrotliCompressionArgs

Values This property is required. List<string>
Specify the content-type for each type of content you wish to have compressed.
Enabled bool
Values This property is required. []string
Specify the content-type for each type of content you wish to have compressed.
Enabled bool
values This property is required. List<String>
Specify the content-type for each type of content you wish to have compressed.
enabled Boolean
values This property is required. string[]
Specify the content-type for each type of content you wish to have compressed.
enabled boolean
values This property is required. Sequence[str]
Specify the content-type for each type of content you wish to have compressed.
enabled bool
values This property is required. List<String>
Specify the content-type for each type of content you wish to have compressed.
enabled Boolean

CdnRuleOptionsBrowserCacheSettings
, CdnRuleOptionsBrowserCacheSettingsArgs

Enabled bool
Value string
Use '0s' to disable caching. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Enabled bool
Value string
Use '0s' to disable caching. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
enabled Boolean
value String
Use '0s' to disable caching. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
enabled boolean
value string
Use '0s' to disable caching. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
enabled bool
value str
Use '0s' to disable caching. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
enabled Boolean
value String
Use '0s' to disable caching. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.

CdnRuleOptionsCors
, CdnRuleOptionsCorsArgs

Values This property is required. List<string>
Specify a value of the Access-Control-Allow-Origin header. Possible values: '*', '$http_origin', 'example.com'.
Always bool
Specify if the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
Enabled bool
Values This property is required. []string
Specify a value of the Access-Control-Allow-Origin header. Possible values: '*', '$http_origin', 'example.com'.
Always bool
Specify if the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
Enabled bool
values This property is required. List<String>
Specify a value of the Access-Control-Allow-Origin header. Possible values: '*', '$http_origin', 'example.com'.
always Boolean
Specify if the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
enabled Boolean
values This property is required. string[]
Specify a value of the Access-Control-Allow-Origin header. Possible values: '*', '$http_origin', 'example.com'.
always boolean
Specify if the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
enabled boolean
values This property is required. Sequence[str]
Specify a value of the Access-Control-Allow-Origin header. Possible values: '*', '$http_origin', 'example.com'.
always bool
Specify if the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
enabled bool
values This property is required. List<String>
Specify a value of the Access-Control-Allow-Origin header. Possible values: '*', '$http_origin', 'example.com'.
always Boolean
Specify if the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
enabled Boolean

CdnRuleOptionsCountryAcl
, CdnRuleOptionsCountryAclArgs

ExceptedValues This property is required. List<string>
List of countries according to ISO-3166-1.
PolicyType This property is required. string
Possible values: allow, deny.
Enabled bool
ExceptedValues This property is required. []string
List of countries according to ISO-3166-1.
PolicyType This property is required. string
Possible values: allow, deny.
Enabled bool
exceptedValues This property is required. List<String>
List of countries according to ISO-3166-1.
policyType This property is required. String
Possible values: allow, deny.
enabled Boolean
exceptedValues This property is required. string[]
List of countries according to ISO-3166-1.
policyType This property is required. string
Possible values: allow, deny.
enabled boolean
excepted_values This property is required. Sequence[str]
List of countries according to ISO-3166-1.
policy_type This property is required. str
Possible values: allow, deny.
enabled bool
exceptedValues This property is required. List<String>
List of countries according to ISO-3166-1.
policyType This property is required. String
Possible values: allow, deny.
enabled Boolean

CdnRuleOptionsDisableProxyForceRanges
, CdnRuleOptionsDisableProxyForceRangesArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsEdgeCacheSettings
, CdnRuleOptionsEdgeCacheSettingsArgs

CustomValues Dictionary<string, string>
Specify caching time in seconds ('0s', '600s' for example) for a response with specific response code ('304', '404' for example). Use 'any' to specify caching time for all response codes. Use '0s' to disable caching for a specific response code. These settings have a higher priority than the value field.
Default string
Content will be cached according to origin cache settings. The value applies for a response with 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.
Enabled bool
Value string
Specify caching time for the response with codes 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached. Use '0s' to disable caching. Use custom_values field to specify a custom caching time for a response with specific codes.
CustomValues map[string]string
Specify caching time in seconds ('0s', '600s' for example) for a response with specific response code ('304', '404' for example). Use 'any' to specify caching time for all response codes. Use '0s' to disable caching for a specific response code. These settings have a higher priority than the value field.
Default string
Content will be cached according to origin cache settings. The value applies for a response with 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.
Enabled bool
Value string
Specify caching time for the response with codes 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached. Use '0s' to disable caching. Use custom_values field to specify a custom caching time for a response with specific codes.
customValues Map<String,String>
Specify caching time in seconds ('0s', '600s' for example) for a response with specific response code ('304', '404' for example). Use 'any' to specify caching time for all response codes. Use '0s' to disable caching for a specific response code. These settings have a higher priority than the value field.
default_ String
Content will be cached according to origin cache settings. The value applies for a response with 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.
enabled Boolean
value String
Specify caching time for the response with codes 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached. Use '0s' to disable caching. Use custom_values field to specify a custom caching time for a response with specific codes.
customValues {[key: string]: string}
Specify caching time in seconds ('0s', '600s' for example) for a response with specific response code ('304', '404' for example). Use 'any' to specify caching time for all response codes. Use '0s' to disable caching for a specific response code. These settings have a higher priority than the value field.
default string
Content will be cached according to origin cache settings. The value applies for a response with 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.
enabled boolean
value string
Specify caching time for the response with codes 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached. Use '0s' to disable caching. Use custom_values field to specify a custom caching time for a response with specific codes.
custom_values Mapping[str, str]
Specify caching time in seconds ('0s', '600s' for example) for a response with specific response code ('304', '404' for example). Use 'any' to specify caching time for all response codes. Use '0s' to disable caching for a specific response code. These settings have a higher priority than the value field.
default str
Content will be cached according to origin cache settings. The value applies for a response with 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.
enabled bool
value str
Specify caching time for the response with codes 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached. Use '0s' to disable caching. Use custom_values field to specify a custom caching time for a response with specific codes.
customValues Map<String>
Specify caching time in seconds ('0s', '600s' for example) for a response with specific response code ('304', '404' for example). Use 'any' to specify caching time for all response codes. Use '0s' to disable caching for a specific response code. These settings have a higher priority than the value field.
default String
Content will be cached according to origin cache settings. The value applies for a response with 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.
enabled Boolean
value String
Specify caching time for the response with codes 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached. Use '0s' to disable caching. Use custom_values field to specify a custom caching time for a response with specific codes.

CdnRuleOptionsFastedge
, CdnRuleOptionsFastedgeArgs

OnRequestHeaders This property is required. CdnRuleOptionsFastedgeOnRequestHeaders
Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
Enabled bool
OnRequestHeaders This property is required. CdnRuleOptionsFastedgeOnRequestHeaders
Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
Enabled bool
onRequestHeaders This property is required. CdnRuleOptionsFastedgeOnRequestHeaders
Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
enabled Boolean
onRequestHeaders This property is required. CdnRuleOptionsFastedgeOnRequestHeaders
Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
enabled boolean
on_request_headers This property is required. CdnRuleOptionsFastedgeOnRequestHeaders
Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
enabled bool
onRequestHeaders This property is required. Property Map
Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
enabled Boolean

CdnRuleOptionsFastedgeOnRequestHeaders
, CdnRuleOptionsFastedgeOnRequestHeadersArgs

AppId This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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.

CdnRuleOptionsFetchCompressed
, CdnRuleOptionsFetchCompressedArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsFollowOriginRedirect
, CdnRuleOptionsFollowOriginRedirectArgs

Codes This property is required. List<double>
Specify the redirect status code that the origin server returns. Possible values: 301, 302, 303, 307, 308.
Enabled bool
Codes This property is required. []float64
Specify the redirect status code that the origin server returns. Possible values: 301, 302, 303, 307, 308.
Enabled bool
codes This property is required. List<Double>
Specify the redirect status code that the origin server returns. Possible values: 301, 302, 303, 307, 308.
enabled Boolean
codes This property is required. number[]
Specify the redirect status code that the origin server returns. Possible values: 301, 302, 303, 307, 308.
enabled boolean
codes This property is required. Sequence[float]
Specify the redirect status code that the origin server returns. Possible values: 301, 302, 303, 307, 308.
enabled bool
codes This property is required. List<Number>
Specify the redirect status code that the origin server returns. Possible values: 301, 302, 303, 307, 308.
enabled Boolean

CdnRuleOptionsForceReturn
, CdnRuleOptionsForceReturnArgs

Code This property is required. double
HTTP response status code. Available codes: 100 <= value <= 599. Reserved codes: 408, 444, 477, 494, 495, 496, 497, 499
Body string
Response text or URL if you're going to set up redirection. Max length = 100.
Enabled bool
Code This property is required. float64
HTTP response status code. Available codes: 100 <= value <= 599. Reserved codes: 408, 444, 477, 494, 495, 496, 497, 499
Body string
Response text or URL if you're going to set up redirection. Max length = 100.
Enabled bool
code This property is required. Double
HTTP response status code. Available codes: 100 <= value <= 599. Reserved codes: 408, 444, 477, 494, 495, 496, 497, 499
body String
Response text or URL if you're going to set up redirection. Max length = 100.
enabled Boolean
code This property is required. number
HTTP response status code. Available codes: 100 <= value <= 599. Reserved codes: 408, 444, 477, 494, 495, 496, 497, 499
body string
Response text or URL if you're going to set up redirection. Max length = 100.
enabled boolean
code This property is required. float
HTTP response status code. Available codes: 100 <= value <= 599. Reserved codes: 408, 444, 477, 494, 495, 496, 497, 499
body str
Response text or URL if you're going to set up redirection. Max length = 100.
enabled bool
code This property is required. Number
HTTP response status code. Available codes: 100 <= value <= 599. Reserved codes: 408, 444, 477, 494, 495, 496, 497, 499
body String
Response text or URL if you're going to set up redirection. Max length = 100.
enabled Boolean

CdnRuleOptionsForwardHostHeader
, CdnRuleOptionsForwardHostHeaderArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsGzipOn
, CdnRuleOptionsGzipOnArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsHostHeader
, CdnRuleOptionsHostHeaderArgs

Value This property is required. string
Enabled bool
Value This property is required. string
Enabled bool
value This property is required. String
enabled Boolean
value This property is required. string
enabled boolean
value This property is required. str
enabled bool
value This property is required. String
enabled Boolean

CdnRuleOptionsIgnoreCookie
, CdnRuleOptionsIgnoreCookieArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsIgnoreQueryString
, CdnRuleOptionsIgnoreQueryStringArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsImageStack
, CdnRuleOptionsImageStackArgs

Quality This property is required. double
Quality settings for JPG and PNG images. Specify a value from 1 to 100. The higher the value, the better the image quality and the larger the file size after conversion.
AvifEnabled bool
If enabled, JPG and PNG images automatically convert to AVIF format when supported by the end users browser.
Enabled bool
PngLossless bool
Represents compression without quality loss for PNG format.
WebpEnabled bool
If enabled, JPG and PNG images automatically convert to WebP format when supported by the end users browser.
Quality This property is required. float64
Quality settings for JPG and PNG images. Specify a value from 1 to 100. The higher the value, the better the image quality and the larger the file size after conversion.
AvifEnabled bool
If enabled, JPG and PNG images automatically convert to AVIF format when supported by the end users browser.
Enabled bool
PngLossless bool
Represents compression without quality loss for PNG format.
WebpEnabled bool
If enabled, JPG and PNG images automatically convert to WebP format when supported by the end users browser.
quality This property is required. Double
Quality settings for JPG and PNG images. Specify a value from 1 to 100. The higher the value, the better the image quality and the larger the file size after conversion.
avifEnabled Boolean
If enabled, JPG and PNG images automatically convert to AVIF format when supported by the end users browser.
enabled Boolean
pngLossless Boolean
Represents compression without quality loss for PNG format.
webpEnabled Boolean
If enabled, JPG and PNG images automatically convert to WebP format when supported by the end users browser.
quality This property is required. number
Quality settings for JPG and PNG images. Specify a value from 1 to 100. The higher the value, the better the image quality and the larger the file size after conversion.
avifEnabled boolean
If enabled, JPG and PNG images automatically convert to AVIF format when supported by the end users browser.
enabled boolean
pngLossless boolean
Represents compression without quality loss for PNG format.
webpEnabled boolean
If enabled, JPG and PNG images automatically convert to WebP format when supported by the end users browser.
quality This property is required. float
Quality settings for JPG and PNG images. Specify a value from 1 to 100. The higher the value, the better the image quality and the larger the file size after conversion.
avif_enabled bool
If enabled, JPG and PNG images automatically convert to AVIF format when supported by the end users browser.
enabled bool
png_lossless bool
Represents compression without quality loss for PNG format.
webp_enabled bool
If enabled, JPG and PNG images automatically convert to WebP format when supported by the end users browser.
quality This property is required. Number
Quality settings for JPG and PNG images. Specify a value from 1 to 100. The higher the value, the better the image quality and the larger the file size after conversion.
avifEnabled Boolean
If enabled, JPG and PNG images automatically convert to AVIF format when supported by the end users browser.
enabled Boolean
pngLossless Boolean
Represents compression without quality loss for PNG format.
webpEnabled Boolean
If enabled, JPG and PNG images automatically convert to WebP format when supported by the end users browser.

CdnRuleOptionsIpAddressAcl
, CdnRuleOptionsIpAddressAclArgs

ExceptedValues This property is required. List<string>
Specify list of IP address with a subnet mask.
PolicyType This property is required. string
Possible values: allow, deny.
Enabled bool
ExceptedValues This property is required. []string
Specify list of IP address with a subnet mask.
PolicyType This property is required. string
Possible values: allow, deny.
Enabled bool
exceptedValues This property is required. List<String>
Specify list of IP address with a subnet mask.
policyType This property is required. String
Possible values: allow, deny.
enabled Boolean
exceptedValues This property is required. string[]
Specify list of IP address with a subnet mask.
policyType This property is required. string
Possible values: allow, deny.
enabled boolean
excepted_values This property is required. Sequence[str]
Specify list of IP address with a subnet mask.
policy_type This property is required. str
Possible values: allow, deny.
enabled bool
exceptedValues This property is required. List<String>
Specify list of IP address with a subnet mask.
policyType This property is required. String
Possible values: allow, deny.
enabled Boolean

CdnRuleOptionsLimitBandwidth
, CdnRuleOptionsLimitBandwidthArgs

LimitType This property is required. string
The way of controlling the download speed per each connection. Possible values are: static, dynamic.
Buffer double
Amount of downloaded data after which the user will be rate limited.
Enabled bool
Speed double
Maximum download speed per connection. Must be greater than 0.
LimitType This property is required. string
The way of controlling the download speed per each connection. Possible values are: static, dynamic.
Buffer float64
Amount of downloaded data after which the user will be rate limited.
Enabled bool
Speed float64
Maximum download speed per connection. Must be greater than 0.
limitType This property is required. String
The way of controlling the download speed per each connection. Possible values are: static, dynamic.
buffer Double
Amount of downloaded data after which the user will be rate limited.
enabled Boolean
speed Double
Maximum download speed per connection. Must be greater than 0.
limitType This property is required. string
The way of controlling the download speed per each connection. Possible values are: static, dynamic.
buffer number
Amount of downloaded data after which the user will be rate limited.
enabled boolean
speed number
Maximum download speed per connection. Must be greater than 0.
limit_type This property is required. str
The way of controlling the download speed per each connection. Possible values are: static, dynamic.
buffer float
Amount of downloaded data after which the user will be rate limited.
enabled bool
speed float
Maximum download speed per connection. Must be greater than 0.
limitType This property is required. String
The way of controlling the download speed per each connection. Possible values are: static, dynamic.
buffer Number
Amount of downloaded data after which the user will be rate limited.
enabled Boolean
speed Number
Maximum download speed per connection. Must be greater than 0.

CdnRuleOptionsProxyCacheKey
, CdnRuleOptionsProxyCacheKeyArgs

Value This property is required. string
Key for caching. Should be a combination of the specified variables: $httphost, $requesturi, $scheme, $uri.
Enabled bool
Value This property is required. string
Key for caching. Should be a combination of the specified variables: $httphost, $requesturi, $scheme, $uri.
Enabled bool
value This property is required. String
Key for caching. Should be a combination of the specified variables: $httphost, $requesturi, $scheme, $uri.
enabled Boolean
value This property is required. string
Key for caching. Should be a combination of the specified variables: $httphost, $requesturi, $scheme, $uri.
enabled boolean
value This property is required. str
Key for caching. Should be a combination of the specified variables: $httphost, $requesturi, $scheme, $uri.
enabled bool
value This property is required. String
Key for caching. Should be a combination of the specified variables: $httphost, $requesturi, $scheme, $uri.
enabled Boolean

CdnRuleOptionsProxyCacheMethodsSet
, CdnRuleOptionsProxyCacheMethodsSetArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsProxyConnectTimeout
, CdnRuleOptionsProxyConnectTimeoutArgs

Value This property is required. string
Specify time in seconds ('1s', '30s' for example).
Enabled bool
Value This property is required. string
Specify time in seconds ('1s', '30s' for example).
Enabled bool
value This property is required. String
Specify time in seconds ('1s', '30s' for example).
enabled Boolean
value This property is required. string
Specify time in seconds ('1s', '30s' for example).
enabled boolean
value This property is required. str
Specify time in seconds ('1s', '30s' for example).
enabled bool
value This property is required. String
Specify time in seconds ('1s', '30s' for example).
enabled Boolean

CdnRuleOptionsProxyReadTimeout
, CdnRuleOptionsProxyReadTimeoutArgs

Value This property is required. string
Specify time in seconds ('1s', '30s' for example).
Enabled bool
Value This property is required. string
Specify time in seconds ('1s', '30s' for example).
Enabled bool
value This property is required. String
Specify time in seconds ('1s', '30s' for example).
enabled Boolean
value This property is required. string
Specify time in seconds ('1s', '30s' for example).
enabled boolean
value This property is required. str
Specify time in seconds ('1s', '30s' for example).
enabled bool
value This property is required. String
Specify time in seconds ('1s', '30s' for example).
enabled Boolean

CdnRuleOptionsQueryParamsBlacklist
, CdnRuleOptionsQueryParamsBlacklistArgs

Values This property is required. List<string>
Enabled bool
Values This property is required. []string
Enabled bool
values This property is required. List<String>
enabled Boolean
values This property is required. string[]
enabled boolean
values This property is required. Sequence[str]
enabled bool
values This property is required. List<String>
enabled Boolean

CdnRuleOptionsQueryParamsWhitelist
, CdnRuleOptionsQueryParamsWhitelistArgs

Values This property is required. List<string>
Enabled bool
Values This property is required. []string
Enabled bool
values This property is required. List<String>
enabled Boolean
values This property is required. string[]
enabled boolean
values This property is required. Sequence[str]
enabled bool
values This property is required. List<String>
enabled Boolean

CdnRuleOptionsQueryStringForwarding
, CdnRuleOptionsQueryStringForwardingArgs

ForwardFromFileTypes This property is required. List<string>
Specify the types of playlist files from which parameters will be extracted and forwarded.
ForwardToFileTypes This property is required. List<string>
Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
Enabled bool
ForwardFromFileTypes This property is required. []string
Specify the types of playlist files from which parameters will be extracted and forwarded.
ForwardToFileTypes This property is required. []string
Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
Enabled bool
forwardFromFileTypes This property is required. List<String>
Specify the types of playlist files from which parameters will be extracted and forwarded.
forwardToFileTypes This property is required. List<String>
Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
enabled Boolean
forwardFromFileTypes This property is required. string[]
Specify the types of playlist files from which parameters will be extracted and forwarded.
forwardToFileTypes This property is required. string[]
Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
enabled boolean
forward_from_file_types This property is required. Sequence[str]
Specify the types of playlist files from which parameters will be extracted and forwarded.
forward_to_file_types This property is required. Sequence[str]
Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
enabled bool
forwardFromFileTypes This property is required. List<String>
Specify the types of playlist files from which parameters will be extracted and forwarded.
forwardToFileTypes This property is required. List<String>
Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
enabled Boolean

CdnRuleOptionsRedirectHttpToHttps
, CdnRuleOptionsRedirectHttpToHttpsArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsRedirectHttpsToHttp
, CdnRuleOptionsRedirectHttpsToHttpArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsReferrerAcl
, CdnRuleOptionsReferrerAclArgs

ExceptedValues This property is required. List<string>
Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
PolicyType This property is required. string
Possible values: allow, deny.
Enabled bool
ExceptedValues This property is required. []string
Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
PolicyType This property is required. string
Possible values: allow, deny.
Enabled bool
exceptedValues This property is required. List<String>
Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
policyType This property is required. String
Possible values: allow, deny.
enabled Boolean
exceptedValues This property is required. string[]
Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
policyType This property is required. string
Possible values: allow, deny.
enabled boolean
excepted_values This property is required. Sequence[str]
Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
policy_type This property is required. str
Possible values: allow, deny.
enabled bool
exceptedValues This property is required. List<String>
Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
policyType This property is required. String
Possible values: allow, deny.
enabled Boolean

CdnRuleOptionsRequestLimiter
, CdnRuleOptionsRequestLimiterArgs

Burst This property is required. double
Rate This property is required. double
Delay double
Enabled bool
RateUnit string
Burst This property is required. float64
Rate This property is required. float64
Delay float64
Enabled bool
RateUnit string
burst This property is required. Double
rate This property is required. Double
delay Double
enabled Boolean
rateUnit String
burst This property is required. number
rate This property is required. number
delay number
enabled boolean
rateUnit string
burst This property is required. float
rate This property is required. float
delay float
enabled bool
rate_unit str
burst This property is required. Number
rate This property is required. Number
delay Number
enabled Boolean
rateUnit String

CdnRuleOptionsResponseHeadersHidingPolicy
, CdnRuleOptionsResponseHeadersHidingPolicyArgs

Excepteds This property is required. List<string>
List of HTTP headers. The following required headers cannot be hidden from response: Connection, Content-Length, Content-Type, Date, Server.
Mode This property is required. string
Specify a mode of hiding HTTP headers from the response. Possible values are: hide, show.
Enabled bool
Excepteds This property is required. []string
List of HTTP headers. The following required headers cannot be hidden from response: Connection, Content-Length, Content-Type, Date, Server.
Mode This property is required. string
Specify a mode of hiding HTTP headers from the response. Possible values are: hide, show.
Enabled bool
excepteds This property is required. List<String>
List of HTTP headers. The following required headers cannot be hidden from response: Connection, Content-Length, Content-Type, Date, Server.
mode This property is required. String
Specify a mode of hiding HTTP headers from the response. Possible values are: hide, show.
enabled Boolean
excepteds This property is required. string[]
List of HTTP headers. The following required headers cannot be hidden from response: Connection, Content-Length, Content-Type, Date, Server.
mode This property is required. string
Specify a mode of hiding HTTP headers from the response. Possible values are: hide, show.
enabled boolean
excepteds This property is required. Sequence[str]
List of HTTP headers. The following required headers cannot be hidden from response: Connection, Content-Length, Content-Type, Date, Server.
mode This property is required. str
Specify a mode of hiding HTTP headers from the response. Possible values are: hide, show.
enabled bool
excepteds This property is required. List<String>
List of HTTP headers. The following required headers cannot be hidden from response: Connection, Content-Length, Content-Type, Date, Server.
mode This property is required. String
Specify a mode of hiding HTTP headers from the response. Possible values are: hide, show.
enabled Boolean

CdnRuleOptionsRewrite
, CdnRuleOptionsRewriteArgs

Body This property is required. string
The pattern for Rewrite. At least one group should be specified. For Example: /rewritefrom/(.) /rewrite*to/$1
Enabled bool
Flag string
Define flag for the Rewrite option. Possible values: last, break, redirect, permanent.
Body This property is required. string
The pattern for Rewrite. At least one group should be specified. For Example: /rewritefrom/(.) /rewrite*to/$1
Enabled bool
Flag string
Define flag for the Rewrite option. Possible values: last, break, redirect, permanent.
body This property is required. String
The pattern for Rewrite. At least one group should be specified. For Example: /rewritefrom/(.) /rewrite*to/$1
enabled Boolean
flag String
Define flag for the Rewrite option. Possible values: last, break, redirect, permanent.
body This property is required. string
The pattern for Rewrite. At least one group should be specified. For Example: /rewritefrom/(.) /rewrite*to/$1
enabled boolean
flag string
Define flag for the Rewrite option. Possible values: last, break, redirect, permanent.
body This property is required. str
The pattern for Rewrite. At least one group should be specified. For Example: /rewritefrom/(.) /rewrite*to/$1
enabled bool
flag str
Define flag for the Rewrite option. Possible values: last, break, redirect, permanent.
body This property is required. String
The pattern for Rewrite. At least one group should be specified. For Example: /rewritefrom/(.) /rewrite*to/$1
enabled Boolean
flag String
Define flag for the Rewrite option. Possible values: last, break, redirect, permanent.

CdnRuleOptionsSecureKey
, CdnRuleOptionsSecureKeyArgs

Key This property is required. string
A key generated on your side that will be used for URL signing.
Type This property is required. double
Specify the type of URL Signing. It can be either 0 or 2. Type 0 - includes end user's IP to secure token generation. Type 2 - excludes end user's IP from secure token generation.
Enabled bool
Key This property is required. string
A key generated on your side that will be used for URL signing.
Type This property is required. float64
Specify the type of URL Signing. It can be either 0 or 2. Type 0 - includes end user's IP to secure token generation. Type 2 - excludes end user's IP from secure token generation.
Enabled bool
key This property is required. String
A key generated on your side that will be used for URL signing.
type This property is required. Double
Specify the type of URL Signing. It can be either 0 or 2. Type 0 - includes end user's IP to secure token generation. Type 2 - excludes end user's IP from secure token generation.
enabled Boolean
key This property is required. string
A key generated on your side that will be used for URL signing.
type This property is required. number
Specify the type of URL Signing. It can be either 0 or 2. Type 0 - includes end user's IP to secure token generation. Type 2 - excludes end user's IP from secure token generation.
enabled boolean
key This property is required. str
A key generated on your side that will be used for URL signing.
type This property is required. float
Specify the type of URL Signing. It can be either 0 or 2. Type 0 - includes end user's IP to secure token generation. Type 2 - excludes end user's IP from secure token generation.
enabled bool
key This property is required. String
A key generated on your side that will be used for URL signing.
type This property is required. Number
Specify the type of URL Signing. It can be either 0 or 2. Type 0 - includes end user's IP to secure token generation. Type 2 - excludes end user's IP from secure token generation.
enabled Boolean

CdnRuleOptionsSlice
, CdnRuleOptionsSliceArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsSni
, CdnRuleOptionsSniArgs

CustomHostname string
Custom SNI hostname. Required if sni_type is set to 'custom'.
Enabled bool
SniType string
Specify SNI type. Possible values: dynamic, custom. dynamic - SNI hostname depends on the hostHeader and the forwardhostheader options. custom - custom SNI hostname.
CustomHostname string
Custom SNI hostname. Required if sni_type is set to 'custom'.
Enabled bool
SniType string
Specify SNI type. Possible values: dynamic, custom. dynamic - SNI hostname depends on the hostHeader and the forwardhostheader options. custom - custom SNI hostname.
customHostname String
Custom SNI hostname. Required if sni_type is set to 'custom'.
enabled Boolean
sniType String
Specify SNI type. Possible values: dynamic, custom. dynamic - SNI hostname depends on the hostHeader and the forwardhostheader options. custom - custom SNI hostname.
customHostname string
Custom SNI hostname. Required if sni_type is set to 'custom'.
enabled boolean
sniType string
Specify SNI type. Possible values: dynamic, custom. dynamic - SNI hostname depends on the hostHeader and the forwardhostheader options. custom - custom SNI hostname.
custom_hostname str
Custom SNI hostname. Required if sni_type is set to 'custom'.
enabled bool
sni_type str
Specify SNI type. Possible values: dynamic, custom. dynamic - SNI hostname depends on the hostHeader and the forwardhostheader options. custom - custom SNI hostname.
customHostname String
Custom SNI hostname. Required if sni_type is set to 'custom'.
enabled Boolean
sniType String
Specify SNI type. Possible values: dynamic, custom. dynamic - SNI hostname depends on the hostHeader and the forwardhostheader options. custom - custom SNI hostname.

CdnRuleOptionsStale
, CdnRuleOptionsStaleArgs

Values This property is required. List<string>
Possible values: error, http403, http404, http429, http500, http502, http503, http504, invalidheader, timeout, updating.
Enabled bool
Values This property is required. []string
Possible values: error, http403, http404, http429, http500, http502, http503, http504, invalidheader, timeout, updating.
Enabled bool
values This property is required. List<String>
Possible values: error, http403, http404, http429, http500, http502, http503, http504, invalidheader, timeout, updating.
enabled Boolean
values This property is required. string[]
Possible values: error, http403, http404, http429, http500, http502, http503, http504, invalidheader, timeout, updating.
enabled boolean
values This property is required. Sequence[str]
Possible values: error, http403, http404, http429, http500, http502, http503, http504, invalidheader, timeout, updating.
enabled bool
values This property is required. List<String>
Possible values: error, http403, http404, http429, http500, http502, http503, http504, invalidheader, timeout, updating.
enabled Boolean

CdnRuleOptionsStaticRequestHeaders
, CdnRuleOptionsStaticRequestHeadersArgs

Value This property is required. Dictionary<string, string>
Header name is restricted to 255 symbols and can contain latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores. Header value is restricted to 512 symbols and can contain latin letters (a-z), numbers (0-9), spaces, underscores and symbols (-/.:). Space can be used only between words.
Enabled bool
Value This property is required. map[string]string
Header name is restricted to 255 symbols and can contain latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores. Header value is restricted to 512 symbols and can contain latin letters (a-z), numbers (0-9), spaces, underscores and symbols (-/.:). Space can be used only between words.
Enabled bool
value This property is required. Map<String,String>
Header name is restricted to 255 symbols and can contain latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores. Header value is restricted to 512 symbols and can contain latin letters (a-z), numbers (0-9), spaces, underscores and symbols (-/.:). Space can be used only between words.
enabled Boolean
value This property is required. {[key: string]: string}
Header name is restricted to 255 symbols and can contain latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores. Header value is restricted to 512 symbols and can contain latin letters (a-z), numbers (0-9), spaces, underscores and symbols (-/.:). Space can be used only between words.
enabled boolean
value This property is required. Mapping[str, str]
Header name is restricted to 255 symbols and can contain latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores. Header value is restricted to 512 symbols and can contain latin letters (a-z), numbers (0-9), spaces, underscores and symbols (-/.:). Space can be used only between words.
enabled bool
value This property is required. Map<String>
Header name is restricted to 255 symbols and can contain latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores. Header value is restricted to 512 symbols and can contain latin letters (a-z), numbers (0-9), spaces, underscores and symbols (-/.:). Space can be used only between words.
enabled Boolean

CdnRuleOptionsStaticResponseHeaders
, CdnRuleOptionsStaticResponseHeadersArgs

values This property is required. List<Property Map>
enabled Boolean

CdnRuleOptionsStaticResponseHeadersValue
, CdnRuleOptionsStaticResponseHeadersValueArgs

Name This property is required. string
Header name.
Values This property is required. List<string>
Header value.
Always bool
Specifies if the header will be added to a response from CDN regardless of response code.
Name This property is required. string
Header name.
Values This property is required. []string
Header value.
Always bool
Specifies if the header will be added to a response from CDN regardless of response code.
name This property is required. String
Header name.
values This property is required. List<String>
Header value.
always Boolean
Specifies if the header will be added to a response from CDN regardless of response code.
name This property is required. string
Header name.
values This property is required. string[]
Header value.
always boolean
Specifies if the header will be added to a response from CDN regardless of response code.
name This property is required. str
Header name.
values This property is required. Sequence[str]
Header value.
always bool
Specifies if the header will be added to a response from CDN regardless of response code.
name This property is required. String
Header name.
values This property is required. List<String>
Header value.
always Boolean
Specifies if the header will be added to a response from CDN regardless of response code.

CdnRuleOptionsUserAgentAcl
, CdnRuleOptionsUserAgentAclArgs

ExceptedValues This property is required. List<string>
List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
PolicyType This property is required. string
Possible values: allow, deny.
Enabled bool
ExceptedValues This property is required. []string
List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
PolicyType This property is required. string
Possible values: allow, deny.
Enabled bool
exceptedValues This property is required. List<String>
List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
policyType This property is required. String
Possible values: allow, deny.
enabled Boolean
exceptedValues This property is required. string[]
List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
policyType This property is required. string
Possible values: allow, deny.
enabled boolean
excepted_values This property is required. Sequence[str]
List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
policy_type This property is required. str
Possible values: allow, deny.
enabled bool
exceptedValues This property is required. List<String>
List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
policyType This property is required. String
Possible values: allow, deny.
enabled Boolean

CdnRuleOptionsWaap
, CdnRuleOptionsWaapArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsWaf
, CdnRuleOptionsWafArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

CdnRuleOptionsWebsockets
, CdnRuleOptionsWebsocketsArgs

Value This property is required. bool
Enabled bool
Value This property is required. bool
Enabled bool
value This property is required. Boolean
enabled Boolean
value This property is required. boolean
enabled boolean
value This property is required. bool
enabled bool
value This property is required. Boolean
enabled Boolean

Package Details

Repository
gcore g-core/terraform-provider-gcore
License
Notes
This Pulumi package is based on the gcore Terraform Provider.