Serve alternate action
akamai_botman_serve_alternate_action
Creates or updates a serve alternate action.
To configure a serve alternate action you need to create a JSON array containing the desired settings and values. That array is then used as the value of the serve_alternate_action
argument. For information about constructing this JSON file see the links listed in the Related API Endpoints section.
Scopes: Security configuration; serve alternate action
Example
terraform {
required_providers {
akamai = {
source = "akamai/akamai"
}
}
}
provider "akamai" {
edgerc = "~/.edgerc"
}
data "akamai_appsec_configuration" "configuration" {
name = "Documentation"
}
// USE CASE: User wants to create a new serve alternate action
resource "akamai_botman_serve_alternate_action" "serve_alternate_action" {
config_id = data.akamai_appsec_configuration.configuration.config_id
serve_alternate_action = file("${path.module}/serve_alternate_action.json")
}
//USE CASE: User wants to modify the serve alternate action with the ID akamai
resource "akamai_botman_serve_alternate_action" "serve_alternate_action" {
config_id = data.akamai_appsec_configuration.configuration.config_id
serve_alternate_action = file("${path.module}/serve_alternate_action.json")
EOF
}
Argument reference
This resource supports the following arguments:
config_id
(Required). Unique identifier of the security configuration associated with the serve alternate action.serve_alternate_action
(Required). JSON-formatted collection of serve alternate action settings and setting values. In the preceding sample code, the syntaxfile("${path.module}/serve_alternate_action.json")
points to the location of a JSON file containing the serve alternate action settings and values.
Updated 6 months ago