Bot category

akamai_botman_akamai_bot_category

Returns information about the bot categories predefined by Akamai.

By including the category_name argument you can limit the returned data to a single category.

Scopes: Universal (all bot categories defined by Akamai); bot category

Example

terraform {
  required_providers {
    akamai = {
      source = ‚Äúakamai/akamai‚ÄĚ
    }
  }
}

provider ‚Äúakamai‚ÄĚ {
  edgerc = ‚Äú~/.edgerc‚ÄĚ
}

// USE CASE: User wants to return information for all bot categories

data ‚Äúakamai_botman_akamai_bot_category‚ÄĚ ‚Äúbot_categories‚ÄĚ {
}

output ‚Äúbot_categories_json‚ÄĚ {
  value = data.akamai_botman_akamai_bot_category.bot_categories.json
}

// USE CASE: User wants to return information for only the Web Search Engine Bots category

data ‚Äúakamai_botman_akamai_bot_category‚ÄĚ ‚Äúbot_category‚ÄĚ {
  category_name = ‚ÄúAkamai Bot Category 1‚ÄĚ
}

output ‚Äúbot_category_json‚ÄĚ {
  value = data.akamai_botman_akamai_bot_category.bot_category.json
}

Argument reference

This resource supports the following arguments:

  • category_name (Optional). Unique name of the Akamai bot category you want to return information for.

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 your Akamai-defined bot categories. The returned data includes the ID of each bot assigned to a category.