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

# Bot detection action

akamai_botman_bot_detection_action

Modifies the action assigned to a bot detection method.

## Example

```json Declaration
resource "akamai_botman_bot_detection_action" "bot_detection_action" {
  config_id            = data.akamai_appsec_configuration.configuration.config_id
  security_policy_id   = "gms1_134637"
  detection_id         = "65cd1c42-d8e9-42af-9f78-153cfdd92443"
  bot_detection_action = file("${path.module}/action.json")
}
```

## Arguments

This resource supports the following arguments:

* `config_id` (Required). Unique identifier of the security configuration associated with the bot detection method.
* `security_policy_id` (Required). Unique identifier of the security policy associated with the bot detection method.
* `detection_id` (Required). Unique identifier of the bot detection method being updated.
* `bot_detection_action` (Required). JSON file containing the action taken when the bot detection method is triggered. Use the [Bot Manager API](https://techdocs.akamai.com/bot-manager/reference/api) or [Bot Manager in Akamai Control Center](https://techdocs.akamai.com/bot-manager/docs/welcome) to create a configuration. Then, export your configuration or use the corresponding data source to get the JSON file.

# Sibling pages

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