tencentcloud.SslReplaceCertificateOperation
Explore with Pulumi AI
Provides a resource to create a ssl replace_certificate
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const replaceCertificate = new tencentcloud.SslReplaceCertificateOperation("replaceCertificate", {
certificateId: "8L6JsWq2",
csrType: "online",
validType: "DNS_AUTO",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
replace_certificate = tencentcloud.SslReplaceCertificateOperation("replaceCertificate",
certificate_id="8L6JsWq2",
csr_type="online",
valid_type="DNS_AUTO")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewSslReplaceCertificateOperation(ctx, "replaceCertificate", &tencentcloud.SslReplaceCertificateOperationArgs{
CertificateId: pulumi.String("8L6JsWq2"),
CsrType: pulumi.String("online"),
ValidType: pulumi.String("DNS_AUTO"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var replaceCertificate = new Tencentcloud.SslReplaceCertificateOperation("replaceCertificate", new()
{
CertificateId = "8L6JsWq2",
CsrType = "online",
ValidType = "DNS_AUTO",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.SslReplaceCertificateOperation;
import com.pulumi.tencentcloud.SslReplaceCertificateOperationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var replaceCertificate = new SslReplaceCertificateOperation("replaceCertificate", SslReplaceCertificateOperationArgs.builder()
.certificateId("8L6JsWq2")
.csrType("online")
.validType("DNS_AUTO")
.build());
}
}
resources:
replaceCertificate:
type: tencentcloud:SslReplaceCertificateOperation
properties:
certificateId: 8L6JsWq2
csrType: online
validType: DNS_AUTO
Create SslReplaceCertificateOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SslReplaceCertificateOperation(name: string, args: SslReplaceCertificateOperationArgs, opts?: CustomResourceOptions);
@overload
def SslReplaceCertificateOperation(resource_name: str,
args: SslReplaceCertificateOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SslReplaceCertificateOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None,
valid_type: Optional[str] = None,
cert_csr_encrypt_algo: Optional[str] = None,
cert_csr_key_parameter: Optional[str] = None,
csr_content: Optional[str] = None,
csr_key_password: Optional[str] = None,
csr_type: Optional[str] = None,
reason: Optional[str] = None,
ssl_replace_certificate_operation_id: Optional[str] = None)
func NewSslReplaceCertificateOperation(ctx *Context, name string, args SslReplaceCertificateOperationArgs, opts ...ResourceOption) (*SslReplaceCertificateOperation, error)
public SslReplaceCertificateOperation(string name, SslReplaceCertificateOperationArgs args, CustomResourceOptions? opts = null)
public SslReplaceCertificateOperation(String name, SslReplaceCertificateOperationArgs args)
public SslReplaceCertificateOperation(String name, SslReplaceCertificateOperationArgs args, CustomResourceOptions options)
type: tencentcloud:SslReplaceCertificateOperation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SslReplaceCertificateOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SslReplaceCertificateOperationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SslReplaceCertificateOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SslReplaceCertificateOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SslReplaceCertificateOperationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SslReplaceCertificateOperation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SslReplaceCertificateOperation resource accepts the following input properties:
- Certificate
Id string - Certificate ID.
- Valid
Type string - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- Cert
Csr stringEncrypt Algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- Cert
Csr stringKey Parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- Csr
Content string - CSR Content.
- Csr
Key stringPassword - KEY Password.
- Csr
Type string - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- Reason string
- Reason for reissue.
- Ssl
Replace stringCertificate Operation Id - ID of the resource.
- Certificate
Id string - Certificate ID.
- Valid
Type string - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- Cert
Csr stringEncrypt Algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- Cert
Csr stringKey Parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- Csr
Content string - CSR Content.
- Csr
Key stringPassword - KEY Password.
- Csr
Type string - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- Reason string
- Reason for reissue.
- Ssl
Replace stringCertificate Operation Id - ID of the resource.
- certificate
Id String - Certificate ID.
- valid
Type String - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- cert
Csr StringEncrypt Algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- cert
Csr StringKey Parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- csr
Content String - CSR Content.
- csr
Key StringPassword - KEY Password.
- csr
Type String - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- reason String
- Reason for reissue.
- ssl
Replace StringCertificate Operation Id - ID of the resource.
- certificate
Id string - Certificate ID.
- valid
Type string - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- cert
Csr stringEncrypt Algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- cert
Csr stringKey Parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- csr
Content string - CSR Content.
- csr
Key stringPassword - KEY Password.
- csr
Type string - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- reason string
- Reason for reissue.
- ssl
Replace stringCertificate Operation Id - ID of the resource.
- certificate_
id str - Certificate ID.
- valid_
type str - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- cert_
csr_ strencrypt_ algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- cert_
csr_ strkey_ parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- csr_
content str - CSR Content.
- csr_
key_ strpassword - KEY Password.
- csr_
type str - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- reason str
- Reason for reissue.
- ssl_
replace_ strcertificate_ operation_ id - ID of the resource.
- certificate
Id String - Certificate ID.
- valid
Type String - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- cert
Csr StringEncrypt Algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- cert
Csr StringKey Parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- csr
Content String - CSR Content.
- csr
Key StringPassword - KEY Password.
- csr
Type String - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- reason String
- Reason for reissue.
- ssl
Replace StringCertificate Operation Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SslReplaceCertificateOperation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SslReplaceCertificateOperation Resource
Get an existing SslReplaceCertificateOperation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SslReplaceCertificateOperationState, opts?: CustomResourceOptions): SslReplaceCertificateOperation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cert_csr_encrypt_algo: Optional[str] = None,
cert_csr_key_parameter: Optional[str] = None,
certificate_id: Optional[str] = None,
csr_content: Optional[str] = None,
csr_key_password: Optional[str] = None,
csr_type: Optional[str] = None,
reason: Optional[str] = None,
ssl_replace_certificate_operation_id: Optional[str] = None,
valid_type: Optional[str] = None) -> SslReplaceCertificateOperation
func GetSslReplaceCertificateOperation(ctx *Context, name string, id IDInput, state *SslReplaceCertificateOperationState, opts ...ResourceOption) (*SslReplaceCertificateOperation, error)
public static SslReplaceCertificateOperation Get(string name, Input<string> id, SslReplaceCertificateOperationState? state, CustomResourceOptions? opts = null)
public static SslReplaceCertificateOperation get(String name, Output<String> id, SslReplaceCertificateOperationState state, CustomResourceOptions options)
resources: _: type: tencentcloud:SslReplaceCertificateOperation get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cert
Csr stringEncrypt Algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- Cert
Csr stringKey Parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- Certificate
Id string - Certificate ID.
- Csr
Content string - CSR Content.
- Csr
Key stringPassword - KEY Password.
- Csr
Type string - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- Reason string
- Reason for reissue.
- Ssl
Replace stringCertificate Operation Id - ID of the resource.
- Valid
Type string - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- Cert
Csr stringEncrypt Algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- Cert
Csr stringKey Parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- Certificate
Id string - Certificate ID.
- Csr
Content string - CSR Content.
- Csr
Key stringPassword - KEY Password.
- Csr
Type string - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- Reason string
- Reason for reissue.
- Ssl
Replace stringCertificate Operation Id - ID of the resource.
- Valid
Type string - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- cert
Csr StringEncrypt Algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- cert
Csr StringKey Parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- certificate
Id String - Certificate ID.
- csr
Content String - CSR Content.
- csr
Key StringPassword - KEY Password.
- csr
Type String - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- reason String
- Reason for reissue.
- ssl
Replace StringCertificate Operation Id - ID of the resource.
- valid
Type String - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- cert
Csr stringEncrypt Algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- cert
Csr stringKey Parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- certificate
Id string - Certificate ID.
- csr
Content string - CSR Content.
- csr
Key stringPassword - KEY Password.
- csr
Type string - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- reason string
- Reason for reissue.
- ssl
Replace stringCertificate Operation Id - ID of the resource.
- valid
Type string - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- cert_
csr_ strencrypt_ algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- cert_
csr_ strkey_ parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- certificate_
id str - Certificate ID.
- csr_
content str - CSR Content.
- csr_
key_ strpassword - KEY Password.
- csr_
type str - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- reason str
- Reason for reissue.
- ssl_
replace_ strcertificate_ operation_ id - ID of the resource.
- valid_
type str - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
- cert
Csr StringEncrypt Algo - CSR encryption method, optional: RSA, ECC, SM2. (Selectable only if CsrType is Online), default is RSA.
- cert
Csr StringKey Parameter - CSR encryption parameter, when CsrEncryptAlgo is RSA, you can choose 2048, 4096, etc., and the default is 2048; when CsrEncryptAlgo is ECC, you can choose prime256v1, secp384r1, etc., and the default is prime256v1;.
- certificate
Id String - Certificate ID.
- csr
Content String - CSR Content.
- csr
Key StringPassword - KEY Password.
- csr
Type String - Type, default Original. Available options: Original = original certificate CSR, Upload = manual upload, Online = online generation.
- reason String
- Reason for reissue.
- ssl
Replace StringCertificate Operation Id - ID of the resource.
- valid
Type String - Verification type: DNS_AUTO = automatic DNS verification (this verification type is only supported for domain names that are resolved by Tencent Cloud and have normal resolution status), DNS = manual DNS verification, FILE = file verification.
Import
ssl replace_certificate can be imported using the id, e.g.
$ pulumi import tencentcloud:index/sslReplaceCertificateOperation:SslReplaceCertificateOperation replace_certificate replace_certificate_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.