arvancloud_cdn_domain_rate_limit_rule (Resource)
Domain's rate limit rule.
Example Usage
resource "arvancloud_cdn_domain_rate_limit_rule" "example" {
domain = "cdn-terraform.ir"
url_pattern = "from-terraform-1"
is_enabled = true
exclude_sources = [
"1.2.3.5/32",
"2.2.3.56/32",
]
allowed_methods = [
"GET"
]
action = "challenge"
action_details = {
mode = 3
ttl = 120
https_only = false
}
rate = 10
burst = 1000
block_duration = 60
time_duration = 100
}
Schema
Required
action
(String)allowed_methods
(List of String)block_duration
(Number)burst
(Number)domain
(String) UUID or the name of the domain.exclude_sources
(List of String)is_enabled
(Boolean)rate
(Number)time_duration
(Number)url_pattern
(String) Glob pattern of the rule.
Optional
action_details
(Attributes) (see below for nested schema)description
(String)id
(String) UUID of the rule.
Read-Only
last_updated
(String) The timestamp of the last update to the domain.
Nested Schema for action_details
Optional:
https_only
(Boolean)mode
(Number)ttl
(Number)
Import
Import is supported using the following syntax:
terraform import arvancloud_cdn_domain_rate_limit_rule.example cdn-terraform.ir,1a700f5a-acef-4786-9192-4960dcf18449