Malware policies
akamai_appsec_malware_policies
Returns information about your malware policies. Malware polices help you control what happens when a request is made to upload files of various types. These policies help you control how your website is protected from malicious uploads.
Scopes: Security configuration; malware protection
Example
terraform {
required_providers {
akamai = {
source = "akamai/akamai"
}
}
}
provider "akamai" {
edgerc = "~/.edgerc"
}
// USE CASE: User wants to view all of the malware policies associated with a configuration.
data "akamai_appsec_configuration" "configuration" {
name = "Documentation"
}
data "akamai_appsec_malware_policies" "malware_policies" {
config_id = data.akamai_appsec_configuration.configuration.config_id
}
output "malware_policies_output" {
value = data.akamai_appsec_malware_policies.malware_policies.output_text
}
output "malware_policies_json" {
value = data.akamai_appsec_malware_policies.malware_policies.json
}
// USE CASE: User wants to see a specific malware policy.
data "akamai_appsec_malware_policies" "malware_policy" {
config_id = data.akamai_appsec_configuration.configuration.config_id
malware_policy_id = "122149"
}
output "malware_policy_json" {
value = data.akamai_appsec_malware_policies.malware_policy.json
}
output "malware_policy_output" {
value = data.akamai_appsec_malware_policies.malware_policy.output_text
}
Argument reference
This data source supports the following arguments:
config_id
(Required). Unique identifier of the security configuration associated with the malware policies.malware_policy_id
(Optional). Unique identifier of the malware policy you want to return information for. If not included, information is returned for all of your malware policies.
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 and name of the malware policies.json
. JSON-formatted list of the malware policy information.
Updated about 2 years ago