Rules

akamai_appsec_rules

🚧

Deprecated

Hello. Just a note to let you know this data source is deprecated with a scheduled end-of-life in v10.4 of our provider.

This resource's narrow scope, management of only one rule or group, causes rate-limiting issues when you've got multiples. To mitigate that, we're replacing this data source with a new one that lets you manage all of your policy's rules and groups at once, WAF rule set.

See Attack group migration for more information on improvements and argument mapping.

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