tencent cloud

APIs

DescribeDeviceCertificate

Download
聚焦模式
字号
最后更新时间: 2026-05-14 14:26:19

1. API Description

Domain name for API request: mqtt.intl.tencentcloudapi.com.

This API is used to query device certificate details.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeDeviceCertificate.
Version Yes String Common Params. The value used for this API: 2024-05-16.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
DeviceCertificateSn Yes String The SN serial number of the device certificate is used for unique identification of a device certificate.
InstanceId Yes String The instance ID of the TDMQ MQTT can be obtained from the DescribeInstanceList API or the console.

3. Output Parameters

Parameter Name Type Description
CreatedTime Integer Create time, millisecond-level timestamp.
UpdateTime Integer Last update time, millisecond-level timestamp.
NotAfterTime Integer Certificate expiration date, millisecond-level timestamp.
LastActivationTime Integer Last activation time, millisecond-level timestamp.
LastInactivationTime Integer Last deactivation time, millisecond-level timestamp.
Status String Device certificate status
ACTIVE: Activate
INACTIVE: Inactive
REVOKED: Revoked
PENDING_ACTIVATION: To be activated.
CaSn String Certificate serial number
DeviceCertificateSn String Certificate serial number of the device
DeviceCertificate String Device certificate content
DeviceCertificateCn String Device certificate common name
Format String Certificate format, currently only support PEM format
ClientId String Client ID.
CertificateSource String Certificate source
API: Manually register
JITP: Automatic registration
NotBeforeTime Integer Start of certificate effective time, millisecond-level timestamp.
OrganizationalUnit String Organization unit
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Example

This example shows you the example.

Input Example

POST / HTTP/1.1
Host: mqtt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeDeviceCertificate
<Common request parameters>

{
    "DeviceCertificateSn": "0eef68a582b94254296e54ce754f94d707a59911",
    "InstanceId": "mqtt-jbgwp4ae"
}

Output Example

{
    "Error": null,
    "RequestId": null,
    "Response": {
        "CaSn": "1b1e3bf3702110125887a3a721a7e66f05522513",
        "CertificateSource": "API",
        "ClientId": "client1",
        "CreatedTime": 1724050379000,
        "DeviceCertificate": "-----BEGIN CERTIFICATE-----\nMIIEQjCCAyqgAwIBAgIUDu9opYK5QlQpblTOdU+U1welmREwDQYJKoZIhvcNAQEL\n-----END CERTIFICATE-----\n",
        "DeviceCertificateCn": "mqtt-test.xxx.tencent.com",
        "DeviceCertificateSn": "0eef68a582b94254296e54ce754f94d707a59911",
        "OrganizationalUnit": "TencentCloud",
        "Format": "PEM",
        "LastActivationTime": 1724050378987,
        "LastInactivationTime": 0,
        "NotAfterTime": 1758185683000,
        "NotBeforeTime": 1714985683000,
        "RequestId": "1b5fc3fa-4bbf-421a-aad1-c45d49119a2c",
        "Status": "ACTIVE",
        "UpdateTime": 1724050379000
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈