Skip to content

设备网络信息查询接口

  • 功能:批量获取设备网络信息。
  • 请求路径:/v1/device/networkInfo
  • 请求方式:GET
  • 请求参数
名称类型必须描述
snListstring设备号,有多个设备号则用","分隔(最多支持查询100条)
  • 返回值
名称类型描述
snstring设备号
netTypestring网络类型
gatewaystring网关
localIpstring内网IP
publicIpstring公网IP
macstringMAC地址
natstringNAT名称
natTypeintNAT类型
httpStunstringSTUN
upnpIpstringUPNP IP
hasUpnpint是否开启UPNP,0未开启,1已开启
upnpGatewaystringUPNP 网关
pingLossstring丢包
pingRttstring极限带宽延时
retryRatestring极限带宽重传率
ipv6stringIPV6
hasIpv6intipv6状态0未开启1已开启
uploadstring上传
ispstring运营商
createTimestring检测时间

返回示例:

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
    }