Page Rule Args
data class PageRuleArgs(val actions: Output<PageRuleActionsArgs>? = null, val priority: Output<Int>? = null, val status: Output<String>? = null, val target: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<PageRuleArgs>
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
Constructors
Link copied to clipboard
constructor(actions: Output<PageRuleActionsArgs>? = null, priority: Output<Int>? = null, status: Output<String>? = null, target: Output<String>? = null, zoneId: Output<String>? = null)
Properties
Link copied to clipboard
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.