GuideReference
TrainingSupportCommunity

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"
              },
            ]
          + 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
              },
            ]
          + 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
          + registration_authority            = "lets-encrypt"
          + sans                              = [
              + "*my-site.com",
            ]
          + secure_network                    = "enhanced-tls"
          + signature_algorithm               = "SHA-256"
          + 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: integer
    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.

AttributeDescription
enrollment_idAn enrollment's identifier.
common_nameThe fully qualified domain name used for the certification.
secure_networkThe type of security on a deployment network.
  • standard-tls. Not PCI compliant.
  • enhanced-tls. PCI compliant.
sansA list of names the subject alternative names secured by a certificate.
sni_onlyDenotes whether the server name indication was used for enrollment.
admin_contactA list including name, address, phone number, and email address of your certificate administrator.
enable_multi_stacked_certificatesDenotes the enablement state of dual-stacked certificate deployment.
certificate_chain_typeThe certificate trust chain type.
csrThe data used during generation of the certificate signing request.
  • country_code. The country code for your organization.
  • city. The city in which your organization is.
  • organization. The name of your business, organization, or company.
  • name. The name of the organization used in all legal documents.
  • preferred_chain_trust. The Let's Encrypt trust chain option chosen at the time the certificate was created. If one was not chosen, the value represents the default Akamai option.
  • state. The state or province in which your organization is.
signature_algorithmThe SHA algorithm type.
network_configurationThe network settings, information, and TLS metadata used by the Certificate Provisioning System.
  • client_mutual_authentication. Set. The configuration for client mutual authentication, specifying the trust chain used to verify client certificates among other options.
  • clone_dns_names. Boolean. Denotes whether the certificate provisioning system directs traffic using all the SANs listed at the time of enrollment creation.
  • disallowed_tls_versions. Set of strings. List of TLS versions not trusted.
  • geography. String. The enrollment's deployment location.
  • must_have_ciphers. String. Ciphers included in the enrollment when deployed on the network. The default is ak-akamai-2020q1 when it is not set.
  • ocsp_stapling. String. The status of an enrollment's use of OCSP stapling.
  • preferred_ciphers. String. Ciphers you prefer included in the enrollment when deployed on the network. The default is ak-akamai-2020q1 when its not set.
  • quic_enabled. Boolean. Denotes the use of the QUIC transport layer network protocol.
tech_contactA list including name, address, phone number, and email address of your Akamai technical contact.
organizationA list detailing the address information of your organization.
certificate_typeThe certification type.
validation_typeThe validation type.
registration_authorityThe certificate authority used for the certification.
pending_changesDenotes whether there are pending changes.