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

tencentcloud.TeoCertificateConfig

Explore with Pulumi AI

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

    Provides a resource to create a teo certificate

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const certificate = new tencentcloud.TeoCertificateConfig("certificate", {
        host: "test.tencentcloud-terraform-provider.cn",
        mode: "eofreecert",
        zoneId: "zone-2o1t24kgy362",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    certificate = tencentcloud.TeoCertificateConfig("certificate",
        host="test.tencentcloud-terraform-provider.cn",
        mode="eofreecert",
        zone_id="zone-2o1t24kgy362")
    
    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.NewTeoCertificateConfig(ctx, "certificate", &tencentcloud.TeoCertificateConfigArgs{
    			Host:   pulumi.String("test.tencentcloud-terraform-provider.cn"),
    			Mode:   pulumi.String("eofreecert"),
    			ZoneId: pulumi.String("zone-2o1t24kgy362"),
    		})
    		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 certificate = new Tencentcloud.TeoCertificateConfig("certificate", new()
        {
            Host = "test.tencentcloud-terraform-provider.cn",
            Mode = "eofreecert",
            ZoneId = "zone-2o1t24kgy362",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoCertificateConfig;
    import com.pulumi.tencentcloud.TeoCertificateConfigArgs;
    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 certificate = new TeoCertificateConfig("certificate", TeoCertificateConfigArgs.builder()
                .host("test.tencentcloud-terraform-provider.cn")
                .mode("eofreecert")
                .zoneId("zone-2o1t24kgy362")
                .build());
    
        }
    }
    
    resources:
      certificate:
        type: tencentcloud:TeoCertificateConfig
        properties:
          host: test.tencentcloud-terraform-provider.cn
          mode: eofreecert
          zoneId: zone-2o1t24kgy362
    

    Configure SSL certificate

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const certificate = new tencentcloud.TeoCertificateConfig("certificate", {
        host: "test.tencentcloud-terraform-provider.cn",
        mode: "sslcert",
        serverCertInfos: [{
            certId: "8xiUJIJd",
        }],
        zoneId: "zone-2o1t24kgy362",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    certificate = tencentcloud.TeoCertificateConfig("certificate",
        host="test.tencentcloud-terraform-provider.cn",
        mode="sslcert",
        server_cert_infos=[{
            "cert_id": "8xiUJIJd",
        }],
        zone_id="zone-2o1t24kgy362")
    
    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.NewTeoCertificateConfig(ctx, "certificate", &tencentcloud.TeoCertificateConfigArgs{
    			Host: pulumi.String("test.tencentcloud-terraform-provider.cn"),
    			Mode: pulumi.String("sslcert"),
    			ServerCertInfos: tencentcloud.TeoCertificateConfigServerCertInfoArray{
    				&tencentcloud.TeoCertificateConfigServerCertInfoArgs{
    					CertId: pulumi.String("8xiUJIJd"),
    				},
    			},
    			ZoneId: pulumi.String("zone-2o1t24kgy362"),
    		})
    		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 certificate = new Tencentcloud.TeoCertificateConfig("certificate", new()
        {
            Host = "test.tencentcloud-terraform-provider.cn",
            Mode = "sslcert",
            ServerCertInfos = new[]
            {
                new Tencentcloud.Inputs.TeoCertificateConfigServerCertInfoArgs
                {
                    CertId = "8xiUJIJd",
                },
            },
            ZoneId = "zone-2o1t24kgy362",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoCertificateConfig;
    import com.pulumi.tencentcloud.TeoCertificateConfigArgs;
    import com.pulumi.tencentcloud.inputs.TeoCertificateConfigServerCertInfoArgs;
    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 certificate = new TeoCertificateConfig("certificate", TeoCertificateConfigArgs.builder()
                .host("test.tencentcloud-terraform-provider.cn")
                .mode("sslcert")
                .serverCertInfos(TeoCertificateConfigServerCertInfoArgs.builder()
                    .certId("8xiUJIJd")
                    .build())
                .zoneId("zone-2o1t24kgy362")
                .build());
    
        }
    }
    
    resources:
      certificate:
        type: tencentcloud:TeoCertificateConfig
        properties:
          host: test.tencentcloud-terraform-provider.cn
          mode: sslcert
          serverCertInfos:
            - certId: 8xiUJIJd
          zoneId: zone-2o1t24kgy362
    

    Create TeoCertificateConfig Resource

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

    Constructor syntax

    new TeoCertificateConfig(name: string, args: TeoCertificateConfigArgs, opts?: CustomResourceOptions);
    @overload
    def TeoCertificateConfig(resource_name: str,
                             args: TeoCertificateConfigArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoCertificateConfig(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             host: Optional[str] = None,
                             zone_id: Optional[str] = None,
                             mode: Optional[str] = None,
                             server_cert_infos: Optional[Sequence[TeoCertificateConfigServerCertInfoArgs]] = None,
                             teo_certificate_config_id: Optional[str] = None)
    func NewTeoCertificateConfig(ctx *Context, name string, args TeoCertificateConfigArgs, opts ...ResourceOption) (*TeoCertificateConfig, error)
    public TeoCertificateConfig(string name, TeoCertificateConfigArgs args, CustomResourceOptions? opts = null)
    public TeoCertificateConfig(String name, TeoCertificateConfigArgs args)
    public TeoCertificateConfig(String name, TeoCertificateConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoCertificateConfig
    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 TeoCertificateConfigArgs
    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 TeoCertificateConfigArgs
    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 TeoCertificateConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoCertificateConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoCertificateConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Host string
    Acceleration domain name that needs to modify the certificate configuration.
    ZoneId string
    Site ID.
    Mode string
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    ServerCertInfos List<TeoCertificateConfigServerCertInfo>
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    TeoCertificateConfigId string
    ID of the resource.
    Host string
    Acceleration domain name that needs to modify the certificate configuration.
    ZoneId string
    Site ID.
    Mode string
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    ServerCertInfos []TeoCertificateConfigServerCertInfoArgs
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    TeoCertificateConfigId string
    ID of the resource.
    host String
    Acceleration domain name that needs to modify the certificate configuration.
    zoneId String
    Site ID.
    mode String
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    serverCertInfos List<TeoCertificateConfigServerCertInfo>
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    teoCertificateConfigId String
    ID of the resource.
    host string
    Acceleration domain name that needs to modify the certificate configuration.
    zoneId string
    Site ID.
    mode string
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    serverCertInfos TeoCertificateConfigServerCertInfo[]
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    teoCertificateConfigId string
    ID of the resource.
    host str
    Acceleration domain name that needs to modify the certificate configuration.
    zone_id str
    Site ID.
    mode str
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    server_cert_infos Sequence[TeoCertificateConfigServerCertInfoArgs]
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    teo_certificate_config_id str
    ID of the resource.
    host String
    Acceleration domain name that needs to modify the certificate configuration.
    zoneId String
    Site ID.
    mode String
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    serverCertInfos List<Property Map>
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    teoCertificateConfigId String
    ID of the resource.

    Outputs

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

    Get an existing TeoCertificateConfig 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?: TeoCertificateConfigState, opts?: CustomResourceOptions): TeoCertificateConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            host: Optional[str] = None,
            mode: Optional[str] = None,
            server_cert_infos: Optional[Sequence[TeoCertificateConfigServerCertInfoArgs]] = None,
            teo_certificate_config_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoCertificateConfig
    func GetTeoCertificateConfig(ctx *Context, name string, id IDInput, state *TeoCertificateConfigState, opts ...ResourceOption) (*TeoCertificateConfig, error)
    public static TeoCertificateConfig Get(string name, Input<string> id, TeoCertificateConfigState? state, CustomResourceOptions? opts = null)
    public static TeoCertificateConfig get(String name, Output<String> id, TeoCertificateConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoCertificateConfig    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:
    Host string
    Acceleration domain name that needs to modify the certificate configuration.
    Mode string
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    ServerCertInfos List<TeoCertificateConfigServerCertInfo>
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    TeoCertificateConfigId string
    ID of the resource.
    ZoneId string
    Site ID.
    Host string
    Acceleration domain name that needs to modify the certificate configuration.
    Mode string
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    ServerCertInfos []TeoCertificateConfigServerCertInfoArgs
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    TeoCertificateConfigId string
    ID of the resource.
    ZoneId string
    Site ID.
    host String
    Acceleration domain name that needs to modify the certificate configuration.
    mode String
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    serverCertInfos List<TeoCertificateConfigServerCertInfo>
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    teoCertificateConfigId String
    ID of the resource.
    zoneId String
    Site ID.
    host string
    Acceleration domain name that needs to modify the certificate configuration.
    mode string
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    serverCertInfos TeoCertificateConfigServerCertInfo[]
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    teoCertificateConfigId string
    ID of the resource.
    zoneId string
    Site ID.
    host str
    Acceleration domain name that needs to modify the certificate configuration.
    mode str
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    server_cert_infos Sequence[TeoCertificateConfigServerCertInfoArgs]
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    teo_certificate_config_id str
    ID of the resource.
    zone_id str
    Site ID.
    host String
    Acceleration domain name that needs to modify the certificate configuration.
    mode String
    Mode of configuring the certificate, the values are: disable: Do not configure the certificate; eofreecert: Configure EdgeOne free certificate; sslcert: Configure SSL certificate. If not filled in, the default value is disable.
    serverCertInfos List<Property Map>
    SSL certificate configuration, this parameter takes effect only when mode = sslcert, just enter the corresponding CertId. You can go to the SSL certificate list to view the CertId.
    teoCertificateConfigId String
    ID of the resource.
    zoneId String
    Site ID.

    Supporting Types

    TeoCertificateConfigServerCertInfo, TeoCertificateConfigServerCertInfoArgs

    CertId string
    ID of the server certificate.Note: This field may return null, indicating that no valid values can be obtained.
    Alias string
    Alias of the certificate.Note: This field may return null, indicating that no valid values can be obtained.
    CommonName string
    Domain name of the certificate. Note: This field may return null, indicating that no valid value can be obtained.
    DeployTime string
    Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
    ExpireTime string
    Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
    SignAlgo string
    Signature algorithm. Note: This field may return null, indicating that no valid values can be obtained.
    Type string
    Type of the certificate. Values: default: Default certificate; upload: Specified certificate; managed: Tencent Cloud-managed certificate. Note: This field may return null, indicating that no valid value can be obtained.
    CertId string
    ID of the server certificate.Note: This field may return null, indicating that no valid values can be obtained.
    Alias string
    Alias of the certificate.Note: This field may return null, indicating that no valid values can be obtained.
    CommonName string
    Domain name of the certificate. Note: This field may return null, indicating that no valid value can be obtained.
    DeployTime string
    Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
    ExpireTime string
    Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
    SignAlgo string
    Signature algorithm. Note: This field may return null, indicating that no valid values can be obtained.
    Type string
    Type of the certificate. Values: default: Default certificate; upload: Specified certificate; managed: Tencent Cloud-managed certificate. Note: This field may return null, indicating that no valid value can be obtained.
    certId String
    ID of the server certificate.Note: This field may return null, indicating that no valid values can be obtained.
    alias String
    Alias of the certificate.Note: This field may return null, indicating that no valid values can be obtained.
    commonName String
    Domain name of the certificate. Note: This field may return null, indicating that no valid value can be obtained.
    deployTime String
    Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
    expireTime String
    Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
    signAlgo String
    Signature algorithm. Note: This field may return null, indicating that no valid values can be obtained.
    type String
    Type of the certificate. Values: default: Default certificate; upload: Specified certificate; managed: Tencent Cloud-managed certificate. Note: This field may return null, indicating that no valid value can be obtained.
    certId string
    ID of the server certificate.Note: This field may return null, indicating that no valid values can be obtained.
    alias string
    Alias of the certificate.Note: This field may return null, indicating that no valid values can be obtained.
    commonName string
    Domain name of the certificate. Note: This field may return null, indicating that no valid value can be obtained.
    deployTime string
    Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
    expireTime string
    Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
    signAlgo string
    Signature algorithm. Note: This field may return null, indicating that no valid values can be obtained.
    type string
    Type of the certificate. Values: default: Default certificate; upload: Specified certificate; managed: Tencent Cloud-managed certificate. Note: This field may return null, indicating that no valid value can be obtained.
    cert_id str
    ID of the server certificate.Note: This field may return null, indicating that no valid values can be obtained.
    alias str
    Alias of the certificate.Note: This field may return null, indicating that no valid values can be obtained.
    common_name str
    Domain name of the certificate. Note: This field may return null, indicating that no valid value can be obtained.
    deploy_time str
    Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
    expire_time str
    Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
    sign_algo str
    Signature algorithm. Note: This field may return null, indicating that no valid values can be obtained.
    type str
    Type of the certificate. Values: default: Default certificate; upload: Specified certificate; managed: Tencent Cloud-managed certificate. Note: This field may return null, indicating that no valid value can be obtained.
    certId String
    ID of the server certificate.Note: This field may return null, indicating that no valid values can be obtained.
    alias String
    Alias of the certificate.Note: This field may return null, indicating that no valid values can be obtained.
    commonName String
    Domain name of the certificate. Note: This field may return null, indicating that no valid value can be obtained.
    deployTime String
    Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
    expireTime String
    Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
    signAlgo String
    Signature algorithm. Note: This field may return null, indicating that no valid values can be obtained.
    type String
    Type of the certificate. Values: default: Default certificate; upload: Specified certificate; managed: Tencent Cloud-managed certificate. Note: This field may return null, indicating that no valid value can be obtained.

    Import

    teo certificate can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/teoCertificateConfig:TeoCertificateConfig certificate zone_id#host
    

    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