/api/device/query

获取指定设备的详细信息

需要设备查看权限

接口原型

协议 HTTP/HTTPS GET
URL ip[:port]/api/device/query?sn=xxx
数据格式 响应消息:Content-Type: application/json

请求URL参数

参数 描述
sn 设备序列号。
global-config 设置为非零将在返回信息中提供全局默认配置信息

请求Cookies

名称 描述
mwcloud-sid 用于标识当前登录的字符串
mwcloud-uid 当前登录用户名

请求示例

GET /api/device/query?sn=B313220914001&global-config=1 HTTP/1.1
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;

响应参数

Response Header
参数 描述
Content-Type 取值为:'application/json; charset=UTF-8'
Response Body
参数 描述
result 返回码
dev 设备信息
global-config 根据请求参数决定是否存在该字段,参考设备连接全局配置信息

响应示例

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
    "dev": {
        "apply-date": 1693897360680,
        "catalog-id": 0,
        "config": null,
        "dev-type": 3330,
        "dev-warns": 0,
        "dir": 256,
        "firmware-ver": "2.3.43",
        "group-mask": 1,
        "hardware-ver": "B",
        "id": 12,
        "is-favorite": 1,
        "is-inherit": 1,
        "is-upload-file": 0,
        "module": 2,
        "module-name": "Ultra Encode AIO",
        "name": "Ultra Encode B313220914001s",
        "online-date": 0,
        "preview-id": "DEV-B313220914001",
        "private-id": 229751960,
        "pro-feature": {
            "input": "1920x1080p, 60.00 Hz"
        },
        "product-id": 787,
        "push-key": "[MGDEV]-B313220914001-6c688667",
        "reg-state": 101,
        "sn": "B313220914001",
        "status": {
            "cpu": [
                34,
                34,
                33,
                34,
                34,
                32,
                34,
                32,
                33,
                33,
                33,
                33,
                34,
                34,
                35,
                34,
                34,
                34,
                34,
                34,
                35,
                34,
                35,
                36
            ],
            "cur-status": 68,
            "eth": "10.10.15.204",
            "eth-rx": [
                395848,
                383768,
                399376,
                387616,
                378160,
                373432,
                384216,
                374376,
                372192,
                374968,
                367544,
                371136,
                351600,
                366376,
                379584,
                364200,
                369984,
                387728,
                396368,
                363656,
                377944,
                396136,
                358792,
                387280
            ],
            "eth-tx": [
                37252960,
                37706984,
                38076840,
                38175416,
                36072568,
                36460232,
                39068080,
                37346672,
                34519048,
                36830624,
                36450064,
                32677872,
                35244552,
                37260968,
                37131936,
                34399384,
                36390040,
                36939608,
                37210424,
                36673560,
                35731464,
                37829192,
                38068184,
                35767416
            ],
            "firmware-ver": "2.3.43",
            "hardware-ver": "B",
            "is-online": true,
            "mem": [
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57,
                57
            ],
            "mobile-rx": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "mobile-tx": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "module-name": "Ultra Encode AIO",
            "name": "Ultra Encode B313220914001s",
            "rndis": "",
            "up-time": 3955,
            "upgrade-status": {
                "percent": 0,
                "ret": 0,
                "step": 0
            },
            "wifi": "192.168.123.59",
            "wlan-rx": [
                11872,
                14192,
                14328,
                6128,
                0,
                5536,
                5536,
                7304,
                8768,
                27728,
                14208,
                8512,
                8768,
                14376,
                19944,
                15392,
                8176,
                10192,
                6144,
                24384,
                0,
                15736,
                9104,
                6128
            ],
            "wlan-tx": [
                30960,
                5536,
                2888,
                2888,
                21464,
                2888,
                2888,
                13480,
                10832,
                5576,
                5536,
                16128,
                16128,
                10832,
                5576,
                12112,
                9464,
                17408,
                2888,
                2888,
                5576,
                5536,
                2888,
                5536
            ]
        },
        "type": 257,
        "upload-file-pos": 0,
        "usr-mask": 0,
        "warns": 0
    },
    "global-config": {
        "input": {
            "protocol": 1,
            "stream-index": 0
        },
        "output": {
            "buffer-ms": 120,
            "protocol": 1
        }
    },
    "result": 0
}

与“”相关结果约

    找不到与“”相关的结果

    与“”相关结果约

      找不到与“”相关的结果