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 = "12345"
  group_id = 12345
  items {
    value           = "1"
    description     = "Item one"
    tags            = ["tag1", "tag2"]
    expiration_date = ""
  }
  items {
    value           = "2"
    description     = "Item two"
    tags            = ["tag2", "tag3"]
    expiration_date = ""
  }
}
my_clientlist = {
  "json" = <<-EOT
  {
    "name": "my_client_list",
    "type": "ASN",
    "notes": "Client list creation",
    "tags": [
      "jsmith"
    ],
    "listId": "12345_MYCLIENTLIST",
    "version": 2,
    "itemsCount": 2,
    "createDate": "2025-07-05T19:12:54.858+00:00",
    "createdBy": "jsmith",
    "updateDate": "2025-08-09T18:49:48.736+00:00",
    "updatedBy": "jsmith",
    "productionActivationStatus": "MODIFIED",
    "stagingActivationStatus": "ACTIVE",
    "listType": "CL",
    "shared": false,
    "readOnly": false,
    "deprecated": false,
    "contractId": "C-0N7RAC7",
    "groupId": 123456,
    "groupName": "jsmith",
    "items": [
      {
        "value": "1",
        "tags": ["tag1", "tag2"],
        "description": "Item one",
        "expirationDate": "",
        "createDate": "2025-07-05T19:12:54.887+00:00",
        "createdBy": "jsmith",
        "createdVersion": 0,
        "productionStatus": "MODIFIED",
        "stagingStatus": "INACTIVE",
        "type": "ASN",
        "updateDate": "2025-07-05T19:12:54.887+00:00",
        "updatedBy": "jsmith"
      },
      {
        "value": "2",
        "tags": ["tag2", "tag3"],
        "description": "Item 2",
        "expirationDate": "",
        "createDate": "2024-01-09T18:49:48.690+00:00",
        "createdBy": "jsmith",
        "createdVersion": 0,
        "productionStatus": "INACTIVE",
        "stagingStatus": "INACTIVE",
        "type": "ASN",
        "updateDate": "2025-08-09T18:49:48.690+00:00",
        "updatedBy": "jsmith"
      }
    ]
  }
  EOT
  "list" = {
    "create_date" = "2025-07-05T19:12:54.858+00:00"
    "created_by" = "jsmith"
    "deprecated" = false
    "items" = tolist([
      {
        "create_date" = "2025-07-05T19:12:54.887+00:00"
        "created_by" = "jsmith"
        "created_version" = 0
        "description" = "Item one"
        "expiration_date" = ""
        "production_activation_status" = "MODIFIED"
        "staging_activation_status" = "INACTIVE"
        "tags" = tolist([])
        "type" = "ASN"
        "update_date" = "2025-07-05T19:12:54.887+00:00"
        "updated_by" = "jsmith"
        "value" = "1"
      },
      {
        "create_date" = "2025-01-09T18:49:48.690+00:00"
        "created_by" = "jsmith"
        "created_version" = 0
        "description" = "Item two"
        "expiration_date" = ""
        "production_activation_status" = "INACTIVE"
        "staging_activation_status" = "ACTIVE"
        "tags" = tolist([])
        "type" = "ASN"
        "update_date" = "2025-08-09T18:49:48.690+00:00"
        "updated_by" = "jsmith"
        "value" = "2"
      },
    ])
    "items_count" = 2
    "list_id" = "12345_MYCLIENTLIST"
    "list_type" = "CL"
    "name" = "jsmith-allowedasns"
    "notes" = "Allowed ASNs for testing"
    "production_activation_status" = "MODIFIED"
    "read_only" = false
    "shared" = false
    "staging_activation_status" = "ACTIVE"
    "tags" = tolist([
      "jsmith",
    ])
    "type" = "ASN"
    "update_date" = "2025-08-09T18:49:48.736+00:00"
    "updated_by" = "jsmith"
    "version" = 2
  }
  "list_id" = "12345_MYCLIENTLIST"
}

Arguments

Pass all required arguments to create a client list.

ArgumentRequiredDescription
name✔️Your client list's name.
type✔️Your client list's type.
  • IP
  • GEO
  • ASN
  • TLS_FINGERPRINT
  • FILE_HASH
  • USER_ID
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, or user names.
  • 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
jsonA JSON encoded representation of your client lists details. See the List and JSON table for its attributes.
list_idA set of your client list IDs.
listA set of details about each of your client lists. See the List and JSON table for its attributes.
nameThe name of your client list.
output_textA table representation of your client lists details. See the Output text table for its attributes.

List and JSON

Both objects contain the same properties. HCL format is listed.

AttributeDescription
nameA client list's name.
typeA client list's type.
notesComments or other human-readable details about your client list.
tagsUser-created identifiers to filter client list searches.
list_idThe client list's ID.
versionA client list's version.
items_countThe number of items a client list contains.
create_dateThe ISO 8601 time stamp for the client list's creation.
created_byThe name of the user who created the client list.
update_dateThe ISO 8601 time stamp for a client list's latest update.
updated_byThe name of the user who last updated the client list.
production_activation_statusThe client list's activation status on the production network.
production_active_versionThe version number of the client list active on the production network.
staging_activation_statusThe client list's activation status on the staging network.
deprecatedWhether the client list was removed.
staging_active_versionThe version number of the client list active on the staging network.
list_typeA client list's type.
  • IP
  • GEO
  • ASN
  • TLSFingerprint
  • FileHash
  • USER_ID
sharedA client list made by Akamai that's shared across customers.
read_onlyWhether the client list is editable for the authenticated user.
deprecatedThe ISO 8601 time stamp for the client list's creation.
contract_idYour contract ID.
group_idYour group ID.
group_nameYour group's name.
itemsAn array of objects containing the contents of your list.

Items

AttributeDescription
valueA list entry's label, such as a user name or TLS fingerprint entry.
tagsUser-created identifiers to filter client list searches.
descriptionWhether the client list was removed.
expiration_dateThe ISO 8601 time stamp for the list expiry.
create_dateThe ISO 8601 time stamp for the client list's creation.
created_byThe name of the user who created the client list.
created_versionThe created version of the item.
production_statusThe activation status on the production network.
staging_statusThe activation status on the staging network.
typeA client list's type.
updated_dateThe ISO 8601 time stamp for a client list's latest update.
updated_byThe name of the user who last updated the client list.

Output text

AttributeDescription
ITEMSCOUNTThe number of items a client list contains.
LISTIDThe client list's ID.
NAMEA client list's name.
NOTESComments or other human-readable details about your client list.
READONLYWhether the client list is editable for the authenticated user.
TAGSUser-created identifiers to filter client list searches.
TYPEA client list's type.
UPDATEDATEThe ISO 8601 time stamp for a client list's latest update.
VERSIONA client list's version.