1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MqttDeviceCertificate
tencentcloud 1.81.191 published on Friday, May 9, 2025 by tencentcloudstack

tencentcloud.MqttDeviceCertificate

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.191 published on Friday, May 9, 2025 by tencentcloudstack

    Provides a resource to create a MQTT device certificate

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.MqttDeviceCertificate("example", {
        instanceId: "mqtt-zxjwkr98",
        deviceCertificate: `-----BEGIN CERTIFICATE-----
    MIIDgzCCAmugAwIBAgIQbWhvyXL8dmDtyID8f0kLlTANBgkqhkiG9w0BAQsFADA/
    MQswCQYDVQQGEwJDTjEbMBkGA1UEChMSTXkgQ0EgT3JnYW5pemF0aW9uMRMwEQYD
    VQQDEwpNeSBDQSBSb290MB4XDTI1MDUwOTA4MDMzOVoXDTI2MDUwOTA4MDMzOVow
    WjELMAkGA1UEBhMCQ04xHDAaBgNVBAoTE0NsaWVudCBPcmdhbml6YXRpb24xLTAr
    BgNVBAMTJGQyNGE1MDYxLTNjYjktNGVkZi04MGJhLTBmODNkY2IyNDM2MTCCASIw
    DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALZXOJ47sZemb1/wDoBWE7Kgy2EO
    UsbsUu/YYhvHWR/ePGdbXsBx0C4fdD38aqZkSRK7R/YsgarzFRF8ozKMRvyvdga4
    YReXQaOhop3HL8oVZm/NW8x7GyruD4D1CP6/odtFWtG2JWf1UH/L3YUieR3D9X7S
    LFZXBICdN69qnP05hUIiRiQ7yRfhs6sWdCH8YPTu6LXintWGHAg9RCw/8ewuwh/P
    g4WGej4ycQcwBQ85zNMF0zXmkNWE4BdJvO/+2TgN0S6rXkRH0sBrghQeURLzmzv8
    5HUIj740wEZpC37SLeZbYnp2RpbDAooTOBkyrLpJ5d0bV4441GpjwGQAuAUCAwEA
    AaNgMF4wDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF
    BQcDAjAMBgNVHRMBAf8EAjAAMB8GA1UdIwQYMBaAFM+RdbWwsz5TpRVX8ipQqUAF
    urZVMA0GCSqGSIb3DQEBCwUAA4IBAQBOLOJKnmOtiiSlk6a4cNAQROWwDxQeWlZz
    4NuPGPpjx3OHQZTi9PGeeJJtL6VyPTBdrETjfriTU+vzsYEpYs303B04hcCpHMgc
    SMS14V8iSuRnXPXpSrX2/a3B6KNTeXd5662k1FCwZG/bGVvE/Q1sAu6Ls/1Q1XfY
    stvJQTb4MEKa64d1e+58yTp2UhmxyfWTFy7LqguIGZgTd8Oz8ISJjBg0ca+Co/gN
    uD7+CB4HqiiiN3o3meihJePo68foyvwnGntrx0KKlas8NJxCkWmM/HHpwjxz7eJZ
    ulX9ykqE3WqMkWMcVTzx/wAhvixKckQD3+bZzBvOqerMpkRMpGOC
    -----END CERTIFICATE-----
    `,
        caSn: "1",
        clientId: "d24a5061-3cb9-4edf-80ba-0f83dcb24361",
        format: "PEM",
        status: "ACTIVE",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.MqttDeviceCertificate("example",
        instance_id="mqtt-zxjwkr98",
        device_certificate="""-----BEGIN CERTIFICATE-----
    MIIDgzCCAmugAwIBAgIQbWhvyXL8dmDtyID8f0kLlTANBgkqhkiG9w0BAQsFADA/
    MQswCQYDVQQGEwJDTjEbMBkGA1UEChMSTXkgQ0EgT3JnYW5pemF0aW9uMRMwEQYD
    VQQDEwpNeSBDQSBSb290MB4XDTI1MDUwOTA4MDMzOVoXDTI2MDUwOTA4MDMzOVow
    WjELMAkGA1UEBhMCQ04xHDAaBgNVBAoTE0NsaWVudCBPcmdhbml6YXRpb24xLTAr
    BgNVBAMTJGQyNGE1MDYxLTNjYjktNGVkZi04MGJhLTBmODNkY2IyNDM2MTCCASIw
    DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALZXOJ47sZemb1/wDoBWE7Kgy2EO
    UsbsUu/YYhvHWR/ePGdbXsBx0C4fdD38aqZkSRK7R/YsgarzFRF8ozKMRvyvdga4
    YReXQaOhop3HL8oVZm/NW8x7GyruD4D1CP6/odtFWtG2JWf1UH/L3YUieR3D9X7S
    LFZXBICdN69qnP05hUIiRiQ7yRfhs6sWdCH8YPTu6LXintWGHAg9RCw/8ewuwh/P
    g4WGej4ycQcwBQ85zNMF0zXmkNWE4BdJvO/+2TgN0S6rXkRH0sBrghQeURLzmzv8
    5HUIj740wEZpC37SLeZbYnp2RpbDAooTOBkyrLpJ5d0bV4441GpjwGQAuAUCAwEA
    AaNgMF4wDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF
    BQcDAjAMBgNVHRMBAf8EAjAAMB8GA1UdIwQYMBaAFM+RdbWwsz5TpRVX8ipQqUAF
    urZVMA0GCSqGSIb3DQEBCwUAA4IBAQBOLOJKnmOtiiSlk6a4cNAQROWwDxQeWlZz
    4NuPGPpjx3OHQZTi9PGeeJJtL6VyPTBdrETjfriTU+vzsYEpYs303B04hcCpHMgc
    SMS14V8iSuRnXPXpSrX2/a3B6KNTeXd5662k1FCwZG/bGVvE/Q1sAu6Ls/1Q1XfY
    stvJQTb4MEKa64d1e+58yTp2UhmxyfWTFy7LqguIGZgTd8Oz8ISJjBg0ca+Co/gN
    uD7+CB4HqiiiN3o3meihJePo68foyvwnGntrx0KKlas8NJxCkWmM/HHpwjxz7eJZ
    ulX9ykqE3WqMkWMcVTzx/wAhvixKckQD3+bZzBvOqerMpkRMpGOC
    -----END CERTIFICATE-----
    """,
        ca_sn="1",
        client_id="d24a5061-3cb9-4edf-80ba-0f83dcb24361",
        format="PEM",
        status="ACTIVE")
    
    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.NewMqttDeviceCertificate(ctx, "example", &tencentcloud.MqttDeviceCertificateArgs{
    			InstanceId: pulumi.String("mqtt-zxjwkr98"),
    			DeviceCertificate: pulumi.String(`-----BEGIN CERTIFICATE-----
    MIIDgzCCAmugAwIBAgIQbWhvyXL8dmDtyID8f0kLlTANBgkqhkiG9w0BAQsFADA/
    MQswCQYDVQQGEwJDTjEbMBkGA1UEChMSTXkgQ0EgT3JnYW5pemF0aW9uMRMwEQYD
    VQQDEwpNeSBDQSBSb290MB4XDTI1MDUwOTA4MDMzOVoXDTI2MDUwOTA4MDMzOVow
    WjELMAkGA1UEBhMCQ04xHDAaBgNVBAoTE0NsaWVudCBPcmdhbml6YXRpb24xLTAr
    BgNVBAMTJGQyNGE1MDYxLTNjYjktNGVkZi04MGJhLTBmODNkY2IyNDM2MTCCASIw
    DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALZXOJ47sZemb1/wDoBWE7Kgy2EO
    UsbsUu/YYhvHWR/ePGdbXsBx0C4fdD38aqZkSRK7R/YsgarzFRF8ozKMRvyvdga4
    YReXQaOhop3HL8oVZm/NW8x7GyruD4D1CP6/odtFWtG2JWf1UH/L3YUieR3D9X7S
    LFZXBICdN69qnP05hUIiRiQ7yRfhs6sWdCH8YPTu6LXintWGHAg9RCw/8ewuwh/P
    g4WGej4ycQcwBQ85zNMF0zXmkNWE4BdJvO/+2TgN0S6rXkRH0sBrghQeURLzmzv8
    5HUIj740wEZpC37SLeZbYnp2RpbDAooTOBkyrLpJ5d0bV4441GpjwGQAuAUCAwEA
    AaNgMF4wDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF
    BQcDAjAMBgNVHRMBAf8EAjAAMB8GA1UdIwQYMBaAFM+RdbWwsz5TpRVX8ipQqUAF
    urZVMA0GCSqGSIb3DQEBCwUAA4IBAQBOLOJKnmOtiiSlk6a4cNAQROWwDxQeWlZz
    4NuPGPpjx3OHQZTi9PGeeJJtL6VyPTBdrETjfriTU+vzsYEpYs303B04hcCpHMgc
    SMS14V8iSuRnXPXpSrX2/a3B6KNTeXd5662k1FCwZG/bGVvE/Q1sAu6Ls/1Q1XfY
    stvJQTb4MEKa64d1e+58yTp2UhmxyfWTFy7LqguIGZgTd8Oz8ISJjBg0ca+Co/gN
    uD7+CB4HqiiiN3o3meihJePo68foyvwnGntrx0KKlas8NJxCkWmM/HHpwjxz7eJZ
    ulX9ykqE3WqMkWMcVTzx/wAhvixKckQD3+bZzBvOqerMpkRMpGOC
    -----END CERTIFICATE-----
    `),
    			CaSn:     pulumi.String("1"),
    			ClientId: pulumi.String("d24a5061-3cb9-4edf-80ba-0f83dcb24361"),
    			Format:   pulumi.String("PEM"),
    			Status:   pulumi.String("ACTIVE"),
    		})
    		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 example = new Tencentcloud.MqttDeviceCertificate("example", new()
        {
            InstanceId = "mqtt-zxjwkr98",
            DeviceCertificate = @"-----BEGIN CERTIFICATE-----
    MIIDgzCCAmugAwIBAgIQbWhvyXL8dmDtyID8f0kLlTANBgkqhkiG9w0BAQsFADA/
    MQswCQYDVQQGEwJDTjEbMBkGA1UEChMSTXkgQ0EgT3JnYW5pemF0aW9uMRMwEQYD
    VQQDEwpNeSBDQSBSb290MB4XDTI1MDUwOTA4MDMzOVoXDTI2MDUwOTA4MDMzOVow
    WjELMAkGA1UEBhMCQ04xHDAaBgNVBAoTE0NsaWVudCBPcmdhbml6YXRpb24xLTAr
    BgNVBAMTJGQyNGE1MDYxLTNjYjktNGVkZi04MGJhLTBmODNkY2IyNDM2MTCCASIw
    DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALZXOJ47sZemb1/wDoBWE7Kgy2EO
    UsbsUu/YYhvHWR/ePGdbXsBx0C4fdD38aqZkSRK7R/YsgarzFRF8ozKMRvyvdga4
    YReXQaOhop3HL8oVZm/NW8x7GyruD4D1CP6/odtFWtG2JWf1UH/L3YUieR3D9X7S
    LFZXBICdN69qnP05hUIiRiQ7yRfhs6sWdCH8YPTu6LXintWGHAg9RCw/8ewuwh/P
    g4WGej4ycQcwBQ85zNMF0zXmkNWE4BdJvO/+2TgN0S6rXkRH0sBrghQeURLzmzv8
    5HUIj740wEZpC37SLeZbYnp2RpbDAooTOBkyrLpJ5d0bV4441GpjwGQAuAUCAwEA
    AaNgMF4wDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF
    BQcDAjAMBgNVHRMBAf8EAjAAMB8GA1UdIwQYMBaAFM+RdbWwsz5TpRVX8ipQqUAF
    urZVMA0GCSqGSIb3DQEBCwUAA4IBAQBOLOJKnmOtiiSlk6a4cNAQROWwDxQeWlZz
    4NuPGPpjx3OHQZTi9PGeeJJtL6VyPTBdrETjfriTU+vzsYEpYs303B04hcCpHMgc
    SMS14V8iSuRnXPXpSrX2/a3B6KNTeXd5662k1FCwZG/bGVvE/Q1sAu6Ls/1Q1XfY
    stvJQTb4MEKa64d1e+58yTp2UhmxyfWTFy7LqguIGZgTd8Oz8ISJjBg0ca+Co/gN
    uD7+CB4HqiiiN3o3meihJePo68foyvwnGntrx0KKlas8NJxCkWmM/HHpwjxz7eJZ
    ulX9ykqE3WqMkWMcVTzx/wAhvixKckQD3+bZzBvOqerMpkRMpGOC
    -----END CERTIFICATE-----
    ",
            CaSn = "1",
            ClientId = "d24a5061-3cb9-4edf-80ba-0f83dcb24361",
            Format = "PEM",
            Status = "ACTIVE",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MqttDeviceCertificate;
    import com.pulumi.tencentcloud.MqttDeviceCertificateArgs;
    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 example = new MqttDeviceCertificate("example", MqttDeviceCertificateArgs.builder()
                .instanceId("mqtt-zxjwkr98")
                .deviceCertificate("""
    -----BEGIN CERTIFICATE-----
    MIIDgzCCAmugAwIBAgIQbWhvyXL8dmDtyID8f0kLlTANBgkqhkiG9w0BAQsFADA/
    MQswCQYDVQQGEwJDTjEbMBkGA1UEChMSTXkgQ0EgT3JnYW5pemF0aW9uMRMwEQYD
    VQQDEwpNeSBDQSBSb290MB4XDTI1MDUwOTA4MDMzOVoXDTI2MDUwOTA4MDMzOVow
    WjELMAkGA1UEBhMCQ04xHDAaBgNVBAoTE0NsaWVudCBPcmdhbml6YXRpb24xLTAr
    BgNVBAMTJGQyNGE1MDYxLTNjYjktNGVkZi04MGJhLTBmODNkY2IyNDM2MTCCASIw
    DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALZXOJ47sZemb1/wDoBWE7Kgy2EO
    UsbsUu/YYhvHWR/ePGdbXsBx0C4fdD38aqZkSRK7R/YsgarzFRF8ozKMRvyvdga4
    YReXQaOhop3HL8oVZm/NW8x7GyruD4D1CP6/odtFWtG2JWf1UH/L3YUieR3D9X7S
    LFZXBICdN69qnP05hUIiRiQ7yRfhs6sWdCH8YPTu6LXintWGHAg9RCw/8ewuwh/P
    g4WGej4ycQcwBQ85zNMF0zXmkNWE4BdJvO/+2TgN0S6rXkRH0sBrghQeURLzmzv8
    5HUIj740wEZpC37SLeZbYnp2RpbDAooTOBkyrLpJ5d0bV4441GpjwGQAuAUCAwEA
    AaNgMF4wDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF
    BQcDAjAMBgNVHRMBAf8EAjAAMB8GA1UdIwQYMBaAFM+RdbWwsz5TpRVX8ipQqUAF
    urZVMA0GCSqGSIb3DQEBCwUAA4IBAQBOLOJKnmOtiiSlk6a4cNAQROWwDxQeWlZz
    4NuPGPpjx3OHQZTi9PGeeJJtL6VyPTBdrETjfriTU+vzsYEpYs303B04hcCpHMgc
    SMS14V8iSuRnXPXpSrX2/a3B6KNTeXd5662k1FCwZG/bGVvE/Q1sAu6Ls/1Q1XfY
    stvJQTb4MEKa64d1e+58yTp2UhmxyfWTFy7LqguIGZgTd8Oz8ISJjBg0ca+Co/gN
    uD7+CB4HqiiiN3o3meihJePo68foyvwnGntrx0KKlas8NJxCkWmM/HHpwjxz7eJZ
    ulX9ykqE3WqMkWMcVTzx/wAhvixKckQD3+bZzBvOqerMpkRMpGOC
    -----END CERTIFICATE-----
                """)
                .caSn("1")
                .clientId("d24a5061-3cb9-4edf-80ba-0f83dcb24361")
                .format("PEM")
                .status("ACTIVE")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:MqttDeviceCertificate
        properties:
          instanceId: mqtt-zxjwkr98
          deviceCertificate: |
            -----BEGIN CERTIFICATE-----
            MIIDgzCCAmugAwIBAgIQbWhvyXL8dmDtyID8f0kLlTANBgkqhkiG9w0BAQsFADA/
            MQswCQYDVQQGEwJDTjEbMBkGA1UEChMSTXkgQ0EgT3JnYW5pemF0aW9uMRMwEQYD
            VQQDEwpNeSBDQSBSb290MB4XDTI1MDUwOTA4MDMzOVoXDTI2MDUwOTA4MDMzOVow
            WjELMAkGA1UEBhMCQ04xHDAaBgNVBAoTE0NsaWVudCBPcmdhbml6YXRpb24xLTAr
            BgNVBAMTJGQyNGE1MDYxLTNjYjktNGVkZi04MGJhLTBmODNkY2IyNDM2MTCCASIw
            DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALZXOJ47sZemb1/wDoBWE7Kgy2EO
            UsbsUu/YYhvHWR/ePGdbXsBx0C4fdD38aqZkSRK7R/YsgarzFRF8ozKMRvyvdga4
            YReXQaOhop3HL8oVZm/NW8x7GyruD4D1CP6/odtFWtG2JWf1UH/L3YUieR3D9X7S
            LFZXBICdN69qnP05hUIiRiQ7yRfhs6sWdCH8YPTu6LXintWGHAg9RCw/8ewuwh/P
            g4WGej4ycQcwBQ85zNMF0zXmkNWE4BdJvO/+2TgN0S6rXkRH0sBrghQeURLzmzv8
            5HUIj740wEZpC37SLeZbYnp2RpbDAooTOBkyrLpJ5d0bV4441GpjwGQAuAUCAwEA
            AaNgMF4wDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF
            BQcDAjAMBgNVHRMBAf8EAjAAMB8GA1UdIwQYMBaAFM+RdbWwsz5TpRVX8ipQqUAF
            urZVMA0GCSqGSIb3DQEBCwUAA4IBAQBOLOJKnmOtiiSlk6a4cNAQROWwDxQeWlZz
            4NuPGPpjx3OHQZTi9PGeeJJtL6VyPTBdrETjfriTU+vzsYEpYs303B04hcCpHMgc
            SMS14V8iSuRnXPXpSrX2/a3B6KNTeXd5662k1FCwZG/bGVvE/Q1sAu6Ls/1Q1XfY
            stvJQTb4MEKa64d1e+58yTp2UhmxyfWTFy7LqguIGZgTd8Oz8ISJjBg0ca+Co/gN
            uD7+CB4HqiiiN3o3meihJePo68foyvwnGntrx0KKlas8NJxCkWmM/HHpwjxz7eJZ
            ulX9ykqE3WqMkWMcVTzx/wAhvixKckQD3+bZzBvOqerMpkRMpGOC
            -----END CERTIFICATE-----        
          caSn: '1'
          clientId: d24a5061-3cb9-4edf-80ba-0f83dcb24361
          format: PEM
          status: ACTIVE
    

    Create MqttDeviceCertificate Resource

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

    Constructor syntax

    new MqttDeviceCertificate(name: string, args: MqttDeviceCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def MqttDeviceCertificate(resource_name: str,
                              args: MqttDeviceCertificateArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def MqttDeviceCertificate(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              ca_sn: Optional[str] = None,
                              device_certificate: Optional[str] = None,
                              instance_id: Optional[str] = None,
                              client_id: Optional[str] = None,
                              format: Optional[str] = None,
                              mqtt_device_certificate_id: Optional[str] = None,
                              status: Optional[str] = None)
    func NewMqttDeviceCertificate(ctx *Context, name string, args MqttDeviceCertificateArgs, opts ...ResourceOption) (*MqttDeviceCertificate, error)
    public MqttDeviceCertificate(string name, MqttDeviceCertificateArgs args, CustomResourceOptions? opts = null)
    public MqttDeviceCertificate(String name, MqttDeviceCertificateArgs args)
    public MqttDeviceCertificate(String name, MqttDeviceCertificateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:MqttDeviceCertificate
    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 MqttDeviceCertificateArgs
    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 MqttDeviceCertificateArgs
    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 MqttDeviceCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MqttDeviceCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MqttDeviceCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    CaSn string
    Associated CA certificate SN.
    DeviceCertificate string
    Device certificate.
    InstanceId string
    Instance ID.
    ClientId string
    Client ID.
    Format string
    Certificate format, Default is PEM.
    MqttDeviceCertificateId string
    ID of the resource.
    Status string
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    CaSn string
    Associated CA certificate SN.
    DeviceCertificate string
    Device certificate.
    InstanceId string
    Instance ID.
    ClientId string
    Client ID.
    Format string
    Certificate format, Default is PEM.
    MqttDeviceCertificateId string
    ID of the resource.
    Status string
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    caSn String
    Associated CA certificate SN.
    deviceCertificate String
    Device certificate.
    instanceId String
    Instance ID.
    clientId String
    Client ID.
    format String
    Certificate format, Default is PEM.
    mqttDeviceCertificateId String
    ID of the resource.
    status String
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    caSn string
    Associated CA certificate SN.
    deviceCertificate string
    Device certificate.
    instanceId string
    Instance ID.
    clientId string
    Client ID.
    format string
    Certificate format, Default is PEM.
    mqttDeviceCertificateId string
    ID of the resource.
    status string
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    ca_sn str
    Associated CA certificate SN.
    device_certificate str
    Device certificate.
    instance_id str
    Instance ID.
    client_id str
    Client ID.
    format str
    Certificate format, Default is PEM.
    mqtt_device_certificate_id str
    ID of the resource.
    status str
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    caSn String
    Associated CA certificate SN.
    deviceCertificate String
    Device certificate.
    instanceId String
    Instance ID.
    clientId String
    Client ID.
    format String
    Certificate format, Default is PEM.
    mqttDeviceCertificateId String
    ID of the resource.
    status String
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.

    Outputs

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

    CertificateSource string
    Certificate source.
    CreatedTime double
    Certificate create time.
    DeviceCertificateCn string
    Certificate common name.
    DeviceCertificateSn string
    Equipment certificate serial number.
    Id string
    The provider-assigned unique ID for this managed resource.
    NotAfterTime double
    Certificate expiring date.
    NotBeforeTime double
    Certificate effective start date.
    UpdateTime double
    Certificate update time.
    CertificateSource string
    Certificate source.
    CreatedTime float64
    Certificate create time.
    DeviceCertificateCn string
    Certificate common name.
    DeviceCertificateSn string
    Equipment certificate serial number.
    Id string
    The provider-assigned unique ID for this managed resource.
    NotAfterTime float64
    Certificate expiring date.
    NotBeforeTime float64
    Certificate effective start date.
    UpdateTime float64
    Certificate update time.
    certificateSource String
    Certificate source.
    createdTime Double
    Certificate create time.
    deviceCertificateCn String
    Certificate common name.
    deviceCertificateSn String
    Equipment certificate serial number.
    id String
    The provider-assigned unique ID for this managed resource.
    notAfterTime Double
    Certificate expiring date.
    notBeforeTime Double
    Certificate effective start date.
    updateTime Double
    Certificate update time.
    certificateSource string
    Certificate source.
    createdTime number
    Certificate create time.
    deviceCertificateCn string
    Certificate common name.
    deviceCertificateSn string
    Equipment certificate serial number.
    id string
    The provider-assigned unique ID for this managed resource.
    notAfterTime number
    Certificate expiring date.
    notBeforeTime number
    Certificate effective start date.
    updateTime number
    Certificate update time.
    certificate_source str
    Certificate source.
    created_time float
    Certificate create time.
    device_certificate_cn str
    Certificate common name.
    device_certificate_sn str
    Equipment certificate serial number.
    id str
    The provider-assigned unique ID for this managed resource.
    not_after_time float
    Certificate expiring date.
    not_before_time float
    Certificate effective start date.
    update_time float
    Certificate update time.
    certificateSource String
    Certificate source.
    createdTime Number
    Certificate create time.
    deviceCertificateCn String
    Certificate common name.
    deviceCertificateSn String
    Equipment certificate serial number.
    id String
    The provider-assigned unique ID for this managed resource.
    notAfterTime Number
    Certificate expiring date.
    notBeforeTime Number
    Certificate effective start date.
    updateTime Number
    Certificate update time.

    Look up Existing MqttDeviceCertificate Resource

    Get an existing MqttDeviceCertificate 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?: MqttDeviceCertificateState, opts?: CustomResourceOptions): MqttDeviceCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ca_sn: Optional[str] = None,
            certificate_source: Optional[str] = None,
            client_id: Optional[str] = None,
            created_time: Optional[float] = None,
            device_certificate: Optional[str] = None,
            device_certificate_cn: Optional[str] = None,
            device_certificate_sn: Optional[str] = None,
            format: Optional[str] = None,
            instance_id: Optional[str] = None,
            mqtt_device_certificate_id: Optional[str] = None,
            not_after_time: Optional[float] = None,
            not_before_time: Optional[float] = None,
            status: Optional[str] = None,
            update_time: Optional[float] = None) -> MqttDeviceCertificate
    func GetMqttDeviceCertificate(ctx *Context, name string, id IDInput, state *MqttDeviceCertificateState, opts ...ResourceOption) (*MqttDeviceCertificate, error)
    public static MqttDeviceCertificate Get(string name, Input<string> id, MqttDeviceCertificateState? state, CustomResourceOptions? opts = null)
    public static MqttDeviceCertificate get(String name, Output<String> id, MqttDeviceCertificateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MqttDeviceCertificate    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:
    CaSn string
    Associated CA certificate SN.
    CertificateSource string
    Certificate source.
    ClientId string
    Client ID.
    CreatedTime double
    Certificate create time.
    DeviceCertificate string
    Device certificate.
    DeviceCertificateCn string
    Certificate common name.
    DeviceCertificateSn string
    Equipment certificate serial number.
    Format string
    Certificate format, Default is PEM.
    InstanceId string
    Instance ID.
    MqttDeviceCertificateId string
    ID of the resource.
    NotAfterTime double
    Certificate expiring date.
    NotBeforeTime double
    Certificate effective start date.
    Status string
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    UpdateTime double
    Certificate update time.
    CaSn string
    Associated CA certificate SN.
    CertificateSource string
    Certificate source.
    ClientId string
    Client ID.
    CreatedTime float64
    Certificate create time.
    DeviceCertificate string
    Device certificate.
    DeviceCertificateCn string
    Certificate common name.
    DeviceCertificateSn string
    Equipment certificate serial number.
    Format string
    Certificate format, Default is PEM.
    InstanceId string
    Instance ID.
    MqttDeviceCertificateId string
    ID of the resource.
    NotAfterTime float64
    Certificate expiring date.
    NotBeforeTime float64
    Certificate effective start date.
    Status string
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    UpdateTime float64
    Certificate update time.
    caSn String
    Associated CA certificate SN.
    certificateSource String
    Certificate source.
    clientId String
    Client ID.
    createdTime Double
    Certificate create time.
    deviceCertificate String
    Device certificate.
    deviceCertificateCn String
    Certificate common name.
    deviceCertificateSn String
    Equipment certificate serial number.
    format String
    Certificate format, Default is PEM.
    instanceId String
    Instance ID.
    mqttDeviceCertificateId String
    ID of the resource.
    notAfterTime Double
    Certificate expiring date.
    notBeforeTime Double
    Certificate effective start date.
    status String
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    updateTime Double
    Certificate update time.
    caSn string
    Associated CA certificate SN.
    certificateSource string
    Certificate source.
    clientId string
    Client ID.
    createdTime number
    Certificate create time.
    deviceCertificate string
    Device certificate.
    deviceCertificateCn string
    Certificate common name.
    deviceCertificateSn string
    Equipment certificate serial number.
    format string
    Certificate format, Default is PEM.
    instanceId string
    Instance ID.
    mqttDeviceCertificateId string
    ID of the resource.
    notAfterTime number
    Certificate expiring date.
    notBeforeTime number
    Certificate effective start date.
    status string
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    updateTime number
    Certificate update time.
    ca_sn str
    Associated CA certificate SN.
    certificate_source str
    Certificate source.
    client_id str
    Client ID.
    created_time float
    Certificate create time.
    device_certificate str
    Device certificate.
    device_certificate_cn str
    Certificate common name.
    device_certificate_sn str
    Equipment certificate serial number.
    format str
    Certificate format, Default is PEM.
    instance_id str
    Instance ID.
    mqtt_device_certificate_id str
    ID of the resource.
    not_after_time float
    Certificate expiring date.
    not_before_time float
    Certificate effective start date.
    status str
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    update_time float
    Certificate update time.
    caSn String
    Associated CA certificate SN.
    certificateSource String
    Certificate source.
    clientId String
    Client ID.
    createdTime Number
    Certificate create time.
    deviceCertificate String
    Device certificate.
    deviceCertificateCn String
    Certificate common name.
    deviceCertificateSn String
    Equipment certificate serial number.
    format String
    Certificate format, Default is PEM.
    instanceId String
    Instance ID.
    mqttDeviceCertificateId String
    ID of the resource.
    notAfterTime Number
    Certificate expiring date.
    notBeforeTime Number
    Certificate effective start date.
    status String
    Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
    updateTime Number
    Certificate update time.

    Import

    MQTT device certificate can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/mqttDeviceCertificate:MqttDeviceCertificate example mqtt-zxjwkr98#6d686fc972fc7660edc880fc7f490b95
    

    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.191 published on Friday, May 9, 2025 by tencentcloudstack