gcore.CdnRuleTemplate
Explore with Pulumi AI
Represent CDN rule template
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const cdnExampleComRuleTemplate1 = new gcore.CdnRuleTemplate("cdnExampleComRuleTemplate1", {
options: {
edgeCacheSettings: {
"default": "14d",
},
gzipOn: {
value: true,
},
ignoreQueryString: {
value: true,
},
},
overrideOriginProtocol: "HTTPS",
rule: "/folder/images/*.png",
ruleType: 0,
weight: 1,
});
import pulumi
import pulumi_gcore as gcore
cdn_example_com_rule_template1 = gcore.CdnRuleTemplate("cdnExampleComRuleTemplate1",
options={
"edge_cache_settings": {
"default": "14d",
},
"gzip_on": {
"value": True,
},
"ignore_query_string": {
"value": True,
},
},
override_origin_protocol="HTTPS",
rule="/folder/images/*.png",
rule_type=0,
weight=1)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.NewCdnRuleTemplate(ctx, "cdnExampleComRuleTemplate1", &gcore.CdnRuleTemplateArgs{
Options: &gcore.CdnRuleTemplateOptionsArgs{
EdgeCacheSettings: &gcore.CdnRuleTemplateOptionsEdgeCacheSettingsArgs{
Default: pulumi.String("14d"),
},
GzipOn: &gcore.CdnRuleTemplateOptionsGzipOnArgs{
Value: pulumi.Bool(true),
},
IgnoreQueryString: &gcore.CdnRuleTemplateOptionsIgnoreQueryStringArgs{
Value: pulumi.Bool(true),
},
},
OverrideOriginProtocol: pulumi.String("HTTPS"),
Rule: pulumi.String("/folder/images/*.png"),
RuleType: pulumi.Float64(0),
Weight: pulumi.Float64(1),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var cdnExampleComRuleTemplate1 = new Gcore.CdnRuleTemplate("cdnExampleComRuleTemplate1", new()
{
Options = new Gcore.Inputs.CdnRuleTemplateOptionsArgs
{
EdgeCacheSettings = new Gcore.Inputs.CdnRuleTemplateOptionsEdgeCacheSettingsArgs
{
Default = "14d",
},
GzipOn = new Gcore.Inputs.CdnRuleTemplateOptionsGzipOnArgs
{
Value = true,
},
IgnoreQueryString = new Gcore.Inputs.CdnRuleTemplateOptionsIgnoreQueryStringArgs
{
Value = true,
},
},
OverrideOriginProtocol = "HTTPS",
Rule = "/folder/images/*.png",
RuleType = 0,
Weight = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CdnRuleTemplate;
import com.pulumi.gcore.CdnRuleTemplateArgs;
import com.pulumi.gcore.inputs.CdnRuleTemplateOptionsArgs;
import com.pulumi.gcore.inputs.CdnRuleTemplateOptionsEdgeCacheSettingsArgs;
import com.pulumi.gcore.inputs.CdnRuleTemplateOptionsGzipOnArgs;
import com.pulumi.gcore.inputs.CdnRuleTemplateOptionsIgnoreQueryStringArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var cdnExampleComRuleTemplate1 = new CdnRuleTemplate("cdnExampleComRuleTemplate1", CdnRuleTemplateArgs.builder()
.options(CdnRuleTemplateOptionsArgs.builder()
.edgeCacheSettings(CdnRuleTemplateOptionsEdgeCacheSettingsArgs.builder()
.default_("14d")
.build())
.gzipOn(CdnRuleTemplateOptionsGzipOnArgs.builder()
.value(true)
.build())
.ignoreQueryString(CdnRuleTemplateOptionsIgnoreQueryStringArgs.builder()
.value(true)
.build())
.build())
.overrideOriginProtocol("HTTPS")
.rule("/folder/images/*.png")
.ruleType(0)
.weight(1)
.build());
}
}
resources:
cdnExampleComRuleTemplate1:
type: gcore:CdnRuleTemplate
properties:
options:
edgeCacheSettings:
default: 14d
gzipOn:
value: true
ignoreQueryString:
value: true
overrideOriginProtocol: HTTPS
rule: /folder/images/*.png
ruleType: 0
weight: 1
Create CdnRuleTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CdnRuleTemplate(name: string, args: CdnRuleTemplateArgs, opts?: CustomResourceOptions);
@overload
def CdnRuleTemplate(resource_name: str,
args: CdnRuleTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CdnRuleTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
rule: Optional[str] = None,
rule_type: Optional[float] = None,
cdn_rule_template_id: Optional[str] = None,
name: Optional[str] = None,
options: Optional[CdnRuleTemplateOptionsArgs] = None,
override_origin_protocol: Optional[str] = None,
weight: Optional[float] = None)
func NewCdnRuleTemplate(ctx *Context, name string, args CdnRuleTemplateArgs, opts ...ResourceOption) (*CdnRuleTemplate, error)
public CdnRuleTemplate(string name, CdnRuleTemplateArgs args, CustomResourceOptions? opts = null)
public CdnRuleTemplate(String name, CdnRuleTemplateArgs args)
public CdnRuleTemplate(String name, CdnRuleTemplateArgs args, CustomResourceOptions options)
type: gcore:CdnRuleTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CdnRuleTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CdnRuleTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CdnRuleTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdnRuleTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdnRuleTemplateArgs
- 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 cdnRuleTemplateResource = new Gcore.CdnRuleTemplate("cdnRuleTemplateResource", new()
{
Rule = "string",
RuleType = 0,
CdnRuleTemplateId = "string",
Name = "string",
Options = new Gcore.Inputs.CdnRuleTemplateOptionsArgs
{
AllowedHttpMethods = new Gcore.Inputs.CdnRuleTemplateOptionsAllowedHttpMethodsArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
BrotliCompression = new Gcore.Inputs.CdnRuleTemplateOptionsBrotliCompressionArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
BrowserCacheSettings = new Gcore.Inputs.CdnRuleTemplateOptionsBrowserCacheSettingsArgs
{
Enabled = false,
Value = "string",
},
Cors = new Gcore.Inputs.CdnRuleTemplateOptionsCorsArgs
{
Values = new[]
{
"string",
},
Always = false,
Enabled = false,
},
CountryAcl = new Gcore.Inputs.CdnRuleTemplateOptionsCountryAclArgs
{
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
Enabled = false,
},
DisableProxyForceRanges = new Gcore.Inputs.CdnRuleTemplateOptionsDisableProxyForceRangesArgs
{
Value = false,
Enabled = false,
},
EdgeCacheSettings = new Gcore.Inputs.CdnRuleTemplateOptionsEdgeCacheSettingsArgs
{
CustomValues =
{
{ "string", "string" },
},
Default = "string",
Enabled = false,
Value = "string",
},
Fastedge = new Gcore.Inputs.CdnRuleTemplateOptionsFastedgeArgs
{
Enabled = false,
OnRequestBody = new Gcore.Inputs.CdnRuleTemplateOptionsFastedgeOnRequestBodyArgs
{
AppId = "string",
Enabled = false,
ExecuteOnEdge = false,
ExecuteOnShield = false,
InterruptOnError = false,
},
OnRequestHeaders = new Gcore.Inputs.CdnRuleTemplateOptionsFastedgeOnRequestHeadersArgs
{
AppId = "string",
Enabled = false,
ExecuteOnEdge = false,
ExecuteOnShield = false,
InterruptOnError = false,
},
OnResponseBody = new Gcore.Inputs.CdnRuleTemplateOptionsFastedgeOnResponseBodyArgs
{
AppId = "string",
Enabled = false,
ExecuteOnEdge = false,
ExecuteOnShield = false,
InterruptOnError = false,
},
OnResponseHeaders = new Gcore.Inputs.CdnRuleTemplateOptionsFastedgeOnResponseHeadersArgs
{
AppId = "string",
Enabled = false,
ExecuteOnEdge = false,
ExecuteOnShield = false,
InterruptOnError = false,
},
},
FetchCompressed = new Gcore.Inputs.CdnRuleTemplateOptionsFetchCompressedArgs
{
Value = false,
Enabled = false,
},
FollowOriginRedirect = new Gcore.Inputs.CdnRuleTemplateOptionsFollowOriginRedirectArgs
{
Codes = new[]
{
0,
},
Enabled = false,
},
ForceReturn = new Gcore.Inputs.CdnRuleTemplateOptionsForceReturnArgs
{
Code = 0,
Body = "string",
Enabled = false,
},
ForwardHostHeader = new Gcore.Inputs.CdnRuleTemplateOptionsForwardHostHeaderArgs
{
Value = false,
Enabled = false,
},
GzipOn = new Gcore.Inputs.CdnRuleTemplateOptionsGzipOnArgs
{
Value = false,
Enabled = false,
},
HostHeader = new Gcore.Inputs.CdnRuleTemplateOptionsHostHeaderArgs
{
Value = "string",
Enabled = false,
},
IgnoreCookie = new Gcore.Inputs.CdnRuleTemplateOptionsIgnoreCookieArgs
{
Value = false,
Enabled = false,
},
IgnoreQueryString = new Gcore.Inputs.CdnRuleTemplateOptionsIgnoreQueryStringArgs
{
Value = false,
Enabled = false,
},
ImageStack = new Gcore.Inputs.CdnRuleTemplateOptionsImageStackArgs
{
Quality = 0,
AvifEnabled = false,
Enabled = false,
PngLossless = false,
WebpEnabled = false,
},
IpAddressAcl = new Gcore.Inputs.CdnRuleTemplateOptionsIpAddressAclArgs
{
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
Enabled = false,
},
LimitBandwidth = new Gcore.Inputs.CdnRuleTemplateOptionsLimitBandwidthArgs
{
LimitType = "string",
Buffer = 0,
Enabled = false,
Speed = 0,
},
ProxyCacheKey = new Gcore.Inputs.CdnRuleTemplateOptionsProxyCacheKeyArgs
{
Value = "string",
Enabled = false,
},
ProxyCacheMethodsSet = new Gcore.Inputs.CdnRuleTemplateOptionsProxyCacheMethodsSetArgs
{
Value = false,
Enabled = false,
},
ProxyConnectTimeout = new Gcore.Inputs.CdnRuleTemplateOptionsProxyConnectTimeoutArgs
{
Value = "string",
Enabled = false,
},
ProxyReadTimeout = new Gcore.Inputs.CdnRuleTemplateOptionsProxyReadTimeoutArgs
{
Value = "string",
Enabled = false,
},
QueryParamsBlacklist = new Gcore.Inputs.CdnRuleTemplateOptionsQueryParamsBlacklistArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
QueryParamsWhitelist = new Gcore.Inputs.CdnRuleTemplateOptionsQueryParamsWhitelistArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
QueryStringForwarding = new Gcore.Inputs.CdnRuleTemplateOptionsQueryStringForwardingArgs
{
ForwardFromFileTypes = new[]
{
"string",
},
ForwardToFileTypes = new[]
{
"string",
},
Enabled = false,
},
RedirectHttpToHttps = new Gcore.Inputs.CdnRuleTemplateOptionsRedirectHttpToHttpsArgs
{
Value = false,
Enabled = false,
},
RedirectHttpsToHttp = new Gcore.Inputs.CdnRuleTemplateOptionsRedirectHttpsToHttpArgs
{
Value = false,
Enabled = false,
},
ReferrerAcl = new Gcore.Inputs.CdnRuleTemplateOptionsReferrerAclArgs
{
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
Enabled = false,
},
RequestLimiter = new Gcore.Inputs.CdnRuleTemplateOptionsRequestLimiterArgs
{
Burst = 0,
Rate = 0,
Delay = 0,
Enabled = false,
RateUnit = "string",
},
ResponseHeadersHidingPolicy = new Gcore.Inputs.CdnRuleTemplateOptionsResponseHeadersHidingPolicyArgs
{
Excepteds = new[]
{
"string",
},
Mode = "string",
Enabled = false,
},
Rewrite = new Gcore.Inputs.CdnRuleTemplateOptionsRewriteArgs
{
Body = "string",
Enabled = false,
Flag = "string",
},
SecureKey = new Gcore.Inputs.CdnRuleTemplateOptionsSecureKeyArgs
{
Key = "string",
Type = 0,
Enabled = false,
},
Slice = new Gcore.Inputs.CdnRuleTemplateOptionsSliceArgs
{
Value = false,
Enabled = false,
},
Sni = new Gcore.Inputs.CdnRuleTemplateOptionsSniArgs
{
CustomHostname = "string",
Enabled = false,
SniType = "string",
},
Stale = new Gcore.Inputs.CdnRuleTemplateOptionsStaleArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
StaticRequestHeaders = new Gcore.Inputs.CdnRuleTemplateOptionsStaticRequestHeadersArgs
{
Value =
{
{ "string", "string" },
},
Enabled = false,
},
StaticResponseHeaders = new Gcore.Inputs.CdnRuleTemplateOptionsStaticResponseHeadersArgs
{
Values = new[]
{
new Gcore.Inputs.CdnRuleTemplateOptionsStaticResponseHeadersValueArgs
{
Name = "string",
Values = new[]
{
"string",
},
Always = false,
},
},
Enabled = false,
},
UserAgentAcl = new Gcore.Inputs.CdnRuleTemplateOptionsUserAgentAclArgs
{
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
Enabled = false,
},
Waap = new Gcore.Inputs.CdnRuleTemplateOptionsWaapArgs
{
Value = false,
Enabled = false,
},
Waf = new Gcore.Inputs.CdnRuleTemplateOptionsWafArgs
{
Value = false,
Enabled = false,
},
Websockets = new Gcore.Inputs.CdnRuleTemplateOptionsWebsocketsArgs
{
Value = false,
Enabled = false,
},
},
OverrideOriginProtocol = "string",
Weight = 0,
});
example, err := gcore.NewCdnRuleTemplate(ctx, "cdnRuleTemplateResource", &gcore.CdnRuleTemplateArgs{
Rule: pulumi.String("string"),
RuleType: pulumi.Float64(0),
CdnRuleTemplateId: pulumi.String("string"),
Name: pulumi.String("string"),
Options: &gcore.CdnRuleTemplateOptionsArgs{
AllowedHttpMethods: &gcore.CdnRuleTemplateOptionsAllowedHttpMethodsArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
BrotliCompression: &gcore.CdnRuleTemplateOptionsBrotliCompressionArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
BrowserCacheSettings: &gcore.CdnRuleTemplateOptionsBrowserCacheSettingsArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
Cors: &gcore.CdnRuleTemplateOptionsCorsArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Always: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
CountryAcl: &gcore.CdnRuleTemplateOptionsCountryAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
DisableProxyForceRanges: &gcore.CdnRuleTemplateOptionsDisableProxyForceRangesArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
EdgeCacheSettings: &gcore.CdnRuleTemplateOptionsEdgeCacheSettingsArgs{
CustomValues: pulumi.StringMap{
"string": pulumi.String("string"),
},
Default: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
Fastedge: &gcore.CdnRuleTemplateOptionsFastedgeArgs{
Enabled: pulumi.Bool(false),
OnRequestBody: &gcore.CdnRuleTemplateOptionsFastedgeOnRequestBodyArgs{
AppId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ExecuteOnEdge: pulumi.Bool(false),
ExecuteOnShield: pulumi.Bool(false),
InterruptOnError: pulumi.Bool(false),
},
OnRequestHeaders: &gcore.CdnRuleTemplateOptionsFastedgeOnRequestHeadersArgs{
AppId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ExecuteOnEdge: pulumi.Bool(false),
ExecuteOnShield: pulumi.Bool(false),
InterruptOnError: pulumi.Bool(false),
},
OnResponseBody: &gcore.CdnRuleTemplateOptionsFastedgeOnResponseBodyArgs{
AppId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ExecuteOnEdge: pulumi.Bool(false),
ExecuteOnShield: pulumi.Bool(false),
InterruptOnError: pulumi.Bool(false),
},
OnResponseHeaders: &gcore.CdnRuleTemplateOptionsFastedgeOnResponseHeadersArgs{
AppId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ExecuteOnEdge: pulumi.Bool(false),
ExecuteOnShield: pulumi.Bool(false),
InterruptOnError: pulumi.Bool(false),
},
},
FetchCompressed: &gcore.CdnRuleTemplateOptionsFetchCompressedArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
FollowOriginRedirect: &gcore.CdnRuleTemplateOptionsFollowOriginRedirectArgs{
Codes: pulumi.Float64Array{
pulumi.Float64(0),
},
Enabled: pulumi.Bool(false),
},
ForceReturn: &gcore.CdnRuleTemplateOptionsForceReturnArgs{
Code: pulumi.Float64(0),
Body: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
ForwardHostHeader: &gcore.CdnRuleTemplateOptionsForwardHostHeaderArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
GzipOn: &gcore.CdnRuleTemplateOptionsGzipOnArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
HostHeader: &gcore.CdnRuleTemplateOptionsHostHeaderArgs{
Value: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
IgnoreCookie: &gcore.CdnRuleTemplateOptionsIgnoreCookieArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
IgnoreQueryString: &gcore.CdnRuleTemplateOptionsIgnoreQueryStringArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
ImageStack: &gcore.CdnRuleTemplateOptionsImageStackArgs{
Quality: pulumi.Float64(0),
AvifEnabled: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
PngLossless: pulumi.Bool(false),
WebpEnabled: pulumi.Bool(false),
},
IpAddressAcl: &gcore.CdnRuleTemplateOptionsIpAddressAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
LimitBandwidth: &gcore.CdnRuleTemplateOptionsLimitBandwidthArgs{
LimitType: pulumi.String("string"),
Buffer: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
Speed: pulumi.Float64(0),
},
ProxyCacheKey: &gcore.CdnRuleTemplateOptionsProxyCacheKeyArgs{
Value: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
ProxyCacheMethodsSet: &gcore.CdnRuleTemplateOptionsProxyCacheMethodsSetArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
ProxyConnectTimeout: &gcore.CdnRuleTemplateOptionsProxyConnectTimeoutArgs{
Value: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
ProxyReadTimeout: &gcore.CdnRuleTemplateOptionsProxyReadTimeoutArgs{
Value: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
QueryParamsBlacklist: &gcore.CdnRuleTemplateOptionsQueryParamsBlacklistArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
QueryParamsWhitelist: &gcore.CdnRuleTemplateOptionsQueryParamsWhitelistArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
QueryStringForwarding: &gcore.CdnRuleTemplateOptionsQueryStringForwardingArgs{
ForwardFromFileTypes: pulumi.StringArray{
pulumi.String("string"),
},
ForwardToFileTypes: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
RedirectHttpToHttps: &gcore.CdnRuleTemplateOptionsRedirectHttpToHttpsArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
RedirectHttpsToHttp: &gcore.CdnRuleTemplateOptionsRedirectHttpsToHttpArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
ReferrerAcl: &gcore.CdnRuleTemplateOptionsReferrerAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
RequestLimiter: &gcore.CdnRuleTemplateOptionsRequestLimiterArgs{
Burst: pulumi.Float64(0),
Rate: pulumi.Float64(0),
Delay: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
RateUnit: pulumi.String("string"),
},
ResponseHeadersHidingPolicy: &gcore.CdnRuleTemplateOptionsResponseHeadersHidingPolicyArgs{
Excepteds: pulumi.StringArray{
pulumi.String("string"),
},
Mode: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
Rewrite: &gcore.CdnRuleTemplateOptionsRewriteArgs{
Body: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Flag: pulumi.String("string"),
},
SecureKey: &gcore.CdnRuleTemplateOptionsSecureKeyArgs{
Key: pulumi.String("string"),
Type: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
},
Slice: &gcore.CdnRuleTemplateOptionsSliceArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
Sni: &gcore.CdnRuleTemplateOptionsSniArgs{
CustomHostname: pulumi.String("string"),
Enabled: pulumi.Bool(false),
SniType: pulumi.String("string"),
},
Stale: &gcore.CdnRuleTemplateOptionsStaleArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
StaticRequestHeaders: &gcore.CdnRuleTemplateOptionsStaticRequestHeadersArgs{
Value: pulumi.StringMap{
"string": pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
StaticResponseHeaders: &gcore.CdnRuleTemplateOptionsStaticResponseHeadersArgs{
Values: gcore.CdnRuleTemplateOptionsStaticResponseHeadersValueArray{
&gcore.CdnRuleTemplateOptionsStaticResponseHeadersValueArgs{
Name: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
Always: pulumi.Bool(false),
},
},
Enabled: pulumi.Bool(false),
},
UserAgentAcl: &gcore.CdnRuleTemplateOptionsUserAgentAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
Waap: &gcore.CdnRuleTemplateOptionsWaapArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
Waf: &gcore.CdnRuleTemplateOptionsWafArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
Websockets: &gcore.CdnRuleTemplateOptionsWebsocketsArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
},
OverrideOriginProtocol: pulumi.String("string"),
Weight: pulumi.Float64(0),
})
var cdnRuleTemplateResource = new CdnRuleTemplate("cdnRuleTemplateResource", CdnRuleTemplateArgs.builder()
.rule("string")
.ruleType(0)
.cdnRuleTemplateId("string")
.name("string")
.options(CdnRuleTemplateOptionsArgs.builder()
.allowedHttpMethods(CdnRuleTemplateOptionsAllowedHttpMethodsArgs.builder()
.values("string")
.enabled(false)
.build())
.brotliCompression(CdnRuleTemplateOptionsBrotliCompressionArgs.builder()
.values("string")
.enabled(false)
.build())
.browserCacheSettings(CdnRuleTemplateOptionsBrowserCacheSettingsArgs.builder()
.enabled(false)
.value("string")
.build())
.cors(CdnRuleTemplateOptionsCorsArgs.builder()
.values("string")
.always(false)
.enabled(false)
.build())
.countryAcl(CdnRuleTemplateOptionsCountryAclArgs.builder()
.exceptedValues("string")
.policyType("string")
.enabled(false)
.build())
.disableProxyForceRanges(CdnRuleTemplateOptionsDisableProxyForceRangesArgs.builder()
.value(false)
.enabled(false)
.build())
.edgeCacheSettings(CdnRuleTemplateOptionsEdgeCacheSettingsArgs.builder()
.customValues(Map.of("string", "string"))
.default_("string")
.enabled(false)
.value("string")
.build())
.fastedge(CdnRuleTemplateOptionsFastedgeArgs.builder()
.enabled(false)
.onRequestBody(CdnRuleTemplateOptionsFastedgeOnRequestBodyArgs.builder()
.appId("string")
.enabled(false)
.executeOnEdge(false)
.executeOnShield(false)
.interruptOnError(false)
.build())
.onRequestHeaders(CdnRuleTemplateOptionsFastedgeOnRequestHeadersArgs.builder()
.appId("string")
.enabled(false)
.executeOnEdge(false)
.executeOnShield(false)
.interruptOnError(false)
.build())
.onResponseBody(CdnRuleTemplateOptionsFastedgeOnResponseBodyArgs.builder()
.appId("string")
.enabled(false)
.executeOnEdge(false)
.executeOnShield(false)
.interruptOnError(false)
.build())
.onResponseHeaders(CdnRuleTemplateOptionsFastedgeOnResponseHeadersArgs.builder()
.appId("string")
.enabled(false)
.executeOnEdge(false)
.executeOnShield(false)
.interruptOnError(false)
.build())
.build())
.fetchCompressed(CdnRuleTemplateOptionsFetchCompressedArgs.builder()
.value(false)
.enabled(false)
.build())
.followOriginRedirect(CdnRuleTemplateOptionsFollowOriginRedirectArgs.builder()
.codes(0)
.enabled(false)
.build())
.forceReturn(CdnRuleTemplateOptionsForceReturnArgs.builder()
.code(0)
.body("string")
.enabled(false)
.build())
.forwardHostHeader(CdnRuleTemplateOptionsForwardHostHeaderArgs.builder()
.value(false)
.enabled(false)
.build())
.gzipOn(CdnRuleTemplateOptionsGzipOnArgs.builder()
.value(false)
.enabled(false)
.build())
.hostHeader(CdnRuleTemplateOptionsHostHeaderArgs.builder()
.value("string")
.enabled(false)
.build())
.ignoreCookie(CdnRuleTemplateOptionsIgnoreCookieArgs.builder()
.value(false)
.enabled(false)
.build())
.ignoreQueryString(CdnRuleTemplateOptionsIgnoreQueryStringArgs.builder()
.value(false)
.enabled(false)
.build())
.imageStack(CdnRuleTemplateOptionsImageStackArgs.builder()
.quality(0)
.avifEnabled(false)
.enabled(false)
.pngLossless(false)
.webpEnabled(false)
.build())
.ipAddressAcl(CdnRuleTemplateOptionsIpAddressAclArgs.builder()
.exceptedValues("string")
.policyType("string")
.enabled(false)
.build())
.limitBandwidth(CdnRuleTemplateOptionsLimitBandwidthArgs.builder()
.limitType("string")
.buffer(0)
.enabled(false)
.speed(0)
.build())
.proxyCacheKey(CdnRuleTemplateOptionsProxyCacheKeyArgs.builder()
.value("string")
.enabled(false)
.build())
.proxyCacheMethodsSet(CdnRuleTemplateOptionsProxyCacheMethodsSetArgs.builder()
.value(false)
.enabled(false)
.build())
.proxyConnectTimeout(CdnRuleTemplateOptionsProxyConnectTimeoutArgs.builder()
.value("string")
.enabled(false)
.build())
.proxyReadTimeout(CdnRuleTemplateOptionsProxyReadTimeoutArgs.builder()
.value("string")
.enabled(false)
.build())
.queryParamsBlacklist(CdnRuleTemplateOptionsQueryParamsBlacklistArgs.builder()
.values("string")
.enabled(false)
.build())
.queryParamsWhitelist(CdnRuleTemplateOptionsQueryParamsWhitelistArgs.builder()
.values("string")
.enabled(false)
.build())
.queryStringForwarding(CdnRuleTemplateOptionsQueryStringForwardingArgs.builder()
.forwardFromFileTypes("string")
.forwardToFileTypes("string")
.enabled(false)
.build())
.redirectHttpToHttps(CdnRuleTemplateOptionsRedirectHttpToHttpsArgs.builder()
.value(false)
.enabled(false)
.build())
.redirectHttpsToHttp(CdnRuleTemplateOptionsRedirectHttpsToHttpArgs.builder()
.value(false)
.enabled(false)
.build())
.referrerAcl(CdnRuleTemplateOptionsReferrerAclArgs.builder()
.exceptedValues("string")
.policyType("string")
.enabled(false)
.build())
.requestLimiter(CdnRuleTemplateOptionsRequestLimiterArgs.builder()
.burst(0)
.rate(0)
.delay(0)
.enabled(false)
.rateUnit("string")
.build())
.responseHeadersHidingPolicy(CdnRuleTemplateOptionsResponseHeadersHidingPolicyArgs.builder()
.excepteds("string")
.mode("string")
.enabled(false)
.build())
.rewrite(CdnRuleTemplateOptionsRewriteArgs.builder()
.body("string")
.enabled(false)
.flag("string")
.build())
.secureKey(CdnRuleTemplateOptionsSecureKeyArgs.builder()
.key("string")
.type(0)
.enabled(false)
.build())
.slice(CdnRuleTemplateOptionsSliceArgs.builder()
.value(false)
.enabled(false)
.build())
.sni(CdnRuleTemplateOptionsSniArgs.builder()
.customHostname("string")
.enabled(false)
.sniType("string")
.build())
.stale(CdnRuleTemplateOptionsStaleArgs.builder()
.values("string")
.enabled(false)
.build())
.staticRequestHeaders(CdnRuleTemplateOptionsStaticRequestHeadersArgs.builder()
.value(Map.of("string", "string"))
.enabled(false)
.build())
.staticResponseHeaders(CdnRuleTemplateOptionsStaticResponseHeadersArgs.builder()
.values(CdnRuleTemplateOptionsStaticResponseHeadersValueArgs.builder()
.name("string")
.values("string")
.always(false)
.build())
.enabled(false)
.build())
.userAgentAcl(CdnRuleTemplateOptionsUserAgentAclArgs.builder()
.exceptedValues("string")
.policyType("string")
.enabled(false)
.build())
.waap(CdnRuleTemplateOptionsWaapArgs.builder()
.value(false)
.enabled(false)
.build())
.waf(CdnRuleTemplateOptionsWafArgs.builder()
.value(false)
.enabled(false)
.build())
.websockets(CdnRuleTemplateOptionsWebsocketsArgs.builder()
.value(false)
.enabled(false)
.build())
.build())
.overrideOriginProtocol("string")
.weight(0)
.build());
cdn_rule_template_resource = gcore.CdnRuleTemplate("cdnRuleTemplateResource",
rule="string",
rule_type=0,
cdn_rule_template_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": {
"enabled": False,
"on_request_body": {
"app_id": "string",
"enabled": False,
"execute_on_edge": False,
"execute_on_shield": False,
"interrupt_on_error": False,
},
"on_request_headers": {
"app_id": "string",
"enabled": False,
"execute_on_edge": False,
"execute_on_shield": False,
"interrupt_on_error": False,
},
"on_response_body": {
"app_id": "string",
"enabled": False,
"execute_on_edge": False,
"execute_on_shield": False,
"interrupt_on_error": False,
},
"on_response_headers": {
"app_id": "string",
"enabled": False,
"execute_on_edge": False,
"execute_on_shield": False,
"interrupt_on_error": False,
},
},
"fetch_compressed": {
"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,
},
},
override_origin_protocol="string",
weight=0)
const cdnRuleTemplateResource = new gcore.CdnRuleTemplate("cdnRuleTemplateResource", {
rule: "string",
ruleType: 0,
cdnRuleTemplateId: "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: {
enabled: false,
onRequestBody: {
appId: "string",
enabled: false,
executeOnEdge: false,
executeOnShield: false,
interruptOnError: false,
},
onRequestHeaders: {
appId: "string",
enabled: false,
executeOnEdge: false,
executeOnShield: false,
interruptOnError: false,
},
onResponseBody: {
appId: "string",
enabled: false,
executeOnEdge: false,
executeOnShield: false,
interruptOnError: false,
},
onResponseHeaders: {
appId: "string",
enabled: false,
executeOnEdge: false,
executeOnShield: false,
interruptOnError: false,
},
},
fetchCompressed: {
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,
},
},
overrideOriginProtocol: "string",
weight: 0,
});
type: gcore:CdnRuleTemplate
properties:
cdnRuleTemplateId: 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
onRequestBody:
appId: string
enabled: false
executeOnEdge: false
executeOnShield: false
interruptOnError: false
onRequestHeaders:
appId: string
enabled: false
executeOnEdge: false
executeOnShield: false
interruptOnError: false
onResponseBody:
appId: string
enabled: false
executeOnEdge: false
executeOnShield: false
interruptOnError: false
onResponseHeaders:
appId: string
enabled: false
executeOnEdge: false
executeOnShield: false
interruptOnError: false
fetchCompressed:
enabled: false
value: false
followOriginRedirect:
codes:
- 0
enabled: false
forceReturn:
body: string
code: 0
enabled: false
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
overrideOriginProtocol: string
rule: string
ruleType: 0
weight: 0
CdnRuleTemplate 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 CdnRuleTemplate resource accepts the following input properties:
- Rule string
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- Rule
Type double - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- Cdn
Rule stringTemplate Id - The ID of this resource.
- Name string
- Rule template name.
- Options
Cdn
Rule Template Options - Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
- Override
Origin stringProtocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- Weight double
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
- Rule string
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- Rule
Type float64 - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- Cdn
Rule stringTemplate Id - The ID of this resource.
- Name string
- Rule template name.
- Options
Cdn
Rule Template Options Args - Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
- Override
Origin stringProtocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- Weight float64
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
- rule String
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- rule
Type Double - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- cdn
Rule StringTemplate Id - The ID of this resource.
- name String
- Rule template name.
- options
Cdn
Rule Template Options - Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
- override
Origin StringProtocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- weight Double
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
- rule string
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- rule
Type number - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- cdn
Rule stringTemplate Id - The ID of this resource.
- name string
- Rule template name.
- options
Cdn
Rule Template Options - Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
- override
Origin stringProtocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- weight number
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
- rule str
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- rule_
type float - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- cdn_
rule_ strtemplate_ id - The ID of this resource.
- name str
- Rule template name.
- options
Cdn
Rule Template Options Args - Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
- override_
origin_ strprotocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- weight float
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
- rule String
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- rule
Type Number - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- cdn
Rule StringTemplate Id - The ID of this resource.
- name String
- Rule template 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.
- override
Origin StringProtocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- weight Number
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnRuleTemplate 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 CdnRuleTemplate Resource
Get an existing CdnRuleTemplate 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?: CdnRuleTemplateState, opts?: CustomResourceOptions): CdnRuleTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cdn_rule_template_id: Optional[str] = None,
name: Optional[str] = None,
options: Optional[CdnRuleTemplateOptionsArgs] = None,
override_origin_protocol: Optional[str] = None,
rule: Optional[str] = None,
rule_type: Optional[float] = None,
weight: Optional[float] = None) -> CdnRuleTemplate
func GetCdnRuleTemplate(ctx *Context, name string, id IDInput, state *CdnRuleTemplateState, opts ...ResourceOption) (*CdnRuleTemplate, error)
public static CdnRuleTemplate Get(string name, Input<string> id, CdnRuleTemplateState? state, CustomResourceOptions? opts = null)
public static CdnRuleTemplate get(String name, Output<String> id, CdnRuleTemplateState state, CustomResourceOptions options)
resources: _: type: gcore:CdnRuleTemplate get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cdn
Rule stringTemplate Id - The ID of this resource.
- Name string
- Rule template name.
- Options
Cdn
Rule Template Options - Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
- Override
Origin stringProtocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- Rule string
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- Rule
Type double - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- Weight double
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
- Cdn
Rule stringTemplate Id - The ID of this resource.
- Name string
- Rule template name.
- Options
Cdn
Rule Template Options Args - Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
- Override
Origin stringProtocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- Rule string
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- Rule
Type float64 - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- Weight float64
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
- cdn
Rule StringTemplate Id - The ID of this resource.
- name String
- Rule template name.
- options
Cdn
Rule Template Options - Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
- override
Origin StringProtocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- rule String
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- rule
Type Double - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- weight Double
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
- cdn
Rule stringTemplate Id - The ID of this resource.
- name string
- Rule template name.
- options
Cdn
Rule Template Options - Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
- override
Origin stringProtocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- rule string
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- rule
Type number - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- weight number
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
- cdn_
rule_ strtemplate_ id - The ID of this resource.
- name str
- Rule template name.
- options
Cdn
Rule Template Options Args - Each option in CDN rule settings. Each option added to CDN rule settings should have the following mandatory request fields: enabled, value.
- override_
origin_ strprotocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- rule str
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- rule_
type float - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- weight float
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
- cdn
Rule StringTemplate Id - The ID of this resource.
- name String
- Rule template 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.
- override
Origin StringProtocol - Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. If not specified, it will be inherited from the CDN resource settings. Possible values are: HTTPS, HTTP, MATCH.
- rule String
- Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
- rule
Type Number - Rule type. Possible values are: 0 - Regular expression. Must start with '^/' or '/'. 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use 0.
- weight Number
- Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
Supporting Types
CdnRuleTemplateOptions, CdnRuleTemplateOptionsArgs
- Allowed
Http CdnMethods Rule Template Options Allowed Http Methods - Specify allowed HTTP methods.
- Brotli
Compression CdnRule Template Options Brotli Compression - 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 CdnSettings Rule Template Options Browser Cache Settings - Specify the cache expiration time for customers' browsers in seconds.
- Cors
Cdn
Rule Template Options Cors - CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
- Country
Acl CdnRule Template Options Country Acl - Country access policy enables control access to content for specified countries.
- Disable
Proxy CdnForce Ranges Rule Template Options Disable Proxy Force Ranges - The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
- Edge
Cache CdnSettings Rule Template Options Edge Cache Settings - The cache expiration time for CDN servers.
- Fastedge
Cdn
Rule Template Options Fastedge - Allows to configure FastEdge app to be called on different request/response phases.
- Fetch
Compressed CdnRule Template Options Fetch Compressed - 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 CdnRedirect Rule Template Options Follow Origin Redirect - 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 CdnRule Template Options Force Return - 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 CdnHeader Rule Template Options Forward Host Header - 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 CdnRule Template Options Gzip On - 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 CdnRule Template Options Host Header - 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.
- Cdn
Rule Template Options Ignore Cookie - 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 CdnString Rule Template Options Ignore Query String - 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 CdnRule Template Options Image Stack - 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 CdnAcl Rule Template Options Ip Address Acl - IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
- Limit
Bandwidth CdnRule Template Options Limit Bandwidth - The option allows to control the download speed per connection.
- Proxy
Cache CdnKey Rule Template Options Proxy Cache Key - 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 CdnMethods Set Rule Template Options Proxy Cache Methods Set - Allows caching for GET, HEAD and POST requests.
- Proxy
Connect CdnTimeout Rule Template Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- Proxy
Read CdnTimeout Rule Template Options Proxy Read Timeout - 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 CdnBlacklist Rule Template Options Query Params Blacklist - Specify list of query strings. Files with those query strings will be cached as one object.
- Query
Params CdnWhitelist Rule Template Options Query Params Whitelist - Specify list of query strings. Files with those query strings will be cached as different objects.
- Query
String CdnForwarding Rule Template Options Query String Forwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
- Redirect
Http CdnTo Https Rule Template Options Redirect Http To Https - When enabled, HTTP requests are redirected to HTTPS.
- Redirect
Https CdnTo Http Rule Template Options Redirect Https To Http - When enabled, HTTPS requests are redirected to HTTP.
- Referrer
Acl CdnRule Template Options Referrer Acl - Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
- Request
Limiter CdnRule Template Options Request Limiter - It allows to limit the amount of HTTP requests
- Response
Headers CdnHiding Policy Rule Template Options Response Headers Hiding Policy - Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
- Rewrite
Cdn
Rule Template Options Rewrite - Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
- Secure
Key CdnRule Template Options Secure Key - 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
Cdn
Rule Template Options Slice - 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
Cdn
Rule Template Options Sni - 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
Cdn
Rule Template Options Stale - The list of errors which Always Online option is applied for.
- Static
Request CdnHeaders Rule Template Options Static Request Headers - Specify custom HTTP Headers for a CDN server to add to request.
- Static
Response CdnHeaders Rule Template Options Static Response Headers - Specify custom HTTP Headers that a CDN server adds to a response.
- User
Agent CdnAcl Rule Template Options User Agent Acl - User agents policy option allows to control access to the content for specified user-agent.
- Waap
Cdn
Rule Template Options Waap - Option allows to enable WAAP (Web Application and API Protection).
- Waf
Cdn
Rule Template Options Waf - Option allows to enable Basic WAF to protect you against the most common threats.
- Websockets
Cdn
Rule Template Options Websockets - WebSockets option allows WebSockets connections to an origin server.
- Allowed
Http CdnMethods Rule Template Options Allowed Http Methods - Specify allowed HTTP methods.
- Brotli
Compression CdnRule Template Options Brotli Compression - 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 CdnSettings Rule Template Options Browser Cache Settings - Specify the cache expiration time for customers' browsers in seconds.
- Cors
Cdn
Rule Template Options Cors - CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
- Country
Acl CdnRule Template Options Country Acl - Country access policy enables control access to content for specified countries.
- Disable
Proxy CdnForce Ranges Rule Template Options Disable Proxy Force Ranges - The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
- Edge
Cache CdnSettings Rule Template Options Edge Cache Settings - The cache expiration time for CDN servers.
- Fastedge
Cdn
Rule Template Options Fastedge - Allows to configure FastEdge app to be called on different request/response phases.
- Fetch
Compressed CdnRule Template Options Fetch Compressed - 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 CdnRedirect Rule Template Options Follow Origin Redirect - 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 CdnRule Template Options Force Return - 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 CdnHeader Rule Template Options Forward Host Header - 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 CdnRule Template Options Gzip On - 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 CdnRule Template Options Host Header - 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.
- Cdn
Rule Template Options Ignore Cookie - 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 CdnString Rule Template Options Ignore Query String - 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 CdnRule Template Options Image Stack - 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 CdnAcl Rule Template Options Ip Address Acl - IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
- Limit
Bandwidth CdnRule Template Options Limit Bandwidth - The option allows to control the download speed per connection.
- Proxy
Cache CdnKey Rule Template Options Proxy Cache Key - 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 CdnMethods Set Rule Template Options Proxy Cache Methods Set - Allows caching for GET, HEAD and POST requests.
- Proxy
Connect CdnTimeout Rule Template Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- Proxy
Read CdnTimeout Rule Template Options Proxy Read Timeout - 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 CdnBlacklist Rule Template Options Query Params Blacklist - Specify list of query strings. Files with those query strings will be cached as one object.
- Query
Params CdnWhitelist Rule Template Options Query Params Whitelist - Specify list of query strings. Files with those query strings will be cached as different objects.
- Query
String CdnForwarding Rule Template Options Query String Forwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
- Redirect
Http CdnTo Https Rule Template Options Redirect Http To Https - When enabled, HTTP requests are redirected to HTTPS.
- Redirect
Https CdnTo Http Rule Template Options Redirect Https To Http - When enabled, HTTPS requests are redirected to HTTP.
- Referrer
Acl CdnRule Template Options Referrer Acl - Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
- Request
Limiter CdnRule Template Options Request Limiter - It allows to limit the amount of HTTP requests
- Response
Headers CdnHiding Policy Rule Template Options Response Headers Hiding Policy - Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
- Rewrite
Cdn
Rule Template Options Rewrite - Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
- Secure
Key CdnRule Template Options Secure Key - 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
Cdn
Rule Template Options Slice - 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
Cdn
Rule Template Options Sni - 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
Cdn
Rule Template Options Stale - The list of errors which Always Online option is applied for.
- Static
Request CdnHeaders Rule Template Options Static Request Headers - Specify custom HTTP Headers for a CDN server to add to request.
- Static
Response CdnHeaders Rule Template Options Static Response Headers - Specify custom HTTP Headers that a CDN server adds to a response.
- User
Agent CdnAcl Rule Template Options User Agent Acl - User agents policy option allows to control access to the content for specified user-agent.
- Waap
Cdn
Rule Template Options Waap - Option allows to enable WAAP (Web Application and API Protection).
- Waf
Cdn
Rule Template Options Waf - Option allows to enable Basic WAF to protect you against the most common threats.
- Websockets
Cdn
Rule Template Options Websockets - WebSockets option allows WebSockets connections to an origin server.
- allowed
Http CdnMethods Rule Template Options Allowed Http Methods - Specify allowed HTTP methods.
- brotli
Compression CdnRule Template Options Brotli Compression - 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 CdnSettings Rule Template Options Browser Cache Settings - Specify the cache expiration time for customers' browsers in seconds.
- cors
Cdn
Rule Template Options Cors - CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
- country
Acl CdnRule Template Options Country Acl - Country access policy enables control access to content for specified countries.
- disable
Proxy CdnForce Ranges Rule Template Options Disable Proxy Force Ranges - The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
- edge
Cache CdnSettings Rule Template Options Edge Cache Settings - The cache expiration time for CDN servers.
- fastedge
Cdn
Rule Template Options Fastedge - Allows to configure FastEdge app to be called on different request/response phases.
- fetch
Compressed CdnRule Template Options Fetch Compressed - 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 CdnRedirect Rule Template Options Follow Origin Redirect - 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 CdnRule Template Options Force Return - 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 CdnHeader Rule Template Options Forward Host Header - 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 CdnRule Template Options Gzip On - 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 CdnRule Template Options Host Header - 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.
- Cdn
Rule Template Options Ignore Cookie - 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 CdnString Rule Template Options Ignore Query String - 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 CdnRule Template Options Image Stack - 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 CdnAcl Rule Template Options Ip Address Acl - IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
- limit
Bandwidth CdnRule Template Options Limit Bandwidth - The option allows to control the download speed per connection.
- proxy
Cache CdnKey Rule Template Options Proxy Cache Key - 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 CdnMethods Set Rule Template Options Proxy Cache Methods Set - Allows caching for GET, HEAD and POST requests.
- proxy
Connect CdnTimeout Rule Template Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- proxy
Read CdnTimeout Rule Template Options Proxy Read Timeout - 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 CdnBlacklist Rule Template Options Query Params Blacklist - Specify list of query strings. Files with those query strings will be cached as one object.
- query
Params CdnWhitelist Rule Template Options Query Params Whitelist - Specify list of query strings. Files with those query strings will be cached as different objects.
- query
String CdnForwarding Rule Template Options Query String Forwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
- redirect
Http CdnTo Https Rule Template Options Redirect Http To Https - When enabled, HTTP requests are redirected to HTTPS.
- redirect
Https CdnTo Http Rule Template Options Redirect Https To Http - When enabled, HTTPS requests are redirected to HTTP.
- referrer
Acl CdnRule Template Options Referrer Acl - Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
- request
Limiter CdnRule Template Options Request Limiter - It allows to limit the amount of HTTP requests
- response
Headers CdnHiding Policy Rule Template Options Response Headers Hiding Policy - Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
- rewrite
Cdn
Rule Template Options Rewrite - Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure
Key CdnRule Template Options Secure Key - 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
Cdn
Rule Template Options Slice - 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
Cdn
Rule Template Options Sni - 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
Cdn
Rule Template Options Stale - The list of errors which Always Online option is applied for.
- static
Request CdnHeaders Rule Template Options Static Request Headers - Specify custom HTTP Headers for a CDN server to add to request.
- static
Response CdnHeaders Rule Template Options Static Response Headers - Specify custom HTTP Headers that a CDN server adds to a response.
- user
Agent CdnAcl Rule Template Options User Agent Acl - User agents policy option allows to control access to the content for specified user-agent.
- waap
Cdn
Rule Template Options Waap - Option allows to enable WAAP (Web Application and API Protection).
- waf
Cdn
Rule Template Options Waf - Option allows to enable Basic WAF to protect you against the most common threats.
- websockets
Cdn
Rule Template Options Websockets - WebSockets option allows WebSockets connections to an origin server.
- allowed
Http CdnMethods Rule Template Options Allowed Http Methods - Specify allowed HTTP methods.
- brotli
Compression CdnRule Template Options Brotli Compression - 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 CdnSettings Rule Template Options Browser Cache Settings - Specify the cache expiration time for customers' browsers in seconds.
- cors
Cdn
Rule Template Options Cors - CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
- country
Acl CdnRule Template Options Country Acl - Country access policy enables control access to content for specified countries.
- disable
Proxy CdnForce Ranges Rule Template Options Disable Proxy Force Ranges - The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
- edge
Cache CdnSettings Rule Template Options Edge Cache Settings - The cache expiration time for CDN servers.
- fastedge
Cdn
Rule Template Options Fastedge - Allows to configure FastEdge app to be called on different request/response phases.
- fetch
Compressed CdnRule Template Options Fetch Compressed - 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 CdnRedirect Rule Template Options Follow Origin Redirect - 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 CdnRule Template Options Force Return - 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 CdnHeader Rule Template Options Forward Host Header - 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 CdnRule Template Options Gzip On - 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 CdnRule Template Options Host Header - 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.
- Cdn
Rule Template Options Ignore Cookie - 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 CdnString Rule Template Options Ignore Query String - 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 CdnRule Template Options Image Stack - 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 CdnAcl Rule Template Options Ip Address Acl - IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
- limit
Bandwidth CdnRule Template Options Limit Bandwidth - The option allows to control the download speed per connection.
- proxy
Cache CdnKey Rule Template Options Proxy Cache Key - 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 CdnMethods Set Rule Template Options Proxy Cache Methods Set - Allows caching for GET, HEAD and POST requests.
- proxy
Connect CdnTimeout Rule Template Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- proxy
Read CdnTimeout Rule Template Options Proxy Read Timeout - 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 CdnBlacklist Rule Template Options Query Params Blacklist - Specify list of query strings. Files with those query strings will be cached as one object.
- query
Params CdnWhitelist Rule Template Options Query Params Whitelist - Specify list of query strings. Files with those query strings will be cached as different objects.
- query
String CdnForwarding Rule Template Options Query String Forwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
- redirect
Http CdnTo Https Rule Template Options Redirect Http To Https - When enabled, HTTP requests are redirected to HTTPS.
- redirect
Https CdnTo Http Rule Template Options Redirect Https To Http - When enabled, HTTPS requests are redirected to HTTP.
- referrer
Acl CdnRule Template Options Referrer Acl - Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
- request
Limiter CdnRule Template Options Request Limiter - It allows to limit the amount of HTTP requests
- response
Headers CdnHiding Policy Rule Template Options Response Headers Hiding Policy - Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
- rewrite
Cdn
Rule Template Options Rewrite - Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure
Key CdnRule Template Options Secure Key - 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
Cdn
Rule Template Options Slice - 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
Cdn
Rule Template Options Sni - 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
Cdn
Rule Template Options Stale - The list of errors which Always Online option is applied for.
- static
Request CdnHeaders Rule Template Options Static Request Headers - Specify custom HTTP Headers for a CDN server to add to request.
- static
Response CdnHeaders Rule Template Options Static Response Headers - Specify custom HTTP Headers that a CDN server adds to a response.
- user
Agent CdnAcl Rule Template Options User Agent Acl - User agents policy option allows to control access to the content for specified user-agent.
- waap
Cdn
Rule Template Options Waap - Option allows to enable WAAP (Web Application and API Protection).
- waf
Cdn
Rule Template Options Waf - Option allows to enable Basic WAF to protect you against the most common threats.
- websockets
Cdn
Rule Template Options Websockets - WebSockets option allows WebSockets connections to an origin server.
- allowed_
http_ Cdnmethods Rule Template Options Allowed Http Methods - Specify allowed HTTP methods.
- brotli_
compression CdnRule Template Options Brotli Compression - 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_ Cdnsettings Rule Template Options Browser Cache Settings - Specify the cache expiration time for customers' browsers in seconds.
- cors
Cdn
Rule Template Options Cors - CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers.
- country_
acl CdnRule Template Options Country Acl - Country access policy enables control access to content for specified countries.
- disable_
proxy_ Cdnforce_ ranges Rule Template Options Disable Proxy Force Ranges - The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
- edge_
cache_ Cdnsettings Rule Template Options Edge Cache Settings - The cache expiration time for CDN servers.
- fastedge
Cdn
Rule Template Options Fastedge - Allows to configure FastEdge app to be called on different request/response phases.
- fetch_
compressed CdnRule Template Options Fetch Compressed - 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_ Cdnredirect Rule Template Options Follow Origin Redirect - 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 CdnRule Template Options Force Return - 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_ Cdnheader Rule Template Options Forward Host Header - 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 CdnRule Template Options Gzip On - 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 CdnRule Template Options Host Header - 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.
- Cdn
Rule Template Options Ignore Cookie - 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_ Cdnstring Rule Template Options Ignore Query String - 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 CdnRule Template Options Image Stack - 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_ Cdnacl Rule Template Options Ip Address Acl - IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
- limit_
bandwidth CdnRule Template Options Limit Bandwidth - The option allows to control the download speed per connection.
- proxy_
cache_ Cdnkey Rule Template Options Proxy Cache Key - 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_ Cdnmethods_ set Rule Template Options Proxy Cache Methods Set - Allows caching for GET, HEAD and POST requests.
- proxy_
connect_ Cdntimeout Rule Template Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- proxy_
read_ Cdntimeout Rule Template Options Proxy Read Timeout - 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_ Cdnblacklist Rule Template Options Query Params Blacklist - Specify list of query strings. Files with those query strings will be cached as one object.
- query_
params_ Cdnwhitelist Rule Template Options Query Params Whitelist - Specify list of query strings. Files with those query strings will be cached as different objects.
- query_
string_ Cdnforwarding Rule Template Options Query String Forwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
- redirect_
http_ Cdnto_ https Rule Template Options Redirect Http To Https - When enabled, HTTP requests are redirected to HTTPS.
- redirect_
https_ Cdnto_ http Rule Template Options Redirect Https To Http - When enabled, HTTPS requests are redirected to HTTP.
- referrer_
acl CdnRule Template Options Referrer Acl - Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
- request_
limiter CdnRule Template Options Request Limiter - It allows to limit the amount of HTTP requests
- response_
headers_ Cdnhiding_ policy Rule Template Options Response Headers Hiding Policy - Define HTTP headers (specified at an origin server) that a CDN server hides from the response.
- rewrite
Cdn
Rule Template Options Rewrite - Rewrite option changes and redirects the requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure_
key CdnRule Template Options Secure Key - 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
Cdn
Rule Template Options Slice - 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
Cdn
Rule Template Options Sni - 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
Cdn
Rule Template Options Stale - The list of errors which Always Online option is applied for.
- static_
request_ Cdnheaders Rule Template Options Static Request Headers - Specify custom HTTP Headers for a CDN server to add to request.
- static_
response_ Cdnheaders Rule Template Options Static Response Headers - Specify custom HTTP Headers that a CDN server adds to a response.
- user_
agent_ Cdnacl Rule Template Options User Agent Acl - User agents policy option allows to control access to the content for specified user-agent.
- waap
Cdn
Rule Template Options Waap - Option allows to enable WAAP (Web Application and API Protection).
- waf
Cdn
Rule Template Options Waf - Option allows to enable Basic WAF to protect you against the most common threats.
- websockets
Cdn
Rule Template Options Websockets - WebSockets option allows WebSockets connections to an origin server.
- allowed
Http Property MapMethods - Specify allowed HTTP methods.
- brotli
Compression 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.
- browser
Cache Property MapSettings - 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.
- country
Acl Property Map - Country access policy enables control access to content for specified countries.
- disable
Proxy Property MapForce Ranges - The option allows getting 206 responses regardless settings of an origin source. Enabled by default.
- edge
Cache Property MapSettings - The cache expiration time for CDN servers.
- fastedge Property Map
- Allows to configure FastEdge app to be called on different request/response phases.
- fetch
Compressed 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).
- follow
Origin Property MapRedirect - 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 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.
- forward
Host Property MapHeader - 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 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.
- host
Header 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.
- 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.
- ignore
Query Property MapString - 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 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.
- ip
Address Property MapAcl - IP access policy option allows to control access to the CDN Resource content for specific IP addresses.
- limit
Bandwidth Property Map - The option allows to control the download speed per connection.
- proxy
Cache Property MapKey - 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 Property MapMethods Set - Allows caching for GET, HEAD and POST requests.
- proxy
Connect Property MapTimeout - The time limit for establishing a connection with the origin.
- proxy
Read Property MapTimeout - 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 Property MapBlacklist - Specify list of query strings. Files with those query strings will be cached as one object.
- query
Params Property MapWhitelist - Specify list of query strings. Files with those query strings will be cached as different objects.
- query
String Property MapForwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files.
- redirect
Http Property MapTo Https - When enabled, HTTP requests are redirected to HTTPS.
- redirect
Https Property MapTo Http - When enabled, HTTPS requests are redirected to HTTP.
- referrer
Acl Property Map - Referrer access policy option allows to control access to the CDN Resource content for specified domain names.
- request
Limiter Property Map - It allows to limit the amount of HTTP requests
- response
Headers Property MapHiding Policy - 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.
- secure
Key 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.
- static
Request Property MapHeaders - Specify custom HTTP Headers for a CDN server to add to request.
- static
Response Property MapHeaders - Specify custom HTTP Headers that a CDN server adds to a response.
- user
Agent Property MapAcl - 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.
CdnRuleTemplateOptionsAllowedHttpMethods, CdnRuleTemplateOptionsAllowedHttpMethodsArgs
CdnRuleTemplateOptionsBrotliCompression, CdnRuleTemplateOptionsBrotliCompressionArgs
CdnRuleTemplateOptionsBrowserCacheSettings, CdnRuleTemplateOptionsBrowserCacheSettingsArgs
CdnRuleTemplateOptionsCors, CdnRuleTemplateOptionsCorsArgs
CdnRuleTemplateOptionsCountryAcl, CdnRuleTemplateOptionsCountryAclArgs
- Excepted
Values List<string> - List of countries according to ISO-3166-1.
- Policy
Type string - Possible values: allow, deny.
- Enabled bool
- Excepted
Values []string - List of countries according to ISO-3166-1.
- Policy
Type string - Possible values: allow, deny.
- Enabled bool
- excepted
Values List<String> - List of countries according to ISO-3166-1.
- policy
Type String - Possible values: allow, deny.
- enabled Boolean
- excepted
Values string[] - List of countries according to ISO-3166-1.
- policy
Type string - Possible values: allow, deny.
- enabled boolean
- excepted_
values Sequence[str] - List of countries according to ISO-3166-1.
- policy_
type str - Possible values: allow, deny.
- enabled bool
- excepted
Values List<String> - List of countries according to ISO-3166-1.
- policy
Type String - Possible values: allow, deny.
- enabled Boolean
CdnRuleTemplateOptionsDisableProxyForceRanges, CdnRuleTemplateOptionsDisableProxyForceRangesArgs
CdnRuleTemplateOptionsEdgeCacheSettings, CdnRuleTemplateOptionsEdgeCacheSettingsArgs
- Custom
Values 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.
- Custom
Values 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.
- custom
Values 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.
- custom
Values {[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.
- custom
Values 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.
CdnRuleTemplateOptionsFastedge, CdnRuleTemplateOptionsFastedgeArgs
- Enabled bool
- On
Request CdnBody Rule Template Options Fastedge On Request Body - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- On
Request CdnHeaders Rule Template Options Fastedge On Request Headers - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- On
Response CdnBody Rule Template Options Fastedge On Response Body - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- On
Response CdnHeaders Rule Template Options Fastedge On Response Headers - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
- Enabled bool
- On
Request CdnBody Rule Template Options Fastedge On Request Body - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- On
Request CdnHeaders Rule Template Options Fastedge On Request Headers - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- On
Response CdnBody Rule Template Options Fastedge On Response Body - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- On
Response CdnHeaders Rule Template Options Fastedge On Response Headers - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
- enabled Boolean
- on
Request CdnBody Rule Template Options Fastedge On Request Body - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- on
Request CdnHeaders Rule Template Options Fastedge On Request Headers - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- on
Response CdnBody Rule Template Options Fastedge On Response Body - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- on
Response CdnHeaders Rule Template Options Fastedge On Response Headers - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
- enabled boolean
- on
Request CdnBody Rule Template Options Fastedge On Request Body - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- on
Request CdnHeaders Rule Template Options Fastedge On Request Headers - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- on
Response CdnBody Rule Template Options Fastedge On Response Body - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- on
Response CdnHeaders Rule Template Options Fastedge On Response Headers - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
- enabled bool
- on_
request_ Cdnbody Rule Template Options Fastedge On Request Body - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- on_
request_ Cdnheaders Rule Template Options Fastedge On Request Headers - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- on_
response_ Cdnbody Rule Template Options Fastedge On Response Body - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- on_
response_ Cdnheaders Rule Template Options Fastedge On Response Headers - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
- enabled Boolean
- on
Request Property MapBody - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- on
Request Property MapHeaders - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- on
Response Property MapBody - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- on
Response Property MapHeaders - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
CdnRuleTemplateOptionsFastedgeOnRequestBody, CdnRuleTemplateOptionsFastedgeOnRequestBodyArgs
- App
Id string - 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 boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- App
Id string - 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 boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
- app
Id string - The ID of the application in FastEdge.
- enabled boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On booleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On booleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On booleanError - Determines if the request execution should be interrupted when an error occurs.
- app_
id str - The ID of the application in FastEdge.
- enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute_
on_ booledge - Determines if the request should be executed at the edge nodes.
- execute_
on_ boolshield - Determines if the request should be executed at the shield nodes.
- interrupt_
on_ boolerror - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
CdnRuleTemplateOptionsFastedgeOnRequestHeaders, CdnRuleTemplateOptionsFastedgeOnRequestHeadersArgs
- App
Id string - 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 boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- App
Id string - 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 boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
- app
Id string - The ID of the application in FastEdge.
- enabled boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On booleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On booleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On booleanError - Determines if the request execution should be interrupted when an error occurs.
- app_
id str - The ID of the application in FastEdge.
- enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute_
on_ booledge - Determines if the request should be executed at the edge nodes.
- execute_
on_ boolshield - Determines if the request should be executed at the shield nodes.
- interrupt_
on_ boolerror - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
CdnRuleTemplateOptionsFastedgeOnResponseBody, CdnRuleTemplateOptionsFastedgeOnResponseBodyArgs
- App
Id string - 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 boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- App
Id string - 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 boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
- app
Id string - The ID of the application in FastEdge.
- enabled boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On booleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On booleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On booleanError - Determines if the request execution should be interrupted when an error occurs.
- app_
id str - The ID of the application in FastEdge.
- enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute_
on_ booledge - Determines if the request should be executed at the edge nodes.
- execute_
on_ boolshield - Determines if the request should be executed at the shield nodes.
- interrupt_
on_ boolerror - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
CdnRuleTemplateOptionsFastedgeOnResponseHeaders, CdnRuleTemplateOptionsFastedgeOnResponseHeadersArgs
- App
Id string - 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 boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- App
Id string - 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 boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
- app
Id string - The ID of the application in FastEdge.
- enabled boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On booleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On booleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On booleanError - Determines if the request execution should be interrupted when an error occurs.
- app_
id str - The ID of the application in FastEdge.
- enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute_
on_ booledge - Determines if the request should be executed at the edge nodes.
- execute_
on_ boolshield - Determines if the request should be executed at the shield nodes.
- interrupt_
on_ boolerror - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
CdnRuleTemplateOptionsFetchCompressed, CdnRuleTemplateOptionsFetchCompressedArgs
CdnRuleTemplateOptionsFollowOriginRedirect, CdnRuleTemplateOptionsFollowOriginRedirectArgs
CdnRuleTemplateOptionsForceReturn, CdnRuleTemplateOptionsForceReturnArgs
CdnRuleTemplateOptionsForwardHostHeader, CdnRuleTemplateOptionsForwardHostHeaderArgs
CdnRuleTemplateOptionsGzipOn, CdnRuleTemplateOptionsGzipOnArgs
CdnRuleTemplateOptionsHostHeader, CdnRuleTemplateOptionsHostHeaderArgs
CdnRuleTemplateOptionsIgnoreCookie, CdnRuleTemplateOptionsIgnoreCookieArgs
CdnRuleTemplateOptionsIgnoreQueryString, CdnRuleTemplateOptionsIgnoreQueryStringArgs
CdnRuleTemplateOptionsImageStack, CdnRuleTemplateOptionsImageStackArgs
- Quality 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.
- 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 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.
- 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 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.
- avif
Enabled Boolean - If enabled, JPG and PNG images automatically convert to AVIF format when supported by the end users browser.
- enabled Boolean
- png
Lossless Boolean - Represents compression without quality loss for PNG format.
- webp
Enabled Boolean - If enabled, JPG and PNG images automatically convert to WebP format when supported by the end users browser.
- quality 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.
- avif
Enabled boolean - If enabled, JPG and PNG images automatically convert to AVIF format when supported by the end users browser.
- enabled boolean
- png
Lossless boolean - Represents compression without quality loss for PNG format.
- webp
Enabled boolean - If enabled, JPG and PNG images automatically convert to WebP format when supported by the end users browser.
- quality 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 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.
- avif
Enabled Boolean - If enabled, JPG and PNG images automatically convert to AVIF format when supported by the end users browser.
- enabled Boolean
- png
Lossless Boolean - Represents compression without quality loss for PNG format.
- webp
Enabled Boolean - If enabled, JPG and PNG images automatically convert to WebP format when supported by the end users browser.
CdnRuleTemplateOptionsIpAddressAcl, CdnRuleTemplateOptionsIpAddressAclArgs
- Excepted
Values List<string> - Specify list of IP address with a subnet mask.
- Policy
Type string - Possible values: allow, deny.
- Enabled bool
- Excepted
Values []string - Specify list of IP address with a subnet mask.
- Policy
Type string - Possible values: allow, deny.
- Enabled bool
- excepted
Values List<String> - Specify list of IP address with a subnet mask.
- policy
Type String - Possible values: allow, deny.
- enabled Boolean
- excepted
Values string[] - Specify list of IP address with a subnet mask.
- policy
Type string - Possible values: allow, deny.
- enabled boolean
- excepted_
values Sequence[str] - Specify list of IP address with a subnet mask.
- policy_
type str - Possible values: allow, deny.
- enabled bool
- excepted
Values List<String> - Specify list of IP address with a subnet mask.
- policy
Type String - Possible values: allow, deny.
- enabled Boolean
CdnRuleTemplateOptionsLimitBandwidth, CdnRuleTemplateOptionsLimitBandwidthArgs
- limit_
type 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.
CdnRuleTemplateOptionsProxyCacheKey, CdnRuleTemplateOptionsProxyCacheKeyArgs
CdnRuleTemplateOptionsProxyCacheMethodsSet, CdnRuleTemplateOptionsProxyCacheMethodsSetArgs
CdnRuleTemplateOptionsProxyConnectTimeout, CdnRuleTemplateOptionsProxyConnectTimeoutArgs
CdnRuleTemplateOptionsProxyReadTimeout, CdnRuleTemplateOptionsProxyReadTimeoutArgs
CdnRuleTemplateOptionsQueryParamsBlacklist, CdnRuleTemplateOptionsQueryParamsBlacklistArgs
CdnRuleTemplateOptionsQueryParamsWhitelist, CdnRuleTemplateOptionsQueryParamsWhitelistArgs
CdnRuleTemplateOptionsQueryStringForwarding, CdnRuleTemplateOptionsQueryStringForwardingArgs
- Forward
From List<string>File Types - Specify the types of playlist files from which parameters will be extracted and forwarded.
- Forward
To List<string>File Types - Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
- Enabled bool
- Forward
From []stringFile Types - Specify the types of playlist files from which parameters will be extracted and forwarded.
- Forward
To []stringFile Types - Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
- Enabled bool
- forward
From List<String>File Types - Specify the types of playlist files from which parameters will be extracted and forwarded.
- forward
To List<String>File Types - Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
- enabled Boolean
- forward
From string[]File Types - Specify the types of playlist files from which parameters will be extracted and forwarded.
- forward
To string[]File Types - Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
- enabled boolean
- forward_
from_ Sequence[str]file_ types - Specify the types of playlist files from which parameters will be extracted and forwarded.
- forward_
to_ Sequence[str]file_ types - Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
- enabled bool
- forward
From List<String>File Types - Specify the types of playlist files from which parameters will be extracted and forwarded.
- forward
To List<String>File Types - Specify the types of media chunk files to which parameters, extracted from playlist files, will be forwarded.
- enabled Boolean
CdnRuleTemplateOptionsRedirectHttpToHttps, CdnRuleTemplateOptionsRedirectHttpToHttpsArgs
CdnRuleTemplateOptionsRedirectHttpsToHttp, CdnRuleTemplateOptionsRedirectHttpsToHttpArgs
CdnRuleTemplateOptionsReferrerAcl, CdnRuleTemplateOptionsReferrerAclArgs
- Excepted
Values List<string> - Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
- Policy
Type string - Possible values: allow, deny.
- Enabled bool
- Excepted
Values []string - Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
- Policy
Type string - Possible values: allow, deny.
- Enabled bool
- excepted
Values List<String> - Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
- policy
Type String - Possible values: allow, deny.
- enabled Boolean
- excepted
Values string[] - Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
- policy
Type string - Possible values: allow, deny.
- enabled boolean
- excepted_
values Sequence[str] - Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
- policy_
type str - Possible values: allow, deny.
- enabled bool
- excepted
Values List<String> - Specify list of domain names or wildcard domains (without http:// or https://). For example, example.com or *.example.com.
- policy
Type String - Possible values: allow, deny.
- enabled Boolean
CdnRuleTemplateOptionsRequestLimiter, CdnRuleTemplateOptionsRequestLimiterArgs
CdnRuleTemplateOptionsResponseHeadersHidingPolicy, CdnRuleTemplateOptionsResponseHeadersHidingPolicyArgs
CdnRuleTemplateOptionsRewrite, CdnRuleTemplateOptionsRewriteArgs
CdnRuleTemplateOptionsSecureKey, CdnRuleTemplateOptionsSecureKeyArgs
CdnRuleTemplateOptionsSlice, CdnRuleTemplateOptionsSliceArgs
CdnRuleTemplateOptionsSni, CdnRuleTemplateOptionsSniArgs
- Custom
Hostname string - Custom SNI hostname. Required if sni_type is set to 'custom'.
- Enabled bool
- Sni
Type 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 string - Custom SNI hostname. Required if sni_type is set to 'custom'.
- Enabled bool
- Sni
Type 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 String - Custom SNI hostname. Required if sni_type is set to 'custom'.
- enabled Boolean
- sni
Type 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 string - Custom SNI hostname. Required if sni_type is set to 'custom'.
- enabled boolean
- sni
Type 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.
- custom
Hostname String - Custom SNI hostname. Required if sni_type is set to 'custom'.
- enabled Boolean
- sni
Type String - Specify SNI type. Possible values: dynamic, custom. dynamic - SNI hostname depends on the hostHeader and the forwardhostheader options. custom - custom SNI hostname.
CdnRuleTemplateOptionsStale, CdnRuleTemplateOptionsStaleArgs
CdnRuleTemplateOptionsStaticRequestHeaders, CdnRuleTemplateOptionsStaticRequestHeadersArgs
- Value 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 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 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 {[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 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 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
CdnRuleTemplateOptionsStaticResponseHeaders, CdnRuleTemplateOptionsStaticResponseHeadersArgs
- values List<Property Map>
- enabled Boolean
CdnRuleTemplateOptionsStaticResponseHeadersValue, CdnRuleTemplateOptionsStaticResponseHeadersValueArgs
CdnRuleTemplateOptionsUserAgentAcl, CdnRuleTemplateOptionsUserAgentAclArgs
- Excepted
Values List<string> - List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
- Policy
Type string - Possible values: allow, deny.
- Enabled bool
- Excepted
Values []string - List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
- Policy
Type string - Possible values: allow, deny.
- Enabled bool
- excepted
Values List<String> - List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
- policy
Type String - Possible values: allow, deny.
- enabled Boolean
- excepted
Values string[] - List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
- policy
Type string - Possible values: allow, deny.
- enabled boolean
- excepted_
values Sequence[str] - List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
- policy_
type str - Possible values: allow, deny.
- enabled bool
- excepted
Values List<String> - List of User-Agents. Use "" to allow/deny access when the User-Agent header is empty.
- policy
Type String - Possible values: allow, deny.
- enabled Boolean
CdnRuleTemplateOptionsWaap, CdnRuleTemplateOptionsWaapArgs
CdnRuleTemplateOptionsWaf, CdnRuleTemplateOptionsWafArgs
CdnRuleTemplateOptionsWebsockets, CdnRuleTemplateOptionsWebsocketsArgs
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.