Page Rule
Example Usage
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
Content copied to clipboard
Import
$ pulumi import cloudflare:index/pageRule:PageRule example '<zone_id>/<pagerule_id>'
Content copied to clipboard
*/
Properties
Link copied to clipboard
Link copied to clipboard
The timestamp of when the Page Rule was last modified.
Link copied to clipboard
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. //
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard