Queries the desired property values of a specified device.


  • The desired values of read-only properties cannot be queried.
  • A maximum of 10 properties can be queried at a time.
  • Each Alibaba Cloud account can run a maximum of 50 queries per second (QPS).
    Note Resource Access Management (RAM) users of an Alibaba Cloud account share the quota of the account.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes QueryDeviceDesiredProperty

The operation that you want to perform. Set the value to QueryDeviceDesiredProperty.

IotInstanceId String No iot_instc_pu****_c*-v64********

The instance ID. This parameter is not required for public instances. However, this parameter is required for Enterprise Edition instances.

ProductKey String No a1BwAGV****

The key of the product to which the device belongs.

Note If you specify this parameter, you must also specify the DeviceName parameter.
DeviceName String No light

The name of the device.

Note If you specify this parameter, you must also specify the ProductKey parameter.
Identifier.N RepeatList No Temperature

The identifiers of properties that you want to query.

You can view the property identifiers in the IoT Platform console. Go to the Define Feature tab of the Product Details page.

  • A maximum of 10 identifiers can be specified in a single call.
  • The property identifiers must be unique.
  • If you do not specify this parameter, the desired values of all properties are returned.
IotId String No Q7uOhVRdZRRlDnTLv****00100

The ID of the device. The ID is the unique identifier that is issued by IoT Platform to the device.

Note If you specify this parameter, you do not need to specify the ProductKey or DeviceName parameter. The IotId parameter specifies a unique identifier for the device, and corresponds to a combination of the ProductKey and DeviceName parameters. If you specify the IotId parameter and a combination of the ProductKey and DeviceName parameters at the same time, the IotId parameter takes precedence.
FunctionBlockId String No BatteryModule

The identifier of a Thing Specification Language (TSL)-based custom module. Each identifier is unique in a product.

If you do not specify this parameter, the system queries the data of the default module.

In addition to the preceding operation-specific request parameters, you must specify common request parameters when you call this API operation. For more information, see Common request parameters.

Response parameters

Parameter Type Example Description
Code String iot.system.SystemException

The error code returned if the call fails. For more information, see Error codes.

Data Struct

The data returned if the call succeeds. For more information, see List.

List Array of DesiredPropertyInfo

The desired property information. For more information, see DesiredPropertyInfo.

DataType String int

The data type of the property.

Identifier String Temperature

The identifier of the property.

Name String airconditioning

The name of the property.

Time String 1579335899000

The time when the desired value of a property was modified. Unit: milliseconds.

Unit String °C

The unit of the property.

Value String 34

The desired value of the property.

Version Long 1

The version of the desired value.

ErrorMessage String A system exception has occurred.

The error message returned if the call fails.

RequestId String E55E50B7-40EE-4B6B-8BBE-D3ED55CCF565

The ID of the request.

Success Boolean true

Indicates whether the call succeeds.

  • true: The call succeeded.
  • false: The call failed.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

  "Data": {
    "List": {
      "DesiredPropertyInfo": [
          "Name": "Temperature", 
          "Value": "35", 
          "Time": "1581778567154", 
          "DataType": "float", 
          "Version": 1, 
          "Identifier": "Temperature", 
          "Unit": "°C"
  "RequestId": "F0B1F7C8-A799-44C3-BDF8-1B8F9E91E675", 
  "Success": true

Error codes

For a list of error codes, visit the API Error Center.