Call this operation to query the details of a specified product.
| Name | Type | Required | Sample Values | Description |
|---|---|---|---|---|
| Action | String | Yes | QueryProduct | System defined parameters. Value: QueryProduct. |
| ProductKey | String | Yes | A1BwAGV * * * * | Of the product ProductKey . |
Note: When calling an API, in addition to the API-specific request parameters described in this topic, you must also pass in the common request parameters. For more information about common request parameters, see Common parameters.
| Name | Type | Sample Values | Description |
|---|---|---|---|
| Code | String | Iot.system.SystemException | The error code returned when the call fails. For more information, see Error codes. |
| Data | Struct | The details of the product information returned when the call is successful. | |
| AliyunCommodityCode | String | Iothub_senior | Product type, which determines whether to use the object model function. Value:
|
| AuthType | String | Secret | The authentication method for devices under the product to access the IoT platform.
|
| CategoryKey | String | Lighting | The identifier of the category to which the product belongs. If the product uses the standard category model predefined by the IoT platform, this parameter is returned. |
| CategoryName | String | Street Lamp Lighting | The name of the category to which the product belongs. If the product uses the standard category model predefined by the IoT platform, this parameter is returned. |
| DataFormat | Integer | 1 | Type of data communication protocol between the device and the cloud. Value:
|
| Description | String | Intelligent street lamp | Product description. |
| DeviceCount | Integer | 0 | The number of devices under this product. |
| GmtCreate | Long | 1581595942000 | The creation time of the product. The millisecond timestamp. |
| ID2 | Boolean | False | Whether the product uses ID² authentication. Value:
|
| NetType | Integer | 3 | The networking mode of devices under the product. Value:
|
| NodeType | Integer | 0 | The node type of the product. Value:
|
| Owner | Boolean | True | Whether the caller is the owner of the product.
|
| ProductKey | String | A1T27vz * * * * | The ProductKey of the product. The globally unique identifier issued by IoT Platform for a product when it is created. |
| ProductName | String | Street lamp | The product name. |
| ProductSecret | String | U5tW7i44uilc * * * * | The product key. |
| ProductStatus | String | DEVELOPMENT_STATUS | The status of the product.
|
| ProtocolType | String | Modbus | The protocol type of the sub-device access gateway. The product node type is a parameter unique to the device to access the gateway. Value:
|
| ValidateType | Integer | 1 | Data validation level. Values available:
|
| ErrorMessage | String | System exception | Error information returned when the call fails. |
| RequestID | String | E4F94B97-1D64-4080-BFD2-67461667AA43 | The unique identifier generated by the request. |
| Success | Boolean | True | Whether the call was successful.
|
Request Example
curl 'https://endpoint/?Action=QueryProduct&SignatureNonce=e6a6df3e71314699a5dad599a5ab8d29&AccessKeyId=xMr9wgwXQLhv5AUa65o03mcD&SignatureMethod=HMAC-SHA1&Timestamp=2024-11-19T07%3A41%3A29Z&ProductKey=k1ymv1DuLfE&Signature=c8ba39PNDXFuPRIjypMJLu%2FusyE%3D'
Normal return example
{
"Data": {
"AliyunCommodityCode": "iothub_senior",
"AuthType": "secret",
"CategoryKey": "",
"CategoryName": "",
"DataFormat": 1,
"Description": "",
"DeviceCount": 1,
"GmtCreate": 1731858564256,
"Id2": false,
"NodeType": 0,
"Owner": true,
"ProductKey": "k1ymv1DuLfE",
"ProductName": "demo网关",
"ProductSecret": "",
"ProductStatus": "DEVELOPMENT_STATUS",
"ValidateType": 1
},
"RequestId": "665ab7d2-cdca-4b1b-bd6b-03d5cf7ca36b",
"Code": "",
"Success": true
}