Client list

akamai_clientlist_list

Get details for your client list.

data "akamai_clientlist_list" "my_clientlist" {
  list_id = "12345_MYCLIENTLIST"
}

output "my_clientlist" {
  value = data.akamai_clientlist_list.my_clientlist
}
my_clientlist = {
  json        = jsonencode(
    {
      contractId                 = "C-0N7RAC7"
      createDate                 = "2025-07-05T19:12:54.858+00:00"
      createdBy                  = "jsmith"
      deprecated                 = false
      groupId                    = 12345
      groupName                  = "my_group"
      items                      = [
        {
          createDate       = "2025-07-05T19:12:54.887+00:00"
          createdBy        = "jsmith"
          createdVersion   = 0
          description      = "Item one"
          expirationDate   = ""
          productionStatus = "INACTIVE"
          stagingStatus    = "INACTIVE"
          tags             = [
              "tag1",
              "tag2",
          ]
          type             = "ASN"
          updateDate       = "2025-07-05T19:12:54.887+00:00"
          updatedBy        = "jsmith"
          value            = "1"
        },
      ]
      itemsCount                 = 1
      listId                     = "12345_MYCLIENTLIST"
      listType                   = "CL"
      name                       = "jsmith-allowedasns"
      notes                      = "Client list creation"
      productionActivationStatus = "INACTIVE"
      productionActiveVersion    = 0
      readOnly                   = false
      shared                     = false
      stagingActivationStatus    = "INACTIVE"
      stagingActiveVersion       = 0
      tags                       = [
        "asn log",
      ]
      type                       = "ASN"
      updateDate                 = "2025-08-09T18:49:48.736+00:00"
      updatedBy                  = "jsmith"
      version                    = 1
    }
  )
  list        = {
    create_date                  = "2025-07-05T19:12:54.858+00:00"
    created_by                   = "jsmith"
    deprecated                   = false
    items                        = [
      {
        create_date                  = "2025-07-05T19:12:54.887+00:00"
        created_by                   = "jsmith"
        created_version              = 0
        description                  = "Item one"
        expiration_date              = ""
        production_activation_status = "INACTIVE"
        staging_activation_status    = "INACTIVE"
        tags                         = [
            "tag1",
            "tag2",
          ]
        type                         = "ASN"
        update_date                  = "2025-07-05T19:12:54.887+00:00"
        updated_by                   = "jsmith"
        value                        = "1"
      },
    ]
    items_count                  = 1
    list_id                      = "12345_MYCLIENTLIST"
    list_type                    = "CL"
    name                         = "jsmith-allowedasns"
    notes                        = "Client list creation"
    production_activation_status = "INACTIVE"
    read_only                    = false
    shared                       = false
    staging_activation_status    = "INACTIVE"
    tags                         = [
      "asn log",
    ]
    type                         = "ASN"
    update_date                  = "2025-08-09T18:49:48.736+00:00"
    updated_by                   = "jsmith"
    version                      = 1
  }
  list_id     = "12345_MYCLIENTLIST"
  output_text = <<-EOT
    +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | Client list                                                                                                                                                                 |
    +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | LISTID             | NAME               | TAGS      | TYPE | ITEMSCOUNT | VERSION | READONLY | UPDATEDATE                    | STAGING  | PRODUCTION | NOTES                |
    +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | 12345_MYCLIENTLIST | jsmith-allowedasns | [asn log] | ASN  | 1          | 1       | false    | 2025-08-09T18:49:48.736+00:00 | INACTIVE | INACTIVE   | Client list creation |
    +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    
    +-------------------------------------------------------------------------------------------------------------------+
    | Client list items                                                                                                 |
    +-------------------------------------------------------------------------------------------------------------------+
    | ASN | DESCRIPTION | TAGS         | CREATEDATE                    | UPDATEDATE                    | EXPIRATIONDATE |
    +-------------------------------------------------------------------------------------------------------------------+
    | 1   | Item one    | [tag1, tag2] | 2025-07-05T19:12:54.887+00:00 | 2025-07-05T19:12:54.887+00:00 | No expiration  |
    +-------------------------------------------------------------------------------------------------------------------+
  EOT
}
variable "list_id" {
  type        = string
  description = "My client list"
  default     = "12345_MYCLIENTLIST"
}
// tvars
list_id = var.list_id

Arguments

Pass the ID of your client list in the data block to get its details.

Attributes

Returned to you are the client list's details.

AttributeDescription
jsonA JSON encoded representation of your client lists details. See the List and JSON table for its attributes.
list_idThe client list's ID.
listA set of details about each of your client lists. See the List and JSON table for its attributes.
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. Possible values are: IP, GEO, ASN, FILE_HASH, TLS_FINGERPRINT, or USER_ID.
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 time stamp for the client list's creation.
created_byThe name of the user who created the client list.
update_dateThe 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.
staging_active_versionThe version number of the client list active on the staging network.
deprecatedWhether the client list was removed.
list_typeA client list's type, either CL for a client list or NL for a network list.
sharedA client list made by Akamai that's shared across customers.
read_onlyWhether the client list is editable for the authenticated user.
deprecatedWhether the client list was removed.
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 item's label, such as a user name or TLS fingerprint entry.
tagsUser-created identifiers to filter client list searches.
descriptionThe description of the list item.
expiration_dateThe time stamp for the list item expiry.
create_dateThe time stamp for the client list item's creation.
created_byThe name of the user who created the client list item.
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 time stamp for a client list item's latest update.
updated_byThe name of the user who last updated the client list item.

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 time stamp for a client list's latest update.
VERSIONA client list's version.
DESCRIPTIONThe description of the list item.
CREATEDATEThe time stamp for the list item creation.
EXPIRATIONDATEThe time stamp for the list item expiry.