Client list

akamai_clientlist_list

Create, update, or delete a client list.

To delete a client list, ensure its status is INACTIVE and then run terraform destroy.

resource "akamai_clientlist_list" "my_client_list" {
  name = "my_client_list"
  type = "ASN"
  notes = "Client list creation"
  tags = ["tag1", "tag2", "tag3"]
  contract_id = "C-0N7RAC7"
  group_id = 12345
  items {
    value           = "1"
    description     = "Item one"
    tags            = ["tag1", "tag2"]
    expiration_date = "2023-09-06T15:58:39.225+00:00"
  }
  items {
    value           = "2"
    description     = "Item two"
    tags            = ["tag2", "tag3"]
    expiration_date = ""
  }
}
my_clientlist = {
  contract_id = "C-0N7RAC7"
  group_id    = 12345
  id          = "12345_MYCLIENTLIST"
  items       = [
    {
      description     = "Item one"
      expiration_date = "2023-09-06T15:58:39.225+00:00"
      tags            = [
        "tag1",
        "tag2"
      ]
      value           = "1"
    },
    {
      description     = "Item two"
      expiration_date = ""
      tags            = [
        "tag2",
        "tag3"
      ]
      value           = "2"
    },
  ]
  items_count = 2
  list_id     = "12345_MYCLIENTLIST"
  name        = "my_client_list"
  notes       = "Client list creation"
  tags        = [
    "asn log",
  ]
  type        = "ASN"
  version     = 1
}

Arguments

Pass all required arguments to create a client list.

ArgumentRequiredDescription
name✔️Your client list's name.
type✔️Your client list's type. Possible values are: IP, GEO, ASN, TLS_FINGERPRINT, FILE_HASH, USER_ID, DOMAIN, or REQUEST_HEADER_NAME_VALUE.
contract_id✔️Your contract ID.
group_id✔️Your group ID.
notesComments or other human-readable details about your client list.
tagsUser-created identifiers to filter client list searches.
itemsYour list's match elements.
  • value. Your client list's IP address, autonomous system numbers, locations, TLS fingerprint entries, file hash entries, user names, or domain names.
  • key. Applies only to the REQUEST_HEADER_NAME_VALUE list type. The request header name.
  • values. Applies only to the REQUEST_HEADER_NAME_VALUE list type. Values for the request header specified by key.
  • description. A description of the entry.
  • tags. User-created tags to help filter client lists.
  • expiration_date. An item's expiration date.

Attributes

There's no standard output for this resource as changes are reflected in your state file and based on what you passed in the resource block body.

AttributeDescription
list_idThe client list ID's.
versionThe client list's version.
items_countThe number of items a client list contains.