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.
Updated 6 months ago