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. Eithercore
to specify worldwide deployment (including China and Russia),china+core
to specify worldwide deployment and China, orrussia+core
to specify worldwide deployment and Russia.must_have_ciphers
- If present, shows ciphers included for enrollment when deployed on the network. The default isak-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, eitheron
,off
ornot-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 isak-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, eitherSHA-1
orSHA-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 theadmin_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 thectr_
prefix.certificate_type
- Populates automatically with thesan
certificate type and is preserved in thestate
file.validation_type
- Populates automatically with thedv
validation type and is preserved in thestate
file.registration_authority
- Populates automatically with thelets-encrypt
certificate type and is preserved in thestate
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 publishesresponse_body
for Let’s Encrypt to validate.response_body
- The data Let’s Encrypt expects to find served atfull_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:
- Enrollment
Id int Unique identifier for the certificate enrollment.
- Enrollment
Id int Unique identifier for the certificate enrollment.
- enrollment
Id Integer Unique identifier for the certificate enrollment.
- enrollment
Id number Unique identifier for the certificate enrollment.
- enrollment_
id int Unique identifier for the certificate enrollment.
- enrollment
Id Number Unique identifier for the certificate enrollment.
getCPSEnrollment Result
The following output properties are available:
- Admin
Contacts List<GetCPSEnrollment Admin Contact> - Certificate
Chain stringType - Certificate
Type string - Common
Name string - Contract
Id string - Csrs
List<Get
CPSEnrollment Csr> - Dns
Challenges List<GetCPSEnrollment Dns Challenge> - Enable
Multi boolStacked Certificates - Enrollment
Id int - Http
Challenges List<GetCPSEnrollment Http Challenge> - Id string
The provider-assigned unique ID for this managed resource.
- Network
Configurations List<GetCPSEnrollment Network Configuration> - Organizations
List<Get
CPSEnrollment Organization> - string
- Sans List<string>
- Secure
Network string - Signature
Algorithm string - Sni
Only bool - Tech
Contacts List<GetCPSEnrollment Tech Contact> - Validation
Type string
- Admin
Contacts []GetCPSEnrollment Admin Contact - Certificate
Chain stringType - Certificate
Type string - Common
Name string - Contract
Id string - Csrs
[]Get
CPSEnrollment Csr - Dns
Challenges []GetCPSEnrollment Dns Challenge - Enable
Multi boolStacked Certificates - Enrollment
Id int - Http
Challenges []GetCPSEnrollment Http Challenge - Id string
The provider-assigned unique ID for this managed resource.
- Network
Configurations []GetCPSEnrollment Network Configuration - Organizations
[]Get
CPSEnrollment Organization - string
- Sans []string
- Secure
Network string - Signature
Algorithm string - Sni
Only bool - Tech
Contacts []GetCPSEnrollment Tech Contact - Validation
Type string
- admin
Contacts List<GetCPSEnrollment Admin Contact> - certificate
Chain StringType - certificate
Type String - common
Name String - contract
Id String - csrs
List<Get
CPSEnrollment Csr> - dns
Challenges List<GetCPSEnrollment Dns Challenge> - enable
Multi BooleanStacked Certificates - enrollment
Id Integer - http
Challenges List<GetCPSEnrollment Http Challenge> - id String
The provider-assigned unique ID for this managed resource.
- network
Configurations List<GetCPSEnrollment Network Configuration> - organizations
List<Get
CPSEnrollment Organization> - String
- sans List<String>
- secure
Network String - signature
Algorithm String - sni
Only Boolean - tech
Contacts List<GetCPSEnrollment Tech Contact> - validation
Type String
- admin
Contacts GetCPSEnrollment Admin Contact[] - certificate
Chain stringType - certificate
Type string - common
Name string - contract
Id string - csrs
Get
CPSEnrollment Csr[] - dns
Challenges GetCPSEnrollment Dns Challenge[] - enable
Multi booleanStacked Certificates - enrollment
Id number - http
Challenges GetCPSEnrollment Http Challenge[] - id string
The provider-assigned unique ID for this managed resource.
- network
Configurations GetCPSEnrollment Network Configuration[] - organizations
Get
CPSEnrollment Organization[] - string
- sans string[]
- secure
Network string - signature
Algorithm string - sni
Only boolean - tech
Contacts GetCPSEnrollment Tech Contact[] - validation
Type string
- admin_
contacts Sequence[GetCPSEnrollment Admin Contact] - certificate_
chain_ strtype - certificate_
type str - common_
name str - contract_
id str - csrs
Sequence[Get
CPSEnrollment Csr] - dns_
challenges Sequence[GetCPSEnrollment Dns Challenge] - enable_
multi_ boolstacked_ certificates - enrollment_
id int - http_
challenges Sequence[GetCPSEnrollment Http Challenge] - id str
The provider-assigned unique ID for this managed resource.
- network_
configurations Sequence[GetCPSEnrollment Network Configuration] - organizations
Sequence[Get
CPSEnrollment Organization] - str
- sans Sequence[str]
- secure_
network str - signature_
algorithm str - sni_
only bool - tech_
contacts Sequence[GetCPSEnrollment Tech Contact] - validation_
type str
- admin
Contacts List<Property Map> - certificate
Chain StringType - certificate
Type String - common
Name String - contract
Id String - csrs List<Property Map>
- dns
Challenges List<Property Map> - enable
Multi BooleanStacked Certificates - enrollment
Id Number - http
Challenges List<Property Map> - id String
The provider-assigned unique ID for this managed resource.
- network
Configurations List<Property Map> - organizations List<Property Map>
- String
- sans List<String>
- secure
Network String - signature
Algorithm String - sni
Only Boolean - tech
Contacts List<Property Map> - validation
Type String
Supporting Types
GetCPSEnrollmentAdminContact
- Address
Line stringOne - City string
- Country
Code string - Email string
- First
Name string - Last
Name string - Organization string
- Phone string
- Postal
Code string - Region string
- Address
Line stringTwo - Title string
- Address
Line stringOne - City string
- Country
Code string - Email string
- First
Name string - Last
Name string - Organization string
- Phone string
- Postal
Code string - Region string
- Address
Line stringTwo - Title string
- address
Line StringOne - city String
- country
Code String - email String
- first
Name String - last
Name String - organization String
- phone String
- postal
Code String - region String
- address
Line StringTwo - title String
- address
Line stringOne - city string
- country
Code string - email string
- first
Name string - last
Name string - organization string
- phone string
- postal
Code string - region string
- address
Line stringTwo - title string
- address_
line_ strone - city str
- country_
code str - email str
- first_
name str - last_
name str - organization str
- phone str
- postal_
code str - region str
- address_
line_ strtwo - title str
- address
Line StringOne - city String
- country
Code String - email String
- first
Name String - last
Name String - organization String
- phone String
- postal
Code String - region String
- address
Line StringTwo - title String
GetCPSEnrollmentCsr
- City string
- Country
Code string - Organization string
- Organizational
Unit string - Preferred
Trust stringChain - State string
- City string
- Country
Code string - Organization string
- Organizational
Unit string - Preferred
Trust stringChain - State string
- city String
- country
Code String - organization String
- organizational
Unit String - preferred
Trust StringChain - state String
- city string
- country
Code string - organization string
- organizational
Unit string - preferred
Trust stringChain - state string
- city str
- country_
code str - organization str
- organizational_
unit str - preferred_
trust_ strchain - state str
- city String
- country
Code String - organization String
- organizational
Unit String - preferred
Trust StringChain - state String
GetCPSEnrollmentDnsChallenge
- Domain string
- Full
Path string - Response
Body string
- Domain string
- Full
Path string - Response
Body string
- domain String
- full
Path String - response
Body String
- domain string
- full
Path string - response
Body string
- domain str
- full_
path str - response_
body str
- domain String
- full
Path String - response
Body String
GetCPSEnrollmentHttpChallenge
- Domain string
- Full
Path string - Response
Body string
- Domain string
- Full
Path string - Response
Body string
- domain String
- full
Path String - response
Body String
- domain string
- full
Path string - response
Body string
- domain str
- full_
path str - response_
body str
- domain String
- full
Path String - response
Body String
GetCPSEnrollmentNetworkConfiguration
- Client
Mutual List<GetAuthentications CPSEnrollment Network Configuration Client Mutual Authentication> - Clone
Dns boolNames - Disallowed
Tls List<string>Versions - Geography string
- Must
Have stringCiphers - Ocsp
Stapling string - Preferred
Ciphers string - Quic
Enabled bool
- Client
Mutual []GetAuthentications CPSEnrollment Network Configuration Client Mutual Authentication - Clone
Dns boolNames - Disallowed
Tls []stringVersions - Geography string
- Must
Have stringCiphers - Ocsp
Stapling string - Preferred
Ciphers string - Quic
Enabled bool
- client
Mutual List<GetAuthentications CPSEnrollment Network Configuration Client Mutual Authentication> - clone
Dns BooleanNames - disallowed
Tls List<String>Versions - geography String
- must
Have StringCiphers - ocsp
Stapling String - preferred
Ciphers String - quic
Enabled Boolean
- client
Mutual GetAuthentications CPSEnrollment Network Configuration Client Mutual Authentication[] - clone
Dns booleanNames - disallowed
Tls string[]Versions - geography string
- must
Have stringCiphers - ocsp
Stapling string - preferred
Ciphers string - quic
Enabled boolean
- client
Mutual List<Property Map>Authentications - clone
Dns BooleanNames - disallowed
Tls List<String>Versions - geography String
- must
Have StringCiphers - ocsp
Stapling String - preferred
Ciphers String - quic
Enabled Boolean
GetCPSEnrollmentNetworkConfigurationClientMutualAuthentication
- Ocsp
Enabled bool - Send
Ca boolList To Client - Set
Id string
- Ocsp
Enabled bool - Send
Ca boolList To Client - Set
Id string
- ocsp
Enabled Boolean - send
Ca BooleanList To Client - set
Id String
- ocsp
Enabled boolean - send
Ca booleanList To Client - set
Id string
- ocsp_
enabled bool - send_
ca_ boollist_ to_ client - set_
id str
- ocsp
Enabled Boolean - send
Ca BooleanList To Client - set
Id String
GetCPSEnrollmentOrganization
- Address
Line stringOne - Address
Line stringTwo - City string
- Country
Code string - Name string
- Phone string
- Postal
Code string - Region string
- Address
Line stringOne - Address
Line stringTwo - City string
- Country
Code string - Name string
- Phone string
- Postal
Code string - Region string
- address
Line StringOne - address
Line StringTwo - city String
- country
Code String - name String
- phone String
- postal
Code String - region String
- address
Line stringOne - address
Line stringTwo - city string
- country
Code string - name string
- phone string
- postal
Code string - region string
- address_
line_ strone - address_
line_ strtwo - city str
- country_
code str - name str
- phone str
- postal_
code str - region str
- address
Line StringOne - address
Line StringTwo - city String
- country
Code String - name String
- phone String
- postal
Code String - region String
GetCPSEnrollmentTechContact
- Address
Line stringOne - City string
- Country
Code string - Email string
- First
Name string - Last
Name string - Organization string
- Phone string
- Postal
Code string - Region string
- Address
Line stringTwo - Title string
- Address
Line stringOne - City string
- Country
Code string - Email string
- First
Name string - Last
Name string - Organization string
- Phone string
- Postal
Code string - Region string
- Address
Line stringTwo - Title string
- address
Line StringOne - city String
- country
Code String - email String
- first
Name String - last
Name String - organization String
- phone String
- postal
Code String - region String
- address
Line StringTwo - title String
- address
Line stringOne - city string
- country
Code string - email string
- first
Name string - last
Name string - organization string
- phone string
- postal
Code string - region string
- address
Line stringTwo - title string
- address_
line_ strone - city str
- country_
code str - email str
- first_
name str - last_
name str - organization str
- phone str
- postal_
code str - region str
- address_
line_ strtwo - title str
- address
Line StringOne - city String
- country
Code String - email String
- first
Name String - last
Name String - organization String
- phone String
- postal
Code String - region String
- address
Line StringTwo - title String
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.