Malware policy action

akamai_appsec_malware_policy_action

Creates, modifies, or deletes the actions associated with a malware policy. By default, malware policies take no action when triggered.

Important: that you must set separate actions for requests that are scanned according to the specified malware policy and those that are unscanned.

resource "akamai_appsec_malware_policy_action" "appsec_malware_policy_action" {
  config_id          = 12345
  security_policy_id = "abcd_123456"
  malware_policy_id  = 12345
  action             = "deny"
  unscanned_action   = "deny"
}

Arguments

ArgumentRequiredDescription
config_id✔️A security configuration ID.
security_policy_id✔️A security policy ID.
malware_policy_id✔️Unique identifier of the malware policy whose action is being modified.
action✔️Action to be taken for requests scanned according to the given malware policy. Allowed actions are:
unscanned_action✔️Action to be taken for requests not scanned according to the given malware policy. Possible values are:
  • alert. Records the event.
  • deny. Blocks the event.
  • deny. Takes your custom action against the event.
  • none. No action taken.