Domain name for API request: iotcloud.tencentcloudapi.com.
This API is used to query device details.
A maximum of 20 requests can be initiated per second for this API.
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: DescribeDevice. |
Version | Yes | String | Common Params. The value used for this API: 2021-04-08. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
ProductId | Yes | String | Product ID |
DeviceName | Yes | String | Device name |
Parameter Name | Type | Description |
---|---|---|
DeviceName | String | Device name |
Online | Integer | Whether the device is online. 0 : offline; 1 : online |
LoginTime | Integer | Device login time |
Version | String | Device firmware version |
LastUpdateTime | Integer | Last updated time of the device |
DeviceCert | String | Device certificate |
DevicePsk | String | Device key |
Tags | Array of DeviceTag | Device attribute |
DeviceType | Integer | Device type |
Imei | String | International Mobile Equipment Identity (IMEI) |
Isp | Integer | ISP |
ConnIP | Integer | IP address |
NbiotDeviceID | String | Device ID at the NB-IoT ISP |
LoraDevEui | String | DevEUI of a LoRa device |
LoraMoteType | Integer | MoteType of a LoRa device |
LogLevel | Integer | SDK log level of the device Note: this field may return null , indicating that no valid value is obtained. |
FirstOnlineTime | Integer | The first time when the device went online Note: this field may return null , indicating that no valid value is obtained. |
LastOfflineTime | Integer | The last time when the device went offline Note: this field may return null , indicating that no valid value is obtained. |
CreateTime | Integer | Device creation time Note: this field may return null , indicating that no valid value is obtained. |
CertState | Integer | Whether the device certificate has been obtained. 0 : no; 1 : yesNote: this field may return null , indicating that no valid value is obtained. |
EnableState | Integer | Whether the device is enabled Note: this field may return null , indicating that no valid value is obtained. |
Labels | Array of DeviceLabel | Device tags Note: this field may return null , indicating that no valid value is obtained. |
ClientIP | String | IP address of the MQTT client Note: this field may return null , indicating that no valid value is obtained. |
FirmwareUpdateTime | Integer | Firmware update time of the device Note: this field may return null , indicating that no valid value is obtained. |
CreateUserId | Integer | Account ID of the creator Note: this field may return null , indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://iotcloud.tencentcloudapi.com/?Action=DescribeDevice
&ProductId=ABCDE12345
&DeviceName=abc
&<Common request parameters>
{
"Response": {
"EnableState": 1,
"LastOfflineTime": 1,
"Version": "xx",
"CertState": 1,
"Online": 1,
"FirmwareUpdateTime": 1,
"DeviceName": "xx",
"Tags": [
{
"Tag": "Key",
"Type": 1,
"Name": "Key",
"Value": "Key"
},
{
"Tag": "xx",
"Type": 1,
"Name": "xx",
"Value": "xx"
}
],
"LogLevel": 1,
"FirstOnlineTime": 1,
"DeviceCert": "xx",
"Imei": "Imei",
"ClientIP": "127.0.0.1",
"DevicePsk": "DevicePsk",
"Isp": 1,
"NbiotDeviceID": "123124",
"LoraDevEui": "xx",
"DeviceType": 1,
"RequestId": "xx",
"LoginTime": 1,
"ConnIP": 1,
"LastUpdateTime": 1,
"Labels": [
{
"Value": "xx",
"Key": "xx"
}
],
"CreateTime": 1,
"LoraMoteType": 1,
"CreateUserId": 0
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError | Internal error. |
InternalError.DBOperationError | An internal database error occurred. |
InvalidParameterValue | Invalid parameter value. |
ResourceNotFound.DeviceNotExist | The device does not exist. |
ResourceNotFound.ProductNotExist | The product does not exist. |
Was this page helpful?