GuideReference
TrainingSupportCommunity

Rule upgrade details

akamai_appsec_rule_upgrade_details

Returns information indicating which of your Kona Rule Sets, if any, need to be updated. A value of false indicates that no updates are required.

Scopes: Security policy

Example

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

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

// USE CASE: User wants to view Kona Rule Set upgrade details.

data "akamai_appsec_configuration" "configuration" {
  name = "Documentation"
}
data "akamai_appsec_rule_upgrade_details" "upgrade_details" {
  config_id          = data.akamai_appsec_configuration.configuration.config_id
  security_policy_id = "gms1_134637"
}
output "upgrade_details_text" {
  value = data.akamai_appsec_rule_upgrade_details.upgrade_details.output_text
}
output "upgrade_details_json" {
  value = data.akamai_appsec_rule_upgrade_details.upgrade_details.json
}

Argument reference

This data source supports the following arguments:

  • config_id (Required). Unique identifier of the security configuration associated with the Kona Rule Sets.
  • security_policy_id (Required). Unique identifier of the security policy associated with the Kona Rule Sets.

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 changes (additions and deletions) to the rules for the specified security policy.
  • json. JSON-formatted list of the changes (additions and deletions) to the rules for the specified security policy.