---
updatedAt: 2026-03-01T17:57:55.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/v9.3/llms.txt
---

# JavaScript injection

akamai_botman_javascript_injection

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

## Example

```json Query
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
}
```

## Arguments

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.

# Sibling pages

* [Bot category](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-bot-category.md)
* [Bot category action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-bot-category-action.md)
* [Bot category exception](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-bot-category-exception.md)
* [Bot endpoint coverage report](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-bot-endpoint-coverage-report.md)
* [Bot management settings](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-bot-management-settings.md)
* [Bot sequence](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-custom-bot-category-item-sequence.md)
* [Challenge action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-challenge-action.md)
* [Challenge interception rules](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-challenge-interception-rules.md)
* [Challenge injection rules](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-challenge-injection-rules.md)
* [Client-side security](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-client-side-security.md)
* [Conditional action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-conditional-action.md)
* [Content protection JavaScript injection rule](https://techdocs.akamai.com/terraform/v9.3/docs/cpr-ds-javascript-injection-rule.md)
* [Content protection rule](https://techdocs.akamai.com/terraform/v9.3/docs/cpr-ds-rule.md)
* [Content protection rule sequence](https://techdocs.akamai.com/terraform/v9.3/docs/cpr-ds-rule-sequence.md)
* [Custom-bot category](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-custom-bot-category.md)
* [Custom-bot category action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-custom-bot-category-action.md)
* [Custom-bot category sequence](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-custom-bot-category-sequence.md)
* [Custom-defined bot](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-custom-defined-bot.md)
* [Custom client](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-custom-client.md)
* [Custom client sequence](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-custom-client-sequence.md)
* [Custom deny action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-custom-deny-action.md)
* [Defined bot](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-defined-bot.md)
* [Detection](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-detection.md)
* [Detection action](https://techdocs.akamai.com/terraform/v9.3/docs/dbmgr-ds-etection-action.md)
* [Recategorized Akamai-defined bot](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-recategorized-akamai-defined-bot.md)
* [Response action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-response-action.md)
* [Serve alternate action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-alternative-action.md)
* [Transactional endpoint](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-transactional-endpoint.md)
* [Transactional endpoint protection](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-ds-transactional-endpoint-protection.md)