CA set associations

akamai_mtlstruststore_ca_set_associations

📘

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.

List all properties and enrollments that use a CA set.

data "akamai_mtlstruststore_ca_set_associations" "my-ca-set-associations" {
  id = "12345"
}

output "my-ca-set-associations" {
  value = data.akamai_mtlstruststore_ca_set_associations.my-ca-set-associations
}
my-ca-set-associations = {
  enrollments = [
    {
      cn               = "example-1.com"
      enrollment_id    = 98765
      production_slots = [
        87654,
      ]
      staging_slots    = [
        87654,
      ]
    },
    {
      cn               = "example-2.com"
      enrollment_id    = 23456
      production_slots = [
        34567,
      ]
      staging_slots    = [
        34567,
      ]
    },
  ]
  id          = "12345"
  name        = "my-ca-set"
  properties  = []
}

Arguments

Pass a CA set's ID or name in the data block to get all properties and enrollments that use this CA set.

ArgumentRequiredDescription
idYour CA set's ID.
nameYour CA set's name. It must match exactly. If there are multiple CA sets with the same name, you get an error. In this case, use the id argument.

Attributes

Returned to you are the details of properties and enrollments that use the CA set.

Attribute Description
id The CA set's ID.
name The CA set's name.
enrollments Enrollments in Certificate Provisioning System (CPS) linked to the CA set. Each enrollment record contains:
  • enrollment_id. The enrollment's ID.
  • staging_slots. Slots where the certificate is deployed on the staging network.
  • production_slots. Slots where the certificate is deployed on the production network.
  • cn. The domain name used for the certificate. Also, known as the common name.
properties Properties where the CA set is linked to property hostnames via Cloud Certificate Manager (CCM). Each property record contains:
  • property_id. The property's ID.
  • property_name. The property's name.
  • asset_id. An alternative identifier for the property.
  • group_idThe group's ID the property is assigned to.
  • hostnames. A set of the property's hostnames. Each hostname record contains:
    • hostname. The hostname part of the CNAME record used to validate the certificate's domain.
    • network. The network where the CA set to hostname association is formed, removed, or in progress. Possible values are: STAGING or PRODUCTION.
    • status. The status of the CA set to hostname association. Possible values are: ATTACHING, ATTACHED, or DETACHING.
Note: The CCM feature is upcoming, and the properties attribute will be available for use in a future release.