Custom client

akamai_botman_custom_client

Creates or modifies a custom client. CTo configure a custom client you need to create a JSON array containing the desired settings and values. That array is then used as the value of the custom_client argument. For information about constructing this JSON file see the links listed in the Related API Endpoints section.

Scopes: Security configuration; custom client

Example Usage

Basic usage:

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 custom client

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

// USE CASE: User wants to modify the custom client with the ID 1a3fd673-b9ed-4d11-8c9a-26157419ec77

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

Argument reference

This resource supports the following arguments:

  • config_id (Required). Unique identifier of the security configuration associated with the custom client.
  • custom_client (Required). JSON collection of settings and setting values for the custom client. In the preceding sample code, the syntax file("${path.module}/custom_client.json") points to the location of a JSON file containing the custom_client settings and values.