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

# Content protection JavaScript injection rule

akamai_botman_content_protection_javascript_injection_rule

Get details about your JavaScript injection rules.

```json Query
// Get all JavaScript injection rules
data "akamai_botman_content_protection_javascript_injection_rule" "my_javascript_injection_rules" {
  config_id          = 12345
  security_policy_id = "abc1_12345"
}

output "my_javascript_injection_rules" {
  value = data.akamai_botman_content_protection_javascript_injection_rule.my_javascript_injection_rules
}

// Get a specific JavaScript injection rule
data "akamai_botman_content_protection_javascript_injection_rule" "my_javascript_injection_rule" {
  config_id                                       = 12345
  security_policy_id                              = "abc1_12345"
  content_protection_javascript_injection_rule_id = "abcd1ef2-345g-6789-h012-34ij5kl6mn7o"
}

output "my_javascript_injection_rule" {
  value = data.akamai_botman_content_protection_javascript_injection_rule.my_javascript_injection_rule
}
```

## Arguments

| Argument                                          | Required | Description                                                                                  |
| ------------------------------------------------- | :------: | -------------------------------------------------------------------------------------------- |
| `config_id`                                       |    ✔️    | The security configuration's ID.                                                             |
| `security_policy_id`                              |    ✔️    | The security policy's ID.                                                                    |
| `content_protection_javascript_injection_rule_id` |          | The JavaScript injection rule's ID. If omitted, all JavaScript injection rules are returned. |

## Attributes

Returned to you is a JSON-encoded list of your content protection JavaScript injection rules.

| Attribute | Description                                                 |
| --------- | ----------------------------------------------------------- |
| `json`    | A JSON-encoded list of information about the API endpoints. |

# Sibling pages

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