GuideReference
TrainingSupportCommunity

JavaScript injection

akamai_botman_javascript_injection

Returns information about the JavaScript injection rules assigned to a security policy.

Scopes: Security policy

Example

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

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

data "akamai_appsec_configuration" "configuration" {
  name = "Documentation"
}

data "akamai_botman_javascript_injection" "javascript_injection" {
  config_id          = data.akamai_appsec_configuration.configuration.config_id
  security_policy_id = "gms1_134637"
}

output "javascript_injection_json" {
  value = data.akamai_botman_javascript_injection.javascript_injection.json
}

Argument reference

This resource supports the following arguments:

  • config_id (Required). Unique identifier of the security configuration associated with the JavaScript injection rules.
  • security_policy_id (Required). Unique identifier of the security policy associated with the JavaScript injection rules.

Output options

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

  • json. JSON-formatted output containing information about the JavaScript injection rules assigned to a security policy.