published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
CDN rule templates define reusable rule configurations that can be applied across multiple CDN resources for consistent caching, delivery, and security policies.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCdnRuleTemplate = gcore.getCdnRuleTemplate({
ruleTemplateId: 0,
});
import pulumi
import pulumi_gcore as gcore
example_cdn_rule_template = gcore.get_cdn_rule_template(rule_template_id=0)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.LookupCdnRuleTemplate(ctx, &gcore.LookupCdnRuleTemplateArgs{
RuleTemplateId: 0,
}, nil)
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 exampleCdnRuleTemplate = Gcore.GetCdnRuleTemplate.Invoke(new()
{
RuleTemplateId = 0,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetCdnRuleTemplateArgs;
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) {
final var exampleCdnRuleTemplate = GcoreFunctions.getCdnRuleTemplate(GetCdnRuleTemplateArgs.builder()
.ruleTemplateId(0)
.build());
}
}
variables:
exampleCdnRuleTemplate:
fn::invoke:
function: gcore:getCdnRuleTemplate
arguments:
ruleTemplateId: 0
Using getCdnRuleTemplate
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCdnRuleTemplate(args: GetCdnRuleTemplateArgs, opts?: InvokeOptions): Promise<GetCdnRuleTemplateResult>
function getCdnRuleTemplateOutput(args: GetCdnRuleTemplateOutputArgs, opts?: InvokeOptions): Output<GetCdnRuleTemplateResult>def get_cdn_rule_template(rule_template_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCdnRuleTemplateResult
def get_cdn_rule_template_output(rule_template_id: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCdnRuleTemplateResult]func LookupCdnRuleTemplate(ctx *Context, args *LookupCdnRuleTemplateArgs, opts ...InvokeOption) (*LookupCdnRuleTemplateResult, error)
func LookupCdnRuleTemplateOutput(ctx *Context, args *LookupCdnRuleTemplateOutputArgs, opts ...InvokeOption) LookupCdnRuleTemplateResultOutput> Note: This function is named LookupCdnRuleTemplate in the Go SDK.
public static class GetCdnRuleTemplate
{
public static Task<GetCdnRuleTemplateResult> InvokeAsync(GetCdnRuleTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetCdnRuleTemplateResult> Invoke(GetCdnRuleTemplateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCdnRuleTemplateResult> getCdnRuleTemplate(GetCdnRuleTemplateArgs args, InvokeOptions options)
public static Output<GetCdnRuleTemplateResult> getCdnRuleTemplate(GetCdnRuleTemplateArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getCdnRuleTemplate:getCdnRuleTemplate
arguments:
# arguments dictionaryThe following arguments are supported:
- Rule
Template doubleId
- Rule
Template float64Id
- rule
Template DoubleId
- rule
Template numberId
- rule_
template_ floatid
- rule
Template NumberId
getCdnRuleTemplate Result
The following output properties are available:
- Client double
- Client ID
- Default bool
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- Deleted bool
- Id double
- Name string
- Options
Get
Cdn Rule Template Options - Override
Origin stringProtocol - Rule string
- Rule
Template doubleId - Rule
Type double - Template bool
- Weight double
- Client float64
- Client ID
- Default bool
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- Deleted bool
- Id float64
- Name string
- Options
Get
Cdn Rule Template Options - Override
Origin stringProtocol - Rule string
- Rule
Template float64Id - Rule
Type float64 - Template bool
- Weight float64
- client Double
- Client ID
- default_ Boolean
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- deleted Boolean
- id Double
- name String
- options
Get
Cdn Rule Template Options - override
Origin StringProtocol - rule String
- rule
Template DoubleId - rule
Type Double - template Boolean
- weight Double
- client number
- Client ID
- default boolean
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- deleted boolean
- id number
- name string
- options
Get
Cdn Rule Template Options - override
Origin stringProtocol - rule string
- rule
Template numberId - rule
Type number - template boolean
- weight number
- client float
- Client ID
- default bool
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- deleted bool
- id float
- name str
- options
Get
Cdn Rule Template Options - override_
origin_ strprotocol - rule str
- rule_
template_ floatid - rule_
type float - template bool
- weight float
- client Number
- Client ID
- default Boolean
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- deleted Boolean
- id Number
- name String
- options Property Map
- override
Origin StringProtocol - rule String
- rule
Template NumberId - rule
Type Number - template Boolean
- weight Number
Supporting Types
GetCdnRuleTemplateOptions
- Allowed
Http GetMethods Cdn Rule Template Options Allowed Http Methods - HTTP methods allowed for content requests from the CDN.
- Bot
Protection GetCdn Rule Template Options Bot Protection - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- Brotli
Compression GetCdn Rule Template Options Brotli Compression - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- Browser
Cache GetSettings Cdn Rule Template Options Browser Cache Settings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- Cache
Http GetHeaders Cdn Rule Template Options Cache Http Headers Legacy option. Use the
response_headers_hiding_policyoption instead.HTTP Headers that must be included in the response.
- Cors
Get
Cdn Rule Template Options Cors Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- Country
Acl GetCdn Rule Template Options Country Acl - Enables control access to content for specified countries.
- Disable
Cache GetCdn Rule Template Options Disable Cache Legacy option. Use the
edge_cache_settingsoption instead.Allows the complete disabling of content caching.
- Disable
Proxy GetForce Ranges Cdn Rule Template Options Disable Proxy Force Ranges - Allows 206 responses regardless of the settings of an origin source.
- Edge
Cache GetSettings Cdn Rule Template Options Edge Cache Settings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- Fastedge
Get
Cdn Rule Template Options Fastedge Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- Fetch
Compressed GetCdn Rule Template Options Fetch Compressed Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify"fetch_compressed": falsein the rule.
- Follow
Origin GetRedirect Cdn Rule Template Options Follow Origin Redirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- Force
Return GetCdn Rule Template Options Force Return Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- Forward
Host GetHeader Cdn Rule Template Options Forward Host Header Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- Gzip
On GetCdn Rule Template Options Gzip On Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify"fetch_compressed":falsefor rules.
- Compression with gzip is not supported with
- Host
Header GetCdn Rule Template Options Host Header Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.-
Get
Cdn Rule Template Options Ignore Cookie - Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- Ignore
Query GetString Cdn Rule Template Options Ignore Query String How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Image
Stack GetCdn Rule Template Options Image Stack - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- Ip
Address GetAcl Cdn Rule Template Options Ip Address Acl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- Limit
Bandwidth GetCdn Rule Template Options Limit Bandwidth - Allows to control the download speed per connection.
- Proxy
Cache GetKey Cdn Rule Template Options Proxy Cache Key Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- Proxy
Cache GetMethods Set Cdn Rule Template Options Proxy Cache Methods Set - Caching for POST requests along with default GET and HEAD.
- Proxy
Connect GetTimeout Cdn Rule Template Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- Proxy
Read GetTimeout Cdn 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.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- Query
Params GetBlacklist Cdn Rule Template Options Query Params Blacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Query
Params GetWhitelist Cdn Rule Template Options Query Params Whitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Query
String GetForwarding Cdn 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. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- Redirect
Http GetTo Https Cdn Rule Template Options Redirect Http To Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- Redirect
Https GetTo Http Cdn Rule Template Options Redirect Https To Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- Referrer
Acl GetCdn Rule Template Options Referrer Acl - Controls access to the CDN resource content for specified domain names.
- Request
Limiter GetCdn Rule Template Options Request Limiter - Option allows to limit the amount of HTTP requests.
- Response
Headers GetHiding Policy Cdn Rule Template Options Response Headers Hiding Policy - Hides HTTP headers from an origin server in the CDN response.
- Rewrite
Get
Cdn Rule Template Options Rewrite - Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- Secure
Key GetCdn Rule Template Options Secure Key - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- Slice
Get
Cdn Rule Template Options Slice Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- Sni
Get
Cdn Rule Template Options Sni The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- Stale
Get
Cdn Rule Template Options Stale - Serves stale cached content in case of origin unavailability.
- Static
Headers GetCdn Rule Template Options Static Headers Legacy option. Use the
static_response_headersoption instead.Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.
- Static
Request GetHeaders Cdn Rule Template Options Static Request Headers - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- Static
Response GetHeaders Cdn Rule Template Options Static Response Headers - Custom HTTP Headers that a CDN server adds to a response.
- User
Agent GetAcl Cdn Rule Template Options User Agent Acl - Controls access to the content for specified User-Agents.
- Waap
Get
Cdn Rule Template Options Waap - Allows to enable WAAP (Web Application and API Protection).
- Websockets
Get
Cdn Rule Template Options Websockets - Enables or disables WebSockets connections to an origin server.
- Allowed
Http GetMethods Cdn Rule Template Options Allowed Http Methods - HTTP methods allowed for content requests from the CDN.
- Bot
Protection GetCdn Rule Template Options Bot Protection - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- Brotli
Compression GetCdn Rule Template Options Brotli Compression - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- Browser
Cache GetSettings Cdn Rule Template Options Browser Cache Settings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- Cache
Http GetHeaders Cdn Rule Template Options Cache Http Headers Legacy option. Use the
response_headers_hiding_policyoption instead.HTTP Headers that must be included in the response.
- Cors
Get
Cdn Rule Template Options Cors Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- Country
Acl GetCdn Rule Template Options Country Acl - Enables control access to content for specified countries.
- Disable
Cache GetCdn Rule Template Options Disable Cache Legacy option. Use the
edge_cache_settingsoption instead.Allows the complete disabling of content caching.
- Disable
Proxy GetForce Ranges Cdn Rule Template Options Disable Proxy Force Ranges - Allows 206 responses regardless of the settings of an origin source.
- Edge
Cache GetSettings Cdn Rule Template Options Edge Cache Settings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- Fastedge
Get
Cdn Rule Template Options Fastedge Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- Fetch
Compressed GetCdn Rule Template Options Fetch Compressed Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify"fetch_compressed": falsein the rule.
- Follow
Origin GetRedirect Cdn Rule Template Options Follow Origin Redirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- Force
Return GetCdn Rule Template Options Force Return Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- Forward
Host GetHeader Cdn Rule Template Options Forward Host Header Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- Gzip
On GetCdn Rule Template Options Gzip On Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify"fetch_compressed":falsefor rules.
- Compression with gzip is not supported with
- Host
Header GetCdn Rule Template Options Host Header Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.-
Get
Cdn Rule Template Options Ignore Cookie - Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- Ignore
Query GetString Cdn Rule Template Options Ignore Query String How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Image
Stack GetCdn Rule Template Options Image Stack - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- Ip
Address GetAcl Cdn Rule Template Options Ip Address Acl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- Limit
Bandwidth GetCdn Rule Template Options Limit Bandwidth - Allows to control the download speed per connection.
- Proxy
Cache GetKey Cdn Rule Template Options Proxy Cache Key Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- Proxy
Cache GetMethods Set Cdn Rule Template Options Proxy Cache Methods Set - Caching for POST requests along with default GET and HEAD.
- Proxy
Connect GetTimeout Cdn Rule Template Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- Proxy
Read GetTimeout Cdn 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.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- Query
Params GetBlacklist Cdn Rule Template Options Query Params Blacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Query
Params GetWhitelist Cdn Rule Template Options Query Params Whitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Query
String GetForwarding Cdn 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. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- Redirect
Http GetTo Https Cdn Rule Template Options Redirect Http To Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- Redirect
Https GetTo Http Cdn Rule Template Options Redirect Https To Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- Referrer
Acl GetCdn Rule Template Options Referrer Acl - Controls access to the CDN resource content for specified domain names.
- Request
Limiter GetCdn Rule Template Options Request Limiter - Option allows to limit the amount of HTTP requests.
- Response
Headers GetHiding Policy Cdn Rule Template Options Response Headers Hiding Policy - Hides HTTP headers from an origin server in the CDN response.
- Rewrite
Get
Cdn Rule Template Options Rewrite - Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- Secure
Key GetCdn Rule Template Options Secure Key - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- Slice
Get
Cdn Rule Template Options Slice Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- Sni
Get
Cdn Rule Template Options Sni The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- Stale
Get
Cdn Rule Template Options Stale - Serves stale cached content in case of origin unavailability.
- Static
Headers GetCdn Rule Template Options Static Headers Legacy option. Use the
static_response_headersoption instead.Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.
- Static
Request GetHeaders Cdn Rule Template Options Static Request Headers - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- Static
Response GetHeaders Cdn Rule Template Options Static Response Headers - Custom HTTP Headers that a CDN server adds to a response.
- User
Agent GetAcl Cdn Rule Template Options User Agent Acl - Controls access to the content for specified User-Agents.
- Waap
Get
Cdn Rule Template Options Waap - Allows to enable WAAP (Web Application and API Protection).
- Websockets
Get
Cdn Rule Template Options Websockets - Enables or disables WebSockets connections to an origin server.
- allowed
Http GetMethods Cdn Rule Template Options Allowed Http Methods - HTTP methods allowed for content requests from the CDN.
- bot
Protection GetCdn Rule Template Options Bot Protection - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- brotli
Compression GetCdn Rule Template Options Brotli Compression - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser
Cache GetSettings Cdn Rule Template Options Browser Cache Settings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- cache
Http GetHeaders Cdn Rule Template Options Cache Http Headers Legacy option. Use the
response_headers_hiding_policyoption instead.HTTP Headers that must be included in the response.
- cors
Get
Cdn Rule Template Options Cors Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country
Acl GetCdn Rule Template Options Country Acl - Enables control access to content for specified countries.
- disable
Cache GetCdn Rule Template Options Disable Cache Legacy option. Use the
edge_cache_settingsoption instead.Allows the complete disabling of content caching.
- disable
Proxy GetForce Ranges Cdn Rule Template Options Disable Proxy Force Ranges - Allows 206 responses regardless of the settings of an origin source.
- edge
Cache GetSettings Cdn Rule Template Options Edge Cache Settings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- fastedge
Get
Cdn Rule Template Options Fastedge Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- fetch
Compressed GetCdn Rule Template Options Fetch Compressed Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify"fetch_compressed": falsein the rule.
- follow
Origin GetRedirect Cdn Rule Template Options Follow Origin Redirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- force
Return GetCdn Rule Template Options Force Return Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward
Host GetHeader Cdn Rule Template Options Forward Host Header Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- gzip
On GetCdn Rule Template Options Gzip On Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify"fetch_compressed":falsefor rules.
- Compression with gzip is not supported with
- host
Header GetCdn Rule Template Options Host Header Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.-
Get
Cdn Rule Template Options Ignore Cookie - Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore
Query GetString Cdn Rule Template Options Ignore Query String How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- image
Stack GetCdn Rule Template Options Image Stack - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- ip
Address GetAcl Cdn Rule Template Options Ip Address Acl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- limit
Bandwidth GetCdn Rule Template Options Limit Bandwidth - Allows to control the download speed per connection.
- proxy
Cache GetKey Cdn Rule Template Options Proxy Cache Key Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- proxy
Cache GetMethods Set Cdn Rule Template Options Proxy Cache Methods Set - Caching for POST requests along with default GET and HEAD.
- proxy
Connect GetTimeout Cdn Rule Template Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- proxy
Read GetTimeout Cdn 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.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- query
Params GetBlacklist Cdn Rule Template Options Query Params Blacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
Params GetWhitelist Cdn Rule Template Options Query Params Whitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
String GetForwarding Cdn 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. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- redirect
Http GetTo Https Cdn Rule Template Options Redirect Http To Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- redirect
Https GetTo Http Cdn Rule Template Options Redirect Https To Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- referrer
Acl GetCdn Rule Template Options Referrer Acl - Controls access to the CDN resource content for specified domain names.
- request
Limiter GetCdn Rule Template Options Request Limiter - Option allows to limit the amount of HTTP requests.
- response
Headers GetHiding Policy Cdn Rule Template Options Response Headers Hiding Policy - Hides HTTP headers from an origin server in the CDN response.
- rewrite
Get
Cdn Rule Template Options Rewrite - Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure
Key GetCdn Rule Template Options Secure Key - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice
Get
Cdn Rule Template Options Slice Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- sni
Get
Cdn Rule Template Options Sni The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- stale
Get
Cdn Rule Template Options Stale - Serves stale cached content in case of origin unavailability.
- static
Headers GetCdn Rule Template Options Static Headers Legacy option. Use the
static_response_headersoption instead.Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.
- static
Request GetHeaders Cdn Rule Template Options Static Request Headers - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- static
Response GetHeaders Cdn Rule Template Options Static Response Headers - Custom HTTP Headers that a CDN server adds to a response.
- user
Agent GetAcl Cdn Rule Template Options User Agent Acl - Controls access to the content for specified User-Agents.
- waap
Get
Cdn Rule Template Options Waap - Allows to enable WAAP (Web Application and API Protection).
- websockets
Get
Cdn Rule Template Options Websockets - Enables or disables WebSockets connections to an origin server.
- allowed
Http GetMethods Cdn Rule Template Options Allowed Http Methods - HTTP methods allowed for content requests from the CDN.
- bot
Protection GetCdn Rule Template Options Bot Protection - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- brotli
Compression GetCdn Rule Template Options Brotli Compression - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser
Cache GetSettings Cdn Rule Template Options Browser Cache Settings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- cache
Http GetHeaders Cdn Rule Template Options Cache Http Headers Legacy option. Use the
response_headers_hiding_policyoption instead.HTTP Headers that must be included in the response.
- cors
Get
Cdn Rule Template Options Cors Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country
Acl GetCdn Rule Template Options Country Acl - Enables control access to content for specified countries.
- disable
Cache GetCdn Rule Template Options Disable Cache Legacy option. Use the
edge_cache_settingsoption instead.Allows the complete disabling of content caching.
- disable
Proxy GetForce Ranges Cdn Rule Template Options Disable Proxy Force Ranges - Allows 206 responses regardless of the settings of an origin source.
- edge
Cache GetSettings Cdn Rule Template Options Edge Cache Settings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- fastedge
Get
Cdn Rule Template Options Fastedge Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- fetch
Compressed GetCdn Rule Template Options Fetch Compressed Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify"fetch_compressed": falsein the rule.
- follow
Origin GetRedirect Cdn Rule Template Options Follow Origin Redirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- force
Return GetCdn Rule Template Options Force Return Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward
Host GetHeader Cdn Rule Template Options Forward Host Header Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- gzip
On GetCdn Rule Template Options Gzip On Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify"fetch_compressed":falsefor rules.
- Compression with gzip is not supported with
- host
Header GetCdn Rule Template Options Host Header Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.-
Get
Cdn Rule Template Options Ignore Cookie - Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore
Query GetString Cdn Rule Template Options Ignore Query String How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- image
Stack GetCdn Rule Template Options Image Stack - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- ip
Address GetAcl Cdn Rule Template Options Ip Address Acl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- limit
Bandwidth GetCdn Rule Template Options Limit Bandwidth - Allows to control the download speed per connection.
- proxy
Cache GetKey Cdn Rule Template Options Proxy Cache Key Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- proxy
Cache GetMethods Set Cdn Rule Template Options Proxy Cache Methods Set - Caching for POST requests along with default GET and HEAD.
- proxy
Connect GetTimeout Cdn Rule Template Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- proxy
Read GetTimeout Cdn 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.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- query
Params GetBlacklist Cdn Rule Template Options Query Params Blacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
Params GetWhitelist Cdn Rule Template Options Query Params Whitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
String GetForwarding Cdn 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. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- redirect
Http GetTo Https Cdn Rule Template Options Redirect Http To Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- redirect
Https GetTo Http Cdn Rule Template Options Redirect Https To Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- referrer
Acl GetCdn Rule Template Options Referrer Acl - Controls access to the CDN resource content for specified domain names.
- request
Limiter GetCdn Rule Template Options Request Limiter - Option allows to limit the amount of HTTP requests.
- response
Headers GetHiding Policy Cdn Rule Template Options Response Headers Hiding Policy - Hides HTTP headers from an origin server in the CDN response.
- rewrite
Get
Cdn Rule Template Options Rewrite - Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure
Key GetCdn Rule Template Options Secure Key - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice
Get
Cdn Rule Template Options Slice Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- sni
Get
Cdn Rule Template Options Sni The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- stale
Get
Cdn Rule Template Options Stale - Serves stale cached content in case of origin unavailability.
- static
Headers GetCdn Rule Template Options Static Headers Legacy option. Use the
static_response_headersoption instead.Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.
- static
Request GetHeaders Cdn Rule Template Options Static Request Headers - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- static
Response GetHeaders Cdn Rule Template Options Static Response Headers - Custom HTTP Headers that a CDN server adds to a response.
- user
Agent GetAcl Cdn Rule Template Options User Agent Acl - Controls access to the content for specified User-Agents.
- waap
Get
Cdn Rule Template Options Waap - Allows to enable WAAP (Web Application and API Protection).
- websockets
Get
Cdn Rule Template Options Websockets - Enables or disables WebSockets connections to an origin server.
- allowed_
http_ Getmethods Cdn Rule Template Options Allowed Http Methods - HTTP methods allowed for content requests from the CDN.
- bot_
protection GetCdn Rule Template Options Bot Protection - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- brotli_
compression GetCdn Rule Template Options Brotli Compression - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser_
cache_ Getsettings Cdn Rule Template Options Browser Cache Settings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- cache_
http_ Getheaders Cdn Rule Template Options Cache Http Headers Legacy option. Use the
response_headers_hiding_policyoption instead.HTTP Headers that must be included in the response.
- cors
Get
Cdn Rule Template Options Cors Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country_
acl GetCdn Rule Template Options Country Acl - Enables control access to content for specified countries.
- disable_
cache GetCdn Rule Template Options Disable Cache Legacy option. Use the
edge_cache_settingsoption instead.Allows the complete disabling of content caching.
- disable_
proxy_ Getforce_ ranges Cdn Rule Template Options Disable Proxy Force Ranges - Allows 206 responses regardless of the settings of an origin source.
- edge_
cache_ Getsettings Cdn Rule Template Options Edge Cache Settings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- fastedge
Get
Cdn Rule Template Options Fastedge Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- fetch_
compressed GetCdn Rule Template Options Fetch Compressed Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify"fetch_compressed": falsein the rule.
- follow_
origin_ Getredirect Cdn Rule Template Options Follow Origin Redirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- force_
return GetCdn Rule Template Options Force Return Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward_
host_ Getheader Cdn Rule Template Options Forward Host Header Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- gzip_
on GetCdn Rule Template Options Gzip On Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify"fetch_compressed":falsefor rules.
- Compression with gzip is not supported with
- host_
header GetCdn Rule Template Options Host Header Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.-
Get
Cdn Rule Template Options Ignore Cookie - Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore_
query_ Getstring Cdn Rule Template Options Ignore Query String How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- image_
stack GetCdn Rule Template Options Image Stack - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- ip_
address_ Getacl Cdn Rule Template Options Ip Address Acl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- limit_
bandwidth GetCdn Rule Template Options Limit Bandwidth - Allows to control the download speed per connection.
- proxy_
cache_ Getkey Cdn Rule Template Options Proxy Cache Key Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- proxy_
cache_ Getmethods_ set Cdn Rule Template Options Proxy Cache Methods Set - Caching for POST requests along with default GET and HEAD.
- proxy_
connect_ Gettimeout Cdn Rule Template Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- proxy_
read_ Gettimeout Cdn 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.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- query_
params_ Getblacklist Cdn Rule Template Options Query Params Blacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query_
params_ Getwhitelist Cdn Rule Template Options Query Params Whitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query_
string_ Getforwarding Cdn 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. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- redirect_
http_ Getto_ https Cdn Rule Template Options Redirect Http To Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- redirect_
https_ Getto_ http Cdn Rule Template Options Redirect Https To Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- referrer_
acl GetCdn Rule Template Options Referrer Acl - Controls access to the CDN resource content for specified domain names.
- request_
limiter GetCdn Rule Template Options Request Limiter - Option allows to limit the amount of HTTP requests.
- response_
headers_ Gethiding_ policy Cdn Rule Template Options Response Headers Hiding Policy - Hides HTTP headers from an origin server in the CDN response.
- rewrite
Get
Cdn Rule Template Options Rewrite - Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure_
key GetCdn Rule Template Options Secure Key - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice
Get
Cdn Rule Template Options Slice Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- sni
Get
Cdn Rule Template Options Sni The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- stale
Get
Cdn Rule Template Options Stale - Serves stale cached content in case of origin unavailability.
- static_
headers GetCdn Rule Template Options Static Headers Legacy option. Use the
static_response_headersoption instead.Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.
- static_
request_ Getheaders Cdn Rule Template Options Static Request Headers - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- static_
response_ Getheaders Cdn Rule Template Options Static Response Headers - Custom HTTP Headers that a CDN server adds to a response.
- user_
agent_ Getacl Cdn Rule Template Options User Agent Acl - Controls access to the content for specified User-Agents.
- waap
Get
Cdn Rule Template Options Waap - Allows to enable WAAP (Web Application and API Protection).
- websockets
Get
Cdn Rule Template Options Websockets - Enables or disables WebSockets connections to an origin server.
- allowed
Http Property MapMethods - HTTP methods allowed for content requests from the CDN.
- bot
Protection Property Map - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- brotli
Compression Property Map - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser
Cache Property MapSettings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- cache
Http Property MapHeaders Legacy option. Use the
response_headers_hiding_policyoption instead.HTTP Headers that must be included in the response.
- cors Property Map
Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country
Acl Property Map - Enables control access to content for specified countries.
- disable
Cache Property Map Legacy option. Use the
edge_cache_settingsoption instead.Allows the complete disabling of content caching.
- disable
Proxy Property MapForce Ranges - Allows 206 responses regardless of the settings of an origin source.
- edge
Cache Property MapSettings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- fastedge Property Map
Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- fetch
Compressed Property Map Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify"fetch_compressed": falsein the rule.
- follow
Origin Property MapRedirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- force
Return Property Map Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward
Host Property MapHeader Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- gzip
On Property Map Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify"fetch_compressed":falsefor rules.
- Compression with gzip is not supported with
- host
Header Property Map Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- Property Map
- Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore
Query Property MapString How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- image
Stack Property Map - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- ip
Address Property MapAcl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- limit
Bandwidth Property Map - Allows to control the download speed per connection.
- proxy
Cache Property MapKey Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- proxy
Cache Property MapMethods Set - Caching for POST requests along with default GET and HEAD.
- 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.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- query
Params Property MapBlacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
Params Property MapWhitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- 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. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- redirect
Http Property MapTo Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- redirect
Https Property MapTo Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- referrer
Acl Property Map - Controls access to the CDN resource content for specified domain names.
- request
Limiter Property Map - Option allows to limit the amount of HTTP requests.
- response
Headers Property MapHiding Policy - Hides HTTP headers from an origin server in the CDN response.
- rewrite Property Map
- Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure
Key Property Map - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice Property Map
Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- sni Property Map
The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- stale Property Map
- Serves stale cached content in case of origin unavailability.
- static
Headers Property Map Legacy option. Use the
static_response_headersoption instead.Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP Headers can be specified. May contain a header with multiple values.
- static
Request Property MapHeaders - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- static
Response Property MapHeaders - Custom HTTP Headers that a CDN server adds to a response.
- user
Agent Property MapAcl - Controls access to the content for specified User-Agents.
- waap Property Map
- Allows to enable WAAP (Web Application and API Protection).
- websockets Property Map
- Enables or disables WebSockets connections to an origin server.
GetCdnRuleTemplateOptionsAllowedHttpMethods
GetCdnRuleTemplateOptionsBotProtection
- Bot
Challenge GetCdn Rule Template Options Bot Protection Bot Challenge - Controls the bot challenge module state.
- Enabled bool
- Controls the option state.
- Bot
Challenge GetCdn Rule Template Options Bot Protection Bot Challenge - Controls the bot challenge module state.
- Enabled bool
- Controls the option state.
- bot
Challenge GetCdn Rule Template Options Bot Protection Bot Challenge - Controls the bot challenge module state.
- enabled Boolean
- Controls the option state.
- bot
Challenge GetCdn Rule Template Options Bot Protection Bot Challenge - Controls the bot challenge module state.
- enabled boolean
- Controls the option state.
- bot_
challenge GetCdn Rule Template Options Bot Protection Bot Challenge - Controls the bot challenge module state.
- enabled bool
- Controls the option state.
- bot
Challenge Property Map - Controls the bot challenge module state.
- enabled Boolean
- Controls the option state.
GetCdnRuleTemplateOptionsBotProtectionBotChallenge
- Enabled bool
- Possible values:
- Enabled bool
- Possible values:
- enabled Boolean
- Possible values:
- enabled boolean
- Possible values:
- enabled bool
- Possible values:
- enabled Boolean
- Possible values:
GetCdnRuleTemplateOptionsBrotliCompression
GetCdnRuleTemplateOptionsBrowserCacheSettings
GetCdnRuleTemplateOptionsCacheHttpHeaders
GetCdnRuleTemplateOptionsCors
- Always bool
- Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Values List<string>
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- Always bool
- Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Values []string
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- always Boolean
- Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- values List<String>
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- always boolean
- Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
- enabled boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- values string[]
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- always bool
- Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
- enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- values Sequence[str]
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- always Boolean
- Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- values List<String>
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
GetCdnRuleTemplateOptionsCountryAcl
- Enabled bool
- Controls the option state.
- Excepted
Values List<string> List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- Policy
Type string Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
- Enabled bool
- Controls the option state.
- Excepted
Values []string List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- Policy
Type string Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- policy
Type String Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
- enabled boolean
- Controls the option state.
- excepted
Values string[] List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- policy
Type string Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
- enabled bool
- Controls the option state.
- excepted_
values Sequence[str] List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- policy_
type str Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- policy
Type String Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
GetCdnRuleTemplateOptionsDisableCache
GetCdnRuleTemplateOptionsDisableProxyForceRanges
GetCdnRuleTemplateOptionsEdgeCacheSettings
- Custom
Values Dictionary<string, string> - A MAP object representing the caching time in seconds for a response with a specific response code.
- Default string
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Value string
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
- Custom
Values map[string]string - A MAP object representing the caching time in seconds for a response with a specific response code.
- Default string
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Value string
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
- custom
Values Map<String,String> - A MAP object representing the caching time in seconds for a response with a specific response code.
- default_ String
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- value String
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
- custom
Values {[key: string]: string} - A MAP object representing the caching time in seconds for a response with a specific response code.
- default string
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- enabled boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- value string
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
- custom_
values Mapping[str, str] - A MAP object representing the caching time in seconds for a response with a specific response code.
- default str
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- value str
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
- custom
Values Map<String> - A MAP object representing the caching time in seconds for a response with a specific response code.
- default String
- Defines whether the template is a system template developed for common cases. System templates are available to all customers.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- value String
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
GetCdnRuleTemplateOptionsFastedge
- Enabled bool
- Controls the option state.
- On
Request GetBody Cdn 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 GetHeaders Cdn 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, before cache.
- On
Response GetBody Cdn 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 GetHeaders Cdn 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
- Controls the option state.
- On
Request GetBody Cdn 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 GetHeaders Cdn 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, before cache.
- On
Response GetBody Cdn 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 GetHeaders Cdn 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
- Controls the option state.
- on
Request GetBody Cdn 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 GetHeaders Cdn 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, before cache.
- on
Response GetBody Cdn 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 GetHeaders Cdn 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
- Controls the option state.
- on
Request GetBody Cdn 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 GetHeaders Cdn 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, before cache.
- on
Response GetBody Cdn 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 GetHeaders Cdn 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
- Controls the option state.
- on_
request_ Getbody Cdn 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_ Getheaders Cdn 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, before cache.
- on_
response_ Getbody Cdn 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_ Getheaders Cdn 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
- Controls the option state.
- 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, before cache.
- 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.
GetCdnRuleTemplateOptionsFastedgeOnRequestBody
- 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.
GetCdnRuleTemplateOptionsFastedgeOnRequestHeaders
- 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.
GetCdnRuleTemplateOptionsFastedgeOnResponseBody
- 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.
GetCdnRuleTemplateOptionsFastedgeOnResponseHeaders
- 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.
GetCdnRuleTemplateOptionsFetchCompressed
GetCdnRuleTemplateOptionsFollowOriginRedirect
GetCdnRuleTemplateOptionsForceReturn
- Body string
- URL for redirection or text.
- Code double
- Status code value.
- Enabled bool
- Controls the option state.
- Time
Interval GetCdn Rule Template Options Force Return Time Interval - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
- Body string
- URL for redirection or text.
- Code float64
- Status code value.
- Enabled bool
- Controls the option state.
- Time
Interval GetCdn Rule Template Options Force Return Time Interval - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
- body String
- URL for redirection or text.
- code Double
- Status code value.
- enabled Boolean
- Controls the option state.
- time
Interval GetCdn Rule Template Options Force Return Time Interval - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
- body string
- URL for redirection or text.
- code number
- Status code value.
- enabled boolean
- Controls the option state.
- time
Interval GetCdn Rule Template Options Force Return Time Interval - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
- body str
- URL for redirection or text.
- code float
- Status code value.
- enabled bool
- Controls the option state.
- time_
interval GetCdn Rule Template Options Force Return Time Interval - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
- body String
- URL for redirection or text.
- code Number
- Status code value.
- enabled Boolean
- Controls the option state.
- time
Interval Property Map - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
GetCdnRuleTemplateOptionsForceReturnTimeInterval
- end_
time str - Time until which a custom HTTP response code should be applied. Indicated in 24-hour format.
- start_
time str - Time from which a custom HTTP response code should be applied. Indicated in 24-hour format.
- time_
zone str - Time zone used to calculate time.
GetCdnRuleTemplateOptionsForwardHostHeader
GetCdnRuleTemplateOptionsGzipOn
GetCdnRuleTemplateOptionsHostHeader
GetCdnRuleTemplateOptionsIgnoreCookie
GetCdnRuleTemplateOptionsIgnoreQueryString
GetCdnRuleTemplateOptionsImageStack
- Avif
Enabled bool - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- Enabled bool
- Controls the option state.
- Png
Lossless bool - Enables or disables compression without quality loss for PNG format.
- Quality double
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- Webp
Enabled bool - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
- Avif
Enabled bool - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- Enabled bool
- Controls the option state.
- Png
Lossless bool - Enables or disables compression without quality loss for PNG format.
- Quality float64
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- Webp
Enabled bool - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
- avif
Enabled Boolean - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- enabled Boolean
- Controls the option state.
- png
Lossless Boolean - Enables or disables compression without quality loss for PNG format.
- quality Double
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- webp
Enabled Boolean - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
- avif
Enabled boolean - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- enabled boolean
- Controls the option state.
- png
Lossless boolean - Enables or disables compression without quality loss for PNG format.
- quality number
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- webp
Enabled boolean - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
- avif_
enabled bool - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- enabled bool
- Controls the option state.
- png_
lossless bool - Enables or disables compression without quality loss for PNG format.
- quality float
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- webp_
enabled bool - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
- avif
Enabled Boolean - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- enabled Boolean
- Controls the option state.
- png
Lossless Boolean - Enables or disables compression without quality loss for PNG format.
- quality Number
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- webp
Enabled Boolean - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
GetCdnRuleTemplateOptionsIpAddressAcl
- Enabled bool
- Controls the option state.
- Excepted
Values List<string> List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- Policy
Type string IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in "excepted_values" field.
- deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
- Enabled bool
- Controls the option state.
- Excepted
Values []string List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- Policy
Type string IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in "excepted_values" field.
- deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- policy
Type String IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in "excepted_values" field.
- deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
- enabled boolean
- Controls the option state.
- excepted
Values string[] List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- policy
Type string IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in "excepted_values" field.
- deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
- enabled bool
- Controls the option state.
- excepted_
values Sequence[str] List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- policy_
type str IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in "excepted_values" field.
- deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- policy
Type String IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in "excepted_values" field.
- deny - Deny access to all IPs except IPs specified in "excepted_values" field. Available values: "allow", "deny".
GetCdnRuleTemplateOptionsLimitBandwidth
- Buffer double
- Amount of downloaded data after which the user will be rate limited.
- Enabled bool
- Controls the option state.
- Limit
Type string Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- Speed double
- Maximum download speed per connection.
- Buffer float64
- Amount of downloaded data after which the user will be rate limited.
- Enabled bool
- Controls the option state.
- Limit
Type string Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- Speed float64
- Maximum download speed per connection.
- buffer Double
- Amount of downloaded data after which the user will be rate limited.
- enabled Boolean
- Controls the option state.
- limit
Type String Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- speed Double
- Maximum download speed per connection.
- buffer number
- Amount of downloaded data after which the user will be rate limited.
- enabled boolean
- Controls the option state.
- limit
Type string Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- speed number
- Maximum download speed per connection.
- buffer float
- Amount of downloaded data after which the user will be rate limited.
- enabled bool
- Controls the option state.
- limit_
type str Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- speed float
- Maximum download speed per connection.
- buffer Number
- Amount of downloaded data after which the user will be rate limited.
- enabled Boolean
- Controls the option state.
- limit
Type String Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- speed Number
- Maximum download speed per connection.
GetCdnRuleTemplateOptionsProxyCacheKey
GetCdnRuleTemplateOptionsProxyCacheMethodsSet
GetCdnRuleTemplateOptionsProxyConnectTimeout
GetCdnRuleTemplateOptionsProxyReadTimeout
GetCdnRuleTemplateOptionsQueryParamsBlacklist
GetCdnRuleTemplateOptionsQueryParamsWhitelist
GetCdnRuleTemplateOptionsQueryStringForwarding
- Enabled bool
- Controls the option state.
- Forward
Except List<string>Keys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - Forward
From List<string>File Types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - Forward
Only List<string>Keys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks. - Forward
To List<string>File Types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- Enabled bool
- Controls the option state.
- Forward
Except []stringKeys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - Forward
From []stringFile Types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - Forward
Only []stringKeys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks. - Forward
To []stringFile Types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- enabled Boolean
- Controls the option state.
- forward
Except List<String>Keys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - forward
From List<String>File Types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - forward
Only List<String>Keys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks. - forward
To List<String>File Types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- enabled boolean
- Controls the option state.
- forward
Except string[]Keys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - forward
From string[]File Types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - forward
Only string[]Keys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks. - forward
To string[]File Types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- enabled bool
- Controls the option state.
- forward_
except_ Sequence[str]keys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - forward_
from_ Sequence[str]file_ types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - forward_
only_ Sequence[str]keys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks. - forward_
to_ Sequence[str]file_ types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- enabled Boolean
- Controls the option state.
- forward
Except List<String>Keys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - forward
From List<String>File Types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - forward
Only List<String>Keys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks. - forward
To List<String>File Types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
GetCdnRuleTemplateOptionsRedirectHttpToHttps
GetCdnRuleTemplateOptionsRedirectHttpsToHttp
GetCdnRuleTemplateOptionsReferrerAcl
- Enabled bool
- Controls the option state.
- Excepted
Values List<string> List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- Policy
Type string Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
- Enabled bool
- Controls the option state.
- Excepted
Values []string List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- Policy
Type string Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- policy
Type String Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
- enabled boolean
- Controls the option state.
- excepted
Values string[] List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- policy
Type string Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
- enabled bool
- Controls the option state.
- excepted_
values Sequence[str] List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- policy_
type str Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- policy
Type String Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
GetCdnRuleTemplateOptionsRequestLimiter
- Burst double
- Delay double
- Enabled bool
- Controls the option state.
- Rate double
- Maximum request rate.
- Rate
Unit string Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
- Burst float64
- Delay float64
- Enabled bool
- Controls the option state.
- Rate float64
- Maximum request rate.
- Rate
Unit string Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
- burst Double
- delay Double
- enabled Boolean
- Controls the option state.
- rate Double
- Maximum request rate.
- rate
Unit String Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
- burst number
- delay number
- enabled boolean
- Controls the option state.
- rate number
- Maximum request rate.
- rate
Unit string Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
- burst float
- delay float
- enabled bool
- Controls the option state.
- rate float
- Maximum request rate.
- rate_
unit str Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
- burst Number
- delay Number
- enabled Boolean
- Controls the option state.
- rate Number
- Maximum request rate.
- rate
Unit String Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
GetCdnRuleTemplateOptionsResponseHeadersHidingPolicy
- Enabled bool
- Controls the option state.
- Excepteds List<string>
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- Mode string
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- Enabled bool
- Controls the option state.
- Excepteds []string
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- Mode string
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- enabled Boolean
- Controls the option state.
- excepteds List<String>
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- mode String
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- enabled boolean
- Controls the option state.
- excepteds string[]
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- mode string
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- enabled bool
- Controls the option state.
- excepteds Sequence[str]
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- mode str
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- enabled Boolean
- Controls the option state.
- excepteds List<String>
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- mode String
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
GetCdnRuleTemplateOptionsRewrite
- Body string
- Path for the Rewrite option.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Flag string
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
- Body string
- Path for the Rewrite option.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Flag string
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
- body String
- Path for the Rewrite option.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- flag String
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
- body string
- Path for the Rewrite option.
- enabled boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- flag string
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
- body str
- Path for the Rewrite option.
- enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- flag str
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
- body String
- Path for the Rewrite option.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- flag String
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
GetCdnRuleTemplateOptionsSecureKey
GetCdnRuleTemplateOptionsSlice
GetCdnRuleTemplateOptionsSni
- Custom
Hostname string - Custom SNI hostname.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Sni
Type string SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
- Custom
Hostname string - Custom SNI hostname.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Sni
Type string SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
- custom
Hostname String - Custom SNI hostname.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- sni
Type String SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
- custom
Hostname string - Custom SNI hostname.
- enabled boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- sni
Type string SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
- custom_
hostname str - Custom SNI hostname.
- enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- sni_
type str SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
- custom
Hostname String - Custom SNI hostname.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- sni
Type String SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
GetCdnRuleTemplateOptionsStale
GetCdnRuleTemplateOptionsStaticHeaders
- Enabled bool
- Controls the option state.
- Value string
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- Enabled bool
- Controls the option state.
- Value string
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled Boolean
- Controls the option state.
- value String
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled boolean
- Controls the option state.
- value string
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled bool
- Controls the option state.
- value str
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled Boolean
- Controls the option state.
- value String
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 128 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
GetCdnRuleTemplateOptionsStaticRequestHeaders
- Enabled bool
- Controls the option state.
- Value Dictionary<string, string>
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- Enabled bool
- Controls the option state.
- Value map[string]string
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled Boolean
- Controls the option state.
- value Map<String,String>
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled boolean
- Controls the option state.
- value {[key: string]: string}
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled bool
- Controls the option state.
- value Mapping[str, str]
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled Boolean
- Controls the option state.
- value Map<String>
A MAP for static headers in a format of
header_name: header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
GetCdnRuleTemplateOptionsStaticResponseHeaders
- Enabled bool
- Controls the option state.
- Values
List<Get
Cdn Rule Template Options Static Response Headers Value>
- Enabled bool
- Controls the option state.
- Values
[]Get
Cdn Rule Template Options Static Response Headers Value
- enabled Boolean
- Controls the option state.
- values
List<Get
Cdn Rule Template Options Static Response Headers Value>
- enabled boolean
- Controls the option state.
- values
Get
Cdn Rule Template Options Static Response Headers Value[]
- enabled bool
- Controls the option state.
- values
Sequence[Get
Cdn Rule Template Options Static Response Headers Value]
- enabled Boolean
- Controls the option state.
- values List<Property Map>
GetCdnRuleTemplateOptionsStaticResponseHeadersValue
- Always bool
- Defines whether the header will be added to a response from CDN regardless of response code.
- Name string
HTTP Header name.
Restrictions:
- Maximum 128 symbols.
- Latin letters (A-Z, a-z,) numbers (0-9,) dashes, and underscores only.
- Values List<string>
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- Always bool
- Defines whether the header will be added to a response from CDN regardless of response code.
- Name string
HTTP Header name.
Restrictions:
- Maximum 128 symbols.
- Latin letters (A-Z, a-z,) numbers (0-9,) dashes, and underscores only.
- Values []string
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- always Boolean
- Defines whether the header will be added to a response from CDN regardless of response code.
- name String
HTTP Header name.
Restrictions:
- Maximum 128 symbols.
- Latin letters (A-Z, a-z,) numbers (0-9,) dashes, and underscores only.
- values List<String>
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- always boolean
- Defines whether the header will be added to a response from CDN regardless of response code.
- name string
HTTP Header name.
Restrictions:
- Maximum 128 symbols.
- Latin letters (A-Z, a-z,) numbers (0-9,) dashes, and underscores only.
- values string[]
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- always bool
- Defines whether the header will be added to a response from CDN regardless of response code.
- name str
HTTP Header name.
Restrictions:
- Maximum 128 symbols.
- Latin letters (A-Z, a-z,) numbers (0-9,) dashes, and underscores only.
- values Sequence[str]
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- always Boolean
- Defines whether the header will be added to a response from CDN regardless of response code.
- name String
HTTP Header name.
Restrictions:
- Maximum 128 symbols.
- Latin letters (A-Z, a-z,) numbers (0-9,) dashes, and underscores only.
- values List<String>
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
GetCdnRuleTemplateOptionsUserAgentAcl
- Enabled bool
- Controls the option state.
- Excepted
Values List<string> List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- Policy
Type string User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
- Enabled bool
- Controls the option state.
- Excepted
Values []string List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- Policy
Type string User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- policy
Type String User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
- enabled boolean
- Controls the option state.
- excepted
Values string[] List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- policy
Type string User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
- enabled bool
- Controls the option state.
- excepted_
values Sequence[str] List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- policy_
type str User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- policy
Type String User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
GetCdnRuleTemplateOptionsWaap
GetCdnRuleTemplateOptionsWebsockets
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
published on Monday, Mar 30, 2026 by g-core
