GuideReference
Guide

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.

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

Attributes

Returned to you are high level details about your rapid rules.

AttributeDescription
enabledWhether a rule set is in use.
default_actionA rule's default action setting.
rapid_rulesA list of your rapid rules. Contains:
  • id. The rule's ID.
  • name. The rule's name.
  • action. The rule's action.
  • lock. Whether the rule's action is locked.
  • attack_group. The attack group ID.
  • attack_group_exception. The attack group's exception.
  • condition_exception. The rapid rule's exceptions.
output_textA tabular representation of the rule settings.