Enrollments
akamai_cps_enrollments
Get information about SSL/TLS certificates for a given contract.
data "akamai_cps_enrollments" "my_enrollments" {
  contract_id = "C-0N7RAC7"
}
output "my_enrollments" {
  value = data.akamai_cps_enrollments.my_enrollments
}
Changes to Outputs:
  + my_enrollments = {
    + contract_id  = "C-0N7RAC7"
    + enrollments  = [
      + {
          + admin_contact                     = [
            + {
                + address_line_one = "1234 Main St."
                + address_line_two = "Suite 123"
                + city             = "Cambridge"
                + country_code     = "US"
                + email            = "jsmith@example.com"
                + first_name       = "Jane"
                + last_name        = "Smith"
                + organization     = "Main Street Corporation"
                + phone            = "1-617-555-6789"
                + postal_code      = "02142"
                + region           = "MA"
                + title            = "Director of Operations"
              },
            ]
          + assigned_slots                    = [
                  + 1234,
                ]
          + certificate_chain_type            = "default"
          + certificate_type                  = "third-party"
          + common_name                       = "my-site.com"
          + csr                               = [
            + {
                + city                  = "Cambridge"
                + country_code          = "US"
                + organization          = "Main Street Corporation"
                + organizational_unit   = "IT"
                + preferred_trust_chain = ""
                + state                 = "MA"
              },
            ]
          + enable_multi_stacked_certificates = true
          + enrollment_id                     = 12345
          + network_configuration             = [
            + {
                + client_mutual_authentication = []
                + clone_dns_names              = true
                + disallowed_tls_versions      = [
                    + "TLSv1",
                    + "TLSv1_1",
                    + "TLSv1_2",
                  ]
                + geography                    = "core"
                + must_have_ciphers            = "ak-akamai-default"
                + ocsp_stapling                = "on"
                + preferred_ciphers            = "ak-akamai-default"
                + quic_enabled                 = false
              },
            ]
          + org_id                            = 0
          + organization                      = [
            + {
                + address_line_one = "1234 Main St."
                + address_line_two = "Suite 123"
                + city             = "Cambridge"
                + country_code     = "US"
                + name             = "Main Street Corporation"
                + phone            = "1-617-555-6789"
                + postal_code      = "02142"
                + region           = "MA"
              },
            ]
          + pending_changes                   = true
          + production_slots                  = []
          + registration_authority            = "lets-encrypt"
          + sans                              = [
              + "*my-site.com",
            ]
          + secure_network                    = "enhanced-tls"
          + signature_algorithm               = "SHA-256"
          + staging_slots                     = [
                  + 12345,
                ]
          + sni_only                          = true
          + tech_contact                      = [
            + {
                + address_line_one = "1234 Main St."
                + address_line_two = "Suite 123"
                + city             = "Cambridge"
                + country_code     = "US"
                + email            = "jsmith@example.com"
                + first_name       = "Janet"
                + last_name        = "Smithson"
                + organization     = "Main Street Corporation"
                + phone            = "1-617-555-6789"
                + postal_code      = "02142"
                + region           = "MA"
                + title            = "Director of Platform Services"
              },
            ]
          + validation_type        = "dv"
        },
      ]
    + id         = "akamai_cps_enrollments"
  }
variable "enrollment_id" {
  type        = number
  description = "The ID for my Akamai DV enrollment"
  default     = 12345
}
// local
enrollment_id = data.akamai_cps_enrollments.my_enrollments.enrollment_id
// tvars
enrollment_id = var.enrollment_id
Argument
Pass a contract_id in the body of the data block.
Attributes
Returned to you is an enrollments set containing a computed list of details about your certificates.
| Attribute | Description | 
|---|---|
| enrollment_id | An enrollment's identifier. | 
| common_name | The fully qualified domain name used for the certification. | 
| secure_network | The type of security on a deployment network. 
 | 
| sans | A list of names the subject alternative names secured by a certificate. | 
| staging_slots | A list of slot IDs for certificates deployed to staging. | 
| sni_only | Denotes whether the server name indication was used for enrollment. | 
| admin_contact | A list including name, address, phone number, and email address of your certificate administrator. | 
| enable_multi_stacked_certificates | Denotes the enablement state of dual-stacked certificate deployment. | 
| assigned_slots | A list of slot IDs for deployed or soon to be deployed certificates. | 
| certificate_chain_type | The certificate trust chain type. | 
| csr | The data used during generation of the certificate signing request. 
 | 
| signature_algorithm | The SHA algorithm type. | 
| network_configuration | The network settings, information, and TLS metadata used by the Certificate Provisioning System. 
 | 
| tech_contact | A list including name, address, phone number, and email address of your Akamai technical contact. | 
| org_id | The Digicert ID for your organization. | 
| organization | A list detailing the address information of your organization. | 
| certificate_type | The certification type. | 
| validation_type | The validation type. | 
| registration_authority | The certificate authority used for the certification. | 
| pending_changes | Denotes whether there are pending changes. | 
| production_slots | A list of slot IDs for certificates deployed to production. | 
Updated 3 months ago
