PageRule

class PageRule : KotlinCustomResource

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

Import

$ pulumi import cloudflare:index/pageRule:PageRule example '<zone_id>/<pagerule_id>'

*/

Properties

Link copied to clipboard
Link copied to clipboard
val createdOn: Output<String>

The timestamp of when the Page Rule was created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val modifiedOn: Output<String>

The timestamp of when the Page Rule was last modified.

Link copied to clipboard
val priority: Output<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. //

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

The status of the Page Rule. Available values: "active", "disabled".

Link copied to clipboard
val target: Output<String>
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneId: Output<String>

Identifier