搜索看看
数据开放接口 / 获取主机MAC地址列表接口
(使用此接口需要升级到v3.5.0或以上版本)
1、示例,下面【2】是参数说明:
请求URL:http://localhost:9999/systemInfoOpen/agentHostMacInfoList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06", "hostname":"192.168.1.2" } 返回结果: { "msg":"", "code":"0", "data":[ { "macName":"WLAN", "hostname":"192.168.1.2", "macAddress":"30:03:c8:e3:40:59", "createTime":1621953760000, "id":"1397201508596056065" }, { "macName":"以太网", "hostname":"192.168.1.2", "macAddress":"30:03:c8:e3:40:59", "createTime":1621953760000, "id":"1397201508596056265" } ] }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,大小写均可", "hostname":"必填,主机ip,完全匹配" } 返回结果: { "msg":"错误信息,成功时候为空", "code":"0成功1错误", "data":[ { "macName":"网卡名称", "hostname":"主机IP", "macAddress":"mac地址", "createTime":"创建时间,毫秒", "id":"1397201508596056065" } ] }