Rapid rules
akamai_appsec_rapid_rules
Get details about all of your rapid rules or details of a single rule by ID.
data "akamai_appsec_rapid_rules" "my_rules" {
config_id = 12345
security_policy_id = "myrr_12345"
rule_id = 7654321
}
output "my_conditions" {
value = data.akamai_appsec_rapid_rules.my_rules
}
Changes to Outputs:
+ my_conditions = {
+ config_id = 12345
+ default_action = "akamai_managed"
+ enabled = true
+ id = "12345:myrr_12345"
+ output_text = <<-EOT
+------------------------------------------------------------------------------------------------------+
| RapidRulesWithConditionExceptionDS |
+---------+------+--------+-------+--------------+------------------+------------+---------------------+
| ID | NAME | ACTION | LOCK | ATTACK GROUP | GROUP EXCEPTIONS | EXCEPTIONS | ADVANCED EXCEPTIONS |
+---------+------+--------+-------+--------------+------------------+------------+---------------------+
| 7654321 | | deny | false | | False | False | False |
+---------+------+--------+-------+--------------+------------------+------------+---------------------+
EOT
+ rapid_rules = [
+ {
+ action = "deny"
+ attack_group = ""
+ attack_group_exception = "null"
+ condition_exception = "null"
+ id = 7654321
+ lock = false
+ name = ""
},
]
+ rule_id = null
+ security_policy_id = "myrr_12345"
}
Arguments
Pass both a configuration and security policy ID to get all rule details or provide a rule ID to a single rule's details.
Argument | Required | Description |
---|---|---|
configuration_id | ✔️ | A security configuration ID. |
security_policy_id | ✔️ | A security policy ID. |
rule_id | A rapid rule ID. |
Attributes
Returned to you are high level details about your rapid rules.
Attribute | Description |
---|---|
enabled | Whether a rule set is in use. |
default_action | A rule's default action setting. |
rapid_rules | A list of your rapid rules. Contains:
|
output_text | A tabular representation of the rule settings. |
Updated 18 days ago