akamai logo
Akamai v4.1.0, Jan 25 23

akamai.CpsUploadCertificate

Use the akamai.CpsUploadCertificate resource to upload a third-party certificate and any other files that your CA sent you into CPS. The certificate and trust chain that your CA gives you must be in PEM format before you can use it in CPS. A PEM certificate is a base64 encoded ASCII file and contains ----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- statements.

If your CA provides you with a certificate that is not in PEM format, you can convert it to PEM format using an SSL converter.

Example Usage

Basic usage

using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;

return await Deployment.RunAsync(() => 
{
    var uploadCert = new Akamai.CpsUploadCertificate("uploadCert", new()
    {
        EnrollmentId = 12345,
        CertificateEcdsaPem = example_cert_ecdsa.Pem,
        TrustChainEcdsaPem = example_trust_chain_ecdsa.Pem,
        AcknowledgePostVerificationWarnings = true,
        AcknowledgeChangeManagement = true,
        WaitForDeployment = true,
    });

});
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.NewCpsUploadCertificate(ctx, "uploadCert", &akamai.CpsUploadCertificateArgs{
			EnrollmentId:                        pulumi.Int(12345),
			CertificateEcdsaPem:                 pulumi.Any(example_cert_ecdsa.Pem),
			TrustChainEcdsaPem:                  pulumi.Any(example_trust_chain_ecdsa.Pem),
			AcknowledgePostVerificationWarnings: pulumi.Bool(true),
			AcknowledgeChangeManagement:         pulumi.Bool(true),
			WaitForDeployment:                   pulumi.Bool(true),
		})
		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.CpsUploadCertificate;
import com.pulumi.akamai.CpsUploadCertificateArgs;
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) {
        var uploadCert = new CpsUploadCertificate("uploadCert", CpsUploadCertificateArgs.builder()        
            .enrollmentId(12345)
            .certificateEcdsaPem(example_cert_ecdsa.pem())
            .trustChainEcdsaPem(example_trust_chain_ecdsa.pem())
            .acknowledgePostVerificationWarnings(true)
            .acknowledgeChangeManagement(true)
            .waitForDeployment(true)
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

upload_cert = akamai.CpsUploadCertificate("uploadCert",
    enrollment_id=12345,
    certificate_ecdsa_pem=example_cert_ecdsa["pem"],
    trust_chain_ecdsa_pem=example_trust_chain_ecdsa["pem"],
    acknowledge_post_verification_warnings=True,
    acknowledge_change_management=True,
    wait_for_deployment=True)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const uploadCert = new akamai.CpsUploadCertificate("uploadCert", {
    enrollmentId: 12345,
    certificateEcdsaPem: example_cert_ecdsa.pem,
    trustChainEcdsaPem: example_trust_chain_ecdsa.pem,
    acknowledgePostVerificationWarnings: true,
    acknowledgeChangeManagement: true,
    waitForDeployment: true,
});
resources:
  uploadCert:
    type: akamai:CpsUploadCertificate
    properties:
      enrollmentId: 12345
      certificateEcdsaPem: ${example_cert_ecdsa.pem}
      trustChainEcdsaPem: ${example_trust_chain_ecdsa.pem}
      acknowledgePostVerificationWarnings: true
      acknowledgeChangeManagement: true
      waitForDeployment: true

Create CpsUploadCertificate Resource

new CpsUploadCertificate(name: string, args: CpsUploadCertificateArgs, opts?: CustomResourceOptions);
@overload
def CpsUploadCertificate(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         acknowledge_change_management: Optional[bool] = None,
                         acknowledge_post_verification_warnings: Optional[bool] = None,
                         auto_approve_warnings: Optional[Sequence[str]] = None,
                         certificate_ecdsa_pem: Optional[str] = None,
                         certificate_rsa_pem: Optional[str] = None,
                         enrollment_id: Optional[int] = None,
                         trust_chain_ecdsa_pem: Optional[str] = None,
                         trust_chain_rsa_pem: Optional[str] = None,
                         wait_for_deployment: Optional[bool] = None)
@overload
def CpsUploadCertificate(resource_name: str,
                         args: CpsUploadCertificateArgs,
                         opts: Optional[ResourceOptions] = None)
func NewCpsUploadCertificate(ctx *Context, name string, args CpsUploadCertificateArgs, opts ...ResourceOption) (*CpsUploadCertificate, error)
public CpsUploadCertificate(string name, CpsUploadCertificateArgs args, CustomResourceOptions? opts = null)
public CpsUploadCertificate(String name, CpsUploadCertificateArgs args)
public CpsUploadCertificate(String name, CpsUploadCertificateArgs args, CustomResourceOptions options)
type: akamai:CpsUploadCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CpsUploadCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args CpsUploadCertificateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CpsUploadCertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CpsUploadCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CpsUploadCertificateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CpsUploadCertificate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The CpsUploadCertificate resource accepts the following input properties:

EnrollmentId int

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
AcknowledgeChangeManagement bool

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

AcknowledgePostVerificationWarnings bool

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

AutoApproveWarnings List<string>

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

CertificateEcdsaPem string

The ECDSA certificate in PEM format you want to upload.

CertificateRsaPem string

The RSA certificate in PEM format you want to upload.

TrustChainEcdsaPem string

The trust chain in PEM format for the ECDSA certificate you want to upload.

TrustChainRsaPem string

The trust chain in PEM format for the RSA certificate you want to upload.

WaitForDeployment bool

Boolean. Enter true to wait for certificate to be deployed.

EnrollmentId int

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
AcknowledgeChangeManagement bool

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

AcknowledgePostVerificationWarnings bool

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

AutoApproveWarnings []string

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

CertificateEcdsaPem string

The ECDSA certificate in PEM format you want to upload.

CertificateRsaPem string

The RSA certificate in PEM format you want to upload.

TrustChainEcdsaPem string

The trust chain in PEM format for the ECDSA certificate you want to upload.

TrustChainRsaPem string

The trust chain in PEM format for the RSA certificate you want to upload.

WaitForDeployment bool

Boolean. Enter true to wait for certificate to be deployed.

enrollmentId Integer

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
acknowledgeChangeManagement Boolean

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

acknowledgePostVerificationWarnings Boolean

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

autoApproveWarnings List<String>

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

certificateEcdsaPem String

The ECDSA certificate in PEM format you want to upload.

certificateRsaPem String

The RSA certificate in PEM format you want to upload.

trustChainEcdsaPem String

The trust chain in PEM format for the ECDSA certificate you want to upload.

trustChainRsaPem String

The trust chain in PEM format for the RSA certificate you want to upload.

waitForDeployment Boolean

Boolean. Enter true to wait for certificate to be deployed.

enrollmentId number

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
acknowledgeChangeManagement boolean

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

acknowledgePostVerificationWarnings boolean

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

autoApproveWarnings string[]

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

certificateEcdsaPem string

The ECDSA certificate in PEM format you want to upload.

certificateRsaPem string

The RSA certificate in PEM format you want to upload.

trustChainEcdsaPem string

The trust chain in PEM format for the ECDSA certificate you want to upload.

trustChainRsaPem string

The trust chain in PEM format for the RSA certificate you want to upload.

waitForDeployment boolean

Boolean. Enter true to wait for certificate to be deployed.

enrollment_id int

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
acknowledge_change_management bool

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

acknowledge_post_verification_warnings bool

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

auto_approve_warnings Sequence[str]

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

certificate_ecdsa_pem str

The ECDSA certificate in PEM format you want to upload.

certificate_rsa_pem str

The RSA certificate in PEM format you want to upload.

trust_chain_ecdsa_pem str

The trust chain in PEM format for the ECDSA certificate you want to upload.

trust_chain_rsa_pem str

The trust chain in PEM format for the RSA certificate you want to upload.

wait_for_deployment bool

Boolean. Enter true to wait for certificate to be deployed.

enrollmentId Number

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
acknowledgeChangeManagement Boolean

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

acknowledgePostVerificationWarnings Boolean

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

autoApproveWarnings List<String>

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

certificateEcdsaPem String

The ECDSA certificate in PEM format you want to upload.

certificateRsaPem String

The RSA certificate in PEM format you want to upload.

trustChainEcdsaPem String

The trust chain in PEM format for the ECDSA certificate you want to upload.

trustChainRsaPem String

The trust chain in PEM format for the RSA certificate you want to upload.

waitForDeployment Boolean

Boolean. Enter true to wait for certificate to be deployed.

Outputs

All input properties are implicitly available as output properties. Additionally, the CpsUploadCertificate resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

UnacknowledgedWarnings bool

Used to distinguish whether there are unacknowledged warnings for a certificate

Id string

The provider-assigned unique ID for this managed resource.

UnacknowledgedWarnings bool

Used to distinguish whether there are unacknowledged warnings for a certificate

id String

The provider-assigned unique ID for this managed resource.

unacknowledgedWarnings Boolean

Used to distinguish whether there are unacknowledged warnings for a certificate

id string

The provider-assigned unique ID for this managed resource.

unacknowledgedWarnings boolean

Used to distinguish whether there are unacknowledged warnings for a certificate

id str

The provider-assigned unique ID for this managed resource.

unacknowledged_warnings bool

Used to distinguish whether there are unacknowledged warnings for a certificate

id String

The provider-assigned unique ID for this managed resource.

unacknowledgedWarnings Boolean

Used to distinguish whether there are unacknowledged warnings for a certificate

Look up Existing CpsUploadCertificate Resource

Get an existing CpsUploadCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CpsUploadCertificateState, opts?: CustomResourceOptions): CpsUploadCertificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        acknowledge_change_management: Optional[bool] = None,
        acknowledge_post_verification_warnings: Optional[bool] = None,
        auto_approve_warnings: Optional[Sequence[str]] = None,
        certificate_ecdsa_pem: Optional[str] = None,
        certificate_rsa_pem: Optional[str] = None,
        enrollment_id: Optional[int] = None,
        trust_chain_ecdsa_pem: Optional[str] = None,
        trust_chain_rsa_pem: Optional[str] = None,
        unacknowledged_warnings: Optional[bool] = None,
        wait_for_deployment: Optional[bool] = None) -> CpsUploadCertificate
func GetCpsUploadCertificate(ctx *Context, name string, id IDInput, state *CpsUploadCertificateState, opts ...ResourceOption) (*CpsUploadCertificate, error)
public static CpsUploadCertificate Get(string name, Input<string> id, CpsUploadCertificateState? state, CustomResourceOptions? opts = null)
public static CpsUploadCertificate get(String name, Output<String> id, CpsUploadCertificateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AcknowledgeChangeManagement bool

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

AcknowledgePostVerificationWarnings bool

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

AutoApproveWarnings List<string>

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

CertificateEcdsaPem string

The ECDSA certificate in PEM format you want to upload.

CertificateRsaPem string

The RSA certificate in PEM format you want to upload.

EnrollmentId int

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
TrustChainEcdsaPem string

The trust chain in PEM format for the ECDSA certificate you want to upload.

TrustChainRsaPem string

The trust chain in PEM format for the RSA certificate you want to upload.

UnacknowledgedWarnings bool

Used to distinguish whether there are unacknowledged warnings for a certificate

WaitForDeployment bool

Boolean. Enter true to wait for certificate to be deployed.

AcknowledgeChangeManagement bool

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

AcknowledgePostVerificationWarnings bool

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

AutoApproveWarnings []string

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

CertificateEcdsaPem string

The ECDSA certificate in PEM format you want to upload.

CertificateRsaPem string

The RSA certificate in PEM format you want to upload.

EnrollmentId int

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
TrustChainEcdsaPem string

The trust chain in PEM format for the ECDSA certificate you want to upload.

TrustChainRsaPem string

The trust chain in PEM format for the RSA certificate you want to upload.

UnacknowledgedWarnings bool

Used to distinguish whether there are unacknowledged warnings for a certificate

WaitForDeployment bool

Boolean. Enter true to wait for certificate to be deployed.

acknowledgeChangeManagement Boolean

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

acknowledgePostVerificationWarnings Boolean

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

autoApproveWarnings List<String>

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

certificateEcdsaPem String

The ECDSA certificate in PEM format you want to upload.

certificateRsaPem String

The RSA certificate in PEM format you want to upload.

enrollmentId Integer

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
trustChainEcdsaPem String

The trust chain in PEM format for the ECDSA certificate you want to upload.

trustChainRsaPem String

The trust chain in PEM format for the RSA certificate you want to upload.

unacknowledgedWarnings Boolean

Used to distinguish whether there are unacknowledged warnings for a certificate

waitForDeployment Boolean

Boolean. Enter true to wait for certificate to be deployed.

acknowledgeChangeManagement boolean

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

acknowledgePostVerificationWarnings boolean

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

autoApproveWarnings string[]

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

certificateEcdsaPem string

The ECDSA certificate in PEM format you want to upload.

certificateRsaPem string

The RSA certificate in PEM format you want to upload.

enrollmentId number

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
trustChainEcdsaPem string

The trust chain in PEM format for the ECDSA certificate you want to upload.

trustChainRsaPem string

The trust chain in PEM format for the RSA certificate you want to upload.

unacknowledgedWarnings boolean

Used to distinguish whether there are unacknowledged warnings for a certificate

waitForDeployment boolean

Boolean. Enter true to wait for certificate to be deployed.

acknowledge_change_management bool

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

acknowledge_post_verification_warnings bool

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

auto_approve_warnings Sequence[str]

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

certificate_ecdsa_pem str

The ECDSA certificate in PEM format you want to upload.

certificate_rsa_pem str

The RSA certificate in PEM format you want to upload.

enrollment_id int

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
trust_chain_ecdsa_pem str

The trust chain in PEM format for the ECDSA certificate you want to upload.

trust_chain_rsa_pem str

The trust chain in PEM format for the RSA certificate you want to upload.

unacknowledged_warnings bool

Used to distinguish whether there are unacknowledged warnings for a certificate

wait_for_deployment bool

Boolean. Enter true to wait for certificate to be deployed.

acknowledgeChangeManagement Boolean

Boolean. Use only if change_management is set to true in the akamai.CpsThirdPartyEnrollment resource. Enter true to acknowledge that testing on staging is complete and to deploy the certificate to production.

acknowledgePostVerificationWarnings Boolean

Boolean. Enter true if you want to acknowledge the post-verification warnings defined in auto_approve_warnings.

autoApproveWarnings List<String>

The list of post-verification warning IDs you want to automatically acknowledge. To retrieve the list of warnings, use the akamai.getCpsWarnings data source.

certificateEcdsaPem String

The ECDSA certificate in PEM format you want to upload.

certificateRsaPem String

The RSA certificate in PEM format you want to upload.

enrollmentId Number

Unique identifier for the certificate enrollment.

  • certificate PEM file (Required) - Include at least one of the following arguments for the PEM file to upload. You can upload an ECDSA certificate, an RSA certificate, or both.
trustChainEcdsaPem String

The trust chain in PEM format for the ECDSA certificate you want to upload.

trustChainRsaPem String

The trust chain in PEM format for the RSA certificate you want to upload.

unacknowledgedWarnings Boolean

Used to distinguish whether there are unacknowledged warnings for a certificate

waitForDeployment Boolean

Boolean. Enter true to wait for certificate to be deployed.

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.