cloudflare.PageRule
Explore with Pulumi AI
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
examplePageRule:
type: cloudflare:PageRule
name: example_page_rule
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
target: example.com/*
priority: 1
status: active
actions:
forwarding_url: https://example.com/foo
status_code: 301
Create PageRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PageRule(name: string, args: PageRuleArgs, opts?: CustomResourceOptions);
@overload
def PageRule(resource_name: str,
args: PageRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PageRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[PageRuleActionsArgs] = None,
target: Optional[str] = None,
zone_id: Optional[str] = None,
priority: Optional[int] = None,
status: Optional[str] = None)
func NewPageRule(ctx *Context, name string, args PageRuleArgs, opts ...ResourceOption) (*PageRule, error)
public PageRule(string name, PageRuleArgs args, CustomResourceOptions? opts = null)
public PageRule(String name, PageRuleArgs args)
public PageRule(String name, PageRuleArgs args, CustomResourceOptions options)
type: cloudflare:PageRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PageRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PageRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PageRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PageRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PageRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var pageRuleResource = new Cloudflare.PageRule("pageRuleResource", new()
{
Actions = new Cloudflare.Inputs.PageRuleActionsArgs
{
AlwaysUseHttps = false,
AutomaticHttpsRewrites = "string",
BrowserCacheTtl = 0,
BrowserCheck = "string",
BypassCacheOnCookie = "string",
CacheByDeviceType = "string",
CacheDeceptionArmor = "string",
CacheKeyFields = new Cloudflare.Inputs.PageRuleActionsCacheKeyFieldsArgs
{
Cookie = new Cloudflare.Inputs.PageRuleActionsCacheKeyFieldsCookieArgs
{
CheckPresences = new[]
{
"string",
},
Includes = new[]
{
"string",
},
},
Header = new Cloudflare.Inputs.PageRuleActionsCacheKeyFieldsHeaderArgs
{
CheckPresences = new[]
{
"string",
},
Excludes = new[]
{
"string",
},
Includes = new[]
{
"string",
},
},
Host = new Cloudflare.Inputs.PageRuleActionsCacheKeyFieldsHostArgs
{
Resolved = false,
},
QueryString = new Cloudflare.Inputs.PageRuleActionsCacheKeyFieldsQueryStringArgs
{
Excludes = new[]
{
"string",
},
Includes = new[]
{
"string",
},
},
User = new Cloudflare.Inputs.PageRuleActionsCacheKeyFieldsUserArgs
{
DeviceType = false,
Geo = false,
Lang = false,
},
},
CacheLevel = "string",
CacheOnCookie = "string",
CacheTtlByStatus = "any",
DisableApps = false,
DisablePerformance = false,
DisableSecurity = false,
DisableZaraz = false,
EdgeCacheTtl = 0,
EmailObfuscation = "string",
ExplicitCacheControl = "string",
ForwardingUrl = new Cloudflare.Inputs.PageRuleActionsForwardingUrlArgs
{
StatusCode = 0,
Url = "string",
},
HostHeaderOverride = "string",
IpGeolocation = "string",
Mirage = "string",
OpportunisticEncryption = "string",
OriginErrorPagePassThru = "string",
Polish = "string",
ResolveOverride = "string",
RespectStrongEtag = "string",
ResponseBuffering = "string",
RocketLoader = "string",
SecurityLevel = "string",
SortQueryStringForCache = "string",
Ssl = "string",
TrueClientIpHeader = "string",
Waf = "string",
},
Target = "string",
ZoneId = "string",
Priority = 0,
Status = "string",
});
example, err := cloudflare.NewPageRule(ctx, "pageRuleResource", &cloudflare.PageRuleArgs{
Actions: &cloudflare.PageRuleActionsArgs{
AlwaysUseHttps: pulumi.Bool(false),
AutomaticHttpsRewrites: pulumi.String("string"),
BrowserCacheTtl: pulumi.Int(0),
BrowserCheck: pulumi.String("string"),
BypassCacheOnCookie: pulumi.String("string"),
CacheByDeviceType: pulumi.String("string"),
CacheDeceptionArmor: pulumi.String("string"),
CacheKeyFields: &cloudflare.PageRuleActionsCacheKeyFieldsArgs{
Cookie: &cloudflare.PageRuleActionsCacheKeyFieldsCookieArgs{
CheckPresences: pulumi.StringArray{
pulumi.String("string"),
},
Includes: pulumi.StringArray{
pulumi.String("string"),
},
},
Header: &cloudflare.PageRuleActionsCacheKeyFieldsHeaderArgs{
CheckPresences: pulumi.StringArray{
pulumi.String("string"),
},
Excludes: pulumi.StringArray{
pulumi.String("string"),
},
Includes: pulumi.StringArray{
pulumi.String("string"),
},
},
Host: &cloudflare.PageRuleActionsCacheKeyFieldsHostArgs{
Resolved: pulumi.Bool(false),
},
QueryString: &cloudflare.PageRuleActionsCacheKeyFieldsQueryStringArgs{
Excludes: pulumi.StringArray{
pulumi.String("string"),
},
Includes: pulumi.StringArray{
pulumi.String("string"),
},
},
User: &cloudflare.PageRuleActionsCacheKeyFieldsUserArgs{
DeviceType: pulumi.Bool(false),
Geo: pulumi.Bool(false),
Lang: pulumi.Bool(false),
},
},
CacheLevel: pulumi.String("string"),
CacheOnCookie: pulumi.String("string"),
CacheTtlByStatus: pulumi.Any("any"),
DisableApps: pulumi.Bool(false),
DisablePerformance: pulumi.Bool(false),
DisableSecurity: pulumi.Bool(false),
DisableZaraz: pulumi.Bool(false),
EdgeCacheTtl: pulumi.Int(0),
EmailObfuscation: pulumi.String("string"),
ExplicitCacheControl: pulumi.String("string"),
ForwardingUrl: &cloudflare.PageRuleActionsForwardingUrlArgs{
StatusCode: pulumi.Int(0),
Url: pulumi.String("string"),
},
HostHeaderOverride: pulumi.String("string"),
IpGeolocation: pulumi.String("string"),
Mirage: pulumi.String("string"),
OpportunisticEncryption: pulumi.String("string"),
OriginErrorPagePassThru: pulumi.String("string"),
Polish: pulumi.String("string"),
ResolveOverride: pulumi.String("string"),
RespectStrongEtag: pulumi.String("string"),
ResponseBuffering: pulumi.String("string"),
RocketLoader: pulumi.String("string"),
SecurityLevel: pulumi.String("string"),
SortQueryStringForCache: pulumi.String("string"),
Ssl: pulumi.String("string"),
TrueClientIpHeader: pulumi.String("string"),
Waf: pulumi.String("string"),
},
Target: pulumi.String("string"),
ZoneId: pulumi.String("string"),
Priority: pulumi.Int(0),
Status: pulumi.String("string"),
})
var pageRuleResource = new PageRule("pageRuleResource", PageRuleArgs.builder()
.actions(PageRuleActionsArgs.builder()
.alwaysUseHttps(false)
.automaticHttpsRewrites("string")
.browserCacheTtl(0)
.browserCheck("string")
.bypassCacheOnCookie("string")
.cacheByDeviceType("string")
.cacheDeceptionArmor("string")
.cacheKeyFields(PageRuleActionsCacheKeyFieldsArgs.builder()
.cookie(PageRuleActionsCacheKeyFieldsCookieArgs.builder()
.checkPresences("string")
.includes("string")
.build())
.header(PageRuleActionsCacheKeyFieldsHeaderArgs.builder()
.checkPresences("string")
.excludes("string")
.includes("string")
.build())
.host(PageRuleActionsCacheKeyFieldsHostArgs.builder()
.resolved(false)
.build())
.queryString(PageRuleActionsCacheKeyFieldsQueryStringArgs.builder()
.excludes("string")
.includes("string")
.build())
.user(PageRuleActionsCacheKeyFieldsUserArgs.builder()
.deviceType(false)
.geo(false)
.lang(false)
.build())
.build())
.cacheLevel("string")
.cacheOnCookie("string")
.cacheTtlByStatus("any")
.disableApps(false)
.disablePerformance(false)
.disableSecurity(false)
.disableZaraz(false)
.edgeCacheTtl(0)
.emailObfuscation("string")
.explicitCacheControl("string")
.forwardingUrl(PageRuleActionsForwardingUrlArgs.builder()
.statusCode(0)
.url("string")
.build())
.hostHeaderOverride("string")
.ipGeolocation("string")
.mirage("string")
.opportunisticEncryption("string")
.originErrorPagePassThru("string")
.polish("string")
.resolveOverride("string")
.respectStrongEtag("string")
.responseBuffering("string")
.rocketLoader("string")
.securityLevel("string")
.sortQueryStringForCache("string")
.ssl("string")
.trueClientIpHeader("string")
.waf("string")
.build())
.target("string")
.zoneId("string")
.priority(0)
.status("string")
.build());
page_rule_resource = cloudflare.PageRule("pageRuleResource",
actions={
"always_use_https": False,
"automatic_https_rewrites": "string",
"browser_cache_ttl": 0,
"browser_check": "string",
"bypass_cache_on_cookie": "string",
"cache_by_device_type": "string",
"cache_deception_armor": "string",
"cache_key_fields": {
"cookie": {
"check_presences": ["string"],
"includes": ["string"],
},
"header": {
"check_presences": ["string"],
"excludes": ["string"],
"includes": ["string"],
},
"host": {
"resolved": False,
},
"query_string": {
"excludes": ["string"],
"includes": ["string"],
},
"user": {
"device_type": False,
"geo": False,
"lang": False,
},
},
"cache_level": "string",
"cache_on_cookie": "string",
"cache_ttl_by_status": "any",
"disable_apps": False,
"disable_performance": False,
"disable_security": False,
"disable_zaraz": False,
"edge_cache_ttl": 0,
"email_obfuscation": "string",
"explicit_cache_control": "string",
"forwarding_url": {
"status_code": 0,
"url": "string",
},
"host_header_override": "string",
"ip_geolocation": "string",
"mirage": "string",
"opportunistic_encryption": "string",
"origin_error_page_pass_thru": "string",
"polish": "string",
"resolve_override": "string",
"respect_strong_etag": "string",
"response_buffering": "string",
"rocket_loader": "string",
"security_level": "string",
"sort_query_string_for_cache": "string",
"ssl": "string",
"true_client_ip_header": "string",
"waf": "string",
},
target="string",
zone_id="string",
priority=0,
status="string")
const pageRuleResource = new cloudflare.PageRule("pageRuleResource", {
actions: {
alwaysUseHttps: false,
automaticHttpsRewrites: "string",
browserCacheTtl: 0,
browserCheck: "string",
bypassCacheOnCookie: "string",
cacheByDeviceType: "string",
cacheDeceptionArmor: "string",
cacheKeyFields: {
cookie: {
checkPresences: ["string"],
includes: ["string"],
},
header: {
checkPresences: ["string"],
excludes: ["string"],
includes: ["string"],
},
host: {
resolved: false,
},
queryString: {
excludes: ["string"],
includes: ["string"],
},
user: {
deviceType: false,
geo: false,
lang: false,
},
},
cacheLevel: "string",
cacheOnCookie: "string",
cacheTtlByStatus: "any",
disableApps: false,
disablePerformance: false,
disableSecurity: false,
disableZaraz: false,
edgeCacheTtl: 0,
emailObfuscation: "string",
explicitCacheControl: "string",
forwardingUrl: {
statusCode: 0,
url: "string",
},
hostHeaderOverride: "string",
ipGeolocation: "string",
mirage: "string",
opportunisticEncryption: "string",
originErrorPagePassThru: "string",
polish: "string",
resolveOverride: "string",
respectStrongEtag: "string",
responseBuffering: "string",
rocketLoader: "string",
securityLevel: "string",
sortQueryStringForCache: "string",
ssl: "string",
trueClientIpHeader: "string",
waf: "string",
},
target: "string",
zoneId: "string",
priority: 0,
status: "string",
});
type: cloudflare:PageRule
properties:
actions:
alwaysUseHttps: false
automaticHttpsRewrites: string
browserCacheTtl: 0
browserCheck: string
bypassCacheOnCookie: string
cacheByDeviceType: string
cacheDeceptionArmor: string
cacheKeyFields:
cookie:
checkPresences:
- string
includes:
- string
header:
checkPresences:
- string
excludes:
- string
includes:
- string
host:
resolved: false
queryString:
excludes:
- string
includes:
- string
user:
deviceType: false
geo: false
lang: false
cacheLevel: string
cacheOnCookie: string
cacheTtlByStatus: any
disableApps: false
disablePerformance: false
disableSecurity: false
disableZaraz: false
edgeCacheTtl: 0
emailObfuscation: string
explicitCacheControl: string
forwardingUrl:
statusCode: 0
url: string
hostHeaderOverride: string
ipGeolocation: string
mirage: string
opportunisticEncryption: string
originErrorPagePassThru: string
polish: string
resolveOverride: string
respectStrongEtag: string
responseBuffering: string
rocketLoader: string
securityLevel: string
sortQueryStringForCache: string
ssl: string
trueClientIpHeader: string
waf: string
priority: 0
status: string
target: string
zoneId: string
PageRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PageRule resource accepts the following input properties:
- Actions
Page
Rule Actions - Target string
- Zone
Id string - Identifier
- Priority int
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - Status string
- The status of the Page Rule. Available values: "active", "disabled".
- Actions
Page
Rule Actions Args - Target string
- Zone
Id string - Identifier
- Priority int
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - Status string
- The status of the Page Rule. Available values: "active", "disabled".
- actions
Page
Rule Actions - target String
- zone
Id String - Identifier
- priority Integer
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - status String
- The status of the Page Rule. Available values: "active", "disabled".
- actions
Page
Rule Actions - target string
- zone
Id string - Identifier
- priority number
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - status string
- The status of the Page Rule. Available values: "active", "disabled".
- actions
Page
Rule Actions Args - target str
- zone_
id str - Identifier
- priority int
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - status str
- The status of the Page Rule. Available values: "active", "disabled".
- actions Property Map
- target String
- zone
Id String - Identifier
- priority Number
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - status String
- The status of the Page Rule. Available values: "active", "disabled".
Outputs
All input properties are implicitly available as output properties. Additionally, the PageRule resource produces the following output properties:
- Created
On string - The timestamp of when the Page Rule was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - The timestamp of when the Page Rule was last modified.
- Created
On string - The timestamp of when the Page Rule was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - The timestamp of when the Page Rule was last modified.
- created
On String - The timestamp of when the Page Rule was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - The timestamp of when the Page Rule was last modified.
- created
On string - The timestamp of when the Page Rule was created.
- id string
- The provider-assigned unique ID for this managed resource.
- modified
On string - The timestamp of when the Page Rule was last modified.
- created_
on str - The timestamp of when the Page Rule was created.
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
on str - The timestamp of when the Page Rule was last modified.
- created
On String - The timestamp of when the Page Rule was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - The timestamp of when the Page Rule was last modified.
Look up Existing PageRule Resource
Get an existing PageRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PageRuleState, opts?: CustomResourceOptions): PageRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[PageRuleActionsArgs] = None,
created_on: Optional[str] = None,
modified_on: Optional[str] = None,
priority: Optional[int] = None,
status: Optional[str] = None,
target: Optional[str] = None,
zone_id: Optional[str] = None) -> PageRule
func GetPageRule(ctx *Context, name string, id IDInput, state *PageRuleState, opts ...ResourceOption) (*PageRule, error)
public static PageRule Get(string name, Input<string> id, PageRuleState? state, CustomResourceOptions? opts = null)
public static PageRule get(String name, Output<String> id, PageRuleState state, CustomResourceOptions options)
resources: _: type: cloudflare:PageRule get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Actions
Page
Rule Actions - Created
On string - The timestamp of when the Page Rule was created.
- Modified
On string - The timestamp of when the Page Rule was last modified.
- Priority int
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - Status string
- The status of the Page Rule. Available values: "active", "disabled".
- Target string
- Zone
Id string - Identifier
- Actions
Page
Rule Actions Args - Created
On string - The timestamp of when the Page Rule was created.
- Modified
On string - The timestamp of when the Page Rule was last modified.
- Priority int
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - Status string
- The status of the Page Rule. Available values: "active", "disabled".
- Target string
- Zone
Id string - Identifier
- actions
Page
Rule Actions - created
On String - The timestamp of when the Page Rule was created.
- modified
On String - The timestamp of when the Page Rule was last modified.
- priority Integer
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - status String
- The status of the Page Rule. Available values: "active", "disabled".
- target String
- zone
Id String - Identifier
- actions
Page
Rule Actions - created
On string - The timestamp of when the Page Rule was created.
- modified
On string - The timestamp of when the Page Rule was last modified.
- priority number
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - status string
- The status of the Page Rule. Available values: "active", "disabled".
- target string
- zone
Id string - Identifier
- actions
Page
Rule Actions Args - created_
on str - The timestamp of when the Page Rule was created.
- modified_
on str - The timestamp of when the Page Rule was last modified.
- priority int
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - status str
- The status of the Page Rule. Available values: "active", "disabled".
- target str
- zone_
id str - Identifier
- actions Property Map
- created
On String - The timestamp of when the Page Rule was created.
- modified
On String - The timestamp of when the Page Rule was last modified.
- priority Number
- The priority of the rule, used to define which Page Rule is processed
over another. A higher number indicates a higher priority. For example,
if you have a catch-all Page Rule (rule A:
/images/*
) but want a more specific Page Rule to take precedence (rule B:/images/special/*
), specify a higher priority for rule B so it overrides rule A. - status String
- The status of the Page Rule. Available values: "active", "disabled".
- target String
- zone
Id String - Identifier
Supporting Types
PageRuleActions, PageRuleActionsArgs
- Always
Use boolHttps - Automatic
Https stringRewrites - Browser
Cache intTtl - Browser
Check string - string
- Cache
By stringDevice Type - Cache
Deception stringArmor - Cache
Key PageFields Rule Actions Cache Key Fields - Cache
Level string - string
- Cache
Ttl objectBy Status - Disable
Apps bool - Disable
Performance bool - Disable
Security bool - Disable
Zaraz bool - Edge
Cache intTtl - Email
Obfuscation string - Explicit
Cache stringControl - Forwarding
Url PageRule Actions Forwarding Url - Host
Header stringOverride - Ip
Geolocation string - Mirage string
- Opportunistic
Encryption string - Origin
Error stringPage Pass Thru - Polish string
- Resolve
Override string - Respect
Strong stringEtag - Response
Buffering string - Rocket
Loader string - Security
Level string - Sort
Query stringString For Cache - Ssl string
- True
Client stringIp Header - Waf string
- Always
Use boolHttps - Automatic
Https stringRewrites - Browser
Cache intTtl - Browser
Check string - string
- Cache
By stringDevice Type - Cache
Deception stringArmor - Cache
Key PageFields Rule Actions Cache Key Fields - Cache
Level string - string
- Cache
Ttl interface{}By Status - Disable
Apps bool - Disable
Performance bool - Disable
Security bool - Disable
Zaraz bool - Edge
Cache intTtl - Email
Obfuscation string - Explicit
Cache stringControl - Forwarding
Url PageRule Actions Forwarding Url - Host
Header stringOverride - Ip
Geolocation string - Mirage string
- Opportunistic
Encryption string - Origin
Error stringPage Pass Thru - Polish string
- Resolve
Override string - Respect
Strong stringEtag - Response
Buffering string - Rocket
Loader string - Security
Level string - Sort
Query stringString For Cache - Ssl string
- True
Client stringIp Header - Waf string
- always
Use BooleanHttps - automatic
Https StringRewrites - browser
Cache IntegerTtl - browser
Check String - String
- cache
By StringDevice Type - cache
Deception StringArmor - cache
Key PageFields Rule Actions Cache Key Fields - cache
Level String - String
- cache
Ttl ObjectBy Status - disable
Apps Boolean - disable
Performance Boolean - disable
Security Boolean - disable
Zaraz Boolean - edge
Cache IntegerTtl - email
Obfuscation String - explicit
Cache StringControl - forwarding
Url PageRule Actions Forwarding Url - host
Header StringOverride - ip
Geolocation String - mirage String
- opportunistic
Encryption String - origin
Error StringPage Pass Thru - polish String
- resolve
Override String - respect
Strong StringEtag - response
Buffering String - rocket
Loader String - security
Level String - sort
Query StringString For Cache - ssl String
- true
Client StringIp Header - waf String
- always
Use booleanHttps - automatic
Https stringRewrites - browser
Cache numberTtl - browser
Check string - string
- cache
By stringDevice Type - cache
Deception stringArmor - cache
Key PageFields Rule Actions Cache Key Fields - cache
Level string - string
- cache
Ttl anyBy Status - disable
Apps boolean - disable
Performance boolean - disable
Security boolean - disable
Zaraz boolean - edge
Cache numberTtl - email
Obfuscation string - explicit
Cache stringControl - forwarding
Url PageRule Actions Forwarding Url - host
Header stringOverride - ip
Geolocation string - mirage string
- opportunistic
Encryption string - origin
Error stringPage Pass Thru - polish string
- resolve
Override string - respect
Strong stringEtag - response
Buffering string - rocket
Loader string - security
Level string - sort
Query stringString For Cache - ssl string
- true
Client stringIp Header - waf string
- always_
use_ boolhttps - automatic_
https_ strrewrites - browser_
cache_ intttl - browser_
check str - str
- cache_
by_ strdevice_ type - cache_
deception_ strarmor - cache_
key_ Pagefields Rule Actions Cache Key Fields - cache_
level str - str
- cache_
ttl_ Anyby_ status - disable_
apps bool - disable_
performance bool - disable_
security bool - disable_
zaraz bool - edge_
cache_ intttl - email_
obfuscation str - explicit_
cache_ strcontrol - forwarding_
url PageRule Actions Forwarding Url - host_
header_ stroverride - ip_
geolocation str - mirage str
- opportunistic_
encryption str - origin_
error_ strpage_ pass_ thru - polish str
- resolve_
override str - respect_
strong_ stretag - response_
buffering str - rocket_
loader str - security_
level str - sort_
query_ strstring_ for_ cache - ssl str
- true_
client_ strip_ header - waf str
- always
Use BooleanHttps - automatic
Https StringRewrites - browser
Cache NumberTtl - browser
Check String - String
- cache
By StringDevice Type - cache
Deception StringArmor - cache
Key Property MapFields - cache
Level String - String
- cache
Ttl AnyBy Status - disable
Apps Boolean - disable
Performance Boolean - disable
Security Boolean - disable
Zaraz Boolean - edge
Cache NumberTtl - email
Obfuscation String - explicit
Cache StringControl - forwarding
Url Property Map - host
Header StringOverride - ip
Geolocation String - mirage String
- opportunistic
Encryption String - origin
Error StringPage Pass Thru - polish String
- resolve
Override String - respect
Strong StringEtag - response
Buffering String - rocket
Loader String - security
Level String - sort
Query StringString For Cache - ssl String
- true
Client StringIp Header - waf String
PageRuleActionsCacheKeyFields, PageRuleActionsCacheKeyFieldsArgs
PageRuleActionsCacheKeyFieldsCookie, PageRuleActionsCacheKeyFieldsCookieArgs
- Check
Presences List<string> - Includes List<string>
- Check
Presences []string - Includes []string
- check
Presences List<String> - includes List<String>
- check
Presences string[] - includes string[]
- check_
presences Sequence[str] - includes Sequence[str]
- check
Presences List<String> - includes List<String>
PageRuleActionsCacheKeyFieldsHeader, PageRuleActionsCacheKeyFieldsHeaderArgs
- Check
Presences List<string> - Excludes List<string>
- Includes List<string>
- Check
Presences []string - Excludes []string
- Includes []string
- check
Presences List<String> - excludes List<String>
- includes List<String>
- check
Presences string[] - excludes string[]
- includes string[]
- check_
presences Sequence[str] - excludes Sequence[str]
- includes Sequence[str]
- check
Presences List<String> - excludes List<String>
- includes List<String>
PageRuleActionsCacheKeyFieldsHost, PageRuleActionsCacheKeyFieldsHostArgs
- Resolved bool
- Resolved bool
- resolved Boolean
- resolved boolean
- resolved bool
- resolved Boolean
PageRuleActionsCacheKeyFieldsQueryString, PageRuleActionsCacheKeyFieldsQueryStringArgs
PageRuleActionsCacheKeyFieldsUser, PageRuleActionsCacheKeyFieldsUserArgs
- Device
Type bool - Geo bool
- Lang bool
- Device
Type bool - Geo bool
- Lang bool
- device
Type Boolean - geo Boolean
- lang Boolean
- device
Type boolean - geo boolean
- lang boolean
- device_
type bool - geo bool
- lang bool
- device
Type Boolean - geo Boolean
- lang Boolean
PageRuleActionsForwardingUrl, PageRuleActionsForwardingUrlArgs
- Status
Code int - Url string
- Status
Code int - Url string
- status
Code Integer - url String
- status
Code number - url string
- status_
code int - url str
- status
Code Number - url String
Import
$ pulumi import cloudflare:index/pageRule:PageRule example '<zone_id>/<pagerule_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.