Rules

akamai_appsec_rules

Returns the action and the condition-exception information for your Kona Rule Set (KRS) rules.

data "akamai_appsec_rules" "my_rules" {
  config_id          = 12345
  security_policy_id = "abcd_123456"
  rule_id            = "12345"
}
output "my_rules" {
  value = data.akamai_appsec_rules.my_rules
}

Arguments

ArgumentRequiredDescription
config_id✔️A security configuration ID.
security_policy_id✔️A security policy ID.
rule_idA rule ID.

Attributes

AttributeDescription
rule_actionAction taken anytime the rule is triggered. Possible values are:
  • alert. Event recorded.
  • deny. Event blocked.
  • deny. Took your custom action against the event.
  • none. No action taken.
condition_exceptionConditions and exceptions associated with the rule