GuideReference
TrainingSupportCommunity
Guide

Malware policy actions

akamai_appsec_malware_policy_actions

Returns information about your malware policy actions. Actions specify what happens any time a malware policy is triggered: the issue could be ignored, the request could be denied, or an alert could be generated.

Scopes: Security policy; malware protection

Example

terraform {
  required_providers {
    akamai = {
      source = "akamai/akamai"
    }
  }
}

provider "akamai" {
  edgerc = "~/.edgerc"
}

// USE CASE: User wants to view all the malware policy actions associated with a security policy.

data "akamai_appsec_configuration" "configuration" {
  name = "Documentation"
}
data "akamai_appsec_malware_policy_actions" "malware_policy_actions" {
  config_id          = data.akamai_appsec_configuration.configuration.config_id
  security_policy_id = "gms1_134637"
}
output "malware_policy_actions" {
  value = data.akamai_appsec_malware_policy_actions.malware_policy_actions.output_text
}

Argument reference

This resource supports the following arguments:

  • config_id (Required). Unique identifier of the security configuration associated with the malware policies and malware policy actions.
  • security_policy_id (Required). Unique identifier of the security policy associated with the malware policies and malware policy actions.
  • malware_policy_id (Optional). Unique identifier of the malware policy you want to return action information for. If not included, action information is returned for all malware policies associated with the specified security policy.

Output options

The following options can be used to determine the information returned, and how that returned information is formatted:

  • output_text. Tabular report showing the ID, scanned action, and unscanned action of the malware policy or policies.