tencentcloud.TeoCertificateConfig
Explore with Pulumi AI
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.
- Zone
Id 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 isdisable
. - Server
Cert List<TeoInfos Certificate Config Server Cert Info> - 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 stringConfig Id - ID of the resource.
- Host string
- Acceleration domain name that needs to modify the certificate configuration.
- Zone
Id 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 isdisable
. - Server
Cert []TeoInfos Certificate Config Server Cert Info Args - 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 stringConfig Id - ID of the resource.
- host String
- Acceleration domain name that needs to modify the certificate configuration.
- zone
Id 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 isdisable
. - server
Cert List<TeoInfos Certificate Config Server Cert Info> - 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 StringConfig Id - ID of the resource.
- host string
- Acceleration domain name that needs to modify the certificate configuration.
- zone
Id 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 isdisable
. - server
Cert TeoInfos Certificate Config Server Cert Info[] - 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 stringConfig Id - 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 isdisable
. - server_
cert_ Sequence[Teoinfos Certificate Config Server Cert Info Args] - 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_ strconfig_ id - ID of the resource.
- host String
- Acceleration domain name that needs to modify the certificate configuration.
- zone
Id 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 isdisable
. - server
Cert List<Property Map>Infos - 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 StringConfig Id - 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.
- 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 isdisable
. - Server
Cert List<TeoInfos Certificate Config Server Cert Info> - 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 stringConfig Id - ID of the resource.
- Zone
Id 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 isdisable
. - Server
Cert []TeoInfos Certificate Config Server Cert Info Args - 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 stringConfig Id - ID of the resource.
- Zone
Id 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 isdisable
. - server
Cert List<TeoInfos Certificate Config Server Cert Info> - 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 StringConfig Id - ID of the resource.
- zone
Id 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 isdisable
. - server
Cert TeoInfos Certificate Config Server Cert Info[] - 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 stringConfig Id - ID of the resource.
- zone
Id 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 isdisable
. - server_
cert_ Sequence[Teoinfos Certificate Config Server Cert Info Args] - 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_ strconfig_ id - 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 isdisable
. - server
Cert List<Property Map>Infos - 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 StringConfig Id - ID of the resource.
- zone
Id String - Site ID.
Supporting Types
TeoCertificateConfigServerCertInfo, TeoCertificateConfigServerCertInfoArgs
- Cert
Id 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.
- Common
Name string - Domain name of the certificate. Note: This field may return
null
, indicating that no valid value can be obtained. - Deploy
Time string - Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
- Expire
Time string - Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
- Sign
Algo 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 returnnull
, indicating that no valid value can be obtained.
- Cert
Id 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.
- Common
Name string - Domain name of the certificate. Note: This field may return
null
, indicating that no valid value can be obtained. - Deploy
Time string - Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
- Expire
Time string - Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
- Sign
Algo 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 returnnull
, indicating that no valid value can be obtained.
- cert
Id 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.
- common
Name String - Domain name of the certificate. Note: This field may return
null
, indicating that no valid value can be obtained. - deploy
Time String - Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
- expire
Time String - Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
- sign
Algo 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 returnnull
, indicating that no valid value can be obtained.
- cert
Id 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.
- common
Name string - Domain name of the certificate. Note: This field may return
null
, indicating that no valid value can be obtained. - deploy
Time string - Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
- expire
Time string - Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
- sign
Algo 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 returnnull
, 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 returnnull
, indicating that no valid value can be obtained.
- cert
Id 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.
- common
Name String - Domain name of the certificate. Note: This field may return
null
, indicating that no valid value can be obtained. - deploy
Time String - Time when the certificate is deployed. Note: This field may return null, indicating that no valid values can be obtained.
- expire
Time String - Time when the certificate expires. Note: This field may return null, indicating that no valid values can be obtained.
- sign
Algo 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 returnnull
, 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.