1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. SslReplaceCertificateOperation
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.SslReplaceCertificateOperation

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a ssl replace_certificate

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const replaceCertificate = new tencentcloud.SslReplaceCertificateOperation("replaceCertificate", {
        certificateId: "8L6JsWq2",
        csrType: "online",
        validType: "DNS_AUTO",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    replace_certificate = tencentcloud.SslReplaceCertificateOperation("replaceCertificate",
        certificate_id="8L6JsWq2",
        csr_type="online",
        valid_type="DNS_AUTO")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewSslReplaceCertificateOperation(ctx, "replaceCertificate", &tencentcloud.SslReplaceCertificateOperationArgs{
    			CertificateId: pulumi.String("8L6JsWq2"),
    			CsrType:       pulumi.String("online"),
    			ValidType:     pulumi.String("DNS_AUTO"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var replaceCertificate = new Tencentcloud.SslReplaceCertificateOperation("replaceCertificate", new()
        {
            CertificateId = "8L6JsWq2",
            CsrType = "online",
            ValidType = "DNS_AUTO",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SslReplaceCertificateOperation;
    import com.pulumi.tencentcloud.SslReplaceCertificateOperationArgs;
    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 replaceCertificate = new SslReplaceCertificateOperation("replaceCertificate", SslReplaceCertificateOperationArgs.builder()
                .certificateId("8L6JsWq2")
                .csrType("online")
                .validType("DNS_AUTO")
                .build());
    
        }
    }
    
    resources:
      replaceCertificate:
        type: tencentcloud:SslReplaceCertificateOperation
        properties:
          certificateId: 8L6JsWq2
          csrType: online
          validType: DNS_AUTO
    

    Create SslReplaceCertificateOperation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SslReplaceCertificateOperation(name: string, args: SslReplaceCertificateOperationArgs, opts?: CustomResourceOptions);
    @overload
    def SslReplaceCertificateOperation(resource_name: str,
                                       args: SslReplaceCertificateOperationArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SslReplaceCertificateOperation(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       certificate_id: Optional[str] = None,
                                       valid_type: Optional[str] = None,
                                       cert_csr_encrypt_algo: Optional[str] = None,
                                       cert_csr_key_parameter: Optional[str] = None,
                                       csr_content: Optional[str] = None,
                                       csr_key_password: Optional[str] = None,
                                       csr_type: Optional[str] = None,
                                       reason: Optional[str] = None,
                                       ssl_replace_certificate_operation_id: Optional[str] = None)
    func NewSslReplaceCertificateOperation(ctx *Context, name string, args SslReplaceCertificateOperationArgs, opts ...ResourceOption) (*SslReplaceCertificateOperation, error)
    public SslReplaceCertificateOperation(string name, SslReplaceCertificateOperationArgs args, CustomResourceOptions? opts = null)
    public SslReplaceCertificateOperation(String name, SslReplaceCertificateOperationArgs args)
    public SslReplaceCertificateOperation(String name, SslReplaceCertificateOperationArgs args, CustomResourceOptions options)
    
    type: tencentcloud:SslReplaceCertificateOperation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SslReplaceCertificateOperationArgs
    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 SslReplaceCertificateOperationArgs
    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 SslReplaceCertificateOperationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SslReplaceCertificateOperationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SslReplaceCertificateOperationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SslReplaceCertificateOperation Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SslReplaceCertificateOperation resource accepts the following input properties:

    CertificateId string
    Certificate ID.
    ValidType string
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    CertCsrEncryptAlgo string
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    CertCsrKeyParameter string
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    CsrContent string
    CSR Content.
    CsrKeyPassword string
    KEY Password.
    CsrType string
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    Reason string
    Reason for reissue.
    SslReplaceCertificateOperationId string
    ID of the resource.
    CertificateId string
    Certificate ID.
    ValidType string
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    CertCsrEncryptAlgo string
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    CertCsrKeyParameter string
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    CsrContent string
    CSR Content.
    CsrKeyPassword string
    KEY Password.
    CsrType string
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    Reason string
    Reason for reissue.
    SslReplaceCertificateOperationId string
    ID of the resource.
    certificateId String
    Certificate ID.
    validType String
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    certCsrEncryptAlgo String
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    certCsrKeyParameter String
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    csrContent String
    CSR Content.
    csrKeyPassword String
    KEY Password.
    csrType String
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    reason String
    Reason for reissue.
    sslReplaceCertificateOperationId String
    ID of the resource.
    certificateId string
    Certificate ID.
    validType string
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    certCsrEncryptAlgo string
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    certCsrKeyParameter string
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    csrContent string
    CSR Content.
    csrKeyPassword string
    KEY Password.
    csrType string
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    reason string
    Reason for reissue.
    sslReplaceCertificateOperationId string
    ID of the resource.
    certificate_id str
    Certificate ID.
    valid_type str
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    cert_csr_encrypt_algo str
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    cert_csr_key_parameter str
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    csr_content str
    CSR Content.
    csr_key_password str
    KEY Password.
    csr_type str
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    reason str
    Reason for reissue.
    ssl_replace_certificate_operation_id str
    ID of the resource.
    certificateId String
    Certificate ID.
    validType String
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    certCsrEncryptAlgo String
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    certCsrKeyParameter String
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    csrContent String
    CSR Content.
    csrKeyPassword String
    KEY Password.
    csrType String
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    reason String
    Reason for reissue.
    sslReplaceCertificateOperationId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SslReplaceCertificateOperation Resource

    Get an existing SslReplaceCertificateOperation 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?: SslReplaceCertificateOperationState, opts?: CustomResourceOptions): SslReplaceCertificateOperation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cert_csr_encrypt_algo: Optional[str] = None,
            cert_csr_key_parameter: Optional[str] = None,
            certificate_id: Optional[str] = None,
            csr_content: Optional[str] = None,
            csr_key_password: Optional[str] = None,
            csr_type: Optional[str] = None,
            reason: Optional[str] = None,
            ssl_replace_certificate_operation_id: Optional[str] = None,
            valid_type: Optional[str] = None) -> SslReplaceCertificateOperation
    func GetSslReplaceCertificateOperation(ctx *Context, name string, id IDInput, state *SslReplaceCertificateOperationState, opts ...ResourceOption) (*SslReplaceCertificateOperation, error)
    public static SslReplaceCertificateOperation Get(string name, Input<string> id, SslReplaceCertificateOperationState? state, CustomResourceOptions? opts = null)
    public static SslReplaceCertificateOperation get(String name, Output<String> id, SslReplaceCertificateOperationState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:SslReplaceCertificateOperation    get:      id: ${id}
    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:
    CertCsrEncryptAlgo string
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    CertCsrKeyParameter string
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    CertificateId string
    Certificate ID.
    CsrContent string
    CSR Content.
    CsrKeyPassword string
    KEY Password.
    CsrType string
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    Reason string
    Reason for reissue.
    SslReplaceCertificateOperationId string
    ID of the resource.
    ValidType string
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    CertCsrEncryptAlgo string
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    CertCsrKeyParameter string
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    CertificateId string
    Certificate ID.
    CsrContent string
    CSR Content.
    CsrKeyPassword string
    KEY Password.
    CsrType string
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    Reason string
    Reason for reissue.
    SslReplaceCertificateOperationId string
    ID of the resource.
    ValidType string
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    certCsrEncryptAlgo String
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    certCsrKeyParameter String
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    certificateId String
    Certificate ID.
    csrContent String
    CSR Content.
    csrKeyPassword String
    KEY Password.
    csrType String
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    reason String
    Reason for reissue.
    sslReplaceCertificateOperationId String
    ID of the resource.
    validType String
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    certCsrEncryptAlgo string
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    certCsrKeyParameter string
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    certificateId string
    Certificate ID.
    csrContent string
    CSR Content.
    csrKeyPassword string
    KEY Password.
    csrType string
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    reason string
    Reason for reissue.
    sslReplaceCertificateOperationId string
    ID of the resource.
    validType string
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    cert_csr_encrypt_algo str
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    cert_csr_key_parameter str
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    certificate_id str
    Certificate ID.
    csr_content str
    CSR Content.
    csr_key_password str
    KEY Password.
    csr_type str
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    reason str
    Reason for reissue.
    ssl_replace_certificate_operation_id str
    ID of the resource.
    valid_type str
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
    certCsrEncryptAlgo String
    CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
    certCsrKeyParameter String
    CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
    certificateId String
    Certificate ID.
    csrContent String
    CSR Content.
    csrKeyPassword String
    KEY Password.
    csrType String
    Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
    reason String
    Reason for reissue.
    sslReplaceCertificateOperationId String
    ID of the resource.
    validType String
    Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.

    Import

    ssl replace_certificate can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/sslReplaceCertificateOperation:SslReplaceCertificateOperation replace_certificate replace_certificate_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack