1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. alb
  6. Certificate
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    ALB supports uploading server certificates and CA certificates to the console and manages uploaded certificates separately

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const aLBCertificateDemo = new volcenginecc.alb.Certificate("ALBCertificateDemo", {
        certificateName: "ALBCertificateDemo",
        certificateType: "CA",
        publicKey: "-----BEGIN CERTIFICATE-----xxxx-----END CERTIFICATE-----",
        description: "ALBCertificateDemo description",
        projectName: "default",
        tags: [{
            key: "env",
            value: "test",
        }],
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    a_lb_certificate_demo = volcenginecc.alb.Certificate("ALBCertificateDemo",
        certificate_name="ALBCertificateDemo",
        certificate_type="CA",
        public_key="-----BEGIN CERTIFICATE-----xxxx-----END CERTIFICATE-----",
        description="ALBCertificateDemo description",
        project_name="default",
        tags=[{
            "key": "env",
            "value": "test",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/alb"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alb.NewCertificate(ctx, "ALBCertificateDemo", &alb.CertificateArgs{
    			CertificateName: pulumi.String("ALBCertificateDemo"),
    			CertificateType: pulumi.String("CA"),
    			PublicKey:       pulumi.String("-----BEGIN CERTIFICATE-----xxxx-----END CERTIFICATE-----"),
    			Description:     pulumi.String("ALBCertificateDemo description"),
    			ProjectName:     pulumi.String("default"),
    			Tags: alb.CertificateTagArray{
    				&alb.CertificateTagArgs{
    					Key:   pulumi.String("env"),
    					Value: pulumi.String("test"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var aLBCertificateDemo = new Volcenginecc.Alb.Certificate("ALBCertificateDemo", new()
        {
            CertificateName = "ALBCertificateDemo",
            CertificateType = "CA",
            PublicKey = "-----BEGIN CERTIFICATE-----xxxx-----END CERTIFICATE-----",
            Description = "ALBCertificateDemo description",
            ProjectName = "default",
            Tags = new[]
            {
                new Volcenginecc.Alb.Inputs.CertificateTagArgs
                {
                    Key = "env",
                    Value = "test",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.alb.Certificate;
    import com.volcengine.volcenginecc.alb.CertificateArgs;
    import com.pulumi.volcenginecc.alb.inputs.CertificateTagArgs;
    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 aLBCertificateDemo = new Certificate("aLBCertificateDemo", CertificateArgs.builder()
                .certificateName("ALBCertificateDemo")
                .certificateType("CA")
                .publicKey("-----BEGIN CERTIFICATE-----xxxx-----END CERTIFICATE-----")
                .description("ALBCertificateDemo description")
                .projectName("default")
                .tags(CertificateTagArgs.builder()
                    .key("env")
                    .value("test")
                    .build())
                .build());
    
        }
    }
    
    resources:
      aLBCertificateDemo:
        type: volcenginecc:alb:Certificate
        name: ALBCertificateDemo
        properties:
          certificateName: ALBCertificateDemo
          certificateType: CA
          publicKey: '-----BEGIN CERTIFICATE-----xxxx-----END CERTIFICATE-----'
          description: ALBCertificateDemo description
          projectName: default
          tags:
            - key: env
              value: test
    

    Create Certificate Resource

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

    Constructor syntax

    new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
    @overload
    def Certificate(resource_name: str,
                    args: CertificateArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Certificate(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    certificate_type: Optional[str] = None,
                    public_key: Optional[str] = None,
                    certificate_name: Optional[str] = None,
                    description: Optional[str] = None,
                    private_key: Optional[str] = None,
                    project_name: Optional[str] = None,
                    tags: Optional[Sequence[CertificateTagArgs]] = None)
    func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
    public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
    public Certificate(String name, CertificateArgs args)
    public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
    
    type: volcenginecc:alb:Certificate
    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 CertificateArgs
    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 CertificateArgs
    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 CertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CertificateArgs
    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 certificateResource = new Volcenginecc.Alb.Certificate("certificateResource", new()
    {
        CertificateType = "string",
        PublicKey = "string",
        CertificateName = "string",
        Description = "string",
        PrivateKey = "string",
        ProjectName = "string",
        Tags = new[]
        {
            new Volcenginecc.Alb.Inputs.CertificateTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := alb.NewCertificate(ctx, "certificateResource", &alb.CertificateArgs{
    	CertificateType: pulumi.String("string"),
    	PublicKey:       pulumi.String("string"),
    	CertificateName: pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	PrivateKey:      pulumi.String("string"),
    	ProjectName:     pulumi.String("string"),
    	Tags: alb.CertificateTagArray{
    		&alb.CertificateTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var certificateResource = new com.volcengine.volcenginecc.alb.Certificate("certificateResource", com.volcengine.volcenginecc.alb.CertificateArgs.builder()
        .certificateType("string")
        .publicKey("string")
        .certificateName("string")
        .description("string")
        .privateKey("string")
        .projectName("string")
        .tags(CertificateTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    certificate_resource = volcenginecc.alb.Certificate("certificateResource",
        certificate_type="string",
        public_key="string",
        certificate_name="string",
        description="string",
        private_key="string",
        project_name="string",
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const certificateResource = new volcenginecc.alb.Certificate("certificateResource", {
        certificateType: "string",
        publicKey: "string",
        certificateName: "string",
        description: "string",
        privateKey: "string",
        projectName: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcenginecc:alb:Certificate
    properties:
        certificateName: string
        certificateType: string
        description: string
        privateKey: string
        projectName: string
        publicKey: string
        tags:
            - key: string
              value: string
    

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

    CertificateType string
    Certificate type. Options: CA: CA certificate; Server: server certificate
    PublicKey string
    Server certificate public key
    CertificateName string
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    Description string
    Certificate description
    PrivateKey string
    Server certificate private key. Required when certificate type is Server
    ProjectName string
    Project name
    Tags List<Volcengine.CertificateTag>
    CertificateType string
    Certificate type. Options: CA: CA certificate; Server: server certificate
    PublicKey string
    Server certificate public key
    CertificateName string
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    Description string
    Certificate description
    PrivateKey string
    Server certificate private key. Required when certificate type is Server
    ProjectName string
    Project name
    Tags []CertificateTagArgs
    certificateType String
    Certificate type. Options: CA: CA certificate; Server: server certificate
    publicKey String
    Server certificate public key
    certificateName String
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    description String
    Certificate description
    privateKey String
    Server certificate private key. Required when certificate type is Server
    projectName String
    Project name
    tags List<CertificateTag>
    certificateType string
    Certificate type. Options: CA: CA certificate; Server: server certificate
    publicKey string
    Server certificate public key
    certificateName string
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    description string
    Certificate description
    privateKey string
    Server certificate private key. Required when certificate type is Server
    projectName string
    Project name
    tags CertificateTag[]
    certificate_type str
    Certificate type. Options: CA: CA certificate; Server: server certificate
    public_key str
    Server certificate public key
    certificate_name str
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    description str
    Certificate description
    private_key str
    Server certificate private key. Required when certificate type is Server
    project_name str
    Project name
    tags Sequence[CertificateTagArgs]
    certificateType String
    Certificate type. Options: CA: CA certificate; Server: server certificate
    publicKey String
    Server certificate public key
    certificateName String
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    description String
    Certificate description
    privateKey String
    Server certificate private key. Required when certificate type is Server
    projectName String
    Project name
    tags List<Property Map>

    Outputs

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

    CertificateId string
    Certificate ID
    CreatedTime string
    Certificate creation time
    DomainName string
    Certificate domain name
    ExpiredAt string
    Certificate expiration time
    Id string
    The provider-assigned unique ID for this managed resource.
    Listeners List<string>
    List of listeners associated with the certificate
    San string
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    Status string
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    CertificateId string
    Certificate ID
    CreatedTime string
    Certificate creation time
    DomainName string
    Certificate domain name
    ExpiredAt string
    Certificate expiration time
    Id string
    The provider-assigned unique ID for this managed resource.
    Listeners []string
    List of listeners associated with the certificate
    San string
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    Status string
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    certificateId String
    Certificate ID
    createdTime String
    Certificate creation time
    domainName String
    Certificate domain name
    expiredAt String
    Certificate expiration time
    id String
    The provider-assigned unique ID for this managed resource.
    listeners List<String>
    List of listeners associated with the certificate
    san String
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    status String
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    certificateId string
    Certificate ID
    createdTime string
    Certificate creation time
    domainName string
    Certificate domain name
    expiredAt string
    Certificate expiration time
    id string
    The provider-assigned unique ID for this managed resource.
    listeners string[]
    List of listeners associated with the certificate
    san string
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    status string
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    certificate_id str
    Certificate ID
    created_time str
    Certificate creation time
    domain_name str
    Certificate domain name
    expired_at str
    Certificate expiration time
    id str
    The provider-assigned unique ID for this managed resource.
    listeners Sequence[str]
    List of listeners associated with the certificate
    san str
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    status str
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    certificateId String
    Certificate ID
    createdTime String
    Certificate creation time
    domainName String
    Certificate domain name
    expiredAt String
    Certificate expiration time
    id String
    The provider-assigned unique ID for this managed resource.
    listeners List<String>
    List of listeners associated with the certificate
    san String
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    status String
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting

    Look up Existing Certificate Resource

    Get an existing Certificate 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?: CertificateState, opts?: CustomResourceOptions): Certificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            certificate_id: Optional[str] = None,
            certificate_name: Optional[str] = None,
            certificate_type: Optional[str] = None,
            created_time: Optional[str] = None,
            description: Optional[str] = None,
            domain_name: Optional[str] = None,
            expired_at: Optional[str] = None,
            listeners: Optional[Sequence[str]] = None,
            private_key: Optional[str] = None,
            project_name: Optional[str] = None,
            public_key: Optional[str] = None,
            san: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[CertificateTagArgs]] = None) -> Certificate
    func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)
    public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)
    public static Certificate get(String name, Output<String> id, CertificateState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:alb:Certificate    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:
    CertificateId string
    Certificate ID
    CertificateName string
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    CertificateType string
    Certificate type. Options: CA: CA certificate; Server: server certificate
    CreatedTime string
    Certificate creation time
    Description string
    Certificate description
    DomainName string
    Certificate domain name
    ExpiredAt string
    Certificate expiration time
    Listeners List<string>
    List of listeners associated with the certificate
    PrivateKey string
    Server certificate private key. Required when certificate type is Server
    ProjectName string
    Project name
    PublicKey string
    Server certificate public key
    San string
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    Status string
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    Tags List<Volcengine.CertificateTag>
    CertificateId string
    Certificate ID
    CertificateName string
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    CertificateType string
    Certificate type. Options: CA: CA certificate; Server: server certificate
    CreatedTime string
    Certificate creation time
    Description string
    Certificate description
    DomainName string
    Certificate domain name
    ExpiredAt string
    Certificate expiration time
    Listeners []string
    List of listeners associated with the certificate
    PrivateKey string
    Server certificate private key. Required when certificate type is Server
    ProjectName string
    Project name
    PublicKey string
    Server certificate public key
    San string
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    Status string
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    Tags []CertificateTagArgs
    certificateId String
    Certificate ID
    certificateName String
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    certificateType String
    Certificate type. Options: CA: CA certificate; Server: server certificate
    createdTime String
    Certificate creation time
    description String
    Certificate description
    domainName String
    Certificate domain name
    expiredAt String
    Certificate expiration time
    listeners List<String>
    List of listeners associated with the certificate
    privateKey String
    Server certificate private key. Required when certificate type is Server
    projectName String
    Project name
    publicKey String
    Server certificate public key
    san String
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    status String
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    tags List<CertificateTag>
    certificateId string
    Certificate ID
    certificateName string
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    certificateType string
    Certificate type. Options: CA: CA certificate; Server: server certificate
    createdTime string
    Certificate creation time
    description string
    Certificate description
    domainName string
    Certificate domain name
    expiredAt string
    Certificate expiration time
    listeners string[]
    List of listeners associated with the certificate
    privateKey string
    Server certificate private key. Required when certificate type is Server
    projectName string
    Project name
    publicKey string
    Server certificate public key
    san string
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    status string
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    tags CertificateTag[]
    certificate_id str
    Certificate ID
    certificate_name str
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    certificate_type str
    Certificate type. Options: CA: CA certificate; Server: server certificate
    created_time str
    Certificate creation time
    description str
    Certificate description
    domain_name str
    Certificate domain name
    expired_at str
    Certificate expiration time
    listeners Sequence[str]
    List of listeners associated with the certificate
    private_key str
    Server certificate private key. Required when certificate type is Server
    project_name str
    Project name
    public_key str
    Server certificate public key
    san str
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    status str
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    tags Sequence[CertificateTagArgs]
    certificateId String
    Certificate ID
    certificateName String
    Certificate name. Length must be between 1 and 128 characters, start with a letter or Chinese character, and may include numbers, periods (.), underscores (_), and hyphens (-)
    certificateType String
    Certificate type. Options: CA: CA certificate; Server: server certificate
    createdTime String
    Certificate creation time
    description String
    Certificate description
    domainName String
    Certificate domain name
    expiredAt String
    Certificate expiration time
    listeners List<String>
    List of listeners associated with the certificate
    privateKey String
    Server certificate private key. Required when certificate type is Server
    projectName String
    Project name
    publicKey String
    Server certificate public key
    san String
    Certificate subject alternative name list. Use English ',' to separate multiple domain names. Includes (commonName, DnsName, IP)
    status String
    Certificate status. Options: Creating: creating; Active: active; Deleting: deleting
    tags List<Property Map>

    Supporting Types

    CertificateTag, CertificateTagArgs

    Key string
    User tag key
    Value string
    User tag value
    Key string
    User tag key
    Value string
    User tag value
    key String
    User tag key
    value String
    User tag value
    key string
    User tag key
    value string
    User tag value
    key str
    User tag key
    value str
    User tag value
    key String
    User tag key
    value String
    User tag value

    Import

    $ pulumi import volcenginecc:alb/certificate:Certificate example "certificate_id|certificate_type"
    

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

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.