1. Packages
  2. Volcengine
  3. API Docs
  4. alb
  5. ReplaceCertificate
Volcengine v0.0.44 published on Sunday, Feb 1, 2026 by Volcengine
volcengine logo
Volcengine v0.0.44 published on Sunday, Feb 1, 2026 by Volcengine

    Provides a resource to manage alb replace certificate

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fs from "fs";
    import * as volcengine from "@volcengine/pulumi";
    
    // replace server certificate
    const foo1 = new volcengine.alb.ReplaceCertificate("foo1", {
        certificateType: "server",
        oldCertificateId: "cert-bdde0znk524g8dv40or*****",
        updateMode: "new",
        certificateName: "replaced-server-cert",
        description: "Replaced server certificate",
        projectName: "default",
        publicKey: fs.readFileSync("/path/server_certificate.pem", "utf8"),
        privateKey: fs.readFileSync("/path/private_key_rsa.pem", "utf8"),
    });
    const foo2 = new volcengine.alb.ReplaceCertificate("foo2", {
        certificateType: "server",
        oldCertificateId: "cert-1pf4a8k8tokcg845wfar*****",
        updateMode: "stock",
        certificateSource: "alb",
        certificateId: "cert-bdde0znk524g8dv40or*****",
        certificateName: "replaced-server-cert-stock",
        description: "Replaced server certificate (stock)",
        projectName: "default",
    });
    // replace ca certificate
    const foo3 = new volcengine.alb.ReplaceCertificate("foo3", {
        certificateType: "ca",
        oldCertificateId: "cert-xoekc6lpu9s054ov5eo*****",
        updateMode: "new",
        certificateName: "acc-test-replace",
        caCertificate: fs.readFileSync("/path/server_certificate.pem", "utf8"),
        description: "acc-test-replace",
        projectName: "default",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    # replace server certificate
    foo1 = volcengine.alb.ReplaceCertificate("foo1",
        certificate_type="server",
        old_certificate_id="cert-bdde0znk524g8dv40or*****",
        update_mode="new",
        certificate_name="replaced-server-cert",
        description="Replaced server certificate",
        project_name="default",
        public_key=(lambda path: open(path).read())("/path/server_certificate.pem"),
        private_key=(lambda path: open(path).read())("/path/private_key_rsa.pem"))
    foo2 = volcengine.alb.ReplaceCertificate("foo2",
        certificate_type="server",
        old_certificate_id="cert-1pf4a8k8tokcg845wfar*****",
        update_mode="stock",
        certificate_source="alb",
        certificate_id="cert-bdde0znk524g8dv40or*****",
        certificate_name="replaced-server-cert-stock",
        description="Replaced server certificate (stock)",
        project_name="default")
    # replace ca certificate
    foo3 = volcengine.alb.ReplaceCertificate("foo3",
        certificate_type="ca",
        old_certificate_id="cert-xoekc6lpu9s054ov5eo*****",
        update_mode="new",
        certificate_name="acc-test-replace",
        ca_certificate=(lambda path: open(path).read())("/path/server_certificate.pem"),
        description="acc-test-replace",
        project_name="default")
    
    package main
    
    import (
    	"os"
    
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/alb"
    )
    
    func readFileOrPanic(path string) pulumi.StringPtrInput {
    	data, err := os.ReadFile(path)
    	if err != nil {
    		panic(err.Error())
    	}
    	return pulumi.String(string(data))
    }
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// replace server certificate
    		_, err := alb.NewReplaceCertificate(ctx, "foo1", &alb.ReplaceCertificateArgs{
    			CertificateType:  pulumi.String("server"),
    			OldCertificateId: pulumi.String("cert-bdde0znk524g8dv40or*****"),
    			UpdateMode:       pulumi.String("new"),
    			CertificateName:  pulumi.String("replaced-server-cert"),
    			Description:      pulumi.String("Replaced server certificate"),
    			ProjectName:      pulumi.String("default"),
    			PublicKey:        readFileOrPanic("/path/server_certificate.pem"),
    			PrivateKey:       readFileOrPanic("/path/private_key_rsa.pem"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = alb.NewReplaceCertificate(ctx, "foo2", &alb.ReplaceCertificateArgs{
    			CertificateType:   pulumi.String("server"),
    			OldCertificateId:  pulumi.String("cert-1pf4a8k8tokcg845wfar*****"),
    			UpdateMode:        pulumi.String("stock"),
    			CertificateSource: pulumi.String("alb"),
    			CertificateId:     pulumi.String("cert-bdde0znk524g8dv40or*****"),
    			CertificateName:   pulumi.String("replaced-server-cert-stock"),
    			Description:       pulumi.String("Replaced server certificate (stock)"),
    			ProjectName:       pulumi.String("default"),
    		})
    		if err != nil {
    			return err
    		}
    		// replace ca certificate
    		_, err = alb.NewReplaceCertificate(ctx, "foo3", &alb.ReplaceCertificateArgs{
    			CertificateType:  pulumi.String("ca"),
    			OldCertificateId: pulumi.String("cert-xoekc6lpu9s054ov5eo*****"),
    			UpdateMode:       pulumi.String("new"),
    			CertificateName:  pulumi.String("acc-test-replace"),
    			CaCertificate:    readFileOrPanic("/path/server_certificate.pem"),
    			Description:      pulumi.String("acc-test-replace"),
    			ProjectName:      pulumi.String("default"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        // replace server certificate
        var foo1 = new Volcengine.Alb.ReplaceCertificate("foo1", new()
        {
            CertificateType = "server",
            OldCertificateId = "cert-bdde0znk524g8dv40or*****",
            UpdateMode = "new",
            CertificateName = "replaced-server-cert",
            Description = "Replaced server certificate",
            ProjectName = "default",
            PublicKey = File.ReadAllText("/path/server_certificate.pem"),
            PrivateKey = File.ReadAllText("/path/private_key_rsa.pem"),
        });
    
        var foo2 = new Volcengine.Alb.ReplaceCertificate("foo2", new()
        {
            CertificateType = "server",
            OldCertificateId = "cert-1pf4a8k8tokcg845wfar*****",
            UpdateMode = "stock",
            CertificateSource = "alb",
            CertificateId = "cert-bdde0znk524g8dv40or*****",
            CertificateName = "replaced-server-cert-stock",
            Description = "Replaced server certificate (stock)",
            ProjectName = "default",
        });
    
        // replace ca certificate
        var foo3 = new Volcengine.Alb.ReplaceCertificate("foo3", new()
        {
            CertificateType = "ca",
            OldCertificateId = "cert-xoekc6lpu9s054ov5eo*****",
            UpdateMode = "new",
            CertificateName = "acc-test-replace",
            CaCertificate = File.ReadAllText("/path/server_certificate.pem"),
            Description = "acc-test-replace",
            ProjectName = "default",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.alb.ReplaceCertificate;
    import com.pulumi.volcengine.alb.ReplaceCertificateArgs;
    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) {
            // replace server certificate
            var foo1 = new ReplaceCertificate("foo1", ReplaceCertificateArgs.builder()        
                .certificateType("server")
                .oldCertificateId("cert-bdde0znk524g8dv40or*****")
                .updateMode("new")
                .certificateName("replaced-server-cert")
                .description("Replaced server certificate")
                .projectName("default")
                .publicKey(Files.readString(Paths.get("/path/server_certificate.pem")))
                .privateKey(Files.readString(Paths.get("/path/private_key_rsa.pem")))
                .build());
    
            var foo2 = new ReplaceCertificate("foo2", ReplaceCertificateArgs.builder()        
                .certificateType("server")
                .oldCertificateId("cert-1pf4a8k8tokcg845wfar*****")
                .updateMode("stock")
                .certificateSource("alb")
                .certificateId("cert-bdde0znk524g8dv40or*****")
                .certificateName("replaced-server-cert-stock")
                .description("Replaced server certificate (stock)")
                .projectName("default")
                .build());
    
            // replace ca certificate
            var foo3 = new ReplaceCertificate("foo3", ReplaceCertificateArgs.builder()        
                .certificateType("ca")
                .oldCertificateId("cert-xoekc6lpu9s054ov5eo*****")
                .updateMode("new")
                .certificateName("acc-test-replace")
                .caCertificate(Files.readString(Paths.get("/path/server_certificate.pem")))
                .description("acc-test-replace")
                .projectName("default")
                .build());
    
        }
    }
    
    resources:
      # replace server certificate
      foo1:
        type: volcengine:alb:ReplaceCertificate
        properties:
          certificateType: server
          oldCertificateId: cert-bdde0znk524g8dv40or*****
          updateMode: new
          certificateName: replaced-server-cert
          description: Replaced server certificate
          projectName: default
          publicKey:
            fn::readFile: /path/server_certificate.pem
          privateKey:
            fn::readFile: /path/private_key_rsa.pem
      foo2:
        type: volcengine:alb:ReplaceCertificate
        properties:
          certificateType: server
          oldCertificateId: cert-1pf4a8k8tokcg845wfar*****
          updateMode: stock
          certificateSource: alb
          certificateId: cert-bdde0znk524g8dv40or*****
          certificateName: replaced-server-cert-stock
          description: Replaced server certificate (stock)
          projectName: default
      # replace ca certificate
      foo3:
        type: volcengine:alb:ReplaceCertificate
        properties:
          certificateType: ca
          oldCertificateId: cert-xoekc6lpu9s054ov5eo*****
          updateMode: new
          certificateName: acc-test-replace
          caCertificate:
            fn::readFile: /path/server_certificate.pem
          description: acc-test-replace
          projectName: default
    

    Create ReplaceCertificate Resource

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

    Constructor syntax

    new ReplaceCertificate(name: string, args: ReplaceCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def ReplaceCertificate(resource_name: str,
                           args: ReplaceCertificateArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReplaceCertificate(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           certificate_type: Optional[str] = None,
                           old_certificate_id: Optional[str] = None,
                           update_mode: Optional[str] = None,
                           ca_certificate: Optional[str] = None,
                           cert_center_certificate_id: Optional[str] = None,
                           certificate_id: Optional[str] = None,
                           certificate_name: Optional[str] = None,
                           certificate_source: Optional[str] = None,
                           description: Optional[str] = None,
                           private_key: Optional[str] = None,
                           project_name: Optional[str] = None,
                           public_key: Optional[str] = None)
    func NewReplaceCertificate(ctx *Context, name string, args ReplaceCertificateArgs, opts ...ResourceOption) (*ReplaceCertificate, error)
    public ReplaceCertificate(string name, ReplaceCertificateArgs args, CustomResourceOptions? opts = null)
    public ReplaceCertificate(String name, ReplaceCertificateArgs args)
    public ReplaceCertificate(String name, ReplaceCertificateArgs args, CustomResourceOptions options)
    
    type: volcengine:alb:ReplaceCertificate
    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 ReplaceCertificateArgs
    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 ReplaceCertificateArgs
    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 ReplaceCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplaceCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplaceCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var replaceCertificateResource = new Volcengine.Alb.ReplaceCertificate("replaceCertificateResource", new()
    {
        CertificateType = "string",
        OldCertificateId = "string",
        UpdateMode = "string",
        CaCertificate = "string",
        CertCenterCertificateId = "string",
        CertificateId = "string",
        CertificateName = "string",
        CertificateSource = "string",
        Description = "string",
        PrivateKey = "string",
        ProjectName = "string",
        PublicKey = "string",
    });
    
    example, err := alb.NewReplaceCertificate(ctx, "replaceCertificateResource", &alb.ReplaceCertificateArgs{
    	CertificateType:         pulumi.String("string"),
    	OldCertificateId:        pulumi.String("string"),
    	UpdateMode:              pulumi.String("string"),
    	CaCertificate:           pulumi.String("string"),
    	CertCenterCertificateId: pulumi.String("string"),
    	CertificateId:           pulumi.String("string"),
    	CertificateName:         pulumi.String("string"),
    	CertificateSource:       pulumi.String("string"),
    	Description:             pulumi.String("string"),
    	PrivateKey:              pulumi.String("string"),
    	ProjectName:             pulumi.String("string"),
    	PublicKey:               pulumi.String("string"),
    })
    
    var replaceCertificateResource = new ReplaceCertificate("replaceCertificateResource", ReplaceCertificateArgs.builder()
        .certificateType("string")
        .oldCertificateId("string")
        .updateMode("string")
        .caCertificate("string")
        .certCenterCertificateId("string")
        .certificateId("string")
        .certificateName("string")
        .certificateSource("string")
        .description("string")
        .privateKey("string")
        .projectName("string")
        .publicKey("string")
        .build());
    
    replace_certificate_resource = volcengine.alb.ReplaceCertificate("replaceCertificateResource",
        certificate_type="string",
        old_certificate_id="string",
        update_mode="string",
        ca_certificate="string",
        cert_center_certificate_id="string",
        certificate_id="string",
        certificate_name="string",
        certificate_source="string",
        description="string",
        private_key="string",
        project_name="string",
        public_key="string")
    
    const replaceCertificateResource = new volcengine.alb.ReplaceCertificate("replaceCertificateResource", {
        certificateType: "string",
        oldCertificateId: "string",
        updateMode: "string",
        caCertificate: "string",
        certCenterCertificateId: "string",
        certificateId: "string",
        certificateName: "string",
        certificateSource: "string",
        description: "string",
        privateKey: "string",
        projectName: "string",
        publicKey: "string",
    });
    
    type: volcengine:alb:ReplaceCertificate
    properties:
        caCertificate: string
        certCenterCertificateId: string
        certificateId: string
        certificateName: string
        certificateSource: string
        certificateType: string
        description: string
        oldCertificateId: string
        privateKey: string
        projectName: string
        publicKey: string
        updateMode: string
    

    ReplaceCertificate 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 ReplaceCertificate resource accepts the following input properties:

    CertificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    OldCertificateId string
    The ID of the old certificate to be replaced.
    UpdateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    CaCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    CertCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    CertificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    CertificateName string
    The name of the certificate.
    CertificateSource string
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    Description string
    The description of the certificate.
    PrivateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    ProjectName string
    The project name of the certificate.
    PublicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    CertificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    OldCertificateId string
    The ID of the old certificate to be replaced.
    UpdateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    CaCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    CertCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    CertificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    CertificateName string
    The name of the certificate.
    CertificateSource string
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    Description string
    The description of the certificate.
    PrivateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    ProjectName string
    The project name of the certificate.
    PublicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    certificateType String
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    oldCertificateId String
    The ID of the old certificate to be replaced.
    updateMode String
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate String
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId String
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId String
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName String
    The name of the certificate.
    certificateSource String
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    description String
    The description of the certificate.
    privateKey String
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName String
    The project name of the certificate.
    publicKey String
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    certificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    oldCertificateId string
    The ID of the old certificate to be replaced.
    updateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName string
    The name of the certificate.
    certificateSource string
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    description string
    The description of the certificate.
    privateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName string
    The project name of the certificate.
    publicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    certificate_type str
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    old_certificate_id str
    The ID of the old certificate to be replaced.
    update_mode str
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    ca_certificate str
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    cert_center_certificate_id str
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificate_id str
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificate_name str
    The name of the certificate.
    certificate_source str
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    description str
    The description of the certificate.
    private_key str
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    project_name str
    The project name of the certificate.
    public_key str
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    certificateType String
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    oldCertificateId String
    The ID of the old certificate to be replaced.
    updateMode String
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate String
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId String
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId String
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName String
    The name of the certificate.
    certificateSource String
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    description String
    The description of the certificate.
    privateKey String
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName String
    The project name of the certificate.
    publicKey String
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ReplaceCertificate 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 ReplaceCertificate Resource

    Get an existing ReplaceCertificate 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?: ReplaceCertificateState, opts?: CustomResourceOptions): ReplaceCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ca_certificate: Optional[str] = None,
            cert_center_certificate_id: Optional[str] = None,
            certificate_id: Optional[str] = None,
            certificate_name: Optional[str] = None,
            certificate_source: Optional[str] = None,
            certificate_type: Optional[str] = None,
            description: Optional[str] = None,
            old_certificate_id: Optional[str] = None,
            private_key: Optional[str] = None,
            project_name: Optional[str] = None,
            public_key: Optional[str] = None,
            update_mode: Optional[str] = None) -> ReplaceCertificate
    func GetReplaceCertificate(ctx *Context, name string, id IDInput, state *ReplaceCertificateState, opts ...ResourceOption) (*ReplaceCertificate, error)
    public static ReplaceCertificate Get(string name, Input<string> id, ReplaceCertificateState? state, CustomResourceOptions? opts = null)
    public static ReplaceCertificate get(String name, Output<String> id, ReplaceCertificateState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:alb:ReplaceCertificate    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:
    CaCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    CertCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    CertificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    CertificateName string
    The name of the certificate.
    CertificateSource string
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    CertificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    Description string
    The description of the certificate.
    OldCertificateId string
    The ID of the old certificate to be replaced.
    PrivateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    ProjectName string
    The project name of the certificate.
    PublicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    UpdateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    CaCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    CertCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    CertificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    CertificateName string
    The name of the certificate.
    CertificateSource string
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    CertificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    Description string
    The description of the certificate.
    OldCertificateId string
    The ID of the old certificate to be replaced.
    PrivateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    ProjectName string
    The project name of the certificate.
    PublicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    UpdateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate String
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId String
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId String
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName String
    The name of the certificate.
    certificateSource String
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    certificateType String
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    description String
    The description of the certificate.
    oldCertificateId String
    The ID of the old certificate to be replaced.
    privateKey String
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName String
    The project name of the certificate.
    publicKey String
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    updateMode String
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName string
    The name of the certificate.
    certificateSource string
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    certificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    description string
    The description of the certificate.
    oldCertificateId string
    The ID of the old certificate to be replaced.
    privateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName string
    The project name of the certificate.
    publicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    updateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    ca_certificate str
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    cert_center_certificate_id str
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificate_id str
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificate_name str
    The name of the certificate.
    certificate_source str
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    certificate_type str
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    description str
    The description of the certificate.
    old_certificate_id str
    The ID of the old certificate to be replaced.
    private_key str
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    project_name str
    The project name of the certificate.
    public_key str
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    update_mode str
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate String
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId String
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId String
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName String
    The name of the certificate.
    certificateSource String
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    certificateType String
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    description String
    The description of the certificate.
    oldCertificateId String
    The ID of the old certificate to be replaced.
    privateKey String
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName String
    The project name of the certificate.
    publicKey String
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    updateMode String
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.

    Import

    The AlbReplaceCertificate is not support import.

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.44 published on Sunday, Feb 1, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate