پرش به مطلب اصلی

arvancloud_cdn_domain_waf_rule (Resource)

Domain's WAF Rule.

Example Usage

resource "arvancloud_cdn_domain_waf_rule" "example" {
domain = "cdn-terraform.ir"
url_pattern = "from-terraform-1"
is_enabled = false
sources = [
"1.2.3.6/32",
"2.2.3.6/32",
]
action = "protect"
}

Schema

Required

  • action (String)
  • domain (String) UUID or the name of the domain.
  • is_enabled (Boolean)
  • sources (List of String)
  • url_pattern (String) Glob pattern of the rule.

Optional

  • description (String)
  • id (String) UUID of the rule.

Read-Only

  • last_updated (String) Timestamp of the last Terraform update of the domain.

Import

Import is supported using the following syntax:

terraform import arvancloud_cdn_domain_waf_rule.example cdn-terraform.ir,1a700f5a-acef-4786-9192-4960dcf18449