Cloudflare v6.9.1 published on Thursday, Sep 18, 2025 by Pulumi
cloudflare.getRuleset
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleRuleset = cloudflare.getRuleset({
zoneId: "9f1839b6152d298aca64c4e906b6d074",
id: "2f2feab2026849078ba485f918791bdc",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_ruleset = cloudflare.get_ruleset(zone_id="9f1839b6152d298aca64c4e906b6d074",
id="2f2feab2026849078ba485f918791bdc")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.LookupRuleset(ctx, &cloudflare.LookupRulesetArgs{
ZoneId: pulumi.StringRef("9f1839b6152d298aca64c4e906b6d074"),
Id: pulumi.StringRef("2f2feab2026849078ba485f918791bdc"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleRuleset = Cloudflare.GetRuleset.Invoke(new()
{
ZoneId = "9f1839b6152d298aca64c4e906b6d074",
Id = "2f2feab2026849078ba485f918791bdc",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetRulesetArgs;
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 exampleRuleset = CloudflareFunctions.getRuleset(GetRulesetArgs.builder()
.zoneId("9f1839b6152d298aca64c4e906b6d074")
.id("2f2feab2026849078ba485f918791bdc")
.build());
}
}
variables:
exampleRuleset:
fn::invoke:
function: cloudflare:getRuleset
arguments:
zoneId: 9f1839b6152d298aca64c4e906b6d074
id: 2f2feab2026849078ba485f918791bdc
Using getRuleset
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 getRuleset(args: GetRulesetArgs, opts?: InvokeOptions): Promise<GetRulesetResult>
function getRulesetOutput(args: GetRulesetOutputArgs, opts?: InvokeOptions): Output<GetRulesetResult>
def get_ruleset(account_id: Optional[str] = None,
id: Optional[str] = None,
ruleset_id: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRulesetResult
def get_ruleset_output(account_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
ruleset_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRulesetResult]
func LookupRuleset(ctx *Context, args *LookupRulesetArgs, opts ...InvokeOption) (*LookupRulesetResult, error)
func LookupRulesetOutput(ctx *Context, args *LookupRulesetOutputArgs, opts ...InvokeOption) LookupRulesetResultOutput
> Note: This function is named LookupRuleset
in the Go SDK.
public static class GetRuleset
{
public static Task<GetRulesetResult> InvokeAsync(GetRulesetArgs args, InvokeOptions? opts = null)
public static Output<GetRulesetResult> Invoke(GetRulesetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRulesetResult> getRuleset(GetRulesetArgs args, InvokeOptions options)
public static Output<GetRulesetResult> getRuleset(GetRulesetArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getRuleset:getRuleset
arguments:
# arguments dictionary
The following arguments are supported:
- account_
id str - The unique ID of the account.
- id str
- The unique ID of the ruleset.
- ruleset_
id str - The unique ID of the ruleset.
- zone_
id str - The unique ID of the zone.
getRuleset Result
The following output properties are available:
- Description string
- An informative description of the ruleset.
- Kind string
- The kind of the ruleset. Available values: "managed", "custom", "root", "zone".
- Last
Updated string - The timestamp of when the ruleset was last modified.
- Name string
- The human-readable name of the ruleset.
- Phase string
- The phase of the ruleset. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- Rules
List<Get
Ruleset Rule> - The list of rules in the ruleset.
- Version string
- The version of the ruleset.
- Account
Id string - The unique ID of the account.
- Id string
- The unique ID of the ruleset.
- Ruleset
Id string - The unique ID of the ruleset.
- Zone
Id string - The unique ID of the zone.
- Description string
- An informative description of the ruleset.
- Kind string
- The kind of the ruleset. Available values: "managed", "custom", "root", "zone".
- Last
Updated string - The timestamp of when the ruleset was last modified.
- Name string
- The human-readable name of the ruleset.
- Phase string
- The phase of the ruleset. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- Rules
[]Get
Ruleset Rule - The list of rules in the ruleset.
- Version string
- The version of the ruleset.
- Account
Id string - The unique ID of the account.
- Id string
- The unique ID of the ruleset.
- Ruleset
Id string - The unique ID of the ruleset.
- Zone
Id string - The unique ID of the zone.
- description String
- An informative description of the ruleset.
- kind String
- The kind of the ruleset. Available values: "managed", "custom", "root", "zone".
- last
Updated String - The timestamp of when the ruleset was last modified.
- name String
- The human-readable name of the ruleset.
- phase String
- The phase of the ruleset. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- rules
List<Get
Ruleset Rule> - The list of rules in the ruleset.
- version String
- The version of the ruleset.
- account
Id String - The unique ID of the account.
- id String
- The unique ID of the ruleset.
- ruleset
Id String - The unique ID of the ruleset.
- zone
Id String - The unique ID of the zone.
- description string
- An informative description of the ruleset.
- kind string
- The kind of the ruleset. Available values: "managed", "custom", "root", "zone".
- last
Updated string - The timestamp of when the ruleset was last modified.
- name string
- The human-readable name of the ruleset.
- phase string
- The phase of the ruleset. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- rules
Get
Ruleset Rule[] - The list of rules in the ruleset.
- version string
- The version of the ruleset.
- account
Id string - The unique ID of the account.
- id string
- The unique ID of the ruleset.
- ruleset
Id string - The unique ID of the ruleset.
- zone
Id string - The unique ID of the zone.
- description str
- An informative description of the ruleset.
- kind str
- The kind of the ruleset. Available values: "managed", "custom", "root", "zone".
- last_
updated str - The timestamp of when the ruleset was last modified.
- name str
- The human-readable name of the ruleset.
- phase str
- The phase of the ruleset. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- rules
Sequence[Get
Ruleset Rule] - The list of rules in the ruleset.
- version str
- The version of the ruleset.
- account_
id str - The unique ID of the account.
- id str
- The unique ID of the ruleset.
- ruleset_
id str - The unique ID of the ruleset.
- zone_
id str - The unique ID of the zone.
- description String
- An informative description of the ruleset.
- kind String
- The kind of the ruleset. Available values: "managed", "custom", "root", "zone".
- last
Updated String - The timestamp of when the ruleset was last modified.
- name String
- The human-readable name of the ruleset.
- phase String
- The phase of the ruleset. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- rules List<Property Map>
- The list of rules in the ruleset.
- version String
- The version of the ruleset.
- account
Id String - The unique ID of the account.
- id String
- The unique ID of the ruleset.
- ruleset
Id String - The unique ID of the ruleset.
- zone
Id String - The unique ID of the zone.
Supporting Types
GetRulesetRule
- Action string
- The action to perform when the rule matches. Available values: "block", "challenge", "compressresponse", "ddosdynamic", "execute", "forceconnectionclose", "jschallenge", "log", "logcustomfield", "managedchallenge", "redirect", "rewrite", "route", "score", "serveerror", "setcachesettings", "setconfig", "skip".
- Action
Parameters GetRuleset Rule Action Parameters - The parameters configuring the rule's action.
- Categories List<string>
- The categories of the rule.
- Description string
- An informative description of the rule.
- Enabled bool
- Whether the rule should be executed.
- Exposed
Credential GetCheck Ruleset Rule Exposed Credential Check - Configuration for exposed credential checking.
- Expression string
- The expression defining which traffic will match the rule.
- Id string
- The unique ID of the rule.
- Logging
Get
Ruleset Rule Logging - An object configuring the rule's logging behavior.
- Ratelimit
Get
Ruleset Rule Ratelimit - An object configuring the rule's rate limit behavior.
- Ref string
- The reference of the rule (the rule's ID by default).
- Action string
- The action to perform when the rule matches. Available values: "block", "challenge", "compressresponse", "ddosdynamic", "execute", "forceconnectionclose", "jschallenge", "log", "logcustomfield", "managedchallenge", "redirect", "rewrite", "route", "score", "serveerror", "setcachesettings", "setconfig", "skip".
- Action
Parameters GetRuleset Rule Action Parameters - The parameters configuring the rule's action.
- Categories []string
- The categories of the rule.
- Description string
- An informative description of the rule.
- Enabled bool
- Whether the rule should be executed.
- Exposed
Credential GetCheck Ruleset Rule Exposed Credential Check - Configuration for exposed credential checking.
- Expression string
- The expression defining which traffic will match the rule.
- Id string
- The unique ID of the rule.
- Logging
Get
Ruleset Rule Logging - An object configuring the rule's logging behavior.
- Ratelimit
Get
Ruleset Rule Ratelimit - An object configuring the rule's rate limit behavior.
- Ref string
- The reference of the rule (the rule's ID by default).
- action String
- The action to perform when the rule matches. Available values: "block", "challenge", "compressresponse", "ddosdynamic", "execute", "forceconnectionclose", "jschallenge", "log", "logcustomfield", "managedchallenge", "redirect", "rewrite", "route", "score", "serveerror", "setcachesettings", "setconfig", "skip".
- action
Parameters GetRuleset Rule Action Parameters - The parameters configuring the rule's action.
- categories List<String>
- The categories of the rule.
- description String
- An informative description of the rule.
- enabled Boolean
- Whether the rule should be executed.
- exposed
Credential GetCheck Ruleset Rule Exposed Credential Check - Configuration for exposed credential checking.
- expression String
- The expression defining which traffic will match the rule.
- id String
- The unique ID of the rule.
- logging
Get
Ruleset Rule Logging - An object configuring the rule's logging behavior.
- ratelimit
Get
Ruleset Rule Ratelimit - An object configuring the rule's rate limit behavior.
- ref String
- The reference of the rule (the rule's ID by default).
- action string
- The action to perform when the rule matches. Available values: "block", "challenge", "compressresponse", "ddosdynamic", "execute", "forceconnectionclose", "jschallenge", "log", "logcustomfield", "managedchallenge", "redirect", "rewrite", "route", "score", "serveerror", "setcachesettings", "setconfig", "skip".
- action
Parameters GetRuleset Rule Action Parameters - The parameters configuring the rule's action.
- categories string[]
- The categories of the rule.
- description string
- An informative description of the rule.
- enabled boolean
- Whether the rule should be executed.
- exposed
Credential GetCheck Ruleset Rule Exposed Credential Check - Configuration for exposed credential checking.
- expression string
- The expression defining which traffic will match the rule.
- id string
- The unique ID of the rule.
- logging
Get
Ruleset Rule Logging - An object configuring the rule's logging behavior.
- ratelimit
Get
Ruleset Rule Ratelimit - An object configuring the rule's rate limit behavior.
- ref string
- The reference of the rule (the rule's ID by default).
- action str
- The action to perform when the rule matches. Available values: "block", "challenge", "compressresponse", "ddosdynamic", "execute", "forceconnectionclose", "jschallenge", "log", "logcustomfield", "managedchallenge", "redirect", "rewrite", "route", "score", "serveerror", "setcachesettings", "setconfig", "skip".
- action_
parameters GetRuleset Rule Action Parameters - The parameters configuring the rule's action.
- categories Sequence[str]
- The categories of the rule.
- description str
- An informative description of the rule.
- enabled bool
- Whether the rule should be executed.
- exposed_
credential_ Getcheck Ruleset Rule Exposed Credential Check - Configuration for exposed credential checking.
- expression str
- The expression defining which traffic will match the rule.
- id str
- The unique ID of the rule.
- logging
Get
Ruleset Rule Logging - An object configuring the rule's logging behavior.
- ratelimit
Get
Ruleset Rule Ratelimit - An object configuring the rule's rate limit behavior.
- ref str
- The reference of the rule (the rule's ID by default).
- action String
- The action to perform when the rule matches. Available values: "block", "challenge", "compressresponse", "ddosdynamic", "execute", "forceconnectionclose", "jschallenge", "log", "logcustomfield", "managedchallenge", "redirect", "rewrite", "route", "score", "serveerror", "setcachesettings", "setconfig", "skip".
- action
Parameters Property Map - The parameters configuring the rule's action.
- categories List<String>
- The categories of the rule.
- description String
- An informative description of the rule.
- enabled Boolean
- Whether the rule should be executed.
- exposed
Credential Property MapCheck - Configuration for exposed credential checking.
- expression String
- The expression defining which traffic will match the rule.
- id String
- The unique ID of the rule.
- logging Property Map
- An object configuring the rule's logging behavior.
- ratelimit Property Map
- An object configuring the rule's rate limit behavior.
- ref String
- The reference of the rule (the rule's ID by default).
GetRulesetRuleActionParameters
- Additional
Cacheable List<int>Ports - A list of additional ports that caching should be enabled on.
- Algorithms
List<Get
Ruleset Rule Action Parameters Algorithm> - Custom order for compression algorithms.
- Asset
Name string - The name of a custom asset to serve as the response.
- Automatic
Https boolRewrites - Whether to enable Automatic HTTPS Rewrites.
- Autominify
Get
Ruleset Rule Action Parameters Autominify - Which file extensions to minify automatically.
- Bic bool
- Whether to enable Browser Integrity Check (BIC).
- Browser
Ttl GetRuleset Rule Action Parameters Browser Ttl - How long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.
- Cache bool
- Whether the request's response from the origin is eligible for caching. Caching itself will still depend on the cache control header and your other caching configurations.
- Cache
Key GetRuleset Rule Action Parameters Cache Key - Which components of the request are included in or excluded from the cache key Cloudflare uses to store the response in cache.
- Cache
Reserve GetRuleset Rule Action Parameters Cache Reserve - Settings to determine whether the request's response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).
- Content string
- The response content.
- Content
Type string - The content type header to set with the error response. Available values: "application/json", "text/html", "text/plain", "text/xml".
- List<Get
Ruleset Rule Action Parameters Cookie Field> - The cookie fields to log.
- Disable
Apps bool - Whether to disable Cloudflare Apps.
- Disable
Rum bool - Whether to disable Real User Monitoring (RUM).
- Disable
Zaraz bool - Whether to disable Zaraz.
- Edge
Ttl GetRuleset Rule Action Parameters Edge Ttl - How long the Cloudflare edge network should cache the response.
- Email
Obfuscation bool - Whether to enable Email Obfuscation.
- Fonts bool
- Whether to enable Cloudflare Fonts.
- From
List GetRuleset Rule Action Parameters From List - A redirect based on a bulk list lookup.
- From
Value GetRuleset Rule Action Parameters From Value - A redirect based on the request properties.
- Headers
Dictionary<string, Get
Ruleset Rule Action Parameters Headers> - A map of headers to rewrite.
- Host
Header string - A value to rewrite the HTTP host header to.
- Hotlink
Protection bool - Whether to enable Hotlink Protection.
- Id string
- The ID of the ruleset to execute.
- Increment int
- A delta to change the score by, which can be either positive or negative.
- Matched
Data GetRuleset Rule Action Parameters Matched Data - The configuration to use for matched data logging.
- Mirage bool
- Whether to enable Mirage.
- Opportunistic
Encryption bool - Whether to enable Opportunistic Encryption.
- Origin
Get
Ruleset Rule Action Parameters Origin - An origin to route to.
- Origin
Cache boolControl - Whether Cloudflare will aim to strictly adhere to RFC 7234.
- Origin
Error boolPage Passthru - Whether to generate Cloudflare error pages for issues from the origin server.
- Overrides
Get
Ruleset Rule Action Parameters Overrides - A set of overrides to apply to the target ruleset.
- Phases List<string>
- A list of phases to skip the execution of. This option is incompatible with the rulesets option. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- Polish string
- The Polish level to configure. Available values: "off", "lossless", "lossy", "webp".
- Products List<string>
- A list of legacy security products to skip the execution of. Available values: "bic", "hot", "rateLimit", "securityLevel", "uaBlock", "waf", "zoneLockdown".
- Raw
Response List<GetFields Ruleset Rule Action Parameters Raw Response Field> - The raw response fields to log.
- Read
Timeout int - A timeout value between two successive read operations to use for your origin server. Historically, the timeout value between two read options from Cloudflare to an origin server is 100 seconds. If you are attempting to reduce HTTP 524 errors because of timeouts from an origin server, try increasing this timeout value.
- Request
Fields List<GetRuleset Rule Action Parameters Request Field> - The raw request fields to log.
- bool
- Whether Cloudflare should respect strong ETag (entity tag) headers. If false, Cloudflare converts strong ETag headers to weak ETag headers.
- Response
Get
Ruleset Rule Action Parameters Response - The response to show when the block is applied.
- Response
Fields List<GetRuleset Rule Action Parameters Response Field> - The transformed response fields to log.
- Rocket
Loader bool - Whether to enable Rocket Loader.
- Rules
Dictionary<string, Immutable
Array<string>> - A mapping of ruleset IDs to a list of rule IDs in that ruleset to skip the execution of. This option is incompatible with the ruleset option.
- Ruleset string
- A ruleset to skip the execution of. This option is incompatible with the rulesets option. Available values: "current".
- Rulesets List<string>
- A list of ruleset IDs to skip the execution of. This option is incompatible with the ruleset and phases options.
- Security
Level string - The Security Level to configure. Available values: "off", "essentiallyoff", "low", "medium", "high", "underattack".
- Serve
Stale GetRuleset Rule Action Parameters Serve Stale - When to serve stale content from cache.
- Server
Side boolExcludes - Whether to enable Server-Side Excludes.
- Sni
Get
Ruleset Rule Action Parameters Sni - A Server Name Indication (SNI) override.
- Ssl string
- The SSL level to configure. Available values: "off", "flexible", "full", "strict", "origin_pull".
- Status
Code int - The status code to use for the error.
- Sxg bool
- Whether to enable Signed Exchanges (SXG).
- Transformed
Request List<GetFields Ruleset Rule Action Parameters Transformed Request Field> - The transformed request fields to log.
- Uri
Get
Ruleset Rule Action Parameters Uri - A URI rewrite.
- Additional
Cacheable []intPorts - A list of additional ports that caching should be enabled on.
- Algorithms
[]Get
Ruleset Rule Action Parameters Algorithm - Custom order for compression algorithms.
- Asset
Name string - The name of a custom asset to serve as the response.
- Automatic
Https boolRewrites - Whether to enable Automatic HTTPS Rewrites.
- Autominify
Get
Ruleset Rule Action Parameters Autominify - Which file extensions to minify automatically.
- Bic bool
- Whether to enable Browser Integrity Check (BIC).
- Browser
Ttl GetRuleset Rule Action Parameters Browser Ttl - How long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.
- Cache bool
- Whether the request's response from the origin is eligible for caching. Caching itself will still depend on the cache control header and your other caching configurations.
- Cache
Key GetRuleset Rule Action Parameters Cache Key - Which components of the request are included in or excluded from the cache key Cloudflare uses to store the response in cache.
- Cache
Reserve GetRuleset Rule Action Parameters Cache Reserve - Settings to determine whether the request's response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).
- Content string
- The response content.
- Content
Type string - The content type header to set with the error response. Available values: "application/json", "text/html", "text/plain", "text/xml".
- []Get
Ruleset Rule Action Parameters Cookie Field - The cookie fields to log.
- Disable
Apps bool - Whether to disable Cloudflare Apps.
- Disable
Rum bool - Whether to disable Real User Monitoring (RUM).
- Disable
Zaraz bool - Whether to disable Zaraz.
- Edge
Ttl GetRuleset Rule Action Parameters Edge Ttl - How long the Cloudflare edge network should cache the response.
- Email
Obfuscation bool - Whether to enable Email Obfuscation.
- Fonts bool
- Whether to enable Cloudflare Fonts.
- From
List GetRuleset Rule Action Parameters From List - A redirect based on a bulk list lookup.
- From
Value GetRuleset Rule Action Parameters From Value - A redirect based on the request properties.
- Headers
map[string]Get
Ruleset Rule Action Parameters Headers - A map of headers to rewrite.
- Host
Header string - A value to rewrite the HTTP host header to.
- Hotlink
Protection bool - Whether to enable Hotlink Protection.
- Id string
- The ID of the ruleset to execute.
- Increment int
- A delta to change the score by, which can be either positive or negative.
- Matched
Data GetRuleset Rule Action Parameters Matched Data - The configuration to use for matched data logging.
- Mirage bool
- Whether to enable Mirage.
- Opportunistic
Encryption bool - Whether to enable Opportunistic Encryption.
- Origin
Get
Ruleset Rule Action Parameters Origin - An origin to route to.
- Origin
Cache boolControl - Whether Cloudflare will aim to strictly adhere to RFC 7234.
- Origin
Error boolPage Passthru - Whether to generate Cloudflare error pages for issues from the origin server.
- Overrides
Get
Ruleset Rule Action Parameters Overrides - A set of overrides to apply to the target ruleset.
- Phases []string
- A list of phases to skip the execution of. This option is incompatible with the rulesets option. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- Polish string
- The Polish level to configure. Available values: "off", "lossless", "lossy", "webp".
- Products []string
- A list of legacy security products to skip the execution of. Available values: "bic", "hot", "rateLimit", "securityLevel", "uaBlock", "waf", "zoneLockdown".
- Raw
Response []GetFields Ruleset Rule Action Parameters Raw Response Field - The raw response fields to log.
- Read
Timeout int - A timeout value between two successive read operations to use for your origin server. Historically, the timeout value between two read options from Cloudflare to an origin server is 100 seconds. If you are attempting to reduce HTTP 524 errors because of timeouts from an origin server, try increasing this timeout value.
- Request
Fields []GetRuleset Rule Action Parameters Request Field - The raw request fields to log.
- bool
- Whether Cloudflare should respect strong ETag (entity tag) headers. If false, Cloudflare converts strong ETag headers to weak ETag headers.
- Response
Get
Ruleset Rule Action Parameters Response - The response to show when the block is applied.
- Response
Fields []GetRuleset Rule Action Parameters Response Field - The transformed response fields to log.
- Rocket
Loader bool - Whether to enable Rocket Loader.
- Rules map[string][]string
- A mapping of ruleset IDs to a list of rule IDs in that ruleset to skip the execution of. This option is incompatible with the ruleset option.
- Ruleset string
- A ruleset to skip the execution of. This option is incompatible with the rulesets option. Available values: "current".
- Rulesets []string
- A list of ruleset IDs to skip the execution of. This option is incompatible with the ruleset and phases options.
- Security
Level string - The Security Level to configure. Available values: "off", "essentiallyoff", "low", "medium", "high", "underattack".
- Serve
Stale GetRuleset Rule Action Parameters Serve Stale - When to serve stale content from cache.
- Server
Side boolExcludes - Whether to enable Server-Side Excludes.
- Sni
Get
Ruleset Rule Action Parameters Sni - A Server Name Indication (SNI) override.
- Ssl string
- The SSL level to configure. Available values: "off", "flexible", "full", "strict", "origin_pull".
- Status
Code int - The status code to use for the error.
- Sxg bool
- Whether to enable Signed Exchanges (SXG).
- Transformed
Request []GetFields Ruleset Rule Action Parameters Transformed Request Field - The transformed request fields to log.
- Uri
Get
Ruleset Rule Action Parameters Uri - A URI rewrite.
- additional
Cacheable List<Integer>Ports - A list of additional ports that caching should be enabled on.
- algorithms
List<Get
Ruleset Rule Action Parameters Algorithm> - Custom order for compression algorithms.
- asset
Name String - The name of a custom asset to serve as the response.
- automatic
Https BooleanRewrites - Whether to enable Automatic HTTPS Rewrites.
- autominify
Get
Ruleset Rule Action Parameters Autominify - Which file extensions to minify automatically.
- bic Boolean
- Whether to enable Browser Integrity Check (BIC).
- browser
Ttl GetRuleset Rule Action Parameters Browser Ttl - How long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.
- cache Boolean
- Whether the request's response from the origin is eligible for caching. Caching itself will still depend on the cache control header and your other caching configurations.
- cache
Key GetRuleset Rule Action Parameters Cache Key - Which components of the request are included in or excluded from the cache key Cloudflare uses to store the response in cache.
- cache
Reserve GetRuleset Rule Action Parameters Cache Reserve - Settings to determine whether the request's response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).
- content String
- The response content.
- content
Type String - The content type header to set with the error response. Available values: "application/json", "text/html", "text/plain", "text/xml".
- List<Get
Ruleset Rule Action Parameters Cookie Field> - The cookie fields to log.
- disable
Apps Boolean - Whether to disable Cloudflare Apps.
- disable
Rum Boolean - Whether to disable Real User Monitoring (RUM).
- disable
Zaraz Boolean - Whether to disable Zaraz.
- edge
Ttl GetRuleset Rule Action Parameters Edge Ttl - How long the Cloudflare edge network should cache the response.
- email
Obfuscation Boolean - Whether to enable Email Obfuscation.
- fonts Boolean
- Whether to enable Cloudflare Fonts.
- from
List GetRuleset Rule Action Parameters From List - A redirect based on a bulk list lookup.
- from
Value GetRuleset Rule Action Parameters From Value - A redirect based on the request properties.
- headers
Map<String,Get
Ruleset Rule Action Parameters Headers> - A map of headers to rewrite.
- host
Header String - A value to rewrite the HTTP host header to.
- hotlink
Protection Boolean - Whether to enable Hotlink Protection.
- id String
- The ID of the ruleset to execute.
- increment Integer
- A delta to change the score by, which can be either positive or negative.
- matched
Data GetRuleset Rule Action Parameters Matched Data - The configuration to use for matched data logging.
- mirage Boolean
- Whether to enable Mirage.
- opportunistic
Encryption Boolean - Whether to enable Opportunistic Encryption.
- origin
Get
Ruleset Rule Action Parameters Origin - An origin to route to.
- origin
Cache BooleanControl - Whether Cloudflare will aim to strictly adhere to RFC 7234.
- origin
Error BooleanPage Passthru - Whether to generate Cloudflare error pages for issues from the origin server.
- overrides
Get
Ruleset Rule Action Parameters Overrides - A set of overrides to apply to the target ruleset.
- phases List<String>
- A list of phases to skip the execution of. This option is incompatible with the rulesets option. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- polish String
- The Polish level to configure. Available values: "off", "lossless", "lossy", "webp".
- products List<String>
- A list of legacy security products to skip the execution of. Available values: "bic", "hot", "rateLimit", "securityLevel", "uaBlock", "waf", "zoneLockdown".
- raw
Response List<GetFields Ruleset Rule Action Parameters Raw Response Field> - The raw response fields to log.
- read
Timeout Integer - A timeout value between two successive read operations to use for your origin server. Historically, the timeout value between two read options from Cloudflare to an origin server is 100 seconds. If you are attempting to reduce HTTP 524 errors because of timeouts from an origin server, try increasing this timeout value.
- request
Fields List<GetRuleset Rule Action Parameters Request Field> - The raw request fields to log.
- Boolean
- Whether Cloudflare should respect strong ETag (entity tag) headers. If false, Cloudflare converts strong ETag headers to weak ETag headers.
- response
Get
Ruleset Rule Action Parameters Response - The response to show when the block is applied.
- response
Fields List<GetRuleset Rule Action Parameters Response Field> - The transformed response fields to log.
- rocket
Loader Boolean - Whether to enable Rocket Loader.
- rules Map<String,List<String>>
- A mapping of ruleset IDs to a list of rule IDs in that ruleset to skip the execution of. This option is incompatible with the ruleset option.
- ruleset String
- A ruleset to skip the execution of. This option is incompatible with the rulesets option. Available values: "current".
- rulesets List<String>
- A list of ruleset IDs to skip the execution of. This option is incompatible with the ruleset and phases options.
- security
Level String - The Security Level to configure. Available values: "off", "essentiallyoff", "low", "medium", "high", "underattack".
- serve
Stale GetRuleset Rule Action Parameters Serve Stale - When to serve stale content from cache.
- server
Side BooleanExcludes - Whether to enable Server-Side Excludes.
- sni
Get
Ruleset Rule Action Parameters Sni - A Server Name Indication (SNI) override.
- ssl String
- The SSL level to configure. Available values: "off", "flexible", "full", "strict", "origin_pull".
- status
Code Integer - The status code to use for the error.
- sxg Boolean
- Whether to enable Signed Exchanges (SXG).
- transformed
Request List<GetFields Ruleset Rule Action Parameters Transformed Request Field> - The transformed request fields to log.
- uri
Get
Ruleset Rule Action Parameters Uri - A URI rewrite.
- additional
Cacheable number[]Ports - A list of additional ports that caching should be enabled on.
- algorithms
Get
Ruleset Rule Action Parameters Algorithm[] - Custom order for compression algorithms.
- asset
Name string - The name of a custom asset to serve as the response.
- automatic
Https booleanRewrites - Whether to enable Automatic HTTPS Rewrites.
- autominify
Get
Ruleset Rule Action Parameters Autominify - Which file extensions to minify automatically.
- bic boolean
- Whether to enable Browser Integrity Check (BIC).
- browser
Ttl GetRuleset Rule Action Parameters Browser Ttl - How long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.
- cache boolean
- Whether the request's response from the origin is eligible for caching. Caching itself will still depend on the cache control header and your other caching configurations.
- cache
Key GetRuleset Rule Action Parameters Cache Key - Which components of the request are included in or excluded from the cache key Cloudflare uses to store the response in cache.
- cache
Reserve GetRuleset Rule Action Parameters Cache Reserve - Settings to determine whether the request's response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).
- content string
- The response content.
- content
Type string - The content type header to set with the error response. Available values: "application/json", "text/html", "text/plain", "text/xml".
- Get
Ruleset Rule Action Parameters Cookie Field[] - The cookie fields to log.
- disable
Apps boolean - Whether to disable Cloudflare Apps.
- disable
Rum boolean - Whether to disable Real User Monitoring (RUM).
- disable
Zaraz boolean - Whether to disable Zaraz.
- edge
Ttl GetRuleset Rule Action Parameters Edge Ttl - How long the Cloudflare edge network should cache the response.
- email
Obfuscation boolean - Whether to enable Email Obfuscation.
- fonts boolean
- Whether to enable Cloudflare Fonts.
- from
List GetRuleset Rule Action Parameters From List - A redirect based on a bulk list lookup.
- from
Value GetRuleset Rule Action Parameters From Value - A redirect based on the request properties.
- headers
{[key: string]: Get
Ruleset Rule Action Parameters Headers} - A map of headers to rewrite.
- host
Header string - A value to rewrite the HTTP host header to.
- hotlink
Protection boolean - Whether to enable Hotlink Protection.
- id string
- The ID of the ruleset to execute.
- increment number
- A delta to change the score by, which can be either positive or negative.
- matched
Data GetRuleset Rule Action Parameters Matched Data - The configuration to use for matched data logging.
- mirage boolean
- Whether to enable Mirage.
- opportunistic
Encryption boolean - Whether to enable Opportunistic Encryption.
- origin
Get
Ruleset Rule Action Parameters Origin - An origin to route to.
- origin
Cache booleanControl - Whether Cloudflare will aim to strictly adhere to RFC 7234.
- origin
Error booleanPage Passthru - Whether to generate Cloudflare error pages for issues from the origin server.
- overrides
Get
Ruleset Rule Action Parameters Overrides - A set of overrides to apply to the target ruleset.
- phases string[]
- A list of phases to skip the execution of. This option is incompatible with the rulesets option. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- polish string
- The Polish level to configure. Available values: "off", "lossless", "lossy", "webp".
- products string[]
- A list of legacy security products to skip the execution of. Available values: "bic", "hot", "rateLimit", "securityLevel", "uaBlock", "waf", "zoneLockdown".
- raw
Response GetFields Ruleset Rule Action Parameters Raw Response Field[] - The raw response fields to log.
- read
Timeout number - A timeout value between two successive read operations to use for your origin server. Historically, the timeout value between two read options from Cloudflare to an origin server is 100 seconds. If you are attempting to reduce HTTP 524 errors because of timeouts from an origin server, try increasing this timeout value.
- request
Fields GetRuleset Rule Action Parameters Request Field[] - The raw request fields to log.
- boolean
- Whether Cloudflare should respect strong ETag (entity tag) headers. If false, Cloudflare converts strong ETag headers to weak ETag headers.
- response
Get
Ruleset Rule Action Parameters Response - The response to show when the block is applied.
- response
Fields GetRuleset Rule Action Parameters Response Field[] - The transformed response fields to log.
- rocket
Loader boolean - Whether to enable Rocket Loader.
- rules {[key: string]: string[]}
- A mapping of ruleset IDs to a list of rule IDs in that ruleset to skip the execution of. This option is incompatible with the ruleset option.
- ruleset string
- A ruleset to skip the execution of. This option is incompatible with the rulesets option. Available values: "current".
- rulesets string[]
- A list of ruleset IDs to skip the execution of. This option is incompatible with the ruleset and phases options.
- security
Level string - The Security Level to configure. Available values: "off", "essentiallyoff", "low", "medium", "high", "underattack".
- serve
Stale GetRuleset Rule Action Parameters Serve Stale - When to serve stale content from cache.
- server
Side booleanExcludes - Whether to enable Server-Side Excludes.
- sni
Get
Ruleset Rule Action Parameters Sni - A Server Name Indication (SNI) override.
- ssl string
- The SSL level to configure. Available values: "off", "flexible", "full", "strict", "origin_pull".
- status
Code number - The status code to use for the error.
- sxg boolean
- Whether to enable Signed Exchanges (SXG).
- transformed
Request GetFields Ruleset Rule Action Parameters Transformed Request Field[] - The transformed request fields to log.
- uri
Get
Ruleset Rule Action Parameters Uri - A URI rewrite.
- additional_
cacheable_ Sequence[int]ports - A list of additional ports that caching should be enabled on.
- algorithms
Sequence[Get
Ruleset Rule Action Parameters Algorithm] - Custom order for compression algorithms.
- asset_
name str - The name of a custom asset to serve as the response.
- automatic_
https_ boolrewrites - Whether to enable Automatic HTTPS Rewrites.
- autominify
Get
Ruleset Rule Action Parameters Autominify - Which file extensions to minify automatically.
- bic bool
- Whether to enable Browser Integrity Check (BIC).
- browser_
ttl GetRuleset Rule Action Parameters Browser Ttl - How long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.
- cache bool
- Whether the request's response from the origin is eligible for caching. Caching itself will still depend on the cache control header and your other caching configurations.
- cache_
key GetRuleset Rule Action Parameters Cache Key - Which components of the request are included in or excluded from the cache key Cloudflare uses to store the response in cache.
- cache_
reserve GetRuleset Rule Action Parameters Cache Reserve - Settings to determine whether the request's response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).
- content str
- The response content.
- content_
type str - The content type header to set with the error response. Available values: "application/json", "text/html", "text/plain", "text/xml".
- Sequence[Get
Ruleset Rule Action Parameters Cookie Field] - The cookie fields to log.
- disable_
apps bool - Whether to disable Cloudflare Apps.
- disable_
rum bool - Whether to disable Real User Monitoring (RUM).
- disable_
zaraz bool - Whether to disable Zaraz.
- edge_
ttl GetRuleset Rule Action Parameters Edge Ttl - How long the Cloudflare edge network should cache the response.
- email_
obfuscation bool - Whether to enable Email Obfuscation.
- fonts bool
- Whether to enable Cloudflare Fonts.
- from_
list GetRuleset Rule Action Parameters From List - A redirect based on a bulk list lookup.
- from_
value GetRuleset Rule Action Parameters From Value - A redirect based on the request properties.
- headers
Mapping[str, Get
Ruleset Rule Action Parameters Headers] - A map of headers to rewrite.
- host_
header str - A value to rewrite the HTTP host header to.
- hotlink_
protection bool - Whether to enable Hotlink Protection.
- id str
- The ID of the ruleset to execute.
- increment int
- A delta to change the score by, which can be either positive or negative.
- matched_
data GetRuleset Rule Action Parameters Matched Data - The configuration to use for matched data logging.
- mirage bool
- Whether to enable Mirage.
- opportunistic_
encryption bool - Whether to enable Opportunistic Encryption.
- origin
Get
Ruleset Rule Action Parameters Origin - An origin to route to.
- origin_
cache_ boolcontrol - Whether Cloudflare will aim to strictly adhere to RFC 7234.
- origin_
error_ boolpage_ passthru - Whether to generate Cloudflare error pages for issues from the origin server.
- overrides
Get
Ruleset Rule Action Parameters Overrides - A set of overrides to apply to the target ruleset.
- phases Sequence[str]
- A list of phases to skip the execution of. This option is incompatible with the rulesets option. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- polish str
- The Polish level to configure. Available values: "off", "lossless", "lossy", "webp".
- products Sequence[str]
- A list of legacy security products to skip the execution of. Available values: "bic", "hot", "rateLimit", "securityLevel", "uaBlock", "waf", "zoneLockdown".
- raw_
response_ Sequence[Getfields Ruleset Rule Action Parameters Raw Response Field] - The raw response fields to log.
- read_
timeout int - A timeout value between two successive read operations to use for your origin server. Historically, the timeout value between two read options from Cloudflare to an origin server is 100 seconds. If you are attempting to reduce HTTP 524 errors because of timeouts from an origin server, try increasing this timeout value.
- request_
fields Sequence[GetRuleset Rule Action Parameters Request Field] - The raw request fields to log.
- bool
- Whether Cloudflare should respect strong ETag (entity tag) headers. If false, Cloudflare converts strong ETag headers to weak ETag headers.
- response
Get
Ruleset Rule Action Parameters Response - The response to show when the block is applied.
- response_
fields Sequence[GetRuleset Rule Action Parameters Response Field] - The transformed response fields to log.
- rocket_
loader bool - Whether to enable Rocket Loader.
- rules Mapping[str, Sequence[str]]
- A mapping of ruleset IDs to a list of rule IDs in that ruleset to skip the execution of. This option is incompatible with the ruleset option.
- ruleset str
- A ruleset to skip the execution of. This option is incompatible with the rulesets option. Available values: "current".
- rulesets Sequence[str]
- A list of ruleset IDs to skip the execution of. This option is incompatible with the ruleset and phases options.
- security_
level str - The Security Level to configure. Available values: "off", "essentiallyoff", "low", "medium", "high", "underattack".
- serve_
stale GetRuleset Rule Action Parameters Serve Stale - When to serve stale content from cache.
- server_
side_ boolexcludes - Whether to enable Server-Side Excludes.
- sni
Get
Ruleset Rule Action Parameters Sni - A Server Name Indication (SNI) override.
- ssl str
- The SSL level to configure. Available values: "off", "flexible", "full", "strict", "origin_pull".
- status_
code int - The status code to use for the error.
- sxg bool
- Whether to enable Signed Exchanges (SXG).
- transformed_
request_ Sequence[Getfields Ruleset Rule Action Parameters Transformed Request Field] - The transformed request fields to log.
- uri
Get
Ruleset Rule Action Parameters Uri - A URI rewrite.
- additional
Cacheable List<Number>Ports - A list of additional ports that caching should be enabled on.
- algorithms List<Property Map>
- Custom order for compression algorithms.
- asset
Name String - The name of a custom asset to serve as the response.
- automatic
Https BooleanRewrites - Whether to enable Automatic HTTPS Rewrites.
- autominify Property Map
- Which file extensions to minify automatically.
- bic Boolean
- Whether to enable Browser Integrity Check (BIC).
- browser
Ttl Property Map - How long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.
- cache Boolean
- Whether the request's response from the origin is eligible for caching. Caching itself will still depend on the cache control header and your other caching configurations.
- cache
Key Property Map - Which components of the request are included in or excluded from the cache key Cloudflare uses to store the response in cache.
- cache
Reserve Property Map - Settings to determine whether the request's response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).
- content String
- The response content.
- content
Type String - The content type header to set with the error response. Available values: "application/json", "text/html", "text/plain", "text/xml".
- List<Property Map>
- The cookie fields to log.
- disable
Apps Boolean - Whether to disable Cloudflare Apps.
- disable
Rum Boolean - Whether to disable Real User Monitoring (RUM).
- disable
Zaraz Boolean - Whether to disable Zaraz.
- edge
Ttl Property Map - How long the Cloudflare edge network should cache the response.
- email
Obfuscation Boolean - Whether to enable Email Obfuscation.
- fonts Boolean
- Whether to enable Cloudflare Fonts.
- from
List Property Map - A redirect based on a bulk list lookup.
- from
Value Property Map - A redirect based on the request properties.
- headers Map<Property Map>
- A map of headers to rewrite.
- host
Header String - A value to rewrite the HTTP host header to.
- hotlink
Protection Boolean - Whether to enable Hotlink Protection.
- id String
- The ID of the ruleset to execute.
- increment Number
- A delta to change the score by, which can be either positive or negative.
- matched
Data Property Map - The configuration to use for matched data logging.
- mirage Boolean
- Whether to enable Mirage.
- opportunistic
Encryption Boolean - Whether to enable Opportunistic Encryption.
- origin Property Map
- An origin to route to.
- origin
Cache BooleanControl - Whether Cloudflare will aim to strictly adhere to RFC 7234.
- origin
Error BooleanPage Passthru - Whether to generate Cloudflare error pages for issues from the origin server.
- overrides Property Map
- A set of overrides to apply to the target ruleset.
- phases List<String>
- A list of phases to skip the execution of. This option is incompatible with the rulesets option. Available values: "ddosl4", "ddosl7", "httpconfigsettings", "httpcustomerrors", "httplogcustomfields", "httpratelimit", "httprequestcachesettings", "httprequestdynamicredirect", "httprequestfirewallcustom", "httprequestfirewallmanaged", "httprequestlatetransform", "httprequestorigin", "httprequestredirect", "httprequestsanitize", "httprequestsbfm", "httprequesttransform", "httpresponsecompression", "httpresponsefirewallmanaged", "httpresponseheaderstransform", "magictransit", "magictransitidsmanaged", "magictransitmanaged", "magictransit_ratelimit".
- polish String
- The Polish level to configure. Available values: "off", "lossless", "lossy", "webp".
- products List<String>
- A list of legacy security products to skip the execution of. Available values: "bic", "hot", "rateLimit", "securityLevel", "uaBlock", "waf", "zoneLockdown".
- raw
Response List<Property Map>Fields - The raw response fields to log.
- read
Timeout Number - A timeout value between two successive read operations to use for your origin server. Historically, the timeout value between two read options from Cloudflare to an origin server is 100 seconds. If you are attempting to reduce HTTP 524 errors because of timeouts from an origin server, try increasing this timeout value.
- request
Fields List<Property Map> - The raw request fields to log.
- Boolean
- Whether Cloudflare should respect strong ETag (entity tag) headers. If false, Cloudflare converts strong ETag headers to weak ETag headers.
- response Property Map
- The response to show when the block is applied.
- response
Fields List<Property Map> - The transformed response fields to log.
- rocket
Loader Boolean - Whether to enable Rocket Loader.
- rules Map<List<String>>
- A mapping of ruleset IDs to a list of rule IDs in that ruleset to skip the execution of. This option is incompatible with the ruleset option.
- ruleset String
- A ruleset to skip the execution of. This option is incompatible with the rulesets option. Available values: "current".
- rulesets List<String>
- A list of ruleset IDs to skip the execution of. This option is incompatible with the ruleset and phases options.
- security
Level String - The Security Level to configure. Available values: "off", "essentiallyoff", "low", "medium", "high", "underattack".
- serve
Stale Property Map - When to serve stale content from cache.
- server
Side BooleanExcludes - Whether to enable Server-Side Excludes.
- sni Property Map
- A Server Name Indication (SNI) override.
- ssl String
- The SSL level to configure. Available values: "off", "flexible", "full", "strict", "origin_pull".
- status
Code Number - The status code to use for the error.
- sxg Boolean
- Whether to enable Signed Exchanges (SXG).
- transformed
Request List<Property Map>Fields - The transformed request fields to log.
- uri Property Map
- A URI rewrite.
GetRulesetRuleActionParametersAlgorithm
- Name string
- Name of the compression algorithm to enable. Available values: "none", "auto", "default", "gzip", "brotli", "zstd".
- Name string
- Name of the compression algorithm to enable. Available values: "none", "auto", "default", "gzip", "brotli", "zstd".
- name String
- Name of the compression algorithm to enable. Available values: "none", "auto", "default", "gzip", "brotli", "zstd".
- name string
- Name of the compression algorithm to enable. Available values: "none", "auto", "default", "gzip", "brotli", "zstd".
- name str
- Name of the compression algorithm to enable. Available values: "none", "auto", "default", "gzip", "brotli", "zstd".
- name String
- Name of the compression algorithm to enable. Available values: "none", "auto", "default", "gzip", "brotli", "zstd".
GetRulesetRuleActionParametersAutominify
GetRulesetRuleActionParametersBrowserTtl
GetRulesetRuleActionParametersCacheKey
- Cache
By boolDevice Type - Whether to separate cached content based on the visitor's device type.
- Cache
Deception boolArmor - Whether to protect from web cache deception attacks, while allowing static assets to be cached.
- Custom
Key GetRuleset Rule Action Parameters Cache Key Custom Key - Which components of the request are included or excluded from the cache key.
- Ignore
Query boolStrings Order - Whether to treat requests with the same query parameters the same, regardless of the order those query parameters are in.
- Cache
By boolDevice Type - Whether to separate cached content based on the visitor's device type.
- Cache
Deception boolArmor - Whether to protect from web cache deception attacks, while allowing static assets to be cached.
- Custom
Key GetRuleset Rule Action Parameters Cache Key Custom Key - Which components of the request are included or excluded from the cache key.
- Ignore
Query boolStrings Order - Whether to treat requests with the same query parameters the same, regardless of the order those query parameters are in.
- cache
By BooleanDevice Type - Whether to separate cached content based on the visitor's device type.
- cache
Deception BooleanArmor - Whether to protect from web cache deception attacks, while allowing static assets to be cached.
- custom
Key GetRuleset Rule Action Parameters Cache Key Custom Key - Which components of the request are included or excluded from the cache key.
- ignore
Query BooleanStrings Order - Whether to treat requests with the same query parameters the same, regardless of the order those query parameters are in.
- cache
By booleanDevice Type - Whether to separate cached content based on the visitor's device type.
- cache
Deception booleanArmor - Whether to protect from web cache deception attacks, while allowing static assets to be cached.
- custom
Key GetRuleset Rule Action Parameters Cache Key Custom Key - Which components of the request are included or excluded from the cache key.
- ignore
Query booleanStrings Order - Whether to treat requests with the same query parameters the same, regardless of the order those query parameters are in.
- cache_
by_ booldevice_ type - Whether to separate cached content based on the visitor's device type.
- cache_
deception_ boolarmor - Whether to protect from web cache deception attacks, while allowing static assets to be cached.
- custom_
key GetRuleset Rule Action Parameters Cache Key Custom Key - Which components of the request are included or excluded from the cache key.
- ignore_
query_ boolstrings_ order - Whether to treat requests with the same query parameters the same, regardless of the order those query parameters are in.
- cache
By BooleanDevice Type - Whether to separate cached content based on the visitor's device type.
- cache
Deception BooleanArmor - Whether to protect from web cache deception attacks, while allowing static assets to be cached.
- custom
Key Property Map - Which components of the request are included or excluded from the cache key.
- ignore
Query BooleanStrings Order - Whether to treat requests with the same query parameters the same, regardless of the order those query parameters are in.
GetRulesetRuleActionParametersCacheKeyCustomKey
- Get
Ruleset Rule Action Parameters Cache Key Custom Key Cookie - Which cookies to include in the cache key.
- Header
Get
Ruleset Rule Action Parameters Cache Key Custom Key Header - Which headers to include in the cache key.
- Host
Get
Ruleset Rule Action Parameters Cache Key Custom Key Host - How to use the host in the cache key.
- Query
String GetRuleset Rule Action Parameters Cache Key Custom Key Query String - Which query string parameters to include in or exclude from the cache key.
- User
Get
Ruleset Rule Action Parameters Cache Key Custom Key User - How to use characteristics of the request user agent in the cache key.
- Get
Ruleset Rule Action Parameters Cache Key Custom Key Cookie - Which cookies to include in the cache key.
- Header
Get
Ruleset Rule Action Parameters Cache Key Custom Key Header - Which headers to include in the cache key.
- Host
Get
Ruleset Rule Action Parameters Cache Key Custom Key Host - How to use the host in the cache key.
- Query
String GetRuleset Rule Action Parameters Cache Key Custom Key Query String - Which query string parameters to include in or exclude from the cache key.
- User
Get
Ruleset Rule Action Parameters Cache Key Custom Key User - How to use characteristics of the request user agent in the cache key.
- Get
Ruleset Rule Action Parameters Cache Key Custom Key Cookie - Which cookies to include in the cache key.
- header
Get
Ruleset Rule Action Parameters Cache Key Custom Key Header - Which headers to include in the cache key.
- host
Get
Ruleset Rule Action Parameters Cache Key Custom Key Host - How to use the host in the cache key.
- query
String GetRuleset Rule Action Parameters Cache Key Custom Key Query String - Which query string parameters to include in or exclude from the cache key.
- user
Get
Ruleset Rule Action Parameters Cache Key Custom Key User - How to use characteristics of the request user agent in the cache key.
- Get
Ruleset Rule Action Parameters Cache Key Custom Key Cookie - Which cookies to include in the cache key.
- header
Get
Ruleset Rule Action Parameters Cache Key Custom Key Header - Which headers to include in the cache key.
- host
Get
Ruleset Rule Action Parameters Cache Key Custom Key Host - How to use the host in the cache key.
- query
String GetRuleset Rule Action Parameters Cache Key Custom Key Query String - Which query string parameters to include in or exclude from the cache key.
- user
Get
Ruleset Rule Action Parameters Cache Key Custom Key User - How to use characteristics of the request user agent in the cache key.
- Get
Ruleset Rule Action Parameters Cache Key Custom Key Cookie - Which cookies to include in the cache key.
- header
Get
Ruleset Rule Action Parameters Cache Key Custom Key Header - Which headers to include in the cache key.
- host
Get
Ruleset Rule Action Parameters Cache Key Custom Key Host - How to use the host in the cache key.
- query_
string GetRuleset Rule Action Parameters Cache Key Custom Key Query String - Which query string parameters to include in or exclude from the cache key.
- user
Get
Ruleset Rule Action Parameters Cache Key Custom Key User - How to use characteristics of the request user agent in the cache key.
- Property Map
- Which cookies to include in the cache key.
- header Property Map
- Which headers to include in the cache key.
- host Property Map
- How to use the host in the cache key.
- query
String Property Map - Which query string parameters to include in or exclude from the cache key.
- user Property Map
- How to use characteristics of the request user agent in the cache key.
GetRulesetRuleActionParametersCacheKeyCustomKeyCookie
- Check
Presences List<string> - A list of cookies to check for the presence of. The presence of these cookies is included in the cache key.
- Includes List<string>
- A list of cookies to include in the cache key.
- Check
Presences []string - A list of cookies to check for the presence of. The presence of these cookies is included in the cache key.
- Includes []string
- A list of cookies to include in the cache key.
- check
Presences List<String> - A list of cookies to check for the presence of. The presence of these cookies is included in the cache key.
- includes List<String>
- A list of cookies to include in the cache key.
- check
Presences string[] - A list of cookies to check for the presence of. The presence of these cookies is included in the cache key.
- includes string[]
- A list of cookies to include in the cache key.
- check_
presences Sequence[str] - A list of cookies to check for the presence of. The presence of these cookies is included in the cache key.
- includes Sequence[str]
- A list of cookies to include in the cache key.
- check
Presences List<String> - A list of cookies to check for the presence of. The presence of these cookies is included in the cache key.
- includes List<String>
- A list of cookies to include in the cache key.
GetRulesetRuleActionParametersCacheKeyCustomKeyHeader
- Check
Presences List<string> - A list of headers to check for the presence of. The presence of these headers is included in the cache key.
- Contains
Dictionary<string, Immutable
Array<string>> - A mapping of header names to a list of values. If a header is present in the request and contains any of the values provided, its value is included in the cache key.
- Exclude
Origin bool - Whether to exclude the origin header in the cache key.
- Includes List<string>
- A list of headers to include in the cache key.
- Check
Presences []string - A list of headers to check for the presence of. The presence of these headers is included in the cache key.
- Contains map[string][]string
- A mapping of header names to a list of values. If a header is present in the request and contains any of the values provided, its value is included in the cache key.
- Exclude
Origin bool - Whether to exclude the origin header in the cache key.
- Includes []string
- A list of headers to include in the cache key.
- check
Presences List<String> - A list of headers to check for the presence of. The presence of these headers is included in the cache key.
- contains Map<String,List<String>>
- A mapping of header names to a list of values. If a header is present in the request and contains any of the values provided, its value is included in the cache key.
- exclude
Origin Boolean - Whether to exclude the origin header in the cache key.
- includes List<String>
- A list of headers to include in the cache key.
- check
Presences string[] - A list of headers to check for the presence of. The presence of these headers is included in the cache key.
- contains {[key: string]: string[]}
- A mapping of header names to a list of values. If a header is present in the request and contains any of the values provided, its value is included in the cache key.
- exclude
Origin boolean - Whether to exclude the origin header in the cache key.
- includes string[]
- A list of headers to include in the cache key.
- check_
presences Sequence[str] - A list of headers to check for the presence of. The presence of these headers is included in the cache key.
- contains Mapping[str, Sequence[str]]
- A mapping of header names to a list of values. If a header is present in the request and contains any of the values provided, its value is included in the cache key.
- exclude_
origin bool - Whether to exclude the origin header in the cache key.
- includes Sequence[str]
- A list of headers to include in the cache key.
- check
Presences List<String> - A list of headers to check for the presence of. The presence of these headers is included in the cache key.
- contains Map<List<String>>
- A mapping of header names to a list of values. If a header is present in the request and contains any of the values provided, its value is included in the cache key.
- exclude
Origin Boolean - Whether to exclude the origin header in the cache key.
- includes List<String>
- A list of headers to include in the cache key.
GetRulesetRuleActionParametersCacheKeyCustomKeyHost
- Resolved bool
- Whether to use the resolved host in the cache key.
- Resolved bool
- Whether to use the resolved host in the cache key.
- resolved Boolean
- Whether to use the resolved host in the cache key.
- resolved boolean
- Whether to use the resolved host in the cache key.
- resolved bool
- Whether to use the resolved host in the cache key.
- resolved Boolean
- Whether to use the resolved host in the cache key.
GetRulesetRuleActionParametersCacheKeyCustomKeyQueryString
- Exclude
Get
Ruleset Rule Action Parameters Cache Key Custom Key Query String Exclude - Which query string parameters to exclude from the cache key.
- Include
Get
Ruleset Rule Action Parameters Cache Key Custom Key Query String Include - Which query string parameters to include in the cache key.
- Exclude
Get
Ruleset Rule Action Parameters Cache Key Custom Key Query String Exclude - Which query string parameters to exclude from the cache key.
- Include
Get
Ruleset Rule Action Parameters Cache Key Custom Key Query String Include - Which query string parameters to include in the cache key.
- exclude
Get
Ruleset Rule Action Parameters Cache Key Custom Key Query String Exclude - Which query string parameters to exclude from the cache key.
- include
Get
Ruleset Rule Action Parameters Cache Key Custom Key Query String Include - Which query string parameters to include in the cache key.
- exclude
Get
Ruleset Rule Action Parameters Cache Key Custom Key Query String Exclude - Which query string parameters to exclude from the cache key.
- include
Get
Ruleset Rule Action Parameters Cache Key Custom Key Query String Include - Which query string parameters to include in the cache key.
- exclude
Get
Ruleset Rule Action Parameters Cache Key Custom Key Query String Exclude - Which query string parameters to exclude from the cache key.
- include
Get
Ruleset Rule Action Parameters Cache Key Custom Key Query String Include - Which query string parameters to include in the cache key.
- exclude Property Map
- Which query string parameters to exclude from the cache key.
- include Property Map
- Which query string parameters to include in the cache key.
GetRulesetRuleActionParametersCacheKeyCustomKeyQueryStringExclude
GetRulesetRuleActionParametersCacheKeyCustomKeyQueryStringInclude
GetRulesetRuleActionParametersCacheKeyCustomKeyUser
- Device
Type bool - Whether to use the user agent's device type in the cache key.
- Geo bool
- Whether to use the user agents's country in the cache key.
- Lang bool
- Whether to use the user agent's language in the cache key.
- Device
Type bool - Whether to use the user agent's device type in the cache key.
- Geo bool
- Whether to use the user agents's country in the cache key.
- Lang bool
- Whether to use the user agent's language in the cache key.
- device
Type Boolean - Whether to use the user agent's device type in the cache key.
- geo Boolean
- Whether to use the user agents's country in the cache key.
- lang Boolean
- Whether to use the user agent's language in the cache key.
- device
Type boolean - Whether to use the user agent's device type in the cache key.
- geo boolean
- Whether to use the user agents's country in the cache key.
- lang boolean
- Whether to use the user agent's language in the cache key.
- device_
type bool - Whether to use the user agent's device type in the cache key.
- geo bool
- Whether to use the user agents's country in the cache key.
- lang bool
- Whether to use the user agent's language in the cache key.
- device
Type Boolean - Whether to use the user agent's device type in the cache key.
- geo Boolean
- Whether to use the user agents's country in the cache key.
- lang Boolean
- Whether to use the user agent's language in the cache key.
GetRulesetRuleActionParametersCacheReserve
- Eligible bool
- Whether Cache Reserve is enabled. If this is true and a request meets eligibility criteria, Cloudflare will write the resource to Cache Reserve.
- Minimum
File intSize - The minimum file size eligible for storage in Cache Reserve.
- Eligible bool
- Whether Cache Reserve is enabled. If this is true and a request meets eligibility criteria, Cloudflare will write the resource to Cache Reserve.
- Minimum
File intSize - The minimum file size eligible for storage in Cache Reserve.
- eligible Boolean
- Whether Cache Reserve is enabled. If this is true and a request meets eligibility criteria, Cloudflare will write the resource to Cache Reserve.
- minimum
File IntegerSize - The minimum file size eligible for storage in Cache Reserve.
- eligible boolean
- Whether Cache Reserve is enabled. If this is true and a request meets eligibility criteria, Cloudflare will write the resource to Cache Reserve.
- minimum
File numberSize - The minimum file size eligible for storage in Cache Reserve.
- eligible bool
- Whether Cache Reserve is enabled. If this is true and a request meets eligibility criteria, Cloudflare will write the resource to Cache Reserve.
- minimum_
file_ intsize - The minimum file size eligible for storage in Cache Reserve.
- eligible Boolean
- Whether Cache Reserve is enabled. If this is true and a request meets eligibility criteria, Cloudflare will write the resource to Cache Reserve.
- minimum
File NumberSize - The minimum file size eligible for storage in Cache Reserve.
GetRulesetRuleActionParametersCookieField
- Name string
- The name of the cookie.
- Name string
- The name of the cookie.
- name String
- The name of the cookie.
- name string
- The name of the cookie.
- name str
- The name of the cookie.
- name String
- The name of the cookie.
GetRulesetRuleActionParametersEdgeTtl
- Default int
- The edge TTL (in seconds) if you choose the "override_origin" mode.
- Mode string
- The edge TTL mode. Available values: "respectorigin", "bypassbydefault", "overrideorigin".
- Status
Code List<GetTtls Ruleset Rule Action Parameters Edge Ttl Status Code Ttl> - A list of TTLs to apply to specific status codes or status code ranges.
- Default int
- The edge TTL (in seconds) if you choose the "override_origin" mode.
- Mode string
- The edge TTL mode. Available values: "respectorigin", "bypassbydefault", "overrideorigin".
- Status
Code []GetTtls Ruleset Rule Action Parameters Edge Ttl Status Code Ttl - A list of TTLs to apply to specific status codes or status code ranges.
- default_ Integer
- The edge TTL (in seconds) if you choose the "override_origin" mode.
- mode String
- The edge TTL mode. Available values: "respectorigin", "bypassbydefault", "overrideorigin".
- status
Code List<GetTtls Ruleset Rule Action Parameters Edge Ttl Status Code Ttl> - A list of TTLs to apply to specific status codes or status code ranges.
- default number
- The edge TTL (in seconds) if you choose the "override_origin" mode.
- mode string
- The edge TTL mode. Available values: "respectorigin", "bypassbydefault", "overrideorigin".
- status
Code GetTtls Ruleset Rule Action Parameters Edge Ttl Status Code Ttl[] - A list of TTLs to apply to specific status codes or status code ranges.
- default int
- The edge TTL (in seconds) if you choose the "override_origin" mode.
- mode str
- The edge TTL mode. Available values: "respectorigin", "bypassbydefault", "overrideorigin".
- status_
code_ Sequence[Getttls Ruleset Rule Action Parameters Edge Ttl Status Code Ttl] - A list of TTLs to apply to specific status codes or status code ranges.
- default Number
- The edge TTL (in seconds) if you choose the "override_origin" mode.
- mode String
- The edge TTL mode. Available values: "respectorigin", "bypassbydefault", "overrideorigin".
- status
Code List<Property Map>Ttls - A list of TTLs to apply to specific status codes or status code ranges.
GetRulesetRuleActionParametersEdgeTtlStatusCodeTtl
- Status
Code int - A single status code to apply the TTL to.
- Status
Code GetRange Ruleset Rule Action Parameters Edge Ttl Status Code Ttl Status Code Range - A range of status codes to apply the TTL to.
- Value int
- The time to cache the response for (in seconds). A value of 0 is equivalent to setting the cache control header with the value "no-cache". A value of -1 is equivalent to setting the cache control header with the value of "no-store".
- Status
Code int - A single status code to apply the TTL to.
- Status
Code GetRange Ruleset Rule Action Parameters Edge Ttl Status Code Ttl Status Code Range - A range of status codes to apply the TTL to.
- Value int
- The time to cache the response for (in seconds). A value of 0 is equivalent to setting the cache control header with the value "no-cache". A value of -1 is equivalent to setting the cache control header with the value of "no-store".
- status
Code Integer - A single status code to apply the TTL to.
- status
Code GetRange Ruleset Rule Action Parameters Edge Ttl Status Code Ttl Status Code Range - A range of status codes to apply the TTL to.
- value Integer
- The time to cache the response for (in seconds). A value of 0 is equivalent to setting the cache control header with the value "no-cache". A value of -1 is equivalent to setting the cache control header with the value of "no-store".
- status
Code number - A single status code to apply the TTL to.
- status
Code GetRange Ruleset Rule Action Parameters Edge Ttl Status Code Ttl Status Code Range - A range of status codes to apply the TTL to.
- value number
- The time to cache the response for (in seconds). A value of 0 is equivalent to setting the cache control header with the value "no-cache". A value of -1 is equivalent to setting the cache control header with the value of "no-store".
- status_
code int - A single status code to apply the TTL to.
- status_
code_ Getrange Ruleset Rule Action Parameters Edge Ttl Status Code Ttl Status Code Range - A range of status codes to apply the TTL to.
- value int
- The time to cache the response for (in seconds). A value of 0 is equivalent to setting the cache control header with the value "no-cache". A value of -1 is equivalent to setting the cache control header with the value of "no-store".
- status
Code Number - A single status code to apply the TTL to.
- status
Code Property MapRange - A range of status codes to apply the TTL to.
- value Number
- The time to cache the response for (in seconds). A value of 0 is equivalent to setting the cache control header with the value "no-cache". A value of -1 is equivalent to setting the cache control header with the value of "no-store".
GetRulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRange
GetRulesetRuleActionParametersFromList
GetRulesetRuleActionParametersFromValue
- Preserve
Query boolString - Whether to keep the query string of the original request.
- Status
Code int - The status code to use for the redirect.
- Target
Url GetRuleset Rule Action Parameters From Value Target Url - A URL to redirect the request to.
- Preserve
Query boolString - Whether to keep the query string of the original request.
- Status
Code int - The status code to use for the redirect.
- Target
Url GetRuleset Rule Action Parameters From Value Target Url - A URL to redirect the request to.
- preserve
Query BooleanString - Whether to keep the query string of the original request.
- status
Code Integer - The status code to use for the redirect.
- target
Url GetRuleset Rule Action Parameters From Value Target Url - A URL to redirect the request to.
- preserve
Query booleanString - Whether to keep the query string of the original request.
- status
Code number - The status code to use for the redirect.
- target
Url GetRuleset Rule Action Parameters From Value Target Url - A URL to redirect the request to.
- preserve_
query_ boolstring - Whether to keep the query string of the original request.
- status_
code int - The status code to use for the redirect.
- target_
url GetRuleset Rule Action Parameters From Value Target Url - A URL to redirect the request to.
- preserve
Query BooleanString - Whether to keep the query string of the original request.
- status
Code Number - The status code to use for the redirect.
- target
Url Property Map - A URL to redirect the request to.
GetRulesetRuleActionParametersFromValueTargetUrl
- Expression string
- An expression that evaluates to a URL to redirect the request to.
- Value string
- A URL to redirect the request to.
- Expression string
- An expression that evaluates to a URL to redirect the request to.
- Value string
- A URL to redirect the request to.
- expression String
- An expression that evaluates to a URL to redirect the request to.
- value String
- A URL to redirect the request to.
- expression string
- An expression that evaluates to a URL to redirect the request to.
- value string
- A URL to redirect the request to.
- expression str
- An expression that evaluates to a URL to redirect the request to.
- value str
- A URL to redirect the request to.
- expression String
- An expression that evaluates to a URL to redirect the request to.
- value String
- A URL to redirect the request to.
GetRulesetRuleActionParametersHeaders
- Expression string
- An expression that evaluates to a value for the header.
- Operation string
- The operation to perform on the header. Available values: "add", "set", "remove".
- Value string
- A static value for the header.
- Expression string
- An expression that evaluates to a value for the header.
- Operation string
- The operation to perform on the header. Available values: "add", "set", "remove".
- Value string
- A static value for the header.
- expression String
- An expression that evaluates to a value for the header.
- operation String
- The operation to perform on the header. Available values: "add", "set", "remove".
- value String
- A static value for the header.
- expression string
- An expression that evaluates to a value for the header.
- operation string
- The operation to perform on the header. Available values: "add", "set", "remove".
- value string
- A static value for the header.
- expression str
- An expression that evaluates to a value for the header.
- operation str
- The operation to perform on the header. Available values: "add", "set", "remove".
- value str
- A static value for the header.
- expression String
- An expression that evaluates to a value for the header.
- operation String
- The operation to perform on the header. Available values: "add", "set", "remove".
- value String
- A static value for the header.
GetRulesetRuleActionParametersMatchedData
- Public
Key string - The public key to encrypt matched data logs with.
- Public
Key string - The public key to encrypt matched data logs with.
- public
Key String - The public key to encrypt matched data logs with.
- public
Key string - The public key to encrypt matched data logs with.
- public_
key str - The public key to encrypt matched data logs with.
- public
Key String - The public key to encrypt matched data logs with.
GetRulesetRuleActionParametersOrigin
GetRulesetRuleActionParametersOverrides
- Action string
- An action to override all rules with. This option has lower precedence than rule and category overrides.
- Categories
List<Get
Ruleset Rule Action Parameters Overrides Category> - A list of category-level overrides. This option has the second-highest precedence after rule-level overrides.
- Enabled bool
- Whether to enable execution of all rules. This option has lower precedence than rule and category overrides.
- Rules
List<Get
Ruleset Rule Action Parameters Overrides Rule> - A list of rule-level overrides. This option has the highest precedence.
- Sensitivity
Level string - A sensitivity level to set for all rules. This option has lower precedence than rule and category overrides and is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- Action string
- An action to override all rules with. This option has lower precedence than rule and category overrides.
- Categories
[]Get
Ruleset Rule Action Parameters Overrides Category - A list of category-level overrides. This option has the second-highest precedence after rule-level overrides.
- Enabled bool
- Whether to enable execution of all rules. This option has lower precedence than rule and category overrides.
- Rules
[]Get
Ruleset Rule Action Parameters Overrides Rule - A list of rule-level overrides. This option has the highest precedence.
- Sensitivity
Level string - A sensitivity level to set for all rules. This option has lower precedence than rule and category overrides and is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action String
- An action to override all rules with. This option has lower precedence than rule and category overrides.
- categories
List<Get
Ruleset Rule Action Parameters Overrides Category> - A list of category-level overrides. This option has the second-highest precedence after rule-level overrides.
- enabled Boolean
- Whether to enable execution of all rules. This option has lower precedence than rule and category overrides.
- rules
List<Get
Ruleset Rule Action Parameters Overrides Rule> - A list of rule-level overrides. This option has the highest precedence.
- sensitivity
Level String - A sensitivity level to set for all rules. This option has lower precedence than rule and category overrides and is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action string
- An action to override all rules with. This option has lower precedence than rule and category overrides.
- categories
Get
Ruleset Rule Action Parameters Overrides Category[] - A list of category-level overrides. This option has the second-highest precedence after rule-level overrides.
- enabled boolean
- Whether to enable execution of all rules. This option has lower precedence than rule and category overrides.
- rules
Get
Ruleset Rule Action Parameters Overrides Rule[] - A list of rule-level overrides. This option has the highest precedence.
- sensitivity
Level string - A sensitivity level to set for all rules. This option has lower precedence than rule and category overrides and is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action str
- An action to override all rules with. This option has lower precedence than rule and category overrides.
- categories
Sequence[Get
Ruleset Rule Action Parameters Overrides Category] - A list of category-level overrides. This option has the second-highest precedence after rule-level overrides.
- enabled bool
- Whether to enable execution of all rules. This option has lower precedence than rule and category overrides.
- rules
Sequence[Get
Ruleset Rule Action Parameters Overrides Rule] - A list of rule-level overrides. This option has the highest precedence.
- sensitivity_
level str - A sensitivity level to set for all rules. This option has lower precedence than rule and category overrides and is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action String
- An action to override all rules with. This option has lower precedence than rule and category overrides.
- categories List<Property Map>
- A list of category-level overrides. This option has the second-highest precedence after rule-level overrides.
- enabled Boolean
- Whether to enable execution of all rules. This option has lower precedence than rule and category overrides.
- rules List<Property Map>
- A list of rule-level overrides. This option has the highest precedence.
- sensitivity
Level String - A sensitivity level to set for all rules. This option has lower precedence than rule and category overrides and is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
GetRulesetRuleActionParametersOverridesCategory
- Action string
- The action to override rules in the category with.
- Category string
- The name of the category to override.
- Enabled bool
- Whether to enable execution of rules in the category.
- Sensitivity
Level string - The sensitivity level to use for rules in the category. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- Action string
- The action to override rules in the category with.
- Category string
- The name of the category to override.
- Enabled bool
- Whether to enable execution of rules in the category.
- Sensitivity
Level string - The sensitivity level to use for rules in the category. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action String
- The action to override rules in the category with.
- category String
- The name of the category to override.
- enabled Boolean
- Whether to enable execution of rules in the category.
- sensitivity
Level String - The sensitivity level to use for rules in the category. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action string
- The action to override rules in the category with.
- category string
- The name of the category to override.
- enabled boolean
- Whether to enable execution of rules in the category.
- sensitivity
Level string - The sensitivity level to use for rules in the category. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action str
- The action to override rules in the category with.
- category str
- The name of the category to override.
- enabled bool
- Whether to enable execution of rules in the category.
- sensitivity_
level str - The sensitivity level to use for rules in the category. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action String
- The action to override rules in the category with.
- category String
- The name of the category to override.
- enabled Boolean
- Whether to enable execution of rules in the category.
- sensitivity
Level String - The sensitivity level to use for rules in the category. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
GetRulesetRuleActionParametersOverridesRule
- Action string
- The action to override the rule with.
- Enabled bool
- Whether to enable execution of the rule.
- Id string
- The ID of the rule to override.
- Score
Threshold int - The score threshold to use for the rule.
- Sensitivity
Level string - The sensitivity level to use for the rule. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- Action string
- The action to override the rule with.
- Enabled bool
- Whether to enable execution of the rule.
- Id string
- The ID of the rule to override.
- Score
Threshold int - The score threshold to use for the rule.
- Sensitivity
Level string - The sensitivity level to use for the rule. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action String
- The action to override the rule with.
- enabled Boolean
- Whether to enable execution of the rule.
- id String
- The ID of the rule to override.
- score
Threshold Integer - The score threshold to use for the rule.
- sensitivity
Level String - The sensitivity level to use for the rule. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action string
- The action to override the rule with.
- enabled boolean
- Whether to enable execution of the rule.
- id string
- The ID of the rule to override.
- score
Threshold number - The score threshold to use for the rule.
- sensitivity
Level string - The sensitivity level to use for the rule. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action str
- The action to override the rule with.
- enabled bool
- Whether to enable execution of the rule.
- id str
- The ID of the rule to override.
- score_
threshold int - The score threshold to use for the rule.
- sensitivity_
level str - The sensitivity level to use for the rule. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
- action String
- The action to override the rule with.
- enabled Boolean
- Whether to enable execution of the rule.
- id String
- The ID of the rule to override.
- score
Threshold Number - The score threshold to use for the rule.
- sensitivity
Level String - The sensitivity level to use for the rule. This option is only applicable for DDoS phases. Available values: "default", "medium", "low", "eoff".
GetRulesetRuleActionParametersRawResponseField
- Name string
- The name of the response header.
- Preserve
Duplicates bool - Whether to log duplicate values of the same header.
- Name string
- The name of the response header.
- Preserve
Duplicates bool - Whether to log duplicate values of the same header.
- name String
- The name of the response header.
- preserve
Duplicates Boolean - Whether to log duplicate values of the same header.
- name string
- The name of the response header.
- preserve
Duplicates boolean - Whether to log duplicate values of the same header.
- name str
- The name of the response header.
- preserve_
duplicates bool - Whether to log duplicate values of the same header.
- name String
- The name of the response header.
- preserve
Duplicates Boolean - Whether to log duplicate values of the same header.
GetRulesetRuleActionParametersRequestField
- Name string
- The name of the header.
- Name string
- The name of the header.
- name String
- The name of the header.
- name string
- The name of the header.
- name str
- The name of the header.
- name String
- The name of the header.
GetRulesetRuleActionParametersResponse
- Content string
- The content to return.
- Content
Type string - The type of the content to return.
- Status
Code int - The status code to return.
- Content string
- The content to return.
- Content
Type string - The type of the content to return.
- Status
Code int - The status code to return.
- content String
- The content to return.
- content
Type String - The type of the content to return.
- status
Code Integer - The status code to return.
- content string
- The content to return.
- content
Type string - The type of the content to return.
- status
Code number - The status code to return.
- content str
- The content to return.
- content_
type str - The type of the content to return.
- status_
code int - The status code to return.
- content String
- The content to return.
- content
Type String - The type of the content to return.
- status
Code Number - The status code to return.
GetRulesetRuleActionParametersResponseField
- Name string
- The name of the response header.
- Preserve
Duplicates bool - Whether to log duplicate values of the same header.
- Name string
- The name of the response header.
- Preserve
Duplicates bool - Whether to log duplicate values of the same header.
- name String
- The name of the response header.
- preserve
Duplicates Boolean - Whether to log duplicate values of the same header.
- name string
- The name of the response header.
- preserve
Duplicates boolean - Whether to log duplicate values of the same header.
- name str
- The name of the response header.
- preserve_
duplicates bool - Whether to log duplicate values of the same header.
- name String
- The name of the response header.
- preserve
Duplicates Boolean - Whether to log duplicate values of the same header.
GetRulesetRuleActionParametersServeStale
- Disable
Stale boolWhile Updating - Whether Cloudflare should disable serving stale content while getting the latest content from the origin.
- Disable
Stale boolWhile Updating - Whether Cloudflare should disable serving stale content while getting the latest content from the origin.
- disable
Stale BooleanWhile Updating - Whether Cloudflare should disable serving stale content while getting the latest content from the origin.
- disable
Stale booleanWhile Updating - Whether Cloudflare should disable serving stale content while getting the latest content from the origin.
- disable_
stale_ boolwhile_ updating - Whether Cloudflare should disable serving stale content while getting the latest content from the origin.
- disable
Stale BooleanWhile Updating - Whether Cloudflare should disable serving stale content while getting the latest content from the origin.
GetRulesetRuleActionParametersSni
- Value string
- A value to override the SNI to.
- Value string
- A value to override the SNI to.
- value String
- A value to override the SNI to.
- value string
- A value to override the SNI to.
- value str
- A value to override the SNI to.
- value String
- A value to override the SNI to.
GetRulesetRuleActionParametersTransformedRequestField
- Name string
- The name of the header.
- Name string
- The name of the header.
- name String
- The name of the header.
- name string
- The name of the header.
- name str
- The name of the header.
- name String
- The name of the header.
GetRulesetRuleActionParametersUri
- Origin bool
- Whether to propagate the rewritten URI to origin.
- Path
Get
Ruleset Rule Action Parameters Uri Path - A URI path rewrite.
- Query
Get
Ruleset Rule Action Parameters Uri Query - A URI query rewrite.
- Origin bool
- Whether to propagate the rewritten URI to origin.
- Path
Get
Ruleset Rule Action Parameters Uri Path - A URI path rewrite.
- Query
Get
Ruleset Rule Action Parameters Uri Query - A URI query rewrite.
- origin Boolean
- Whether to propagate the rewritten URI to origin.
- path
Get
Ruleset Rule Action Parameters Uri Path - A URI path rewrite.
- query
Get
Ruleset Rule Action Parameters Uri Query - A URI query rewrite.
- origin boolean
- Whether to propagate the rewritten URI to origin.
- path
Get
Ruleset Rule Action Parameters Uri Path - A URI path rewrite.
- query
Get
Ruleset Rule Action Parameters Uri Query - A URI query rewrite.
- origin bool
- Whether to propagate the rewritten URI to origin.
- path
Get
Ruleset Rule Action Parameters Uri Path - A URI path rewrite.
- query
Get
Ruleset Rule Action Parameters Uri Query - A URI query rewrite.
- origin Boolean
- Whether to propagate the rewritten URI to origin.
- path Property Map
- A URI path rewrite.
- query Property Map
- A URI query rewrite.
GetRulesetRuleActionParametersUriPath
- Expression string
- An expression that evaluates to a value to rewrite the URI path to.
- Value string
- A value to rewrite the URI path to.
- Expression string
- An expression that evaluates to a value to rewrite the URI path to.
- Value string
- A value to rewrite the URI path to.
- expression String
- An expression that evaluates to a value to rewrite the URI path to.
- value String
- A value to rewrite the URI path to.
- expression string
- An expression that evaluates to a value to rewrite the URI path to.
- value string
- A value to rewrite the URI path to.
- expression str
- An expression that evaluates to a value to rewrite the URI path to.
- value str
- A value to rewrite the URI path to.
- expression String
- An expression that evaluates to a value to rewrite the URI path to.
- value String
- A value to rewrite the URI path to.
GetRulesetRuleActionParametersUriQuery
- Expression string
- An expression that evaluates to a value to rewrite the URI query to.
- Value string
- A value to rewrite the URI query to.
- Expression string
- An expression that evaluates to a value to rewrite the URI query to.
- Value string
- A value to rewrite the URI query to.
- expression String
- An expression that evaluates to a value to rewrite the URI query to.
- value String
- A value to rewrite the URI query to.
- expression string
- An expression that evaluates to a value to rewrite the URI query to.
- value string
- A value to rewrite the URI query to.
- expression str
- An expression that evaluates to a value to rewrite the URI query to.
- value str
- A value to rewrite the URI query to.
- expression String
- An expression that evaluates to a value to rewrite the URI query to.
- value String
- A value to rewrite the URI query to.
GetRulesetRuleExposedCredentialCheck
- Password
Expression string - An expression that selects the password used in the credentials check.
- Username
Expression string - An expression that selects the user ID used in the credentials check.
- Password
Expression string - An expression that selects the password used in the credentials check.
- Username
Expression string - An expression that selects the user ID used in the credentials check.
- password
Expression String - An expression that selects the password used in the credentials check.
- username
Expression String - An expression that selects the user ID used in the credentials check.
- password
Expression string - An expression that selects the password used in the credentials check.
- username
Expression string - An expression that selects the user ID used in the credentials check.
- password_
expression str - An expression that selects the password used in the credentials check.
- username_
expression str - An expression that selects the user ID used in the credentials check.
- password
Expression String - An expression that selects the password used in the credentials check.
- username
Expression String - An expression that selects the user ID used in the credentials check.
GetRulesetRuleLogging
- Enabled bool
- Whether to generate a log when the rule matches.
- Enabled bool
- Whether to generate a log when the rule matches.
- enabled Boolean
- Whether to generate a log when the rule matches.
- enabled boolean
- Whether to generate a log when the rule matches.
- enabled bool
- Whether to generate a log when the rule matches.
- enabled Boolean
- Whether to generate a log when the rule matches.
GetRulesetRuleRatelimit
- Characteristics List<string>
- Characteristics of the request on which the rate limit counter will be incremented.
- Counting
Expression string - An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule's expression.
- Mitigation
Timeout int - Period of time in seconds after which the action will be disabled following its first execution.
- Period int
- Period in seconds over which the counter is being incremented.
- Requests
Per intPeriod - The threshold of requests per period after which the action will be executed for the first time.
- Requests
To boolOrigin - Whether counting is only performed when an origin is reached.
- Score
Per intPeriod - The score threshold per period for which the action will be executed the first time.
- Score
Response stringHeader Name - A response header name provided by the origin, which contains the score to increment rate limit counter with.
- Characteristics []string
- Characteristics of the request on which the rate limit counter will be incremented.
- Counting
Expression string - An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule's expression.
- Mitigation
Timeout int - Period of time in seconds after which the action will be disabled following its first execution.
- Period int
- Period in seconds over which the counter is being incremented.
- Requests
Per intPeriod - The threshold of requests per period after which the action will be executed for the first time.
- Requests
To boolOrigin - Whether counting is only performed when an origin is reached.
- Score
Per intPeriod - The score threshold per period for which the action will be executed the first time.
- Score
Response stringHeader Name - A response header name provided by the origin, which contains the score to increment rate limit counter with.
- characteristics List<String>
- Characteristics of the request on which the rate limit counter will be incremented.
- counting
Expression String - An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule's expression.
- mitigation
Timeout Integer - Period of time in seconds after which the action will be disabled following its first execution.
- period Integer
- Period in seconds over which the counter is being incremented.
- requests
Per IntegerPeriod - The threshold of requests per period after which the action will be executed for the first time.
- requests
To BooleanOrigin - Whether counting is only performed when an origin is reached.
- score
Per IntegerPeriod - The score threshold per period for which the action will be executed the first time.
- score
Response StringHeader Name - A response header name provided by the origin, which contains the score to increment rate limit counter with.
- characteristics string[]
- Characteristics of the request on which the rate limit counter will be incremented.
- counting
Expression string - An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule's expression.
- mitigation
Timeout number - Period of time in seconds after which the action will be disabled following its first execution.
- period number
- Period in seconds over which the counter is being incremented.
- requests
Per numberPeriod - The threshold of requests per period after which the action will be executed for the first time.
- requests
To booleanOrigin - Whether counting is only performed when an origin is reached.
- score
Per numberPeriod - The score threshold per period for which the action will be executed the first time.
- score
Response stringHeader Name - A response header name provided by the origin, which contains the score to increment rate limit counter with.
- characteristics Sequence[str]
- Characteristics of the request on which the rate limit counter will be incremented.
- counting_
expression str - An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule's expression.
- mitigation_
timeout int - Period of time in seconds after which the action will be disabled following its first execution.
- period int
- Period in seconds over which the counter is being incremented.
- requests_
per_ intperiod - The threshold of requests per period after which the action will be executed for the first time.
- requests_
to_ boolorigin - Whether counting is only performed when an origin is reached.
- score_
per_ intperiod - The score threshold per period for which the action will be executed the first time.
- score_
response_ strheader_ name - A response header name provided by the origin, which contains the score to increment rate limit counter with.
- characteristics List<String>
- Characteristics of the request on which the rate limit counter will be incremented.
- counting
Expression String - An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule's expression.
- mitigation
Timeout Number - Period of time in seconds after which the action will be disabled following its first execution.
- period Number
- Period in seconds over which the counter is being incremented.
- requests
Per NumberPeriod - The threshold of requests per period after which the action will be executed for the first time.
- requests
To BooleanOrigin - Whether counting is only performed when an origin is reached.
- score
Per NumberPeriod - The score threshold per period for which the action will be executed the first time.
- score
Response StringHeader Name - A response header name provided by the origin, which contains the score to increment rate limit counter with.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.