akamai.getCPSEnrollment

Use the akamai.getCPSEnrollment data source to return data for specific enrollment.

Basic usage

This example shows how to set up a user:

import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const testEnrollment = akamai.getCPSEnrollment({
    enrollmentId: _var.enrollment_id,
});
export const dvOutput = testEnrollment;
import pulumi
import pulumi_akamai as akamai

test_enrollment = akamai.get_cps_enrollment(enrollment_id=var["enrollment_id"])
pulumi.export("dvOutput", test_enrollment)
using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;

return await Deployment.RunAsync(() => 
{
    var testEnrollment = Akamai.GetCPSEnrollment.Invoke(new()
    {
        EnrollmentId = @var.Enrollment_id,
    });

    return new Dictionary<string, object?>
    {
        ["dvOutput"] = testEnrollment,
    };
});
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v4/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testEnrollment, err := akamai.GetCPSEnrollment(ctx, &akamai.GetCPSEnrollmentArgs{
			EnrollmentId: _var.Enrollment_id,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dvOutput", testEnrollment)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetCPSEnrollmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testEnrollment = AkamaiFunctions.getCPSEnrollment(GetCPSEnrollmentArgs.builder()
            .enrollmentId(var_.enrollment_id())
            .build());

        ctx.export("dvOutput", testEnrollment.applyValue(getCPSEnrollmentResult -> getCPSEnrollmentResult));
    }
}
variables:
  testEnrollment:
    fn::invoke:
      Function: akamai:getCPSEnrollment
      Arguments:
        enrollmentId: ${var.enrollment_id}
outputs:
  dvOutput: ${testEnrollment}

Attributes reference

This data source returns these attributes:

  • common_name - The fully qualified domain name (FQDN) used for the certificate.
  • sans - Additional common names in a Subject Alternative Names (SAN) list.
  • secure_network - The type of deployment network used. standard-tls deploys your certificate to Akamai’s standard secure network, but it isn’t PCI compliant. enhanced-tls deploys your certificate to Akamai’s more secure network with PCI compliance capability.
  • sni_only - Whether you enabled SNI-only extension for the enrollment. Server Name Indication (SNI) is an extension of the Transport Layer Security (TLS) networking protocol. It allows a server to present multiple certificates on the same IP address. All modern web browsers support the SNI extension. If you have the same SAN on two or more certificates with the SNI-only option set, Akamai may serve traffic using any certificate which matches the requested SNI hostname.
  • admin_contact - Contact information for the certificate administrator at your company.
  • certificate_chain_type - Certificate trust chain type.
  • csr - When you create an enrollment, you also generate a certificate signing request (CSR) using CPS. CPS signs the CSR with the private key. The CSR contains all the information the CA needs to issue your certificate.
    • country_code - The country code for the country where your organization is located.
    • city - The city where your organization resides.
    • organization - The name of your company or organization.
    • organizational_unit - Your organizational unit.
    • preferred_trust_chain - For the Let’s Encrypt Domain Validated (DV) SAN certificates, the preferred trust chain will be included by CPS with the leaf certificate in the TLS handshake.
    • state - Your state or province.
  • enable_multi_stacked_certificates - If present, an ECDSA certificate is enabled in addition to an RSA certificate. CPS automatically performs all certificate operations on both certificates, and uses the best certificate for each client connection to your secure properties.
  • network_configuration - The network information and TLS Metadata you want CPS to use to push the completed certificate to the network.
    • client_mutual_authentication - If present, shows the configuration for client mutual authentication. Specifies the trust chain that is used to verify client certificates and some configuration options.
      • send_ca_list_to_client - If present, the server is enabled to send the certificate authority (CA) list to the client.
      • ocsp_enabled - If present, the Online Certificate Status Protocol (OCSP) stapling is enabled for client certificates.
      • set_id - The identifier of the set of trust chains, created in Trust Chain Manager.
    • disallowed_tls_versions - The TLS protocol version that is not trusted. CPS uses the TLS protocols that Akamai currently supports as a best practice.
    • clone_dns_names - If present, CPS directs traffic using all the SANs listed in the SANs parameter when the enrollment was created.
    • geography - A list of where you can deploy the certificate. Either core to specify worldwide deployment (including China and Russia), china+core to specify worldwide deployment and China, or russia+core to specify worldwide deployment and Russia.
    • must_have_ciphers - If present, shows ciphers included for enrollment when deployed on the network. The default is ak-akamai-2020q1 when it is not set. For more information on cipher profiles, see Akamai community.
    • ocsp_stapling - If present, its using OCSP stapling for the enrollment, either on, off or not-set. OCSP Stapling improves performance by including a valid OCSP response in every TLS handshake. This option allows the visitors on your site to query the Online Certificate Status Protocol (OCSP) server at regular intervals to obtain a signed time-stamped OCSP response.
    • preferred_ciphers - If present, shows the ciphers that you prefer to include for the enrollment while deploying it on the network. The default is ak-akamai-2020q1 when its not set. For more information on cipher profiles, see Akamai community.
    • quic_enabled - If present, uses the QUIC transport layer network protocol.
  • signature_algorithm - If present, shows the Secure Hash Algorithm (SHA) function, either SHA-1 or SHA-256.
  • tech_contact - The technical contact within Akamai. This is the person you work closest with at Akamai and who can verify the certificate request. The CA calls this contact if there are any issues with the certificate and they can’t reach the admin_contact.
  • organization - The name of the organization in Akamai where your technical contact works.
    • name - The name of the technical contact at Akamai.
    • phone - The phone number of the technical contact at Akamai.
    • address_line_one - The address for the technical contact at Akamai.
    • address_line_two - The address for the technical contact at Akamai.
    • city - The address for the technical contact at Akamai.
    • region - The region for the technical contact at Akamai.
    • postal_code - The postal code for the technical contact at Akamai.
    • country_code - The country code for the technical contact at Akamai.
  • contract_id - A contract’s ID, optionally with the ctr_ prefix.
  • certificate_type - Populates automatically with the san certificate type and is preserved in the state file.
  • validation_type - Populates automatically with the dv validation type and is preserved in the state file.
  • registration_authority - Populates automatically with the lets-encrypt certificate type and is preserved in the state file.
  • dns_challenges - If present, the validation challenge for the domains listed in the certificate.
    • domain - The domain to validate.
    • full_path - The URL where Akamai publishes response_body for Let’s Encrypt to validate.
    • response_body - The data Let’s Encrypt expects to find served at full_path URL.

Using getCPSEnrollment

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getCPSEnrollment(args: GetCPSEnrollmentArgs, opts?: InvokeOptions): Promise<GetCPSEnrollmentResult>
function getCPSEnrollmentOutput(args: GetCPSEnrollmentOutputArgs, opts?: InvokeOptions): Output<GetCPSEnrollmentResult>
def get_cps_enrollment(enrollment_id: Optional[int] = None,
                       opts: Optional[InvokeOptions] = None) -> GetCPSEnrollmentResult
def get_cps_enrollment_output(enrollment_id: Optional[pulumi.Input[int]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetCPSEnrollmentResult]
func GetCPSEnrollment(ctx *Context, args *GetCPSEnrollmentArgs, opts ...InvokeOption) (*GetCPSEnrollmentResult, error)
func GetCPSEnrollmentOutput(ctx *Context, args *GetCPSEnrollmentOutputArgs, opts ...InvokeOption) GetCPSEnrollmentResultOutput

> Note: This function is named GetCPSEnrollment in the Go SDK.

public static class GetCPSEnrollment 
{
    public static Task<GetCPSEnrollmentResult> InvokeAsync(GetCPSEnrollmentArgs args, InvokeOptions? opts = null)
    public static Output<GetCPSEnrollmentResult> Invoke(GetCPSEnrollmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCPSEnrollmentResult> getCPSEnrollment(GetCPSEnrollmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: akamai:index/getCPSEnrollment:getCPSEnrollment
  arguments:
    # arguments dictionary

The following arguments are supported:

EnrollmentId int

Unique identifier for the certificate enrollment.

EnrollmentId int

Unique identifier for the certificate enrollment.

enrollmentId Integer

Unique identifier for the certificate enrollment.

enrollmentId number

Unique identifier for the certificate enrollment.

enrollment_id int

Unique identifier for the certificate enrollment.

enrollmentId Number

Unique identifier for the certificate enrollment.

getCPSEnrollment Result

The following output properties are available:

Supporting Types

GetCPSEnrollmentAdminContact

AddressLineOne string
City string
CountryCode string
Email string
FirstName string
LastName string
Organization string
Phone string
PostalCode string
Region string
AddressLineTwo string
Title string
AddressLineOne string
City string
CountryCode string
Email string
FirstName string
LastName string
Organization string
Phone string
PostalCode string
Region string
AddressLineTwo string
Title string
addressLineOne String
city String
countryCode String
email String
firstName String
lastName String
organization String
phone String
postalCode String
region String
addressLineTwo String
title String
addressLineOne string
city string
countryCode string
email string
firstName string
lastName string
organization string
phone string
postalCode string
region string
addressLineTwo string
title string
addressLineOne String
city String
countryCode String
email String
firstName String
lastName String
organization String
phone String
postalCode String
region String
addressLineTwo String
title String

GetCPSEnrollmentCsr

GetCPSEnrollmentDnsChallenge

Domain string
FullPath string
ResponseBody string
Domain string
FullPath string
ResponseBody string
domain String
fullPath String
responseBody String
domain string
fullPath string
responseBody string
domain String
fullPath String
responseBody String

GetCPSEnrollmentHttpChallenge

Domain string
FullPath string
ResponseBody string
Domain string
FullPath string
ResponseBody string
domain String
fullPath String
responseBody String
domain string
fullPath string
responseBody string
domain String
fullPath String
responseBody String

GetCPSEnrollmentNetworkConfiguration

GetCPSEnrollmentNetworkConfigurationClientMutualAuthentication

ocspEnabled Boolean
sendCaListToClient Boolean
setId String
ocspEnabled boolean
sendCaListToClient boolean
setId string
ocspEnabled Boolean
sendCaListToClient Boolean
setId String

GetCPSEnrollmentOrganization

AddressLineOne string
AddressLineTwo string
City string
CountryCode string
Name string
Phone string
PostalCode string
Region string
AddressLineOne string
AddressLineTwo string
City string
CountryCode string
Name string
Phone string
PostalCode string
Region string
addressLineOne String
addressLineTwo String
city String
countryCode String
name String
phone String
postalCode String
region String
addressLineOne string
addressLineTwo string
city string
countryCode string
name string
phone string
postalCode string
region string
addressLineOne String
addressLineTwo String
city String
countryCode String
name String
phone String
postalCode String
region String

GetCPSEnrollmentTechContact

AddressLineOne string
City string
CountryCode string
Email string
FirstName string
LastName string
Organization string
Phone string
PostalCode string
Region string
AddressLineTwo string
Title string
AddressLineOne string
City string
CountryCode string
Email string
FirstName string
LastName string
Organization string
Phone string
PostalCode string
Region string
AddressLineTwo string
Title string
addressLineOne String
city String
countryCode String
email String
firstName String
lastName String
organization String
phone String
postalCode String
region String
addressLineTwo String
title String
addressLineOne string
city string
countryCode string
email string
firstName string
lastName string
organization string
phone string
postalCode string
region string
addressLineTwo string
title string
addressLineOne String
city String
countryCode String
email String
firstName String
lastName String
organization String
phone String
postalCode String
region String
addressLineTwo String
title String

Package Details

Repository
Akamai pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.