Skip to content
Start here

Rules

resource cloudflare_waiting_room_rules

required Expand Collapse
waiting_room_id: String
zone_id: String

Identifier.

rules: List[Attributes]
action: String

The action to take when the expression matches.

expression: String

Criteria defining when there is a match for the current rule.

description?: String

The description of the rule.

enabled?: Bool

When set to true, the rule is enabled.

computed Expand Collapse
id: String

The ID of the rule.

cloudflare_waiting_room_rules

resource "cloudflare_waiting_room_rules" "example_waiting_room_rules" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  waiting_room_id = "699d98642c564d2e855e9661899b7252"
  rules = [{
    action = "bypass_waiting_room"
    expression = "ip.src in {10.20.30.40}"
    description = "allow all traffic from 10.20.30.40"
    enabled = true
  }]
}

data cloudflare_waiting_room_rules

required Expand Collapse
waiting_room_id: String
zone_id: String

Identifier.

computed Expand Collapse
id: String
action: String

The action to take when the expression matches.

description: String

The description of the rule.

enabled: Bool

When set to true, the rule is enabled.

expression: String

Criteria defining when there is a match for the current rule.

last_updated: Time
version: String

The version of the rule.

cloudflare_waiting_room_rules

data "cloudflare_waiting_room_rules" "example_waiting_room_rules" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  waiting_room_id = "699d98642c564d2e855e9661899b7252"
}