调用本接口获取最近一次设备属性值。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetLastDevicePropertyValue | 要执行的操作,取值:GetLastDevicePropertyValue。 |
Version | String | 是 | 2022-01-01 | API的版本,取值:2022-01-01。 |
device_id | String | 是 | dv-2100053947-wqkrx@0000 | 要查询的设备ID。
|
module_identifier | String | 是 | default | 物模型模块标识符。 |
property_identifiers | Array of String | 否 | ["line_cross_diff","line_cross_out"] | 物模型自定义功能(即设备属性)标识符。 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
items | Array of Object | 设备属性值列表。 |
POST /?Action=GetLastDevicePropertyValue&Version=2022-01-01 HTTP/1.1 Host: open.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20250418T023718Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250418/cn-beijing/vei_api/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "device_id": "dv-2100053947-wqkrx@0000", "module_identifier": "default" }
{ "ResponseMetadata": { "RequestId": "20250418103742103190136118799C98", "Action": "GetLastDevicePropertyValue", "Version": "2022-01-01", "Service": "vei_api", "Region": "cn-beijing" }, "Result": { "items": [{ "value": "-169", "type": "int32", "time": 1713424782885, "identifier": "line_cross_diff" }, { "time": 1713424782885, "identifier": "line_cross_out", "value": "5746", "type": "int32" }] } }
您可访问公共错误码,获取更多错误码信息。