akamai logo
Akamai v4.1.0, Jan 25 23

akamai.getCpsDeployments

Use the akamai.getCpsDeployments data source to retrieve deployed certificates for a specific enrollment.

You’ll see data for ECDSA, RSA, or both depending on the type and number of certificates you uploaded.

Basic usage

This example shows how to return information about deployed certificates for enrollment ID 12345.

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

const example = akamai.getCpsDeployments({
    enrollmentId: 12345,
});
import pulumi
import pulumi_akamai as akamai

example = akamai.get_cps_deployments(enrollment_id=12345)
using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;

return await Deployment.RunAsync(() => 
{
    var example = Akamai.GetCpsDeployments.Invoke(new()
    {
        EnrollmentId = 12345,
    });

});
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 {
		_, err := akamai.GetCpsDeployments(ctx, &akamai.GetCpsDeploymentsArgs{
			EnrollmentId: 12345,
		}, nil)
		if err != nil {
			return err
		}
		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.GetCpsDeploymentsArgs;
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 example = AkamaiFunctions.getCpsDeployments(GetCpsDeploymentsArgs.builder()
            .enrollmentId(12345)
            .build());

    }
}
variables:
  example:
    fn::invoke:
      Function: akamai:getCpsDeployments
      Arguments:
        enrollmentId: 12345

Attributes reference

This data source returns these attributes:

  • production_certificate_rsa - The RSA certificate deployed on the production network.
  • production_certificate_ecdsa - The ECDSA certificate deployed on the production network.
  • staging_certificate_rsa - The RSA certificate deployed on the staging network.
  • staging_certificate_ecdsa - The ECDSA certificate deployed on the staging network.
  • expiry_date - The expiration date for the certificate in ISO-8601 format.
  • auto_renewal_start_time - The specific date the automatic renewal will start on. The date is in ISO-8601 format.
    For DV certificates, CPS automatically starts the renewal process 90 days before the current certificate expires. It then automatically deploys the renewed certificate when it receives it from the CA.
    For third-party certificates, CPS creates a change. This change is needed to get a new CSR and upload the new certificate. Use the akamai.getCPSEnrollments data source to view pending changes.

Using getCpsDeployments

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 getCpsDeployments(args: GetCpsDeploymentsArgs, opts?: InvokeOptions): Promise<GetCpsDeploymentsResult>
function getCpsDeploymentsOutput(args: GetCpsDeploymentsOutputArgs, opts?: InvokeOptions): Output<GetCpsDeploymentsResult>
def get_cps_deployments(enrollment_id: Optional[int] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCpsDeploymentsResult
def get_cps_deployments_output(enrollment_id: Optional[pulumi.Input[int]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetCpsDeploymentsResult]
func GetCpsDeployments(ctx *Context, args *GetCpsDeploymentsArgs, opts ...InvokeOption) (*GetCpsDeploymentsResult, error)
func GetCpsDeploymentsOutput(ctx *Context, args *GetCpsDeploymentsOutputArgs, opts ...InvokeOption) GetCpsDeploymentsResultOutput

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

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

The following arguments are supported:

EnrollmentId int

Unique identifier of the enrollment.

EnrollmentId int

Unique identifier of the enrollment.

enrollmentId Integer

Unique identifier of the enrollment.

enrollmentId number

Unique identifier of the enrollment.

enrollment_id int

Unique identifier of the enrollment.

enrollmentId Number

Unique identifier of the enrollment.

getCpsDeployments Result

The following output properties are available:

AutoRenewalStartTime string
EnrollmentId int
ExpiryDate string
Id string

The provider-assigned unique ID for this managed resource.

ProductionCertificateEcdsa string
ProductionCertificateRsa string
StagingCertificateEcdsa string
StagingCertificateRsa string
AutoRenewalStartTime string
EnrollmentId int
ExpiryDate string
Id string

The provider-assigned unique ID for this managed resource.

ProductionCertificateEcdsa string
ProductionCertificateRsa string
StagingCertificateEcdsa string
StagingCertificateRsa string
autoRenewalStartTime String
enrollmentId Integer
expiryDate String
id String

The provider-assigned unique ID for this managed resource.

productionCertificateEcdsa String
productionCertificateRsa String
stagingCertificateEcdsa String
stagingCertificateRsa String
autoRenewalStartTime string
enrollmentId number
expiryDate string
id string

The provider-assigned unique ID for this managed resource.

productionCertificateEcdsa string
productionCertificateRsa string
stagingCertificateEcdsa string
stagingCertificateRsa string
autoRenewalStartTime String
enrollmentId Number
expiryDate String
id String

The provider-assigned unique ID for this managed resource.

productionCertificateEcdsa String
productionCertificateRsa String
stagingCertificateEcdsa String
stagingCertificateRsa String

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.