@moshangxc
2018-12-06T10:25:25.000000Z
字数 55811
阅读 2158
接口文档##
标题
##
所有接口的请求地址统一为"goform/module"
set操作的接口返回统一为
{
//非列表操作
"请求的模块名称":0 //0表示成功,其他表示失败
}
所有的列表数据目前都增加了字段"ID"
请求
{
"getWanConnectStatus":"",
"getLanIpMask":"",
"getL2TPServer":"",
"getPPTPServer":"",
"getPppoes":"",
"getGuest":"",
"getQuickCfgWanUpperServerType":""
}
返回
"getWanConnectStatus":{
"portLink": "1,1,0,0,01",
"bLanguage":"en",
"status": [
{
"wanStatus": "unwired",
"wanError": "connected",
"connectTime": "01:09:20"
}
]
},
"getLanIpMask":{},
"getL2TPServer":{},
"getPPTPServer":{},
"getPppoes":{},
"getGuest":{},
"getQuickCfgWanUpperServerType":{
"upperServerType" : "static"
}
设置数据
//进入页面将联网方式设置为dhcp
"setQuickCfgNetwork":{
"wanType":"pppoe"
"wanIP":"",
"wanMask":"",
"wanGateway":"",
"wanDns1":"",
"wanDns2":"",
"wanUser":"tenda",
"wanPwd":"12345678",
"wanNum":1
},
"setQuickCfgPwd":{ // 暂时删除
"sysUserPassword":"xxxxxxx"
},
"setQuickCfgWifiAndLogin":{
"wifiSSID": "",
"wifiPassword": "",
"sysPassword": "",
"wifiSecurity": "psk2",
"bLanguage": "cn"
}
//返回
"setQuickCfgWifiAndLogin":{
"redirect": true //true:已设置联网信息,false未设置
}
{
"getAcountType":"",
"getWanNum":"",
"getLang":""
}
//返回
{
//获取账号类型
"getAcountType":{
"acountType":1 //1:系统管理员, 2:认证管理员
},
//获取WAN口数,考虑到有些页面只需要wan口数的信息,故添加
"getWanNum":{
"wanNum":1
}
}
"getLoginType":{
"bLanguage":"cn",
"theme": "tenda", //Tenda,Ip-com
"skipQuickset": false // 跳过快速设置
}
{
// 获取mesh对应的状态信息
"getMeshStatus":{
"status": true
},
// 设置登录密码
"setLoginPassword":{
"password":"xxxxxx",
"bLanguage":"cn"
}
}
{
// 获取工作模式
"getDeviceMode":{
"deviceMode": 1 // 1:Mesh(路由模式),2:单设备(AP模式), 3:Mesh(AP模式)
},
// 设置工作模式
"setDeviceMode":{
"deviceMode": 2
}
}
{
"auth":{
"bLanguage":"cn",
"password":""
}
}
请求
{
"getSystemStatus":"",//获取系统状态
"getNetWork":"",//获取WAN口速度信息
"getQosUserList":{//首页查询在线设备
"type":1, // 1:在线,2:离线,3:黑名单,空为查询所有数据
"limit":5 //查询前五条数据,不传则查所有数据
},
//点击路由器获取系统信息
"getSysInfo":"",
"getLanInfo":"",
"getWanInfo":"",
//end
//点击更多统计
"getQosUserList":{type:1},
"getWanFlow":""
//end
//点击在线设备
--//查询在线设备
"getQosUserList":{
"type":1 // 1:在线,2:离线,3:黑名单
},
--//查询黑名单
"getQosUserList":{
"type":3 // 1:在线,2:离线,3:黑名单
},
//end
//点击AP
"getOnlineAPList":""
//end
//点击WAN口上下行速度进行WAN口信息配置
"getWanIP":{
"ID":1
}
//获取WAN口联网状态
"getWanStatus":{
"ID":1
}
//获取很名单条数接口
"getBlackUserCount":""
}
返回
{ "getBlackUserCount":{
count:5
},
"getSystemStatus":{
"runTime":123213, //秒为单位
"onlineHostCount":5,
"onlineAPCount":3
},
// 获取AP在线设备
"getApUserList":[
{
"ID":1,
"hostName":"xxx",
"hostIP":"",
"hostMAC":"",
"hostConnectType":1,//联网方式 1:无线,2:有线,3:2.4G,4:5G
"relateSSID":"fff" //关联SSID
}
],
"getNetwork":[],
//首页查询在线设备
"getQosUserList":[
{
"ID":1,
"hostName":"xxx",
"hostIP":"",
"hostMAC":"",
"hostAuthType":"", //认证方式
"hostConnectType":1,//联网方式 1:无线,2:有线,3:2.4G,4:5G
"hostUploadSpeed":12, //上传速度
"hostDownloadSpeed":123, //下载速度
"onlineTime":123,//在线时长,以分钟为单位
"hostUploadLimit":0, //上传限制
"hostDownloadLimit":0 //下载限制
}
],
// 设备名称
"getDevName":{
"en": "xxxxx",
"cn": "微企一体化网关"
},
//点击路由器获取系统信息
"getSysInfo":{
"sysInfoRunTime": "1h56m32s",
"sysInfoSysTime": "2015-11-19 11:02:21",
"sysInfoSoftVersion": "V15.01.0.1(2345_702)",
"cpuUsePercent": 2,
"memoryUsePercent": 21
},
"getLanInfo":{
"lanIp":"xxx",
"lanMac":"xxx"
},
"getWanInfo":[
{
"ID":1,
"wanStatus": "wired",
"wanError": "usernamePwdError",
"wanType": "pppoe",
"wanIP": "192.168.98.224",
"wanMask": "255.255.255.255",
"wanGateway": "192.168.98.1",
"wanDns1": "192.168.108.107",
"wanDns2": "192.168.108.108",
"wanUpFlux": 500,
"wanDownFlux": 1500
}
],
//end
//点击更多统计
"getFLow":[
{
"ID": 1,
"flowIP": "192.168.0.121",
"flowMAC": "xxxx",
"flowName": "1xxx",
"flowConnectNum": 200,
"flowUpstream": 23.25,
"flowDownstream": 10.43,
"flowAllDownload":10.43
}
],
"getWanFlow":[
{
"FlowUpstream":8.50,
"FlowDownstream":12.50,
}
]
//end
//点击在线设备
--//查询在线设备返回
"getQosUserList":[
{
"ID":1,
"hostName":"xxx",
"hostRemark":"xxxx",
"hostIP":"",
"hostMAC":"",
"hostAuthType":"", //认证方式
"hostConnectType":1,//联网方式 1:有线,2:无线
"hostUploadSpeed":12, //上传速度
"hostDownloadSpeed":123, //下载速度
"hostUploadLimit":0, //上传限制
"hostDownloadLimit":0 //下载限制
}
]
--//查询黑名单
"getQosUserList":[
{
"ID":1,
"hostName":"xxx",
"hostMAC":""
}
]
//end
//点击AP
"getOnlineAPList":[
{
"apName": "W125AP",
"text": "000",
"macAddr": "00:22:22:11:11:23",
"ipAddr": "192.168.100.123",
"ssid": [],
"ssid_5g": [],
"clientNum": 12,
"clientNum_5g": 4
}
]
//end
//点击WAN口上下行速度进行WAN口信息配置
"getWanIP":{
"wanType":"static",
"wanIP":"192.168.27.11",
"wanMask":"255.255.255.0",
"wanGateway":"192.168.27.1",
"wanDns1":"192.168.1.1",
"wanDns2":"192.168.1.1"
}
//获取WAN口联网状态
"getWanStatus":{
"ID":1,
"wanStatus": "unwired",
"wanError": "disconnected",
}
}
设置数据
{
//WAN口信息配置
"setWanIP":{
"ID":1,
"wanType":"static",
"wanIP":"192.168.27.11",
"wanMask":"255.255.255.0",
"wanGateway":"192.168.27.1",
"wanDns1":"192.168.1.1",
"wanDns2":"192.168.1.1"
}
//在线设备
//禁止上网
"addBlack":{
"ID":1
},
//解除限制
"delBlack":{
"ID":1
}
//数据修改
//修改主机名称
"setQosUserList":{
"type":"edit",
"actionFlag":1,
"data":{
"ID":1,
"hostName":"XXXXX"
}
}
//修改上传限速
"setQosUserList":{
"type":"edit",
"actionFlag":2,
"data":{
"ID":1,
"hostUploadLimit":1,
"hostDownloadLimit":1
}
}
//修改下载限速(暂时删除)
"setQosUserList":{
"type":"edit",
"actionFlag":3,
"data":{
"ID":1,
"hostDownloadLimit":1
}
}
//批量修改上传限速和下载限速(暂时删除)
"setQosUserList":{
"type":"edit",
"actionFlag":4,
"data":[
{
"ID":1,
"hostDownloadLimit":1,
"hostUploadLimit":1
}
]
},
//全部限速
"setAllHostLimit":{
"hostDownloadLimit":1,
"hostUploadLimit":1,
"list":[],
"type":1 //1:在线,2:离线
}
//AP管理-修改备注
"setOnlineAPRemark":{
"macAddr":"xxxx",
"text":"CCCCC"
}
}
获取数据
{
"getWanData":"",
"getLanIpMask":"",
"getL2TPServer":"",
"getPPTPServer":"",
"getQvlan":"",
"getPppoes":"",
"getGuest":"",
"getNetwork":"",
"getStaticTemp":"",
"getWanConnectStatus":""
}
返回
{
"getWanData":{},
"getLanIpMask":{},
"getL2TPServer":{},
"getPPTPServer":{},
"getQvlan":{},
"getPppoes":{},
"getGuest":{},
"getNetwork":[{
"ID":0,
"wanType": "dhcp",
"wanStatus": "wired",
"wanError": "connected",
"wanUpFlux": 10.0,
"wanDownFlux": 10.0,
"wanISP": "0",
"wanDns1":"192.168.6.2",
"wanDns2":"",
"wanError":"disconnected",
"wanGateway":"192.168.6.1",
"wanIP":"192.168.6.12",
"wanL2tpDns1":"192.168.5.2",
"wanL2tpDns2":"",
"wanL2tpGateway":"192.168.5.1",
"wanL2tpIP":"192.168.5.12",
"wanL2tpIPType":"manual",
"wanL2tpMask":"255.255.255.0",
"wanL2tpPwd":"hahaha",
"wanL2tpServerAddr":"192.168.5.6",
"wanL2tpUser":"dapeipeia",
"wanMask":"255.255.255.0",
"wanPppoeDns1":"192.168.2.2",
"wanPppoeDns2":"",
"wanPppoeGateway":"192.16826.1",
"wanPppoeIP":"192.168.2.12",
"wanPppoeIPType":"auto",
"wanPppoeMask":"255.255.255.0",
"wanPppoePwd":"hahaha",
"wanPppoeServer":"192.168.2.4",
"wanPppoeService":"sssss",
"wanPppoeUser":"dapei",
"wanPptpDns1":"192.168.3.2",
"wanPptpDns2":"",
"wanPptpGateway":"192.168.3.1",
"wanPptpIP":"192.168.3.12",
"wanPptpIPType":"manual",
"wanPptpMask":"255.255.255.0",
"wanPptpPwd":"hahaha",
"wanPptpServerAddr":"192.168.3.6",
"wanPptpUser":"dapeipei",
"wanPwd":"hahaha",
"wanServer":"192.168.2.4",
"wanService":"tttttt",
"wanUser":"da"
}],
"getWanConnectStatus":{
"portLink": "1,1,0,0,1",
"status": [
{
"ID":0,
"wanStatus": "wired",
"wanError": "connected",
"connectTime": "01:09:20"
},
{
"ID":1,
"wanStatus": "unwired",
"wanError": "disconnected",
"connectTime": "00:00:00"
}
]
}
}
设置数据
{
"setNetwork":{
"wanNum":2,
"wanList":[
{
"ID":0,
"wanType":"static",
"wanIP":"192.168.27.11",
"wanMask":"255.255.255.0",
"wanGateway":"192.168.27.1",
"wanDns1":"192.168.1.1",
"wanDns2":"192.168.1.1"
},
{
"ID":1,
"wanType":"pppoe",
"wanUser":"tenda",
"wanPwd":"12345678"
}
]
}
}
公共获取数据
请求
{
"getTimeGroupList":"",
"getIPGroupList":"",
"getQosPolicy":""
}
返回
{
"getTimeGroupList":[],
"getIPGroupList":[],
"getQosPolicy":{
"qosPolicy":1 //取值为四个:1:不限速,2:自定义限速,3:自动分配网速,4:分组限速
}
}
获取数据
无
设置数据
{
"setQosPolicy":{
"qosPolicy":1
}
}
获取数据
请求
{
//查询在线设备
"getQosUserList":{
"type":1, // 1:在线,2:离线,3:黑名单
}
//查询离线设备
"getQosUserList":{
"type":2
}
}
返回
{
//查询在线设备返回
"getQosUserList":[
{
"ID":1,
"hostName":"xxx",
"hostIP":"",
"hostMAC":"",
"hostAuthType":"", //认证方式
"hostConnectType":1,//联网方式 1:无线,2:有线,3:2.4G,4:5G
"hostDownloadSum":123,// 下载总流量 KB为单位
"hostConnectCount":1231,//连接数
"hostUploadSpeed":12, //上传速度
"hostDownloadSpeed":123, //下载速度
"hostUploadLimit":0, //上传限制
"hostDownloadLimit":0 //下载限制
}
]
//查询离线设备返回
"getQosUserList":[
{
"ID":1,
"hostName":"xxx",
"hostMAC":"",
"hostRemark":"xxxx",
"hostDownloadSum":123,// 下载总流量 KB为单位
"hostOffLineTime":"xxxx 12:12", //离线时间
"hostUploadLimit":0, //上传限制
"hostDownloadLimit":0 //下载限制
}
]
}
设置数据,点击保存
{
"setQosPolicy":{
"qosPolicy":2
},
"setQosUserList":{
"type":"edit",
"actionFlag":"5", //保存在线数据
"data":[
{
"ID":1,
"hostName":"XXXX",
"hostUploadLimit":0,
"hostDownloadLimit":0
}
]
},
//保存离线线数据
"setQosUserList":{
"type":"edit",
"actionFlag":"6",
"data":[
{
"ID":1,
"hostName":"XXXX",
"hostUploadLimit":0,
"hostDownloadLimit":0
}
]
}
}
获取数据,请求
{
"getWanAutoSpeed":""
}
返回
{
"getWanAutoSpeed":[
{
"ID":1,
"wanDownstream":100,
"wanUpstream":100
},
{
"ID":2,
"wanDownstream":100,
"wanUpstream":100
}
]
}
设置数据,点击确定
{
"setQosPolicy":{
"qosPolicy":3
},
"setWanAutoSpeed":[
{
"ID":1,
"wanDownstream":10,
"wanUpstream":100
},
{
"ID":2,
"wanDownstream":20,
"wanUpstream":100
}
]
}
获取数据请求
{
"getQosGroupList":""
}
返回
{
"getQosGroupList":[
{
"ID":1,
"qosListIPGroupRemark": "DeFaULt~SegMeNT",
"qosListTimeGroupRemark": "工作时间",
"qosListConnecttedNum": 300,
"qosListMode": "private",
"qosListUpstream": 35,
"qosListDownstream": 100,
"qosListEn": true
}
]
}
设置数据
{
//保存
"setQosPolicy":{
"qosPolicy":4
},
//新增
"setQosGroupList":{
"type":"add",
"data":{
"qosListIPGroupRemark": "DeFaULt~SegMeNT",
"qosListTimeGroupRemark": "工作时间",
"qosListConnecttedNum": 300,
"qosListMode": "private",
"qosListUpstream": 35,
"qosListDownstream": 100
}
},
//生效开关
"setQosGroupList":{
"type":"switch",
"data":{
"ID":1,
"qosListEn": true
}
},
//修改
"setQosGroupList":{
"type":"edit",
"data":{
"ID":1,
"qosListIPGroupRemark": "DeFaULt~SegMeNT",
"qosListTimeGroupRemark": "工作时间",
"qosListConnecttedNum": "300",
"qosListMode": "private",
"qosListUpstream": "35",
"qosListDownstream": "100"
}
},
//删除
"setQosGroupList":{
"type":"delete",
"data":[1, 2, 3]
}
}
获取是否需要隐藏网速控制模块
{
"getHideModules":{
"qosHide":true
}
}
获取数据,请求
{
"getWebAuthBasic":"",
"getWebAuthAnnouncement":"",
"getMailVarifyCode":""
}
返回
{
"getWebAuthBasic":{
"hotelModeEn": false,
"pppoeServerEn": false,
"cloudManageEn": false,
"wewifiEn":false,
"webAuthEn": false,
"webAuthTimeOut":30,
"webAuthTitle": "Tenda欢迎您",
"webAuthContent": "yyyy",
"logoExist" : false,
"picExist1": true,
"redirectType": 1,
"redirectUrl": "www.baidu.com",
"webAuthType":2
//邮箱认证
"maxUser": 3,
"emailAccount": "xxx",
"emailPassword": "xxx",
"SMTPServer": "xxx",
"SSL": true,
"SMTPPort": 25,
"testAccount": "xxxxxxx",
"emailContent": ""
},
"getWebAuthAnnouncement":{
"webAuthTitle":"354435739857394565gfjh",
"webAuthContent": "百度尊重并保护所有",
"logoExist": true,
"picExist1": true,
"redirectType": 1,
"webAuthType":1,
"redirectUrl": "http://www.baidu.com"
},
// WEB认证新增功能(认证网络选择)的接口:
{
"getWebAuthPort": [
{
"type": "wired", // wired/wireless
"name": "LAN1", // 显示名称
"enable": true/false, //是否开启了认证
},
]
}
//获取邮箱验证码
"getMailVarifyCode":{
"emailAccount":"xxx"
}
// 返回
"getMailVarifyCode":{
"emailAccount":"xxx"
}
}
设置数据
{
"setWebAuthBasic":{
"webAuthEn":true,
"webAuthType":2,
"webAuthTimeOut":30,
"webAuthTitle":"Tenda欢迎您",
"webAuthContent":"yyyy",
"redirectType":1,
"redirectUrl":
},
//删除图片
"delWebAuthPic":{
"picName":"webAuthPic1"
}
}
//验证邮箱账号
{
"testEmail":{
"testAccount": "xxxx"
}
}
//认证上网
{
"portalAuth":{
"redirectType": 2,
"redirectUrl":"www.baidu.com",
"webAuthRet":"",
//以下用于短信认证
"phoneNumber":"",
"varifyCode":"",
//以下用邮箱认证
"emailAccount":"",
"emailCode":""
}
}
//返回
{
"portalAuth": {
"webAuthRet":"success" /*认证成功*/
}
或 // "infoError", /*认证账号或密码错误*/
// "accountDisabled", /*认证账号未启用*/
// "timeOut" /*认证超时*/
// "overLogin", /*超过最大限制用户数*/
// "macUsed", /*本机已认证过,不需要重新认证*/
// "accountUsed" /*账号已使用-对应max_login=1*/
}
//WEB认证新增功能(认证网络选择)的接口:
{
"setWebAuthPort": [
{
"type": "wired", // wired/wireless
"name": "Tenda-SSID", // 显示名称
},
]
}
// WEB认证新增功能(认证网络选择)的接口:只回传选中的数据
{
"setWebAuthPort": [
{
"type": "wired", // wired/wireless
"name": "LAN1" // 显示名称
},
]
}
获取数据,请求
{
"getWewifiInfo":"",
"getWewifiFocusInfo":"",
"getWewifiPort":"",
"getWewifiPortalCfg":"" //iframe
}
返回
{
"getWewifiInfo":{
"wewifiPCPassEn":true,
"apclientEn": false,
"hotelModeEn": false,
"pppoeServerEn": false,
"cloudManageEn": false,
"webAuthEn": false,
"wewifiEn": false,
"wewifiOnlineTime": 24,
"wewifiAppId": "",
"wewifiSsid": "",
"wewifiShopId": "",
"wewifiSecretKey": "",
"shopName": "SSSS",
"picShowTime": 2,
"picExit1": true,
"picExit2": true,
"picExit3": false,
"picLink1": "",
"picLink2": "",
"picLink3": "",
"wewifiAuthUrl": "http://192.168.244.244/goform/PortalAuth?portalAuthType=wewifi",
"wewifiUserMac": "fc:4d:d4:f8:71:cd",
"wewifiExtendInfo": "ZmM6NGQ6ZDQ6Zjg6NzE6Y2Qtd2V3aWZpVjMuMA=="
},
//微信强制关注
"getWewifiFocusInfo":{
"wewifiEn":true,
"focusEn":true , //强制关注
"hasQR":true , //是否上传过二维码
"finishUrl":"http://www.fdsafdsa.safdsag.fdsafdsa/fdsafdsa", //完成URL
"replyUrl":"http://www.fdsafdsa.safdsag.fdsafdsa/fdsafdsa" //回复URL
},
"getWewifiPortalCfg":{
"wewifiPCPassEn":true,
"shopName": "ssss",
"picShowTime": 2,
"picExit1": true,
"picExit2": true,
"picExit3": true,
"picLink1": "",
"picLink2": "",
"picLink3": "",
"wewifiSsid": "",
"wewifiShopId": "",
"wewifiAppId": "",
"wewifiSecretKey": "",
"wewifiOnlineTime": 120,
"wewifiAuthUrl": "http://192.168.244.244/goform/PortalAuth?portalAuthType=wewifi",
"wewifiUserMac": "fc:4d:d4:f8:71:cd",
"wewifiExtendInfo": "ZmM6NGQ6ZDQ6Zjg6NzE6Y2Qtd2V3aWZpVjMuMA=="
},
"getWewifiPort": [
{
"type": "wired", // wired/wireless
"name": "LAN1", // 显示名称
"enable": true/false, //是否开启了认证
},
]
}
设置数据
{
"setWewifiInfo":{
"wewifiEn":true,
"wewifiOnlineTime":24,
"wewifiSsid":"sdfsdf",
"wewifiShopId":"sdfsfsdf",
"wewifiAppId":"sdfsdfdsf",
"wewifiSecretKey":"sdfsafaf",
"shopName":"ssss",
"picShowTime":2,
"picLink1":"",
"picLink2":"",
"picLink3":"",
},
"setWewifiFocusInfo":{
"focusEn":true
},
"delWewifiPic":{
"picName":"wewifipic1"
},
"PortalAuth":{
"portalAuthType": "wewifi_temppass"
},
//上传公众号二维码:按照M50的格式
/cgi-bin/uploadQRPic
"setWewifiPort": [
{
"type": "wired", // wired/wireless
"name": "Tenda-SSID", // 显示名称
},
]
}
获取数据,请求
{
"getWanData":"",
"getLanIpMask":"",
"getL2TPServer":"",
"getPPTPServer":"",
"getQvlan":"",
"getPppoes":"",
"getGuest":"",
"getPreTimeoutNotify":"",//账号到期前提醒
"getTimeoutNotify":"",
"getPPPoEServerBasicInfo":""
}
返回
{
"getWanData":{},
"getLanIpMask":{},
"getL2TPServer":{},
"getPPTPServer":{},
"getQvlan":{},
"getPppoes":{},
"getGuest":{},
"getPreTimeoutNotify":{
"preTimeoutTitle": "您的时间快要到期了",
"preTimeoutContent": "为了不影响您的\n正常上网,请及时续费!"
},
"getTimeoutNotify":{
"timeoutTitle": "您的时间已到期了",
"timeoutContent": "为了不影响您的\n正常上网,请及时续费!"
},
"getPPPoEServerBasicInfo":{
"hotelModeEn": false,
"webAuthServerEn": false,
"cloudManageEn": false,
"wewifiEn":false,
"pppoeServer": {
"pppoeServerEn": true,
"pppoeServerIP": "192.168.7.1",
"pppoeServerStartIP": "192.168.7.3",
"pppoeServerEndIP": "192.168.7.254",
"pppoeServeNotifyTime": 3,
"pppoeServerDns1": "192.168.0.1",
"pppoeServerDns2": "192.168.0.1"
}
}
}
设置数据
{
"setPPPoEServerBasicInfo":{
"pppoeServerEn":true,
"pppoeServerIP":"192.168.8.1",
"pppoeServerStartIP":"192.168.7.3",
"pppoeServerEndIP":"192.168.7.254",
"pppoeServerDns1":"192.168.0.1",
"pppoeServerDns2":"192.168.0.1",
"pppoeServeNotifyTime":3
},,
"setPreTimeoutNotify":{
"preTimeoutTitle":"您的时间快要到期了",
"preTimeoutContent":"为了不影响您的"
},
"setTimeoutNotify":{
"timeoutTitle": "您的时间已到期了",
"timeoutContent": "为了不影响您的\n正常上网,请及时续费!"
}
}
获取数据,请求
{
//不需要认证主机
"getAuthWhiteUserList":"",
"getAuthUserList":""
}
返回
{
"getAuthWhiteUserList":[
{
"ID":1,
"authWhiteUserName":"",
"authWhiteUserType":1,//1:IP,2:MAC,3:主机名 *_*
"authWhiteUserNote":""
}
],
"getAuthUserList":[
{
"ID":1,
"authUserEn":true, //生效开关
"authUserID":"692048", //账号
"authUserOn":true, //是否在线
"authUserPwd":"password1", //密码
"authUserRemark":"usernamehr", //备注
"authUserValidPeriod":"2017-7-28", //有效时长
"authUserValidPeriodType": 1,//1:永不过期,2:包时间,3:包日期 *_*
"hasTimeout":true, //是否过期
"authUserMaxCount": 1,//*_*
"authUserConnectCount": 300,
"uploadSpeed": 12,
"downLoadSpeed": 12
}
]
}
设置数据
{
"setAuthWhiteUserList":{
"type":"add",
"data":{
"authWhiteUserName":"",
"authWhiteUserType":"",
"authWhiteUserNote":""
}
}
"setAuthWhiteUserList":{
"type":"edit",
"data":{
"ID":1,
"authWhiteUserName":"",
"authWhiteUserType":"",
"authWhiteUserNote":""
}
}
"setAuthWhiteUserList":{
"type":"delete",
"data":[1,2,3]
}
//新增
"setAuthUserList":{
"type":"add",
"data":{
"authUserID":"692048", //账号
"authUserPwd":"password1", //密码
"authUserRemark":"usernamehr", //备注
"authUserValidPeriod":"", //有效时长
"authUserValidPeriodType":1,
"authUserMaxCount":1,
"authUserConnectCount":300,
"uploadSpeed":12,
"downLoadSpeed"12
}
}
//生效开关
"setAuthUserList":{
"type":"switch",
"data":{
"ID":1,
"authUserEn":true //生效开关
}
}
//修改
"setAuthUserList":{
"type":"edit",
"data":{
"ID":1,
"authUserID":"692048", //账号
"authUserPwd":"password1", //密码
"authUserRemark":"usernamehr", //备注
"authUserValidPeriod":"", //有效时长
"authUserValidPeriodType":2,
"authUserMaxCount":1,
"authUserConnectCount":300,
"uploadSpeed":12,
"downLoadSpeed"12
}
}
//删除
"setAuthUserList":{
"type":"delete",
"data":[1]
}
//导出数据
{
/goform/DownloadAuthUserCfg/auth_user.csv
}
//导入数据
{
/cgi-bin/UploadAuthUserCfg
}
}
获取数据,请求
{
"getAcManage":"",
"getSsidList":""
}
返回
{
"getAcManage":{
"acManageEn":true
},
"getSsidList":[
{
"ID":0,
"auth_mode": 0,//加密方式
"freq_range": 0,//频段
"hide_ssid_en": false, //隐藏SSID
"password": "111111111",//无线密码密码
"ssid": "Tenda_AP_1",//无线网络名称
"status": true, //开关
"user_islo_en": false,//客户端隔离
"user_max": 12, //最大连接用户数
"vlan_id": 66//VLANID
}
]
}
设置数据
修改数据
{
//开关切换
"setAcManage":{
"acManageEn":false,
},
//更多设置
"setSsidListMore":{
"ID":0,
"user_islo_en":false,
"hide_ssid_en":true,
"user_max":12,
"vlan_id": 66
},
//点击确定保存数据
"setSsidList":{
"type":"edit",
"data":[{
"ID":0,
"auth_mode": 1,//加密方式
"freq_range": 0,//频段
"password": "111111111",//密码
"ssid": "Tenda_AP_1",//无线网络名称
"status":true,
}]
}
//启用开关(暂时去除)
"setSsidList":{
"type":"switch",
"data":{
"ID":0,
"status": true, //开关
}
}
}
获取数据,请求
{
"getAPList":""
}
返回
{
"getAPList":[
{
"ID":1,
"apName": "W125AP",
"text": "000",
"software_vertion":"1.2.0",
"macAddr": "00:22:22:11:11:23",
"ipAddr": "192.168.100.123",
"currentststus": 0,
"clientNum": "0/12",
"clientNum_5g": "0/44",
"rfNum": 1,
"power": 12,
"power_5g": 23,
"real_channel": 0,
"real_channel_5g": 144
}
]
}
获取单条AP的详细信息
{
"getAPListDetail":{
"macAddr": "",
}
}
返回
{
"getAPListDetail":{
"macAddr": "00:22:22:11:11:34",
"ssidEn": "1,1,0,0,1,0,0,0",
"ssidShow": "1,1,1,1,1,1,1,1,1,1,1,1",
"ssidEn_5g": "1,0,0,0",
"country": "BR",
"country_5g": "CN",
"netMode": 3,
"netMode_5g": 0,
"bandwidth": 1,
"bandwidth_5g": "0",
"channel": 3,
"channel_5g": 40,
"power": 20,
"power_5g": 0,
"rssi": 90,
"rssi_5g": 0,
"apsdEn": true,
"apsdEn_5g": false,
"precedence_5g": 1,
"timeout": 15,
"timeout_5g": 10
}
},
"getChannel":{
"channel":[0, 1,2,3,4,5,6,7,8,9,10,11,12,13]//2.4g无线信道选项 0为自动
"channel_5g":{
"20": [0, 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165],
"40": ["0", "36", "40", "44", "48", "52", "56", "60", "64", "100", "104", "108", "112", "120", "128", "132", "136", "140", "149", "153", "157", "161"],
"80": [0, 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 132, 136, 140, 144, 149, 153, 157, 161]
}
}
设置数据
{
"setAPList":{
"type":"edit",
"data":[
{
"macAddr": "1",
"text":"newText"
}
]
}
}
{
"setAPList":{
"type":"delete",
"data":["00:12:...."]
}
}
设置单条数据
{
"setAPCfg":{
"macAddr": "00:22:22:11:11:34",
"country": "BR",
"country_5g": "CN",
"netMode": 3,
"netMode_5g": 0,
"bandwidth": 1,
"bandwidth_5g": 0,
"channel": 3,
"channel_5g": 40,
"power": 20,
"power_5g": 0,
"rssi": 90,
"rssi_5g": 0,
"apsdEn": true,
"apsdEn_5g": false,
"precedence_5g": 1,
"timeout": 15,
"timeout_5g": 10
}
}
导出
{
"handleWtpInfo":{
"language":"cn"
"type":"ap"
}
}
重启
{
"rebootWtp":{
"macAddr":["macAddress"]
}
}
升级
{
"getACMemoState":""
}
复位
{
"restoreWtp":{
"macAddr":["macAddress"]
}
}
获取数据,请求
{
"getWLAdvance":""
}
返回
{
"getWLAdvance":{
"rf_net_mode": 1,
"rf_band": 1,
"rf_channel": 6,
"rf_power": 22,
"rf_rssi": 70,
"rf_age_time": 5,
"rf_wind_sched": 1,
"rf_ssid_islo": false,
"rf_transmission":true,
"rf_wmm": true,
"deploy":1,
"rf_net_mode_5g": 1,
"rf_band_5g": 1,
"rf_channel_5g": 40,
"rf_power_5g": 20,
"rf_wind_sched_5g": 0,
"rf_age_time_5g": 5,
"rf_rssi_5g": 70,
"rf_wmm_5g": true,
"gl_driver_level":1,
"gl_led_en":1,
"gl_vlan_en": true,
"gl_vlan_id": 22,
"gl_pvid": 2,
"gl_trunk": "1;1",
"gl_vindicate_type":0,
"gl_vindicate_time_point": 125, //分钟为单位
"gl_vindicate_week": "1,0,1,0,1,0,1",
"gl_vindicate_time_period": 1 //天为单位
}
}
设置数据
{
{
"setWLAdvance":{//保存
"rf_net_mode": 1,
"rf_band": 1,
"rf_channel": 6,
"rf_power": 22,
"rf_rssi": 70,
"rf_age_time": 5,
"rf_wind_sched": 1,
"rf_ssid_islo": false,
"rf_transmission":true,
"rf_wmm": true,
"deploy":1,
"rf_net_mode_5g": 1,
"rf_band_5g": 1,
"rf_channel_5g": 40,
"rf_power_5g": 20,
"rf_wind_sched_5g": 0,
"rf_age_time_5g": 5,
"rf_rssi_5g": 70,
"rf_wmm_5g": true,
"gl_driver_level":1,
"gl_led_en":1,
"gl_vlan_en": true,
"gl_vlan_id": 22,
"gl_pvid": 2,
"gl_trunk": "1;1",
"gl_vindicate_type":0,
"gl_vindicate_time_point": 125, //分钟为单位
"gl_vindicate_week": "1,0,1,0,1,0,1",
"gl_vindicate_time_period": 1 //天为单位
}
}
}
获取数据,请求
{
"getIPGroupList":"", //获取IP组
"getTimeGroupList":"", //获取时间组
"getLanIpMask":""
}
返回
{
"getLanIpMask":{
"lanIP": "192.168.0.1",
"lanMask": "255.255.255.0"
},
"getIPGroupList":[
{
"ID":1,
"IPGroupName": "allWifiGuest",
"IPGroupStartIP": "192.168.10.10",
"IPGroupEndIP": "192.168.10.20",
"IPGroupRefer": 0,
"IPGroupDefaultTag":true
}
],
"getTimeGroupList":[
{
"ID":1,
"timeGroupName": "工作日",
"timeGroupStartHour": 0,
"timeGroupStartMinute": 0,
"timeGroupEndHour": 23,
"timeGroupEndMinute": 59,
"timeGroupWeekday": "1111111",//通过该值判断是否全选
"timeGroupRefer": 1
}
]
}
设置数据
时间组
{
//新增
"setTimeGroupList":{
"type":"add",
"data":{
"timeGroupName":"KD",
"timeGroupStartHour":1,
"timeGroupStartMinute":10,
"timeGroupEndHour":12,
"timeGroupEndMinute":12,
"timeGroupWeekday":"1111111"
}
},
//修改
"setTimeGroupList":{
"type":"edit",
"data":{
"ID":1,
"timeGroupName":"工作日",
"timeGroupStartHour":0,
"timeGroupStartMinute":0,
"timeGroupEndHour":23,
"timeGroupEndMinute":59,
"timeGroupWeekday":"1111111"
}
}
//删除
"setTimeGroupList":{
"type":"delete",
"data":[1, 3, 6]
}
}
IP组
{
//新增
"setIPGroupList":{
"type":"add",
"data":{
"IPGroupName":"KD_IP",
"IPGroupStartIP":"192.168.1.1",
"IPGroupEndIP":"192.168.1.2"
}
}
//修改
"setIPGroupList":{
"type":"edit",
"data":{
"ID":1,
"IPGroupName":"KD_IP",
"IPGroupStartIP":"192.168.1.1",
"IPGroupEndIP":"192.168.1.2"
}
}
//删除
"setIPGroupList":{
"type":"delete",
"data":[1, 2]
}
}
获取数据,请求
{
"getMacFilter":"",
"getTimeGroupList":"",
"getMacFilterRules":""
}
返回
{
"getMacFilter":{
"macFilterEn": true,
"macFilterDefaultPolicy": true
},
"getTimeGroupList":[{
"ID":1,
"timeGroupName": "工作日",
"timeGroupStartHour": 0,
"timeGroupStartMinute": 0,
"timeGroupEndHour": 23,
"timeGroupEndMinute": 59,
"timeGroupWeekday": "1111111",//通过该值判断是否全选
"timeGroupRefer": 1
}],
"getMacFilterRules":[{
"ID":1,
"macFilterRuleMode": "black",
"macFilterRuleMac": "C8:3A:35:C8:C8:C8",
"timeGroupName": "工作日",
"macFilterRuleDesc": "macFilter remark",
"macFilterRuleEn": true
}]
}
设置数据
{
//点击确定按钮
"setMacFilter":{
"macFilterEn":true,
"macFilterDefaultPolicy":true
},
"setMacFilterRules":{
"type":"add",
"data":{
"macFilterRuleMode":"black",
"timeGroupName":"上班时间",
"macFilterRuleMac":"C8:3A:35:C8:C8:C1",
"macFilterRuleDesc":"sfdfsdf"
}
},
//设置生效开关
"setMacFilterRules":{
"type":"switch",
"data":{
"ID":1,
"macFilterRuleEn":false
}
}
//修改
"setMacFilterRules":{
"type":"edit",
"data":{
"ID":1,
"macFilterRuleMode":"black"
"timeGroupName":"工作日"
"macFilterRuleMac":"C8:3A:35:C8:C8:C8"
"macFilterRuleDesc":"macFilter remark"
}
}
//删除
"setMacFilterRules":{
"type":"delete",
"data":[1,2,3]
}
}
获取数据,请求
{
"getIpFilter":"",
"getIPGroupList":"",
"getTimeGroupList":"",
"getIpFilterRules":""
}
返回
{
"getIpFilter":{
"ipFilterEn": true,
"ipFilterDefaultPolicy": true
},
"getIPGroupList":[
{
"IPGroupName": "allWifiGuest",
"IPGroupRefer": 0,
"IPGroupDefaultTag":true
},{
"IPGroupName": "LaN~DefAUlt$GrOuP",
"IPGroupRefer": 1,
"IPGroupDefaultTag":true
}
],
"getTimeGroupList":[{
"ID":1,
"timeGroupName": "工作日",
"timeGroupStartHour": 0,
"timeGroupStartMinute": 0,
"timeGroupEndHour": 23,
"timeGroupEndMinute": 59,
"timeGroupWeekday": "1111111",//通过该值判断是否全选
"timeGroupRefer": 1
}],
"getIpFilterRules":[{
"ID":1,
"ipFilterRuleMode": "black",
"ipGroupName": "aa",
"timeGroupName": "工作日",
"ipFilterRuleDesc": "ipFilter remark",
"ipFilterRuleEn": true
}]
}
设置数据
{
//点击确定按钮
"setIpFilter":{
"ipFilterEn":true
"ipFilterDefaultPolicy":true
},
"setIpFilterRules":{
"type":"add",
"data":{
"ipFilterRuleMode":"black",
"ipGroupName":"reasyui2",
"timeGroupName":"工作日",
"ipFilterRuleDesc":"ipFilter remark"
}
},
//设置生效开关
"setIpFilterRules":{
"type":"switch",
"data":{
"ID":1,
"ipFilterRuleEn":false
}
}
//修改
"setIpFilterRules":{
"type":"edit",
"data":{
"ID":1,
"ipFilterRuleMode":"black",
"ipGroupName":"reasyui2",
"timeGroupName":"工作日",
"ipFilterRuleDesc":"ipFilter remark"
}
}
//删除
"setIpFilterRules":{
"type":"delete",
"data":[1,2,3]
}
}
获取数据,请求
{
"getPortFilter":"",
"getIPGroupList":"",
"getTimeGroupList":"",
"getPortFilterRules":""
}
返回
{
"getPortFilter":{
"portFilterEn": true,
"portFilterDefaultPolicy": true
},
"getIPGroupList":[
{
"IPGroupName": "allWifiGuest",
"IPGroupRefer": 0,
"IPGroupDefaultTag":true
},{
"IPGroupName": "LaN~DefAUlt$GrOuP",
"IPGroupRefer": 1,
"IPGroupDefaultTag":true
}
],
"getTimeGroupList":[{
"ID":1,
"timeGroupName": "工作日",
"timeGroupStartHour": 0,
"timeGroupStartMinute": 0,
"timeGroupEndHour": 23,
"timeGroupEndMinute": 59,
"timeGroupWeekday": "1111111",//通过该值判断是否全选
"timeGroupRefer": 1
}],
"getPortFilterRules":[
{
"ID":1,
"IPGroupName": "DeFaULt~SegMeNT",
"timeGroupName": "工作日",
"portFilterRuleStartPort": 1,
"portFilterRuleEndPort": 65535,
"portFilterRuleProtocol": "TCP",
"portFilterRuleEn": true
}
]
}
设置数据
{
//确定按钮
"setPortFilter":{
"portFilterEn":true
},
//新增
"setPortFilterRules":{
"type":"add",
"data":{
"IPGroupName":"allWifiGuest",
"timeGroupName":"工作日",
"portFilterRuleStartPort":123,
"portFilterRuleEndPort":12312,
"portFilterRuleProtocol":"ALL"
}
},
//生效开关
"setPortFilterRules":{
"type":"switch",
"data":{
"ID":1,
"portFilterRuleEn":true
}
},
//修改数据
"setPortFilterRules":{
"type":"edit",
"data":{
"ID":1,
"IPGroupName":"DeFaULt~SegMeNT",
"timeGroupName":"工作日",
"portFilterRuleStartPort":1,
"portFilterRuleEndPort":65535,
"portFilterRuleProtocol":"TCP"
}
},
//删除
"setPortFilterRules":{
"type":"delete",
"data":[1, 2, 3]
}
}
获取数据, 请求
{
"getAllowQQs":"",
"getWebAppFilter":"",
"getWebAppList":"",
"getWebAppTypeIdNames":"",
"getIPGroupList":"",
"getTimeGroupList":"",
"getWebAppFilterRules":"",
"getWebAppIdNames":""
}
返回
{
"getAllowQQs":[
{
"ID":1,
"allowQQ": "123456789",
"allowQQRemark": "老板的QQ"
}
],
"getWebAppFilter":{
"webAppFilterEn": false
},
"getWebAppList":[
{
"webAppGroupId": 1,
"webAppGroupName": "聊天",
"webApps": {
"1": [
{
"webAppId": 1,
"webAppName": "腾讯QQ"
}
],
"2": [
{
"webAppId": 21,
"webAppName": "腾讯QQ"
}
]
}
}
],
"getWebAppTypeIdNames":{"0":"电脑端","2":"移动端","3":"WEB视频"},
"getIPGroupList":[
{
"IPGroupName": "allWifiGuest",
"IPGroupRefer": 0,
"IPGroupDefaultTag":true
},{
"IPGroupName": "LaN~DefAUlt$GrOuP",
"IPGroupRefer": 1,
"IPGroupDefaultTag":true
}
],
"getTimeGroupList":[{
"ID":1,
"timeGroupName": "工作日",
"timeGroupStartHour": 0,
"timeGroupStartMinute": 0,
"timeGroupEndHour": 23,
"timeGroupEndMinute": 59,
"timeGroupWeekday": "1111111",//通过该值判断是否全选
"timeGroupRefer": 1
}],
"getWebAppFilterRules":[
{
"ID":0,
"IPGroupName": "DeFaULt~SegMeNT",
"timeGroupName": "工作日",
"appFilterRuleDesc":"备注信息",
"webAppFilterRuleApps": "2,3",
"webAppFilterRuleEn": true
}
],
"getWebAppIdNames":{"1":"腾讯QQ","2":"腾讯TM","3":"QT语音","4":"飞信"}
}
设置数据
{
//保存
"setWebAppFilter":{
"webAppFilterEn":true
},
//添加QQ
"setAllowQQs":{
"type":"add",
"data":[
{
"allowQQ": "123456789",
"allowQQRemark": "老板的QQ"
}
]
},
//删除QQ
"setAllowQQs":{
"type":"delete",
"data":[1,3]
},
//新增规则
"setWebAppFilterRules":{
"type":"add",
"data":{
"IPGroupName":"ds",
"timeGroupName":"工作日",
"appFilterRuleDesc":"备注信息",
"webAppFilterRuleApps":"41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 81 82 83 84 85 86 87 88 89 90 91 93 94 95 151 152 153 154 155 156 157 158 159 171 172 173 174 175 176 177 178 179 180"
}
},
//生效开关
"setWebAppFilterRules":{
"type":"switch",
"data":{
"ID":0,
"webAppFilterRuleEn":false
}
},
//修改规则
"setWebAppFilterRules":{
"type":"eidt",
"data":{
"ID":1,
"IPGroupName":"ds",
"timeGroupName":"工作日",
"appFilterRuleDesc":"xxx",
"webAppFilterRuleApps":"41 42 43 44 45 46 179 180"
}
},
//删除规则
"setWebAppFilterRules":{
"type":"delete",
"data":[1, 3]
}
}
获取数据,请求
{
"getIPGroupList":"",
"getTimeGroupList":"",
"getUrlGroupList":"",
"getUrlFilter":"",
"getUrlFilterRules":""
//单个点击
"getUrls":{
"urlGroupName":"政府职能",
"urlGroupType":"sys"
}
}
返回
{
"getIPGroupList":[
{
"IPGroupName": "allWifiGuest",
"IPGroupRefer": 0,
"IPGroupDefaultTag":true
},{
"IPGroupName": "LaN~DefAUlt$GrOuP",
"IPGroupRefer": 1,
"IPGroupDefaultTag":true
}
],
"getTimeGroupList":[{
"ID":1,
"timeGroupName": "工作日",
"timeGroupStartHour": 0,
"timeGroupStartMinute": 0,
"timeGroupEndHour": 23,
"timeGroupEndMinute": 59,
"timeGroupWeekday": "1111111",//通过该值判断是否全选
"timeGroupRefer": 1
}],
"getUrlGroupList":
{
"urlSysGroupList":[{
"urlGroupId": 1,
"urlGroupName": "休闲娱乐",
"urlGroupClassify": [
{
"typeId": 1,
"typeName": "音乐网站"
}
]
}],
"urlUserGroupList":[{
"urlGroupId": 1,
"urlGroupName": "购物3",
"urlGroupRefer": 0
}]
},
"getUrlFilter":{
"urlFilterEn": true
},
"getUrlFilterRules":[
{
"ID":1,
"urlFilterRuleEn": false,
"urlFilterRemark": "xxxx",//新增字段,备注
"urlFilterRuleMode":"white",
"urlFilterGroups": "1,2,3,4;1,2,124,125,126,127,128",
"IPGroupName": "DeFaULt~SegMeNT",
"timeGroupName": "工作日"
}
],
"getUrls":[
{
"ID":1,
"urlRemark": "亚马逊",
"urlString": "www.amazon.cn"
}, {
"ID":2,
"urlRemark": "当当网",
"urlString": "www.dangdang.com"
}
]
}
设置数据
{
//保存
"setUrlFilter":{
"urlFilterEn":true
},
//新增规则
"setUrlFilterRules":{
"type":"add",
"data":{
"urlFilterRuleMode":"white",
"IPGroupName":"ds",
"urlFilterRemark":"备注",//新增字段
"timeGroupName":"工作日",
"urlFilterGroups":"1,4;1,2,3,4,5,6,7,8,9,10, 11"//系统和自定义的用;隔开,内部用,隔开,前面是自定义后面是系统
}
},
//生效开关
"setUrlFilterRules":{
"type":"switch",
"data":{
"ID":1,
"urlFilterRuleEn":true
}
},
//修改规则
"setUrlFilterRules":{
"type":"edit",
"data":{
"ID":1,
"urlFilterRuleMode":"white",
"IPGroupName":"ds",
"urlFilterRemark":"备注",//新增字段
"timeGroupName":"工作日",
"urlFilterGroups":"1,4;1,2,3,4,5,6,7,8,9,10, 11"
}
},
//删除规则
"setUrlFilterRules":{
"type":"delete",
"data":[1, 2, 3]
},
//新增分类
"setUrlGroup":{
"urlGroupName":"士大夫",
"urlString":"www.baidu.com",
"urlRemark":"第三方都是"
},
"delUrlGroup":{
"urlGroupId":1
},
"setUrl":{
"type":"delete",
"data":{
"ID":1,
"urlGroupName":"xxxx"
}
},
"setUrl":{
"type":"add",
"data":{
"urlGroupName":"购物3",
"urlString":"www.lofter.com",
"urlRemark":"lofter"
}
}
}
获取数据, 请求
{
"getWanRoutePolicy":"",
"getIPGroupList":"",
"getWanRouteRules":""
}
返回
{
"getWanRoutePolicy":{
"wanRoutePolicyType": "custom", //增加一个值 custom(自定义),auto(智能),autoIP(基于源IP与目的IP的负载均衡)
//新增接口
"wanDetectEn":true,
"wanDetectUrl":"www.baidu.com",
"wanDetectInterval":5
},
"getIPGroupList":[
{
"IPGroupName": "allWifiGuest",
"IPGroupRefer": 0,
"IPGroupDefaultTag":true
},{
"IPGroupName": "LaN~DefAUlt$GrOuP",
"IPGroupRefer": 1,
"IPGroupDefaultTag":true
}
],
"getWanRouteRules":[
{
"ID":1,
"IPGroupName": "DeFaULt~SegMeNT",
"wanRouteRuleWAN": "WAN1",
"wanRouteRuleEn": false
}
]
}
设置数据
{
//保存按钮
"setWanRoutePolicy":{
"wanRoutePolicyType": "custom",
"wanDetectEn":true,
"wanDetectUrl":"www.baidu.com",
"wanDetectInterval":5
},
//新增
"setWanRouteRules":{
"type":"add",
"data":{
"IPGroupName": "DeFaULt~SegMeNT",
"wanRouteRuleWAN": "WAN1"
}
},
//生效开关
"setWanRouteRules":{
"type":"switch",
"data":{
"ID":1,
"wanRouteRuleEn":true
}
},
//修改
"setWanRouteRules":{
"type":"eidt",
"data":{
"ID":1,
"IPGroupName": "DeFaULt~SegMeNT",
"wanRouteRuleWAN": "WAN1"
}
},
//删除
"setWanRouteRules":{
"type":"delete",
"data":[1, 3, 4]
}
}
获取数据,请求
{
"getLanIpMask":"",
"getVpnClient":""
}
返回
{
"getLanIpMask":{
"lanIP": "192.168.0.1",
"lanMask": "255.255.255.0"
},
"getVpnClient":{
"vpnClientEn": true,
"vpnClientType": "l2tp",
"vpnClientWAN": "WAN2",
"vpnClientServerAddr": "1.0.0.1",
"vpnClientUser": "user",
"vpnClientPwd": "123",
"vpnClientEncryptEn": true,
"vpnClientAgentEn": true,
"vpnClientServerNetAddr": "1.0.0.0",
"vpnClientServerNetMask": "255.0.0.0",
"vpnClientConnectStatus": "disconnected",
"vpnClientIP": "1.0.0.3"
}
}
设置数据
请求
{
"setVpnClient":{
"vpnClientEn": true,
"vpnClientType": "l2tp",
"vpnClientWAN": "WAN2",
"vpnClientServerAddr": "1.0.0.1",
"vpnClientUser": "user",
"vpnClientPwd": "123",
"vpnClientEncryptEn": true,
"vpnClientAgentEn": true,
"vpnClientServerNetAddr": "1.0.0.0",
"vpnClientServerNetMask": "255.0.0.0",
}
}
获取数据,请求
{
"getLanIpMask":"",
"getVpnServer":"",
"getVpnUserList":""
}
返回
{
"getLanIpMask":{
"lanIP": "192.168.0.1",
"lanMask": "255.255.255.0"
},
"getVpnServer":{
"vpnServerEn": true,
"vpnServerType": "pptp",
"vpnServerWAN": "WAN2",
"pptpServerEncrypt": true,
"l2tpServerEncryptArr": [{
"wanPort":"WAN1",
"ipsecLink":["aa","bb"]
},{
"wanPort":"WAN2",
"ipsecLink":["cc","dd"]
}],
"l2tpServerEncrypt": "disable",
"vpnServerAddrPool": "10.0.0.0",
"vpnServerMaxConnections": 15
},
"getVpnUserList":[
{
"ID":1,
"vpnUserName": "user1asdfawed",
"vpnUserPwd": "123asdfasdfas",
"vpnUserType": true,
"vpnUserNetAddr": "192.168.1.0",
"vpnUserNetMask": "255.255.255.0",
"vpnUserRemark": "what's up,man",
"vpnUserEn":true, // 新增字段
"vpnUserStatus":true //是否在线
}
]
}
设置数据
//设置VPNserver
{
"setVpnServer":{
"vpnServerEn":true
"vpnServerType":"l2tp"
"vpnServerWAN":"WAN2"
"l2tpServerEncrypt":"disable" //或者 ("pptpServerEncrypt":true)
}
}
//新增PPTP用户
{
"setVpnUserList":{
"type":"add",
"data":{
"vpnUserName": "JD",
"vpnUserPwd": "123123",
"vpnUserType": true,
"vpnUserNetAddr": "192.168.120.0",
"vpnUserNetMask": "255.255.255.0",
"vpnUserRemark": "JD"
}
}
}
//生效开关
{
"setVpnUserList":{
"type":"switch",
"data":{
"ID":1,
"vpnUserEn":true
}
}
}
//修改PPTP用户
{
"setVpnUserList":{
"type":"edit",
"data":{
"ID":1,
"vpnUserName": "JD",
"vpnUserPwd": "123123",
"vpnUserType": true,
"vpnUserNetAddr": "192.168.120.0",
"vpnUserNetMask": "255.255.255.0",
"vpnUserRemark": "JD"
}
}
}
//删除PPTP用户
{
"setVpnUserList":{
"type":"delete",
"data":[1, 2, 3, 4]
}
}
获取数据,请求
{
"getWanData":"",
"getLanIpMask":"",
"getQvlan":"",
"getPppoes":"",
"getGuest":"",
"getIPsecTunnelList":"",
"getIPsecTunnel":{
"ID":1
}
}
返回
{
"getWanData":[{
"ID":0,
"wanIP": "192.168.9.1",
"wanMask": "255.255.255.0",
"wanGateWay":"192.168.11.1"
}],
"getLanIpMask":{
"lanIP": "192.168.0.1",
"lanMask": "255.255.255.0"
},
"getL2TPServer":{
"serverIP": "192.168.9.1",
"serverMask": "255.255.255.0"
},
"getPPTPServer":{
"serverIP": "192.168.8.1",
"serverMask": "255.255.255.0"
},
"getQvlan":[
{
"ID":0,
"vlanName":"vlan1",
"vlanIP":"192.168.1.2",
"vlanMask":"255.255.255.0"
}
],
"getPppoes":{
"pppoesIP": "192.168.2.1",
"pppoesMask": "255.255.255.0"
},
"getGuest": {
"guestIP": "192.168.10.1",
"guestMask": "255.255.255.0"
},
"getIPsecTunnelList":[
{
"ID":0,
"IPsecEn": false,
"IPsecWrapMode": "tunnel",
"IPsecWAN":"WAN2",
"IPsecConnectName": "con1",
"IPsecTunnelProtocol": "ESP/AH/AH+ESP",
"IPsecRemoteNet": "192.168.1.0/24",
"IPsecGateway": "1.0.0.1",
"IPsecRefer": 0,
"IPsecSwitchEn":true //生效开关, 新增字段
}
],
"getIPsecTunnel":{
"IPsecEn":true,
"IPsecWrapMode":"tunnel",
"IPsecWAN":"WAN2",
"IPsecConnectName":"JD",
"IPsecDealMode":1,//协商模式(1:初始者,2:响应者),新增字段
"IPsecTunnelProtocol":"ESP",
"IPsecGateway":"192.168.100.1",
"IPsecLocalNet":"192.168.10.0/23",
"IPsecRemoteNet":"192.168.100.0/24",
"IPsecNegotiation":"auto",
"IPsecSecurity":"psk",
"IPsecSharePwd":"123123",
"IPsecMode":"main",
"IPsecEncrypt1":"3DES",
"IPsecVerify1":"SHA1",
"IPsecDH1":"768",
"IPsecPwdValidity1":3600,
"IPsecPFSEn":true,
"IPsecEncrypt2":"3DES",
"IPsecVerify2":"SHA1",
"IPsecDH2":768,
"IPsecPwdValidity2":3600,
"IPsecDPDEn":true, //DPD检测开启,新增字段
"IPsecDPDTime":10 //DPD检测周期,新增字段
}
}
设置数据
//新增
{
"setIPsecTunnelList":{
"type":"add",
"data":{
"IPsecEn":true,
"IPsecWrapMode":"tunnel",
"IPsecWAN":"WAN2",
"IPsecConnectName":"JD",
"IPsecTunnelProtocol":"ESP",
"IPsecGateway":"192.168.100.1",
"IPsecLocalNet":"192.168.10.0/23",
"IPsecRemoteNet":"192.168.100.0/24",
"IPsecNegotiation":"auto",
"IPsecSecurity":"psk",
"IPsecSharePwd":"123123",
"IPsecMode":"main",
"IPsecEncrypt1":"3DES",
"IPsecVerify1":"SHA1",
"IPsecDH1":"768",
"IPsecPwdValidity1":3600,
"IPsecPFSEn":true,
"IPsecEncrypt2":"3DES",
"IPsecVerify2":"SHA1",
"IPsecDH2":768,
"IPsecPwdValidity2":3600,
"IPsecDPDEn":true, //DPD检测开启,新增字段
"IPsecDPDTime":10 //DPD检测周期,新增字段
}
}
}
//生效开关
{
"setIPsecTunnelList":{
"type":"switch",
"data":{
"ID":1,
"IPsecSwitchEn":false
}
}
}
//修改
{
"setIPsecTunnelList":{
"tyep":"edit",
"data":{
"ID":1,
"IPsecEn":true,
"IPsecWrapMode":"tunnel",
"IPsecWAN":"WAN2",
"IPsecConnectName":"JD",
"IPsecDealMode":1,
"IPsecTunnelProtocol":"ESP",
"IPsecGateway":"192.168.100.1",
"IPsecLocalNet":"192.168.10.0/23",
"IPsecRemoteNet":"192.168.100.0/24",
"IPsecNegotiation":"auto",
"IPsecSecurity":"psk",
"IPsecSharePwd":"123123",
"IPsecMode":"main",
"IPsecEncrypt1":"3DES",
"IPsecVerify1":"SHA1",
"IPsecDH1":"768",
"IPsecPwdValidity1":3600,
"IPsecPFSEn":true,
"IPsecEncrypt2":"3DES",
"IPsecVerify2":"SHA1",
"IPsecDH2":768,
"IPsecPwdValidity2":3600,
"IPsecDPDEn":true, //新增字段
"IPsecDPDTime":10 //新增字段
}
}
}
//删除
{
"setIPsecTunnelList":{
"type":"delete",
"data":[1, 3]
}
}
获取数据,请求
{
"getWanData":"",
"getLanIpMask":"",
"getL2TPServer":"",
"getPPTPServer":"",
"getQvlan":"",
"getPppoes":"",
"getGuest":"",
"getDhcpClientList":"", //原名getDhcpBindList
"getDhcpServerList":"",
"getDhcpStaticBindList":""//原名getDhcpStaticList
}
返回
{
"getWanData":[{
"ID":0,
"wanIP": "192.168.9.1",
"wanMask": "255.255.255.0",
"wanGateWay":"192.168.11.1"
}],
"getLanIpMask":{
"lanIP": "192.168.0.1",
"lanMask": "255.255.255.0"
},
"getL2TPServer":{
"serverIP": "192.168.9.1",
"serverMask": "255.255.255.0"
},
"getPPTPServer":{
"serverIP": "192.168.8.1",
"serverMask": "255.255.255.0"
},
"getQvlan":[
{
"ID":0,
"vlanName":"vlan1",
"vlanIP":"192.168.1.2",
"vlanMask":"255.255.255.0"
}
],
"getPppoes":{
"pppoesIP": "192.168.2.1",
"pppoesMask": "255.255.255.0"
},
"getGuest": {
"guestIP": "192.168.10.1",
"guestMask": "255.255.255.0"
},
"getDhcpClientList":[
{
"ID":0,
"bindIPAddr": "192.168.2.130",
"bindMACAddr": "fc:4d:d4:f8:71:aa",
"hostName":"xxxxx",
"bindStatus": true
}
],
"getDhcpServerList":[{
"dhcpServerEn" : false,
"dhcpServerStartIP" : "192.168.0.2",
"dhcpServerEndIP" : "192.168.0.254",
"dhcpServerReleaseTime" : 360,
"dhcpServerDns1": "192.168.0.1",
"dhcpServerDns2": "192.168.0.1"
}],
"getDhcpStaticBindList":[
{
"ID":0,
"bindIPAddr": "192.168.2.134",
"bindMACAddr": "fc:4d:d4:f8:71:cd",
"bindRemark": "",
"enableStatus": false
}
]
}
DHCP列表
//修改
{
"setDhcpStaticBindList":{ //原名setDhcpStaticList
"type":"edit",
"data":{
"ID":0,
"bindMACAddr":"fc:4d:d4:f8:71:cd",
"bindIPAddr":"192.168.1.132",
"bindRemark":"测试",
"enableStatus":true
}
}
}
//新增
{
"setDhcpStaticBindList":{
"type":"add",
"data":{
"bindMACAddr":"fc:4d:d4:f8:71:cd",
"bindIPAddr":"192.168.1.132",
"bindRemark":"测试",
"enableStatus":true
}
}
}
//删除
{
"setDhcpStaticBindList":{
"type":"delete",
"data":[1,3,4,6]
}
}
//绑定DHCP
{
"setDhcpClientList":{
"type":"edit",
"data":[{
"ID":1,
"bindMACAddr":"fc:4d:d4:f8:71:cd",
"bindIPAddr":"192.168.1.132",
"bindStatus":true
}]
}
}
//DHCP服务器列表形式
{
}
//保存数据
{
"setLanIpMask":{
"lanIP": "192.168.0.1",
"lanMask": "255.255.255.0"
},
// 局域网设置,AP lan口设置
"setApLanIp":{
"lanIP": "192.168.0.1"
},
"setDhcpServer":{ //DHCP单个显示形式
"dhcpServerEn" : false,
"dhcpServerStartIP" : "192.168.0.2",
"dhcpServerEndIP" : "192.168.0.254",
"dhcpServerReleaseTime" : 360,
"dhcpServerDns1": "192.168.0.1",
"dhcpServerDns2": "192.168.0.1"
}
}
获取数据,请求
{
"getWan":"",
"getfastNat":""
}
返回
{
"getWan":[
{
"ID":1
"wanMacCurrent":"C8:3A:35:42:22:22",
"wanMacCurrentPc":"C8:3A:35:42:22:22",
"wanMacDefault":"C8:3A:35:42:11:22",
"wanMacType":"currentPc",
"wanMtu":1492,
"wanSpeed":-100,
"wanType":"pppoe",
}
],
"getFastNat":{
fastnatEn:true
}
}
修改数据
请求
{
"setWan":{
"type":"edit",
"data":[
{
"ID":1,
"wanSpeed":"auto",
"wanMtu":"1492",
"wanMacType":"currentPc"
}
]
},
"setFastNat":{
fastnatEn:true
}
}
获取数据,请求
{
"getLanIpMask":"",
"getPortMapping":""
}
返回
{
"getLanIpMask":{
"lanIP": "192.168.0.1",
"lanMask":"255.255.255.0"
}
"getPortMapping":[
{
"ID":1,
"portMappingServer": "192.168.0.100",
"porMappingtInternal": "100-200",
"portMappingExternal": "100-200",
"portMappingProtocol": "TCP",
"portMappingWan": "WAN1",
"portMappingEn": true
}
]
}
新增数据
请求
{
"setPortMapping":{
"type":"add",
"data":{
"portMappingServer":"192.168.0.1",
"innerPortUpstream":1,
"innerPortDownstream":31,
"outerPortUpstream":1,
"outerPortDownstream":31,
"portMappingProtocol":1,
"portMappingWan":1,
"porMappingtInternal":"1-31",
"portMappingExternal":"1-31",
}
}
}
显示隐藏开关
{
"setPortMapping":{
"type":"switch",
"data":{
"ID":1,
"portMappingEn":true
}
}
}
修改数据
请求
{
"setPortMapping":{
"type":"edit",
"data":{
"ID":1,
"portMappingServer":"192.168.0.1",
"innerPortUpstream":1,
"innerPortDownstream":31,
"outerPortUpstream":1,
"outerPortDownstream":31,
"portMappingProtocol":1,
"portMappingWan":1,
"porMappingtInternal":"1-31",
"portMappingExternal":"1-31",
}
}
}
删除数据
请求
{
"setPortMapping":{
"type":"delete",
"data":[1, 2, 3] //删除数据的ID值数组
}
}
获取数据,请求
{
"getLanIpMask":"",
"getDMZ":""
}
返回
{
"getLanIpMask":{
"lanIP":"192.168.1.98",
"lanMask":"255.255.255.0"
},
"getDMZ":[
{
"ID":0,
"dmzEn":false,
"vpnFilter": true,
"dmzHost":"192.168.1.11"
}
]
}
修改数据
请求
{
"setDMZ":{
"type":"edit",
"data":[
{
"ID":0,
"dmzEn":false,
"vpnFilter": true,
"dmzHost":"192.168.1.11"
}
]
}
}
获取数据,请求
{
"getDDNS":"",
"getDDNSServerList":{
"lang":"cn" //取值为cn,en
}
}
返回
{
"getDDNSServerList":{
"gnway": "gnway.com",
"88ip": "88ip.cn",
"dyndns":"dyn.com/dns",
"noip":"www.noip.com"
},
"getDDNS":[
{
"ID":0
"ddnsEn":true,
"ddnsServer":"3322",
"ddnsUser":"admin",
"ddnsPwd":"admin",
"ddnsStatus": "autherized",
"ddnsServiceType": "general",
"orayDomain":[],
"ddnsDomain":""
}
]
}
修改数据
请求
{
"setDDNS":{
"type":"edit",
"data":[
{
"ID":0
"ddnsEn":true,
"ddnsServer":"3322",
"ddnsUser":"admin",
"ddnsPwd":"admin",
"ddnsDomain":"http://dns/tenda.com.cn"
},{
"ID":1,
"ddnsEn":false
}
]
}
}
获取数据,请求
{
"getPortMirror":""
}
返回
{
"getPortMirror":{
"portMirrorEn": true,
"portMirrorMirroredPorts": "1,1,1,0",
"portMirrorLanPort": 3
}
}
修改数据
请求
{
"setPortMirror":{
"portMirrorEn": true,
"portMirrorMirroredPorts": "1,1,1,0",
"portMirrorLanPort": 3
}
}
获取数据,请求
{
"getUPnP":""
}
返回
{
"getUPnP":{
"upnpEn": true,
"upnpList": [
{
"upnpListExternalHost": "192.168.9.1",
"upnpListExternalPort": "80",
"upnpListInternalHost": "192.168.9.2",
"upnpListInternalPort": "81",
"upnpListProtocol": "UDP",
"upnpListDescribe":"描述1"
}
]
}
}
修改数据
请求
{
"setUPnP":{
"upnpEn":false
}
}
获取数据,请求
{
"getStaticRoute":"",
"getRoutingTable":"",
"getLanIpMask":"",
"getWanData":"",
}
返回
{
"getStaticRoute":[{
"ID":0,
"staticRouteNet" : "192.168.0.1",
"staticRouteMask":"255.255.255.0",
"staticRouteGateway": "192.168.0.1",
"staticRouteWAN" : "WAN1"
}],
"getLanIpMask":"",
"getRoutingTable":[{
"ID":0,
"routingTableNet" : "192.168.9.1",
"routingTableMask":"255.255.255.0",
"routingTableGateway": "192.168.0.1",
"routingTableWAN" : "WAN2"
}],
"getWanData":[{
"ID":0,
"wanIP": "192.168.9.1",
"wanMask": "255.255.255.0",
"wanGateWay":"192.168.11.1"
}]
}
删除数据
请求
{
"setStaticRoute":{
"type":"delete",
"data":[0]
}
}
新增数据
请求
{
"setStaticRoute":{
"type":"add",
"data":{
"ID":2
"staticRouteNet":"192.128.0.0",
"staticRouteMask":"255.128.128.0",
"staticRouteGateway":"192.168.1.0",
"staticRouteWAN":"wan1"
}
}
}
获取数据,请求
"getDNSHijackList":[
{
"ID":1,
"DNSDomainName": "www.baidu.com",
"DNSAddress": "192.168.0.1",
"DNSHijackEn":false
}
]
修改数据
//新增
"setDNSHijackList":{
"type":"add",
"data":[{
"DNSDomainName": "www.baidu.com",
"DNSAddress": "192.168.0.1"
}]
},
//设置生效开关
"setDNSHijackList":{
"type":"switch",
"data":{
"ID":1,
"DNSHijackEn":false
}
}
//修改
"setDNSHijackList":{
"type":"edit",
"data":{
"ID":1,
"DNSDomainName": "www.baidu.com",
"DNSAddress": "192.168.0.1",
"DNSHijackEn":false
}
}
//删除
"setDNSHijackList":{
"type":"delete",
"data":[1,2,3]
}
获取数据,请求
{
"getDNSForwardList":[{
"ID": 1,
"DNSAddress": "192.168.0.1",
"DNSDomainName": "www.baidu.com",
"DNSForwardEn": false,
"DNSInterface": "WAN1"
}]
}
修改数据
//新增
"setDNSForwardList":{
"type":"add",
"data":[{
"DNSDomainName": "www.baidu.com",
"DNSAddress": "192.168.0.1",
"DNSInterface": "WAN1"
}]
},
//设置生效开关
"setDNSForwardList":{
"type":"switch",
"data":{
"ID":1,
"DNSForwardEn":false
}
}
//修改
"setDNSForwardList":{
"type":"edit",
"data":{
"ID":1,
"DNSDomainName": "www.baidu.com",
"DNSAddress": "192.168.0.1",
"DNSInterface": "WAN1"
"DNSForwardEn": false,
}
}
//删除
"setDNSForwardList":{
"type":"delete",
"data":[1,2,3]
}
//导出数据
{
/goform/DownloadDNSForwardList/DNSForward.csv
}
//导入数据
{
/cgi-bin/UploadDNSForwardList
}
获取数据,请求
{
"getHotelModeInfo":""
}
返回
{
"getHotelModeInfo":{
"hotelModeEn": false,
"pppoeServerEn": true,
"wewifiEn":false,
"webAuthEn": false
}
}
修改数据
请求
{
"setHotelModeInfo":{
"hotelModeEn":true
}
}
获取数据,请求
{
"getDnsData":""
}
返回
"getDnsData": {
"bufferEn": "true",
"bufferMemory": 1000
}
设置数据
"setDnsData": {
"bufferEn": "true",
"bufferMemory": 1000
}
获取数据,请求
{
"getDefenseArp":"",
"getDefenseDDos":"",
"getDefenseIp":"",
"getDefensePing":""
}
返回
{
"getDefenseArp":{
"arpAttackEn":true,
"arpBroadCastInterval":1
},
"getDefenseDDos":{
"icmpFloodEn":true,
"icmpThreshold":1500,
"udpFloodEn":false,
"udpThreshold":1500,
"synFloodEn":true,
"synThreshold":1500
},
"getDefenseIp":{
"ipTimestampEn":false,
"ipSecurityEn":true,
"ipStreamEn":false,
"ipRecordRouteEn":true,
"ipLooseSourseRouteEn":false,
"ipIlegalityEn":true
},
"getDefensePing":{
"defensePing": true
}
}
修改数据,请求
{
"setDefenseArp":{
"arpAttackEn":true,
"arpBroadCastInterval":1
},
"setDefenseDDos":{
"icmpFloodEn":true,
"icmpThreshold":1500,
"udpFloodEn":false,
"udpThreshold":1500,
"synFloodEn":true,
"synThreshold":1500
},
"setDefenseIp":{
"ipTimestampEn":false,
"ipSecurityEn":true,
"ipStreamEn":false,
"ipRecordRouteEn":true,
"ipLooseSourseRouteEn":false,
"ipIlegalityEn":true
},
"setDefensePing":{
"defensePing": true
}
}
重启获取数据请求
{
"getScheduledReboot":""
}
返回
{
"getScheduledReboot":{
"scheduledRebootEnable":true,
"scheduledRebootTime":"11:30",
"scheduledRebootPolicy":"specificDate",
"scheduledRebootDate":"1101111"
}
}
保存
{
"setScheduledReboot":{
"scheduledRebootEnable":true
"scheduledRebootPolicy":"specificDate"
"scheduledRebootDate":"1101111"
"scheduledRebootTime":"11:30"
}
}
重启
{
"reboot":""
}
//返回
{
"reboot":0
}
复位
{
"restore":"",
"getRestoreInfo":""
}
//返回
{
"reboot":0,
"getRestoreInfo": {
"lanDefaultIP":"192.168.0.252"
}
}
获取数据请求
{
"getAutoMaintenance":""
}
返回
{
"getAutoMaintenance":{
"autoMaintenanceEn":true
}
}
保存
{
"setAutoMaintenance":{
"autoMaintenanceEn":true
}
}
请求
{
"getAdminList":""
}
返回
{
"getAdminList":[
{
"ID":1,
"accountType":1, //管理员
"password":"123456",
"accountPermission":"xxxxxxx"
},
{
"ID":2,
"accountType":2, //认证管理
"password":"234567",
"accountPermission":"xxxxxxx"
}
]
}
设置
{
"setAdminList":{
"type":"edit",
"data":[{
"ID":0,
"password":"1231313"
}]
}
}
获取数据,请求
{
"getSoftWareVerion":"",
"getUrlVerion":"",
"getUrlUpgrade":"",
"getSoftWareUpgrade":""
}
返回
{
"getSoftWareVerion":{
"softWareVerion":"5.0.1.3"
}
"getUrlVerion":{
"urlVerion":"5.0.1.3"
},
"getUrlUpgrade":{
"status": 2,
"update_info": {
"new_version": "V15.01.0.3(2300)",
"description": [
"V15.01.0.1(2200)",
"V15.01.0.2(2299)",
"V15.01.0.3 (2300)"
]
}
},
"getSoftWareUpgrade":{
"status": 2,
"update_info": {
"new_version": "V15.01.0.3(2300)",
"description": [
"V15.01.0.1(2200)",
"V15.01.0.2(2299)",
"V15.01.0.3 (2300)"
]
}
}
}
发送请求
软件升级
{
"setOnlineUpgrade":{
"onlineUpgradeType":"software"
}
}
特征库升级
{
"setOnlineUpgrade":{
"onlineUpgradeType":"url"
}
}
诊断
//ping开始
{
"setFixTools":{
"networkTool":1,
"hostName":"192.168.1.1",
"packageNum":12,
"packageSize":123
}
//返回
{
"setFixTools":{
...
}
}
//traceroute开始
{
"setFixTools":{
"networkTool":2,
"hostName":"192.168.1.1",
"action":"start"
}
}
//返回
{
"setFixTools":0 //成功
}
//traceroute输出
{
"setFixTools":{
"networkTool":2,
"action":"output"
}
}
//返回
{
"setFixTools":"XXXXXX"
}
//停止
{
"setFixTools":{
"networkTool":2,
"action":"stop"
}
}
获取数据
{
"getSystemLog":{
"sysLogType":0 //0:全部 1:系统日志,2:攻击日志,3:错误日志
}
}
返回
{
"getSystemLog":[
{
"ID":0,
"sysLogTime":"2010-12-12",
"sysLogType":1, //1:系统日志,2:攻击日志,3:错误日志
"sysLogMsg":"xxxxxxxxxXXXxx"
}
]
}
导出日志
{
"outPutSysLog":{
"sysLogType":0 //0:全部 1:系统日志,2:攻击日志,3:错误日志
}
}
获取数据
{
"getRemoteWebManage":""
}
返回
{
"getRemoteWebManage":{
"remoteEn": true,
"remoteIP": "",
"remoteType": "anyone",
"remoteWan": "wan2",
"remoteAddress":"xxxxx" //新增字段
}
}
设置数据
{
"setRemoteWebManage":{
"remoteEn": true,
"remoteIP": "",
"remoteType": "anyone",
"remoteWan": "wan2"
}
}
"/cgi-bin/UploadCfg":{
"lanIP":"192.168.0.251",
"bakupResult":"yes"
}
获取数据
{
"getSysTime":""
}
返回
{
"getSysTime":{
"sysTimePolicy":"syncNet",
"timeZone":20,
"manualTime":"2015-10-10 12:59:37",
"syncTimeCycle":1800
}
}
设置数据
{
"setSysTime":{
"sysTimePolicy":"syncNet", // syncNet 或者 manual
"timeZone":20,
"manualTime":"2015-10-10 12:59:37",
"syncTimeCycle":1800
}
}
获取数据
{
"getWirelessList": ""
}
返回
{
"getWirelessList":[
{
"ID": 1,
"wirelessSwitch": true,
"isEqualName": true,
"wirelessName": "Mr9_1001",
"wirelessPwd": "1001",
"noClientPwd": "1",
"wirelessName5G": "Mr9_1001",
"wirelessPwd5G": "1001",
"noClientPwd5G": "",
"hideWireless": true,
"maxDevice": 40,
"hideWireless5G": true,
"maxDevice5G": 40
},
{
"ID": 2,
"wirelessSwitch": true,
"isEqualName": false,
"wirelessName": "Mr9_1002",
"wirelessPwd": "1002",
"noClientPwd": "1",
"wirelessName5G": "Mr9_1002",
"wirelessPwd5G": "1002",
"noClientPwd5G": "1",
"hideWireless": true,
"maxDevice": 40,
"hideWireless5G": true,
"maxDevice5G": 50
},
{
"ID": 3,
"wirelessSwitch": false,
"isEqualName": true,
"wirelessName": "Mr9_1003",
"wirelessPwd": "1003",
"noClientPwd": "",
"wirelessName5G": "Mr9_1003",
"wirelessPwd5G": "1003",
"noClientPwd5G": "1",
"hideWireless": true,
"maxDevice": 40,
"hideWireless5G": true,
"maxDevice5G": 40
}
],
}
设置数据
{
"setWirelessList":{
"type":"edit",
"data":[
{
"ID": 1,
"wirelessSwitch": true, //无线开关
"isEqualName": true, //2.4G和5G无线名称一致
"wirelessName": "Mr9_1001", //无线名称
"wirelessPwd": "1001", //无线密码
"noClientPwd": false, //是否勾选不设密码
"wirelessName5G": "Mr9_1001", //5G无线名称
"wirelessPwd5G": "1001", //5G无线密码
"noClientPwd5G": false,
"hideWireless": true, //隐藏无线网络
"maxDevice": 40,// 最多可接入设备数
"hideWireless5G": true,
"maxDevice5G": 40,
}
]
}
}
获取数据
{
"getWirelessLimitList": ""
}
返回
{
"getWirelessLimitList":[
{
"ID": 1,
"insulateNet": true, //与其它无线网络隔离
"insulateNet5G": true,
"isEqualName": true, //2.4G与5G是否设置为相同名称
"shareDownRt": "2" , //共享下载速率
"shareDownRt5G": "4" ,
"shareUpRt": "1", //共享上传速率
"shareUpRt5G": "0.5",
"wirelessName": "Tenda", //2.4G网络名
"wirelessName5G": "Tenda_5G"
},
{
"ID": 2,
"insulateNet": false,
"insulateNet5G": true,
"isEqualName": true,
"shareDownRt": "2" , //共享下载速率 -1表示不限速
"shareDownRt5G": "4" ,
"shareUpRt": "1", //共享上传速率
"shareUpRt5G": "0.5", //-1表示不限速
"forbidAccIntranet":true, //禁止访问内网
"forbidAccIntranet5G":true,
"wirelessName": "Tenda",
"wirelessName5G": "Tenda_5G"
},
{
"ID": 3,
"isEqualName": false,
"wirelessName": "Tenda",
"wirelessName5G": "Tenda_5G",
"insulateNet": true,
"insulateNet5G": true,
"forbidAccIntranet":true,
"forbidAccIntranet5G":true,
"shareDownRt": "2" , //共享下载速率
"shareDownRt5G": "4" ,
"shareUpRt": "1", //共享上传速率
"shareUpRt5G": "0.5"
}
],
}
设置数据
{
"setWirelessLimitList":{
"type":"edit",
"data":[
{
"ID": 1,
"insulateNet": true, //与其它无线网络隔离
"insulateNet5G": true,
"isEqualName": true, //2.4G与5G是否设置为相同名称
"shareDownRt": "2" , //共享下载速率
"shareDownRt5G": "4" ,
"shareUpRt": "1", //共享上传速率
"shareUpRt5G": "0.5",
"wirelessName": "Tenda", //2.4G网络名
"wirelessName5G": "Tenda_5G"
}
]
}
}
获取数据
{
"getVisitControl":"",
"getMacFilterList":"",
"getVisitControlList":"",//当2.4G和5G同名的情况下只传一条数据过来
}
返回
{
"getVisitControl":{
"visitControlEn":true
},
"getMacFilterList":[
{
"ID":1,
"wirelessName":"MR9_1111111111",
"macFilter":1, //1-不启用,2-仅允许,3-仅禁止
"band": "2.4G", //该SSID所属频段,2.4G或5G
"isEqualName": true,
"macFilterItems":0 //该SSID已配置MAC过滤策略条目数
}
],
"getVisitControlList":[
{
"ID":1,
"macAddress":"C8:C8:C8:C8:C8:C8",//mac地址
"remark":"老板的电脑",//备注
"effectiveNet": 1,//生效网络,对应的是设置的SSID数据对应的ID值
"status":true // 状态
}
]
}
设置数据
{
"setMacFilterList":{
"type": "edit",
"data": [
{
"ID": 1,
"macFilter": 1//1-不启用,2-仅允许,3-仅禁止
}
]
},
"setVisitControlList":{
"type":"switch",
"data":{
"ID":1,
"status":true //状态
}
}
"setVisitControlList":{
"type":"add",
"data":[
{
"macAddress":"",
"remark":"",
"effectiveNet": 1 ,
"status":true
}
]
},
//修改数据
"setVisitControlList":{
"type":"edit",
"data": {
"ID":1,
"macAddress":"",
"remark":"",
"effectiveNet": 1,
"status":true
}
},
//删除数据
"setVisitControlList":{
"type":"delete",
"data": [1,2,3]
}
}
获取数据
{
"getAdvancedSetList":"",
}
返回
{
"getAdvancedSetList":{
"networkEn":true,//true-启用,false-禁用
"wirelessPower":23,//无线功率
"wirelessPowerMin":0,//无线功率最大值
"wirelessPowerMax":200,//无线功率最小值
"networkPattern":2,//2.4g网络模式 1:11b模式, 2:11g模式, 3:11b/g混合模式, 4: 11b/g/n混合模式
"wirelessChannel":3,//无线信道
"wirelessChannelArr":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]//无线信道选项 0为自动
"channelWidth":0,//信道频宽 {0: "20MHz", 1: "40MHz", 2:"20MHz/40MHz"}
"strengthLimit":60,//接入信号强度限制
"hollowSchedulingEn":2, //空口调度 {1: _("启用"), 0: _("禁用")}
"meshTalkTime":20, //mesh空口时间
"shortGI":1, //1-启用 2-自动 0-禁用
"interferencePattern":0,//Interference模式:[0, 1, 2, 3]
"clientAgeingTime":5,//客户端老化时间[1, 5, 10, 15]
"network5GEn":true,//5G网络{true: _("启用"), false: _("禁用")}
"wirelessPower5G":23,//5g无线功率
"wirelessPowerMin5G":0,//无线功率最大值
"wirelessPowerMax5G":300,//无线功率最小值
"networkPattern5G":2,//网络模式{1: _("11a模式"), 2: _("11ac模式"), 3: _("11a/n混合模式")}
"wirelessChannel5G":36,//无线信道
"wirelessChannelArr5G":{
"20": [0, 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165],
"40": ["0", "36", "40", "44", "48", "52", "56", "60", "64", "100", "104", "108", "112", "120", "128", "132", "136", "140", "149", "153", "157", "161"],
"80": [0, 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 132, 136, 140, 144, 149, 153, 157, 161]
}//5g无线信道
"channelWidth5G":"",//信道频宽{0: _("20M"), 1: _("40M"), 2: _("20M/40M")},
"strengthLimit5G":100,//5g接入信号强度限制
"priority5G":true, //5GHz优先 true-启用 false-禁用
"hollowSchedulingEn5G":true, //空口调度{true: _("启用"), false: _("禁用")}
"meshTalkTime5G":60, //mesh空口时间
"APSD5G":true, //true-启用 false-禁用
"interferencePattern5G":0,//Interference模式
"clientAgeingTime5G":5 //客户端老化时间
}
}
设置数据
{
"setAdvancedSetList":{
"type":"edit",
"data":{
"networkEn":true,
"wirelessPower":23,//无线功率
"networkPattern":2,//网络模式
"wirelessChannel":0,//无线信道
"channelWidth":1,//信道频宽
"strengthLimit":100,//接入信号强度限制
"stagingMode":1, //部署模式 1-强覆盖 2-高密度 3-中密度 4-低密度
"hollowSchedulingEn":2, //空口调度
"meshTalkTime":50, //mesh空口时间
"shortGI":1, //1-启用 2-自动 0-禁用
"interferencePattern":0,
"clientAgeingTime":5,
"network5GEn":true,
"wirelessPower5G":23,//无线功率
"networkPattern5G":2,//网络模式
"wirelessChannel5G":3,//无线信道
"channelWidth5G":1,//信道频宽
"strengthLimit5G":100,//接入信号强度限制
"priority5G":true, //5GHz优先 true-启用 false-禁用
"hollowSchedulingEn5G":1, //空口调度
"meshTalkTime5G":40, //mesh空口时间
"APSD5G":true, //true-启用 false-禁用
"interferencePattern5G":0,
"clientAgeingTime5G":5
}
}
}
获取数据
设置数据
{
"setWirelessLimitList":{
"type":"edit",
"data":[
{
"ID": 1,
"insulateNet": true, //与其它无线网络隔离
"insulateNet5G": true,
"isEqualName": true, //2.4G与5G是否设置为相同名称
"shareDownRt": "2" , //共享下载速率
"shareDownRt5G": "4" ,
"shareUpRt": "1", //共享上传速率
"shareUpRt5G": "0.5",
"wirelessName": "Tenda", //2.4G网络名
"wirelessName5G": "Tenda_5G"
}
]
}
}
获取数据
{
"getClientWireless":""
}
返回
{
"getClientWireless": {
"clientWirelessSwitch":true,
"isEqualClientName":false,
"insulateClientNet":false, //客户端隔离
"clientWirelessName":"guest_ssid",
"clientWirelessPwd":"12345678",
"noClientPwd":true, //是否设置访问网络密码
"clientWirelessName5G":"guest_ssid_5g",
"clientWirelessPwd5G":"12345678",
"noClientPwd5G": false,
"clientIP":"192.168.0.1",
"clientMask":""
}
}
设置数据
"setClientWireless"
获取数据
{
"getOnlineBindList":"",
"getManuallyAssignList":""
}
返回
{
"getOnlineBindList":[
{
"ID":1,
"hostName":"windowsw-1201123",//主机名称
"ipAddress":"C8:C8:C8:C8:C8:C8",
"macAddress":"C8:C8:C8:C8:C8:C8",
"bindEn":true //IP-MAC绑定
}
],
"getManuallyAssignList":[
{
"ID":1,
"hostName":"五楼摄像头",
"hostRemark": "逆流时光",//备注
"ipAddress":"192.168.2.10",
"macAddress":"C8:C8:C8:C8:C8:C8",
"status":true
}
]
}
设置数据
{
//绑定
"setOnlineBindList":{
"type":"edit",
"data":[1,2,3,4]
}
"setManuallyAssignList":{
"type":"switch",
"data":{
"ID":1,
"status":true //状态
}
}
"setManuallyAssignList":{
"type":"add",
"data":[
{
"ipAddress":"192.168.2.10",
"macAddress":"C8:C8:C8:C8:C8:C8",
"hostRemark":"aaaa" //备注
}
]
},
"setManuallyAssignList":{
"type":"edit",
"data": {
"ID":1,
"ipAddress": "192.168.2.10",
"macAddress": "C8:C8:C8:C8:C8:C8",
"hostRemark": "aaaa"
}
},
"setManuallyAssignList":{
"type":"delete",
"data":[1,2,3,4]
}
}
'/cgi-bin/DownloadStaticIPCfg/staticIP.csv'
'/cgi-bin/UploadStaticIPCfg' //请求接口
//返回值
{
"bakupResult": "yes" //yes表示上传成功,否则表示失败
}
其它沿用之前G0接口
{
"getSystemStatus":"", //获取系统状态页显示的基本信息
"getMeshList":"", //获取mesh信息
"getNewMeshList": "", //获取发现的mesh
"getMeshLinkMess":"", //mesh的相互连接信息
"getMeshDetail": {
"serialID": "234324535"
}
}
返回
{
"getSystemStatus":{
"runTime": "0d13h23m45s", //运行时间
"onlineHostCount": 5 //连接终端数
},
"getMeshList":[{
"serialID": "1312313", //序列号
"meshPlace": "hall", //设备位置
"hostCount": 12,//终端数
"flag": 1, //1:MPP,0:MAP
"exterior": "", //外观
// mesh在线状态
"status": 1, //1: 在线, 2:离线
"assocList": [{
"serialID" : "xxxxx",
"wl2gRSSI" : 32,
"wl5gRSSI" : 32,
"wiredRSSI" : true //是否是有线
}]
}],
"getNewMeshList": [{
"serialID": "234234234234234", //序列号
"exterior": ""//外观
}],
"getMeshDetail":{
"serialID": "1312313", //序列号
"flag": 1, //1:MPP,0:MAP
"meshPlace": "eception", //设备位置 eception:前台,hall:大厅,councilHall:会议室,anteroom:接待室,自定义直接传对应的字符串
"meshName": "", // 设备名称
"version": "", //软件版本
"ledStatus": true, //LED灯状态
"online": true, //在线状态
"runTime": "", //运行实际时间
"hostCount": "", //终端数
"MACAddress": "", //MAC地址
"sysTime": "", //系统时间
"lanIP": "", //LAN口IP
"cpuUsePercent": "", //cpn使用率
"memoryUsePercent": "", //内存使用率
"WanInfo": [{ //同WAN口设置里面的字段
"ID":1, //
"wanType": "pppoe", //联网方式
"wanIP": "192.168.98.224", //IP地址
"wanMask": "255.255.255.255", //子网掩码
"wanGateway": "192.168.98.1", //默认网关
"wanDns1": "192.168.108.107", //首选DNS
"wanDns2": "192.168.108.108", //备选DNS
"wanUpFlux": "500", //上传速率
"wanDownFlux": "1500", //下载速率
"wanStatus": "unwired" //联网状态
}],
"meshInfo":{
"wl2gRSSI" : 32,
"wl5gRSSI" : 32,
"wiredRSSI" : true,
"scenes": 1 //使用场景 1:更多用户接入,2:更大面积覆盖
}
},
// 获取单个AP详情
"getApDetail":{
"devicePlace": "eception", //设备位置
"hostCount": "", //终端数
"apName": "", // 设备名称
"ledStatus": true, //LED灯状态
"serialID": "",
"version": "", //软件版本
"runTime": "", //运行实际时间
"flag": 1, //1:MPP,0:MAP
"lanIP": "", //LAN口IP
"MACAddress": "", //MAC地址
"sysTime": "", //系统时间
"cpuUsePercent": "", //cpn使用率
"memoryUsePercent": "" //内存使用率
},
// 设置单个AP位置信息
"setApDetail":{
"serialID":"234",
"apPlace": "hall"
},
}
{
//添加mesh
"setNewMesh": {
"serialID": "23sdf1"
},
//删除么事
"delMesh":{
"serialID": "2341"
},
"setMeshDetail":{
"serialID":"234",
"scenes":2, //若修改就传,没有修改则不传
"meshPlace": "hall" //若修改就传,没有修改则不传
},
//开启关闭LED
"switchLed":{
"serialID": "2341",
"ledStatus": true
},
//删除mesh节点
"deleteMesh":{
"serialID": "2341"
},
//重启mesh节点
"rebootMesh":{
"serialID": "2341"
},
}
"getMessageProvider":""
返回
"getMessageProvider":{
apiKey: "12345678",
apiSecret: "87654321"
codeType: "gb2312"
failCode: "8888888"
messageContent: "ä½ å¥½ï¼Œè¿™é‡Œæ˜¯è¦å¯Ÿå±€"
messageProvider: "3"
providerName: "xxx"
providerPwd: "sss"
urlInterface: "www.nishaa.com"
}
"setMessageProvider":{
apiKey: "12345678",
apiSecret: "87654321"
codeType: "gb2312"
failCode: "8888888"
messageContent: "ä½ å¥½ï¼Œè¿™é‡Œæ˜¯è¦å¯Ÿå±€"
messageProvider: "3"
providerName: "xxx"
providerPwd: "sss"
urlInterface: "www.nishaa.com"
}
//测试短信接口有效性
"setValidTest":{
"phoneNumber":"",
"textContent":""
}
//获取短信验证码
"getVarifyCode":{
"phoneNumber":"asdasdasd"
}
"getFunctionUseList":{
"networkEn":true
"networkEn5G":true
"visitControlEn":true
"qosPolicyEn":true
"webAuthEn": true
"wewifiEn":true
"macFilterEn": true
"urlFilterEn": true
"portFilterEn": true
"dhcpServerEn" : true
"fastnatEn":true
"portMirrorEn": true
"remoteEn": true
"ddnsEn":true
"dmzEn":true
"upnpEn": true
"hotelModeEn": false
"vpnClientEn": true
"autoMaintenanceEn":true
"vpnServerEn": true
}