Home / Docs Center / Platform API / Query Device Info

Query Device Info

Platform API · Self-built Platform Integration

Project: Platform API | page_id: 59

Brief Description:

  • Device information: query all devices with pagination, or query a single device by id.

Request URL:
- [http://127.0.0.1/xstrive/product/list](http://127.0.0.1/xstrive/product/list)

Request Method:
- POST

Parameters:

Parameter Required Type Description
type Yes string Search type (id, "")
value Yes string Search value (idValue, "")
curPage Yes string Current page (starts from 1 by default)

Response Example

  {
    "list": [
        {
            "id": "productId",
            "status": 0,
            "isDisabled": true,
            "des": "",
            "addr": "http://productId.cloud.xstrive.com:9502",
            "createTime": "2019-08-23 16:52:54",
            "trafficIn": 0,
            "trafficOut": {},
            "lastStartTime": "2020-03-27 12:53:13",
            "lastCloseTime": "2020-03-27 12:53:17",
            "updateTime": "",
        }
    ],
    "total": 1,
    "size": 10,
  }

Response Parameter Description

Parameter Type Description
total int Total number of records
size int Maximum number of records per page
id string Device id
status int8 Device status 0 offline, 1 online
des string Device description
addr string Device remote access address
createTime string Device registration time
trafficIn string Device inbound traffic
trafficOut string Device outbound traffic
updateTime string Traffic update time
lastStartTime string Last start time
lastCloseTime string Last close time

Notes

  • To query a single device, use type == id, value = "device id"; for a list query, leave type and value as "".
Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.