Appearance
设备网络信息查询接口
- 功能:批量获取设备网络信息。
- 请求路径:/v1/device/networkInfo
- 请求方式:GET
- 请求参数:
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| snList | string | 是 | 设备号,有多个设备号则用","分隔(最多支持查询100条) |
- 返回值:
| 名称 | 类型 | 描述 |
|---|---|---|
| sn | string | 设备号 |
| netType | string | 网络类型 |
| gateway | string | 网关 |
| localIp | string | 内网IP |
| publicIp | string | 公网IP |
| mac | string | MAC地址 |
| nat | string | NAT名称 |
| natType | int | NAT类型 |
| httpStun | string | STUN |
| upnpIp | string | UPNP IP |
| hasUpnp | int | 是否开启UPNP,0未开启,1已开启 |
| upnpGateway | string | UPNP 网关 |
| pingLoss | string | 丢包 |
| pingRtt | string | 极限带宽延时 |
| retryRate | string | 极限带宽重传率 |
| ipv6 | string | IPV6 |
| hasIpv6 | int | ipv6状态0未开启1已开启 |
| upload | string | 上传 |
| isp | string | 运营商 |
| createTime | string | 检测时间 |
返回示例:
json
//正常请求:
{
"code": 0,
"message": "操作成功!",
"data": [
{
"sn": "xxx",
"netType": "Static",
"gateway": null,
"localIp": "192.168.1.11",
"publicIp": "111.111.11.111",
"mac": "d8:97:e0:7b:2a:f8",
"nat": " Symmetric",
"natType": 4,
"httpStun": "0",
"upnpIp": "111.225.44.185",
"hasUpnp": 1,
"upnpGateway": "192.168.2.1",
"pingLoss": "0.0",
"pingRtt": "0.0",
"retryRate": null,
"ipv6": "2408:832e:8b8:e490:da97:e0ff:fe7b:2af8",
"hasIpv6": 0,
"upload": "0.0",
"isp": "联通",
"createTime": "2024-12-19 14:12:25"
}
]
}json
//异常请求:
//http code 4xx/5xx
{
"code": 500,
"message": "签名失败",
"data": null
}