CA sets

akamai_mtlstruststore_ca_sets

📘

Beta

Hello. Just a note to let you know the underlying API on which this data source is built is general release and has been vetted, but because this is a new feature for our Terraform provider, we've given it beta label.

This status just means we've paused for a bit to get your feedback to make sure this data source works like you need and expect.

Lists all CA sets available to you.

data "akamai_mtlstruststore_ca_sets" "my-ca-sets" {
  name_prefix  = "test"
  activated_on = "STAGING"
}

output "my-ca-sets" {
  value = data.akamai_mtlstruststore_ca_sets.my-ca-sets
}
my-ca-sets = {
  activated_on = "STAGING"
  ca_sets      = [
    {
      account_id         = "A-CCT1234"
      created_by         = "jsmith"
      created_date       = "2025-01-04T11:43:15.578752Z"
      deleted_by         = null
      deleted_date       = null
      description        = "Testing a new CA set"
      id                 = "12345"
      latest_version     = 3
      name               = "test_ca-set-1"
      production_version = 1
      staging_version    = 2
      status             = "NOT_DELETED"
    },
    {
      account_id         = "A-CCT1234"
      created_by         = "jasmith"
      created_date       = "2025-03-30T17:48:47.899306Z"
      deleted_by         = null
      deleted_date       = null
      description        = "Testing another CA set"
      id                 = "98765"
      latest_version     = 1
      name               = "test_ca-set-2"
      production_version = null
      staging_version    = 1
      status             = "NOT_DELETED"
    },
  ]
  name_prefix  = "test"
}

Arguments

Pass an empty data block to get all CA sets. You can also pass optional arguments to narrow down the results.

Argument Required Description
name_prefix Filters CA sets by name prefix.
activated_on Returns only those CA sets whose versions are active on the specified network. Possible values are:
  • INACTIVE
  • STAGING
  • PRODUCTION
  • STAGING+PRODUCTION
  • PRODUCTION+STAGING
  • STAGING,PRODUCTION
  • PRODUCTION,STAGING
Note: The + (AND) symbol indicates that the CA set version needs to be active on both networks, while the , (OR) symbol indicates that the CA set version needs to be active on either the staging or production network.

Attributes

Returned to you is a set of cat_sets with their details.

ArgumentDescription
account_idThe account's ID that the CA set belongs to.
idThe CA set's ID.
nameThe CA set's name.
created_dateThe timestamp indicating when the CA set was created.
created_byThe user who created the CA set.
deleted_dateThe timestamp indicating when the CA set was deleted.
deleted_byThe user who deleted the CA set.
descriptionAny additional comments added to the CA set when creating it.
statusThe CA set's deletion status. Possible values are: NOT_DELETED, DELETING, or DELETED.
latest_versionThe CA set's most recent version number.
production_versionThe version number of the CA set that is active on the production network.
staging_versionThe version number of the CA set that is active on the staging network.