GuideReference
TrainingSupportCommunity
Guide

Malware content types

akamai_appsec_malware_content_types

Returns information about available content types for malware protection. Each malware policy includes a set of content types to which the policy's actions are applied.

Scopes: Security configuration; malware protection

Example

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

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

// USE CASE: User wants to view all the content types that are available for use in malware policies.

data "akamai_appsec_configuration" "configuration" {
  name = "Documentation"
}
data "akamai_appsec_malware_content_types" "malware_content_types" {
  config_id = data.akamai_appsec_configuration.configuration.config_id
}
output "malware_content_types_output" {
  value = data.akamai_appsec_malware_content_types.malware_content_types.output_text
}
output "malware_content_types_json" {
  value = data.akamai_appsec_malware_content_types.malware_content_types.json
}

Argument reference

This data source supports the following arguments:

  • config_id (Required). Unique identifier of the security configuration associated with the content types.

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 available content types.
  • json. JSON-formatted list of the available content types.