/api/device/query
Use this interface to obtain detailed information of a specified device.
Channel viewing permissions are required.
Prototype
Protocol | HTTP/HTTPS GET |
URL | ip[:port]/api/device/query?sn=xxx |
Content-Type | Response: Content-Type: application/json |
Request URL parameters
Parameter | Description |
---|---|
sn | Device serial number |
global-config | Setting to non-zero will provide global default configuration information in the returned information. |
Request Cookies
Parameter | Description |
---|---|
mwcloud-sid | A string that is used to identify current logged-in user. |
mwcloud-uid | Current logged-in username. |
Request Example
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 Parameters
Response Header
Parameter | Description |
---|---|
Content-Type | Value: 'application/json; charset=UTF-8' |
Response Body
Parameter | Description |
---|---|
result | Refer to Result Code |
dev | Refer to Device |
global-config | The presence of this field is determined by the request parameters. Refer to Device Connection Global Configuraions |
Response Example
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
}