Skip to main content

query device list

eviewLess than 1 minuteloctube-api

query device list

url:/api/v1/device/_query
method:POST
produces:application/json
consumes:*/*
Note:query device list (Return up to 1000 records.)
Request Example:

{
  "terms":[
    {
      "column":"id",
      "termType":"eq",
      "value":"123456789012345"
    }
  ]
}

Status-200:
Response Params:

namedescriptiontypeschema
messagemessage contentstring
resultPagerResultDeviceInfoPagerResultDeviceInfo
pageIndexpage indexinteger(int32)
pageSizepage sizeinteger(int32)
totaltotal data countinteger(int32)
datadata listarrayDeviceInfo
iddevice idstring
namedevice namestring
productIdproduct idstring
productNameproduct namestring
statedevice device ,{value=notActive},{value=offline},string
registerTimeregister timeinteger
createTimecreate timeinteger
parentIdparent device idstring
statusstatus codeinteger(int32)integer(int32)
codebusiness codestring
timestampTimestamp (ms)integer(int64)integer(int64)

Response Example:

{
	"message": "",
	"result": {
		"pageIndex": 0,
		"pageSize": 0,
		"total": 0,
		"data": [
			{
				"id": "",
				"name": "",
				"productId": "",
				"productName": "",
				"state": "",
				"registerTime": 0,
				"createTime": 0,
				"parentId": ""
			}
		]
	},
	"status": 0,
	"code": "",
	"timestamp": 0
}