GuideReference
TrainingSupportCommunity

Custom-bot category

akamai_botman_custom_bot_category

Creates or modifies a bot category that you can use in addition to the Akamai-defined bot categories.

Example

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

// USE CASE: User wants to create a new custom bot category

resource "akamai_botman_custom_bot_category" "custom_bot_category" {
  config_id           = data.akamai_appsec_configuration.configuration.config_id
  custom_bot_category = file("${path.module}/custom_bot_category.json")
}

// USE CASE: User wants to modify the custom bot category with the ID a08a6d8e-a23c-4cb3-a5c9-8e3dc0d4c0b8

resource "akamai_botman_custom_bot_category" "custom_bot_category" {
  config_id           = data.akamai_appsec_configuration.configuration.config_id
  custom_bot_category = file("${path.module}/custom_bot_category.json")
}

Argument reference

This resource supports the following arguments:

  • config_id (Required). Unique identifier of the security configuration associated with the custom bot category.
  • custom_bot_category (Required). JSON-formatted collection of bot settings and setting values. In the preceding sample code, the syntax file("${path.module}/custom_bot_category.json") points to the location of a JSON file containing the custom category settings and values. Use the Bot Manager API or Bot Manager in Akamai Control Center to create a configuration. Then, export your configuration or use the corresponding data source to get the JSON file.