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 theakamai.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:
- Enrollment
Id int Unique identifier of the enrollment.
- Enrollment
Id int Unique identifier of the enrollment.
- enrollment
Id Integer Unique identifier of the enrollment.
- enrollment
Id number Unique identifier of the enrollment.
- enrollment_
id int Unique identifier of the enrollment.
- enrollment
Id Number Unique identifier of the enrollment.
getCpsDeployments Result
The following output properties are available:
- Auto
Renewal stringStart Time - Enrollment
Id int - Expiry
Date string - Id string
The provider-assigned unique ID for this managed resource.
- Production
Certificate stringEcdsa - Production
Certificate stringRsa - Staging
Certificate stringEcdsa - Staging
Certificate stringRsa
- Auto
Renewal stringStart Time - Enrollment
Id int - Expiry
Date string - Id string
The provider-assigned unique ID for this managed resource.
- Production
Certificate stringEcdsa - Production
Certificate stringRsa - Staging
Certificate stringEcdsa - Staging
Certificate stringRsa
- auto
Renewal StringStart Time - enrollment
Id Integer - expiry
Date String - id String
The provider-assigned unique ID for this managed resource.
- production
Certificate StringEcdsa - production
Certificate StringRsa - staging
Certificate StringEcdsa - staging
Certificate StringRsa
- auto
Renewal stringStart Time - enrollment
Id number - expiry
Date string - id string
The provider-assigned unique ID for this managed resource.
- production
Certificate stringEcdsa - production
Certificate stringRsa - staging
Certificate stringEcdsa - staging
Certificate stringRsa
- auto_
renewal_ strstart_ time - enrollment_
id int - expiry_
date str - id str
The provider-assigned unique ID for this managed resource.
- production_
certificate_ strecdsa - production_
certificate_ strrsa - staging_
certificate_ strecdsa - staging_
certificate_ strrsa
- auto
Renewal StringStart Time - enrollment
Id Number - expiry
Date String - id String
The provider-assigned unique ID for this managed resource.
- production
Certificate StringEcdsa - production
Certificate StringRsa - staging
Certificate StringEcdsa - staging
Certificate StringRsa
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.