[关闭]
@moshangxc 2018-12-06T10:25:25.000000Z 字数 55811 阅读 2072

微企接口文档 ,

接口文档##

标题

##


所有接口的请求地址统一为"goform/module"

set操作的接口返回统一为

  1. {
  2. //非列表操作
  3. "请求的模块名称"0 //0表示成功,其他表示失败
  4. }

所有的列表数据目前都增加了字段"ID"

设置向导

获取数据

请求
  1. {
  2. "getWanConnectStatus":"",
  3. "getLanIpMask":"",
  4. "getL2TPServer":"",
  5. "getPPTPServer":"",
  6. "getPppoes":"",
  7. "getGuest":"",
  8. "getQuickCfgWanUpperServerType":""
  9. }
返回
  1. "getWanConnectStatus":{
  2. "portLink": "1,1,0,0,01",
  3. "bLanguage":"en",
  4. "status": [
  5. {
  6. "wanStatus": "unwired",
  7. "wanError": "connected",
  8. "connectTime": "01:09:20"
  9. }
  10. ]
  11. },
  12. "getLanIpMask":{},
  13. "getL2TPServer":{},
  14. "getPPTPServer":{},
  15. "getPppoes":{},
  16. "getGuest":{},
  17. "getQuickCfgWanUpperServerType":{
  18. "upperServerType" : "static"
  19. }
设置数据
  1. //进入页面将联网方式设置为dhcp
  2. "setQuickCfgNetwork":{
  3. "wanType":"pppoe"
  4. "wanIP":"",
  5. "wanMask":"",
  6. "wanGateway":"",
  7. "wanDns1":"",
  8. "wanDns2":"",
  9. "wanUser":"tenda",
  10. "wanPwd":"12345678",
  11. "wanNum":1
  12. },
  13. "setQuickCfgPwd":{ // 暂时删除
  14. "sysUserPassword":"xxxxxxx"
  15. },
  16. "setQuickCfgWifiAndLogin":{
  17. "wifiSSID": "",
  18. "wifiPassword": "",
  19. "sysPassword": "",
  20. "wifiSecurity": "psk2",
  21. "bLanguage": "cn"
  22. }
  23. //返回
  24. "setQuickCfgWifiAndLogin":{
  25. "redirect": true //true:已设置联网信息,false未设置
  26. }

公共模块

获取数据

  1. {
  2. "getAcountType":"",
  3. "getWanNum":"",
  4. "getLang":""
  5. }
  6. //返回
  7. {
  8. //获取账号类型
  9. "getAcountType":{
  10. "acountType":1 //1:系统管理员, 2:认证管理员
  11. },
  12. //获取WAN口数,考虑到有些页面只需要wan口数的信息,故添加
  13. "getWanNum":{
  14. "wanNum":1
  15. }
  16. }

登录

获取数据

  1. "getLoginType":{
  2. "bLanguage":"cn",
  3. "theme": "tenda", //Tenda,Ip-com
  4. "skipQuickset": false // 跳过快速设置
  5. }

mesh快速设置

  1. {
  2. // 获取mesh对应的状态信息
  3. "getMeshStatus":{
  4. "status": true
  5. },
  6. // 设置登录密码
  7. "setLoginPassword":{
  8. "password":"xxxxxx",
  9. "bLanguage":"cn"
  10. }
  11. }

获取当前工作模式

  1. {
  2. // 获取工作模式
  3. "getDeviceMode":{
  4. "deviceMode": 1 // 1:Mesh(路由模式),2:单设备(AP模式), 3:Mesh(AP模式)
  5. },
  6. // 设置工作模式
  7. "setDeviceMode":{
  8. "deviceMode": 2
  9. }
  10. }

第二次及以后登录

  1. {
  2. "auth":{
  3. "bLanguage":"cn",
  4. "password":""
  5. }
  6. }

系统状态

获取数据

请求
  1. {
  2. "getSystemStatus":"",//获取系统状态
  3. "getNetWork":"",//获取WAN口速度信息
  4. "getQosUserList":{//首页查询在线设备
  5. "type":1, // 1:在线,2:离线,3:黑名单,空为查询所有数据
  6. "limit":5 //查询前五条数据,不传则查所有数据
  7. },
  8. //点击路由器获取系统信息
  9. "getSysInfo":"",
  10. "getLanInfo":"",
  11. "getWanInfo":"",
  12. //end
  13. //点击更多统计
  14. "getQosUserList":{type:1},
  15. "getWanFlow":""
  16. //end
  17. //点击在线设备
  18. --//查询在线设备
  19. "getQosUserList":{
  20. "type":1 // 1:在线,2:离线,3:黑名单
  21. },
  22. --//查询黑名单
  23. "getQosUserList":{
  24. "type":3 // 1:在线,2:离线,3:黑名单
  25. },
  26. //end
  27. //点击AP
  28. "getOnlineAPList":""
  29. //end
  30. //点击WAN口上下行速度进行WAN口信息配置
  31. "getWanIP":{
  32. "ID":1
  33. }
  34. //获取WAN口联网状态
  35. "getWanStatus":{
  36. "ID":1
  37. }
  38. //获取很名单条数接口
  39. "getBlackUserCount":""
  40. }

返回

  1. { "getBlackUserCount":{
  2. count:5
  3. },
  4. "getSystemStatus":{
  5. "runTime":123213, //秒为单位
  6. "onlineHostCount":5,
  7. "onlineAPCount":3
  8. },
  9. // 获取AP在线设备
  10. "getApUserList":[
  11. {
  12. "ID":1,
  13. "hostName":"xxx",
  14. "hostIP":"",
  15. "hostMAC":"",
  16. "hostConnectType":1,//联网方式 1:无线,2:有线,3:2.4G,4:5G
  17. "relateSSID":"fff" //关联SSID
  18. }
  19. ],
  20. "getNetwork":[],
  21. //首页查询在线设备
  22. "getQosUserList":[
  23. {
  24. "ID":1,
  25. "hostName":"xxx",
  26. "hostIP":"",
  27. "hostMAC":"",
  28. "hostAuthType":"", //认证方式
  29. "hostConnectType":1,//联网方式 1:无线,2:有线,3:2.4G,4:5G
  30. "hostUploadSpeed":12, //上传速度
  31. "hostDownloadSpeed":123, //下载速度
  32. "onlineTime":123,//在线时长,以分钟为单位
  33. "hostUploadLimit":0, //上传限制
  34. "hostDownloadLimit":0 //下载限制
  35. }
  36. ],
  37. // 设备名称
  38. "getDevName":{
  39. "en": "xxxxx",
  40. "cn": "微企一体化网关"
  41. },
  42. //点击路由器获取系统信息
  43. "getSysInfo":{
  44. "sysInfoRunTime": "1h56m32s",
  45. "sysInfoSysTime": "2015-11-19 11:02:21",
  46. "sysInfoSoftVersion": "V15.01.0.1(2345_702)",
  47. "cpuUsePercent": 2,
  48. "memoryUsePercent": 21
  49. },
  50. "getLanInfo":{
  51. "lanIp":"xxx",
  52. "lanMac":"xxx"
  53. },
  54. "getWanInfo":[
  55. {
  56. "ID":1,
  57. "wanStatus": "wired",
  58. "wanError": "usernamePwdError",
  59. "wanType": "pppoe",
  60. "wanIP": "192.168.98.224",
  61. "wanMask": "255.255.255.255",
  62. "wanGateway": "192.168.98.1",
  63. "wanDns1": "192.168.108.107",
  64. "wanDns2": "192.168.108.108",
  65. "wanUpFlux": 500,
  66. "wanDownFlux": 1500
  67. }
  68. ],
  69. //end
  70. //点击更多统计
  71. "getFLow":[
  72. {
  73. "ID": 1,
  74. "flowIP": "192.168.0.121",
  75. "flowMAC": "xxxx",
  76. "flowName": "1xxx",
  77. "flowConnectNum": 200,
  78. "flowUpstream": 23.25,
  79. "flowDownstream": 10.43,
  80. "flowAllDownload":10.43
  81. }
  82. ],
  83. "getWanFlow":[
  84. {
  85. "FlowUpstream":8.50,
  86. "FlowDownstream":12.50,
  87. }
  88. ]
  89. //end
  90. //点击在线设备
  91. --//查询在线设备返回
  92. "getQosUserList":[
  93. {
  94. "ID":1,
  95. "hostName":"xxx",
  96. "hostRemark":"xxxx",
  97. "hostIP":"",
  98. "hostMAC":"",
  99. "hostAuthType":"", //认证方式
  100. "hostConnectType":1,//联网方式 1:有线,2:无线
  101. "hostUploadSpeed":12, //上传速度
  102. "hostDownloadSpeed":123, //下载速度
  103. "hostUploadLimit":0, //上传限制
  104. "hostDownloadLimit":0 //下载限制
  105. }
  106. ]
  107. --//查询黑名单
  108. "getQosUserList":[
  109. {
  110. "ID":1,
  111. "hostName":"xxx",
  112. "hostMAC":""
  113. }
  114. ]
  115. //end
  116. //点击AP
  117. "getOnlineAPList":[
  118. {
  119. "apName": "W125AP",
  120. "text": "000",
  121. "macAddr": "00:22:22:11:11:23",
  122. "ipAddr": "192.168.100.123",
  123. "ssid": [],
  124. "ssid_5g": [],
  125. "clientNum": 12,
  126. "clientNum_5g": 4
  127. }
  128. ]
  129. //end
  130. //点击WAN口上下行速度进行WAN口信息配置
  131. "getWanIP":{
  132. "wanType":"static",
  133. "wanIP":"192.168.27.11",
  134. "wanMask":"255.255.255.0",
  135. "wanGateway":"192.168.27.1",
  136. "wanDns1":"192.168.1.1",
  137. "wanDns2":"192.168.1.1"
  138. }
  139. //获取WAN口联网状态
  140. "getWanStatus":{
  141. "ID":1,
  142. "wanStatus": "unwired",
  143. "wanError": "disconnected",
  144. }
  145. }

设置数据

  1. {
  2. //WAN口信息配置
  3. "setWanIP":{
  4. "ID":1,
  5. "wanType":"static",
  6. "wanIP":"192.168.27.11",
  7. "wanMask":"255.255.255.0",
  8. "wanGateway":"192.168.27.1",
  9. "wanDns1":"192.168.1.1",
  10. "wanDns2":"192.168.1.1"
  11. }
  12. //在线设备
  13. //禁止上网
  14. "addBlack":{
  15. "ID":1
  16. },
  17. //解除限制
  18. "delBlack":{
  19. "ID":1
  20. }
  21. //数据修改
  22. //修改主机名称
  23. "setQosUserList":{
  24. "type":"edit",
  25. "actionFlag":1,
  26. "data":{
  27. "ID":1,
  28. "hostName":"XXXXX"
  29. }
  30. }
  31. //修改上传限速
  32. "setQosUserList":{
  33. "type":"edit",
  34. "actionFlag":2,
  35. "data":{
  36. "ID":1,
  37. "hostUploadLimit":1
  38. "hostDownloadLimit":1
  39. }
  40. }
  41. //修改下载限速(暂时删除)
  42. "setQosUserList":{
  43. "type":"edit",
  44. "actionFlag":3,
  45. "data":{
  46. "ID":1,
  47. "hostDownloadLimit":1
  48. }
  49. }
  50. //批量修改上传限速和下载限速(暂时删除)
  51. "setQosUserList":{
  52. "type":"edit",
  53. "actionFlag":4,
  54. "data":[
  55. {
  56. "ID":1,
  57. "hostDownloadLimit":1,
  58. "hostUploadLimit":1
  59. }
  60. ]
  61. },
  62. //全部限速
  63. "setAllHostLimit":{
  64. "hostDownloadLimit":1,
  65. "hostUploadLimit":1,
  66. "list":[],
  67. "type":1 //1:在线,2:离线
  68. }
  69. //AP管理-修改备注
  70. "setOnlineAPRemark":{
  71. "macAddr":"xxxx",
  72. "text":"CCCCC"
  73. }
  74. }

上网设置 (已修改)

获取数据

  1. {
  2. "getWanData":"",
  3. "getLanIpMask":"",
  4. "getL2TPServer":"",
  5. "getPPTPServer":"",
  6. "getQvlan":"",
  7. "getPppoes":"",
  8. "getGuest":"",
  9. "getNetwork":"",
  10. "getStaticTemp":"",
  11. "getWanConnectStatus":""
  12. }
返回
  1. {
  2. "getWanData":{},
  3. "getLanIpMask":{},
  4. "getL2TPServer":{},
  5. "getPPTPServer":{},
  6. "getQvlan":{},
  7. "getPppoes":{},
  8. "getGuest":{},
  9. "getNetwork":[{
  10. "ID":0,
  11. "wanType": "dhcp",
  12. "wanStatus": "wired",
  13. "wanError": "connected",
  14. "wanUpFlux": 10.0,
  15. "wanDownFlux": 10.0,
  16. "wanISP": "0",
  17. "wanDns1":"192.168.6.2",
  18. "wanDns2":"",
  19. "wanError":"disconnected",
  20. "wanGateway":"192.168.6.1",
  21. "wanIP":"192.168.6.12",
  22. "wanL2tpDns1":"192.168.5.2",
  23. "wanL2tpDns2":"",
  24. "wanL2tpGateway":"192.168.5.1",
  25. "wanL2tpIP":"192.168.5.12",
  26. "wanL2tpIPType":"manual",
  27. "wanL2tpMask":"255.255.255.0",
  28. "wanL2tpPwd":"hahaha",
  29. "wanL2tpServerAddr":"192.168.5.6",
  30. "wanL2tpUser":"dapeipeia",
  31. "wanMask":"255.255.255.0",
  32. "wanPppoeDns1":"192.168.2.2",
  33. "wanPppoeDns2":"",
  34. "wanPppoeGateway":"192.16826.1",
  35. "wanPppoeIP":"192.168.2.12",
  36. "wanPppoeIPType":"auto",
  37. "wanPppoeMask":"255.255.255.0",
  38. "wanPppoePwd":"hahaha",
  39. "wanPppoeServer":"192.168.2.4",
  40. "wanPppoeService":"sssss",
  41. "wanPppoeUser":"dapei",
  42. "wanPptpDns1":"192.168.3.2",
  43. "wanPptpDns2":"",
  44. "wanPptpGateway":"192.168.3.1",
  45. "wanPptpIP":"192.168.3.12",
  46. "wanPptpIPType":"manual",
  47. "wanPptpMask":"255.255.255.0",
  48. "wanPptpPwd":"hahaha",
  49. "wanPptpServerAddr":"192.168.3.6",
  50. "wanPptpUser":"dapeipei",
  51. "wanPwd":"hahaha",
  52. "wanServer":"192.168.2.4",
  53. "wanService":"tttttt",
  54. "wanUser":"da"
  55. }],
  56. "getWanConnectStatus":{
  57. "portLink": "1,1,0,0,1",
  58. "status": [
  59. {
  60. "ID":0,
  61. "wanStatus": "wired",
  62. "wanError": "connected",
  63. "connectTime": "01:09:20"
  64. },
  65. {
  66. "ID":1,
  67. "wanStatus": "unwired",
  68. "wanError": "disconnected",
  69. "connectTime": "00:00:00"
  70. }
  71. ]
  72. }
  73. }

设置数据

  1. {
  2. "setNetwork":{
  3. "wanNum":2,
  4. "wanList":[
  5. {
  6. "ID":0,
  7. "wanType":"static",
  8. "wanIP":"192.168.27.11",
  9. "wanMask":"255.255.255.0",
  10. "wanGateway":"192.168.27.1",
  11. "wanDns1":"192.168.1.1",
  12. "wanDns2":"192.168.1.1"
  13. },
  14. {
  15. "ID":1,
  16. "wanType":"pppoe",
  17. "wanUser":"tenda",
  18. "wanPwd":"12345678"
  19. }
  20. ]
  21. }
  22. }

网速控制 (数据不是实时刷新)

公共获取数据
请求

  1. {
  2. "getTimeGroupList":"",
  3. "getIPGroupList":"",
  4. "getQosPolicy":""
  5. }
返回
  1. {
  2. "getTimeGroupList":[],
  3. "getIPGroupList":[],
  4. "getQosPolicy":{
  5. "qosPolicy":1 //取值为四个:1:不限速,2:自定义限速,3:自动分配网速,4:分组限速
  6. }
  7. }

不限速

获取数据

设置数据

  1. {
  2. "setQosPolicy":{
  3. "qosPolicy":1
  4. }
  5. }

自定义限速

获取数据
请求

  1. {
  2. //查询在线设备
  3. "getQosUserList":{
  4. "type":1, // 1:在线,2:离线,3:黑名单
  5. }
  6. //查询离线设备
  7. "getQosUserList":{
  8. "type":2
  9. }
  10. }
返回
  1. {
  2. //查询在线设备返回
  3. "getQosUserList":[
  4. {
  5. "ID":1,
  6. "hostName":"xxx",
  7. "hostIP":"",
  8. "hostMAC":"",
  9. "hostAuthType":"", //认证方式
  10. "hostConnectType":1,//联网方式 1:无线,2:有线,3:2.4G,4:5G
  11. "hostDownloadSum":123,// 下载总流量 KB为单位
  12. "hostConnectCount":1231,//连接数
  13. "hostUploadSpeed":12, //上传速度
  14. "hostDownloadSpeed":123, //下载速度
  15. "hostUploadLimit":0, //上传限制
  16. "hostDownloadLimit":0 //下载限制
  17. }
  18. ]
  19. //查询离线设备返回
  20. "getQosUserList":[
  21. {
  22. "ID":1,
  23. "hostName":"xxx",
  24. "hostMAC":"",
  25. "hostRemark":"xxxx",
  26. "hostDownloadSum":123,// 下载总流量 KB为单位
  27. "hostOffLineTime":"xxxx 12:12", //离线时间
  28. "hostUploadLimit":0, //上传限制
  29. "hostDownloadLimit":0 //下载限制
  30. }
  31. ]
  32. }

设置数据,点击保存

  1. {
  2. "setQosPolicy":{
  3. "qosPolicy":2
  4. },
  5. "setQosUserList":{
  6. "type":"edit",
  7. "actionFlag":"5", //保存在线数据
  8. "data":[
  9. {
  10. "ID":1,
  11. "hostName":"XXXX",
  12. "hostUploadLimit":0,
  13. "hostDownloadLimit":0
  14. }
  15. ]
  16. },
  17. //保存离线线数据
  18. "setQosUserList":{
  19. "type":"edit",
  20. "actionFlag":"6",
  21. "data":[
  22. {
  23. "ID":1,
  24. "hostName":"XXXX",
  25. "hostUploadLimit":0,
  26. "hostDownloadLimit":0
  27. }
  28. ]
  29. }
  30. }

自动分配网速

获取数据,请求

  1. {
  2. "getWanAutoSpeed":""
  3. }
返回
  1. {
  2. "getWanAutoSpeed":[
  3. {
  4. "ID":1,
  5. "wanDownstream":100,
  6. "wanUpstream":100
  7. },
  8. {
  9. "ID":2,
  10. "wanDownstream":100,
  11. "wanUpstream":100
  12. }
  13. ]
  14. }

设置数据,点击确定

  1. {
  2. "setQosPolicy":{
  3. "qosPolicy":3
  4. },
  5. "setWanAutoSpeed":[
  6. {
  7. "ID":1,
  8. "wanDownstream":10,
  9. "wanUpstream":100
  10. },
  11. {
  12. "ID":2,
  13. "wanDownstream":20,
  14. "wanUpstream":100
  15. }
  16. ]
  17. }

分组限速

获取数据请求
  1. {
  2. "getQosGroupList":""
  3. }
返回
  1. {
  2. "getQosGroupList":[
  3. {
  4. "ID":1,
  5. "qosListIPGroupRemark": "DeFaULt~SegMeNT",
  6. "qosListTimeGroupRemark": "工作时间",
  7. "qosListConnecttedNum": 300,
  8. "qosListMode": "private",
  9. "qosListUpstream": 35,
  10. "qosListDownstream": 100,
  11. "qosListEn": true
  12. }
  13. ]
  14. }

设置数据

  1. {
  2. //保存
  3. "setQosPolicy":{
  4. "qosPolicy":4
  5. },
  6. //新增
  7. "setQosGroupList":{
  8. "type":"add",
  9. "data":{
  10. "qosListIPGroupRemark": "DeFaULt~SegMeNT",
  11. "qosListTimeGroupRemark": "工作时间",
  12. "qosListConnecttedNum": 300,
  13. "qosListMode": "private",
  14. "qosListUpstream": 35,
  15. "qosListDownstream": 100
  16. }
  17. },
  18. //生效开关
  19. "setQosGroupList":{
  20. "type":"switch",
  21. "data":{
  22. "ID":1,
  23. "qosListEn": true
  24. }
  25. },
  26. //修改
  27. "setQosGroupList":{
  28. "type":"edit",
  29. "data":{
  30. "ID":1,
  31. "qosListIPGroupRemark": "DeFaULt~SegMeNT",
  32. "qosListTimeGroupRemark": "工作时间",
  33. "qosListConnecttedNum": "300",
  34. "qosListMode": "private",
  35. "qosListUpstream": "35",
  36. "qosListDownstream": "100"
  37. }
  38. },
  39. //删除
  40. "setQosGroupList":{
  41. "type":"delete",
  42. "data":[1, 2, 3]
  43. }
  44. }

认证管理

获取是否需要隐藏网速控制模块

  1. {
  2. "getHideModules":{
  3. "qosHide":true
  4. }
  5. }

WEB认证

获取数据,请求
  1. {
  2. "getWebAuthBasic":"",
  3. "getWebAuthAnnouncement":""
  4. "getMailVarifyCode":""
  5. }
返回
  1. {
  2. "getWebAuthBasic":{
  3. "hotelModeEn": false,
  4. "pppoeServerEn": false,
  5. "cloudManageEn": false,
  6. "wewifiEn":false,
  7. "webAuthEn": false,
  8. "webAuthTimeOut":30,
  9. "webAuthTitle": "Tenda欢迎您",
  10. "webAuthContent": "yyyy",
  11. "logoExist" : false,
  12. "picExist1": true,
  13. "redirectType": 1,
  14. "redirectUrl": "www.baidu.com",
  15. "webAuthType":2
  16. //邮箱认证
  17. "maxUser": 3,
  18. "emailAccount": "xxx",
  19. "emailPassword": "xxx",
  20. "SMTPServer": "xxx",
  21. "SSL": true,
  22. "SMTPPort": 25,
  23. "testAccount": "xxxxxxx",
  24. "emailContent": ""
  25. },
  26. "getWebAuthAnnouncement":{
  27. "webAuthTitle":"354435739857394565gfjh",
  28. "webAuthContent": "百度尊重并保护所有",
  29. "logoExist": true,
  30. "picExist1": true,
  31. "redirectType": 1,
  32. "webAuthType":1,
  33. "redirectUrl": "http://www.baidu.com"
  34. },
  35. // WEB认证新增功能(认证网络选择)的接口:
  36. {
  37. "getWebAuthPort": [
  38. {
  39. "type": "wired", // wired/wireless
  40. "name": "LAN1", // 显示名称
  41. "enable": true/false, //是否开启了认证
  42. },
  43. ]
  44. }
  45. //获取邮箱验证码
  46. "getMailVarifyCode":{
  47. "emailAccount":"xxx"
  48. }
  49. // 返回
  50. "getMailVarifyCode":{
  51. "emailAccount":"xxx"
  52. }
  53. }

设置数据

  1. {
  2. "setWebAuthBasic":{
  3. "webAuthEn":true,
  4. "webAuthType":2,
  5. "webAuthTimeOut":30,
  6. "webAuthTitle":"Tenda欢迎您",
  7. "webAuthContent":"yyyy",
  8. "redirectType":1,
  9. "redirectUrl":
  10. },
  11. //删除图片
  12. "delWebAuthPic":{
  13. "picName":"webAuthPic1"
  14. }
  15. }
  16. //验证邮箱账号
  17. {
  18. "testEmail":{
  19. "testAccount": "xxxx"
  20. }
  21. }
  22. //认证上网
  23. {
  24. "portalAuth":{
  25. "redirectType": 2,
  26. "redirectUrl":"www.baidu.com",
  27. "webAuthRet":"",
  28. //以下用于短信认证
  29. "phoneNumber":"",
  30. "varifyCode":"",
  31. //以下用邮箱认证
  32. "emailAccount":"",
  33. "emailCode":""
  34. }
  35. }
  36. //返回
  37. {
  38. "portalAuth": {
  39. "webAuthRet":"success" /*认证成功*/
  40. }
  41. // "infoError", /*认证账号或密码错误*/
  42. // "accountDisabled", /*认证账号未启用*/
  43. // "timeOut" /*认证超时*/
  44. // "overLogin", /*超过最大限制用户数*/
  45. // "macUsed", /*本机已认证过,不需要重新认证*/
  46. // "accountUsed" /*账号已使用-对应max_login=1*/
  47. }
  48. //WEB认证新增功能(认证网络选择)的接口:
  49. {
  50. "setWebAuthPort": [
  51. {
  52. "type": "wired", // wired/wireless
  53. "name": "Tenda-SSID", // 显示名称
  54. },
  55. ]
  56. }
  57. // WEB认证新增功能(认证网络选择)的接口:只回传选中的数据
  58. {
  59. "setWebAuthPort": [
  60. {
  61. "type": "wired", // wired/wireless
  62. "name": "LAN1" // 显示名称
  63. },
  64. ]
  65. }

微信认证

获取数据,请求
  1. {
  2. "getWewifiInfo":"",
  3. "getWewifiFocusInfo":"",
  4. "getWewifiPort":"",
  5. "getWewifiPortalCfg":"" //iframe
  6. }
返回
  1. {
  2. "getWewifiInfo":{
  3. "wewifiPCPassEn":true,
  4. "apclientEn": false,
  5. "hotelModeEn": false,
  6. "pppoeServerEn": false,
  7. "cloudManageEn": false,
  8. "webAuthEn": false,
  9. "wewifiEn": false,
  10. "wewifiOnlineTime": 24,
  11. "wewifiAppId": "",
  12. "wewifiSsid": "",
  13. "wewifiShopId": "",
  14. "wewifiSecretKey": "",
  15. "shopName": "SSSS",
  16. "picShowTime": 2,
  17. "picExit1": true,
  18. "picExit2": true,
  19. "picExit3": false,
  20. "picLink1": "",
  21. "picLink2": "",
  22. "picLink3": "",
  23. "wewifiAuthUrl": "http://192.168.244.244/goform/PortalAuth?portalAuthType=wewifi",
  24. "wewifiUserMac": "fc:4d:d4:f8:71:cd",
  25. "wewifiExtendInfo": "ZmM6NGQ6ZDQ6Zjg6NzE6Y2Qtd2V3aWZpVjMuMA=="
  26. },
  27. //微信强制关注
  28. "getWewifiFocusInfo":{
  29. "wewifiEn":true,
  30. "focusEn":true , //强制关注
  31. "hasQR":true , //是否上传过二维码
  32. "finishUrl":"http://www.fdsafdsa.safdsag.fdsafdsa/fdsafdsa", //完成URL
  33. "replyUrl":"http://www.fdsafdsa.safdsag.fdsafdsa/fdsafdsa" //回复URL
  34. },
  35. "getWewifiPortalCfg":{
  36. "wewifiPCPassEn":true,
  37. "shopName": "ssss",
  38. "picShowTime": 2,
  39. "picExit1": true,
  40. "picExit2": true,
  41. "picExit3": true,
  42. "picLink1": "",
  43. "picLink2": "",
  44. "picLink3": "",
  45. "wewifiSsid": "",
  46. "wewifiShopId": "",
  47. "wewifiAppId": "",
  48. "wewifiSecretKey": "",
  49. "wewifiOnlineTime": 120,
  50. "wewifiAuthUrl": "http://192.168.244.244/goform/PortalAuth?portalAuthType=wewifi",
  51. "wewifiUserMac": "fc:4d:d4:f8:71:cd",
  52. "wewifiExtendInfo": "ZmM6NGQ6ZDQ6Zjg6NzE6Y2Qtd2V3aWZpVjMuMA=="
  53. },
  54. "getWewifiPort": [
  55. {
  56. "type": "wired", // wired/wireless
  57. "name": "LAN1", // 显示名称
  58. "enable": true/false, //是否开启了认证
  59. },
  60. ]
  61. }

设置数据

  1. {
  2. "setWewifiInfo":{
  3. "wewifiEn":true,
  4. "wewifiOnlineTime":24,
  5. "wewifiSsid":"sdfsdf",
  6. "wewifiShopId":"sdfsfsdf",
  7. "wewifiAppId":"sdfsdfdsf",
  8. "wewifiSecretKey":"sdfsafaf",
  9. "shopName":"ssss",
  10. "picShowTime":2,
  11. "picLink1":"",
  12. "picLink2":"",
  13. "picLink3":"",
  14. },
  15. "setWewifiFocusInfo":{
  16. "focusEn":true
  17. },
  18. "delWewifiPic":{
  19. "picName":"wewifipic1"
  20. },
  21. "PortalAuth":{
  22. "portalAuthType": "wewifi_temppass"
  23. },
  24. //上传公众号二维码:按照M50的格式
  25. /cgi-bin/uploadQRPic
  26. "setWewifiPort": [
  27. {
  28. "type": "wired", // wired/wireless
  29. "name": "Tenda-SSID", // 显示名称
  30. },
  31. ]
  32. }

PPPoE认证

获取数据,请求
  1. {
  2. "getWanData":"",
  3. "getLanIpMask":"",
  4. "getL2TPServer":"",
  5. "getPPTPServer":"",
  6. "getQvlan":"",
  7. "getPppoes":"",
  8. "getGuest":"",
  9. "getPreTimeoutNotify":"",//账号到期前提醒
  10. "getTimeoutNotify":"",
  11. "getPPPoEServerBasicInfo":""
  12. }
返回
  1. {
  2. "getWanData":{},
  3. "getLanIpMask":{},
  4. "getL2TPServer":{},
  5. "getPPTPServer":{},
  6. "getQvlan":{},
  7. "getPppoes":{},
  8. "getGuest":{},
  9. "getPreTimeoutNotify":{
  10. "preTimeoutTitle": "您的时间快要到期了",
  11. "preTimeoutContent": "为了不影响您的\n正常上网,请及时续费!"
  12. },
  13. "getTimeoutNotify":{
  14. "timeoutTitle": "您的时间已到期了",
  15. "timeoutContent": "为了不影响您的\n正常上网,请及时续费!"
  16. },
  17. "getPPPoEServerBasicInfo":{
  18. "hotelModeEn": false,
  19. "webAuthServerEn": false,
  20. "cloudManageEn": false,
  21. "wewifiEn":false,
  22. "pppoeServer": {
  23. "pppoeServerEn": true,
  24. "pppoeServerIP": "192.168.7.1",
  25. "pppoeServerStartIP": "192.168.7.3",
  26. "pppoeServerEndIP": "192.168.7.254",
  27. "pppoeServeNotifyTime": 3,
  28. "pppoeServerDns1": "192.168.0.1",
  29. "pppoeServerDns2": "192.168.0.1"
  30. }
  31. }
  32. }

设置数据

  1. {
  2. "setPPPoEServerBasicInfo":{
  3. "pppoeServerEn":true,
  4. "pppoeServerIP":"192.168.8.1",
  5. "pppoeServerStartIP":"192.168.7.3",
  6. "pppoeServerEndIP":"192.168.7.254",
  7. "pppoeServerDns1":"192.168.0.1",
  8. "pppoeServerDns2":"192.168.0.1",
  9. "pppoeServeNotifyTime":3
  10. },,
  11. "setPreTimeoutNotify":{
  12. "preTimeoutTitle":"您的时间快要到期了",
  13. "preTimeoutContent":"为了不影响您的"
  14. },
  15. "setTimeoutNotify":{
  16. "timeoutTitle": "您的时间已到期了",
  17. "timeoutContent": "为了不影响您的\n正常上网,请及时续费!"
  18. }
  19. }

认证账号管理

获取数据,请求
  1. {
  2. //不需要认证主机
  3. "getAuthWhiteUserList":"",
  4. "getAuthUserList":""
  5. }
返回
  1. {
  2. "getAuthWhiteUserList":[
  3. {
  4. "ID":1,
  5. "authWhiteUserName":"",
  6. "authWhiteUserType":1,//1:IP,2:MAC,3:主机名 *_*
  7. "authWhiteUserNote":""
  8. }
  9. ],
  10. "getAuthUserList":[
  11. {
  12. "ID":1,
  13. "authUserEn":true, //生效开关
  14. "authUserID":"692048", //账号
  15. "authUserOn":true, //是否在线
  16. "authUserPwd":"password1", //密码
  17. "authUserRemark":"usernamehr", //备注
  18. "authUserValidPeriod":"2017-7-28", //有效时长
  19. "authUserValidPeriodType": 1,//1:永不过期,2:包时间,3:包日期 *_*
  20. "hasTimeout":true, //是否过期
  21. "authUserMaxCount": 1,//*_*
  22. "authUserConnectCount": 300,
  23. "uploadSpeed": 12,
  24. "downLoadSpeed": 12
  25. }
  26. ]
  27. }

设置数据

  1. {
  2. "setAuthWhiteUserList":{
  3. "type":"add",
  4. "data":{
  5. "authWhiteUserName":"",
  6. "authWhiteUserType":"",
  7. "authWhiteUserNote":""
  8. }
  9. }
  10. "setAuthWhiteUserList":{
  11. "type":"edit",
  12. "data":{
  13. "ID":1,
  14. "authWhiteUserName":"",
  15. "authWhiteUserType":"",
  16. "authWhiteUserNote":""
  17. }
  18. }
  19. "setAuthWhiteUserList":{
  20. "type":"delete",
  21. "data":[1,2,3]
  22. }
  23. //新增
  24. "setAuthUserList":{
  25. "type":"add",
  26. "data":{
  27. "authUserID":"692048", //账号
  28. "authUserPwd":"password1", //密码
  29. "authUserRemark":"usernamehr", //备注
  30. "authUserValidPeriod":"", //有效时长
  31. "authUserValidPeriodType":1,
  32. "authUserMaxCount":1,
  33. "authUserConnectCount":300,
  34. "uploadSpeed":12,
  35. "downLoadSpeed"12
  36. }
  37. }
  38. //生效开关
  39. "setAuthUserList":{
  40. "type":"switch",
  41. "data":{
  42. "ID":1,
  43. "authUserEn":true //生效开关
  44. }
  45. }
  46. //修改
  47. "setAuthUserList":{
  48. "type":"edit",
  49. "data":{
  50. "ID":1,
  51. "authUserID":"692048", //账号
  52. "authUserPwd":"password1", //密码
  53. "authUserRemark":"usernamehr", //备注
  54. "authUserValidPeriod":"", //有效时长
  55. "authUserValidPeriodType"2,
  56. "authUserMaxCount":1,
  57. "authUserConnectCount":300,
  58. "uploadSpeed":12,
  59. "downLoadSpeed"12
  60. }
  61. }
  62. //删除
  63. "setAuthUserList":{
  64. "type":"delete",
  65. "data":[1]
  66. }
  67. //导出数据
  68. {
  69. /goform/DownloadAuthUserCfg/auth_user.csv
  70. }
  71. //导入数据
  72. {
  73. /cgi-bin/UploadAuthUserCfg
  74. }
  75. }

AP管理

无线配置

获取数据,请求
  1. {
  2. "getAcManage":"",
  3. "getSsidList":""
  4. }
返回
  1. {
  2. "getAcManage":{
  3. "acManageEn":true
  4. },
  5. "getSsidList":[
  6. {
  7. "ID":0,
  8. "auth_mode": 0,//加密方式
  9. "freq_range": 0,//频段
  10. "hide_ssid_en": false, //隐藏SSID
  11. "password": "111111111",//无线密码密码
  12. "ssid": "Tenda_AP_1",//无线网络名称
  13. "status": true, //开关
  14. "user_islo_en": false,//客户端隔离
  15. "user_max": 12, //最大连接用户数
  16. "vlan_id": 66//VLANID
  17. }
  18. ]
  19. }

设置数据
修改数据

  1. {
  2. //开关切换
  3. "setAcManage":{
  4. "acManageEn":false,
  5. },
  6. //更多设置
  7. "setSsidListMore":{
  8. "ID":0,
  9. "user_islo_en":false,
  10. "hide_ssid_en":true,
  11. "user_max":12,
  12. "vlan_id": 66
  13. },
  14. //点击确定保存数据
  15. "setSsidList":{
  16. "type":"edit",
  17. "data":[{
  18. "ID":0,
  19. "auth_mode": 1,//加密方式
  20. "freq_range": 0,//频段
  21. "password": "111111111",//密码
  22. "ssid": "Tenda_AP_1",//无线网络名称
  23. "status":true,
  24. }]
  25. }
  26. //启用开关(暂时去除)
  27. "setSsidList":{
  28. "type":"switch",
  29. "data":{
  30. "ID":0,
  31. "status": true, //开关
  32. }
  33. }
  34. }

AP配置

获取数据,请求
  1. {
  2. "getAPList":""
  3. }
返回
  1. {
  2. "getAPList":[
  3. {
  4. "ID":1,
  5. "apName": "W125AP",
  6. "text": "000",
  7. "software_vertion":"1.2.0",
  8. "macAddr": "00:22:22:11:11:23",
  9. "ipAddr": "192.168.100.123",
  10. "currentststus": 0,
  11. "clientNum": "0/12",
  12. "clientNum_5g": "0/44",
  13. "rfNum": 1,
  14. "power": 12,
  15. "power_5g": 23,
  16. "real_channel": 0,
  17. "real_channel_5g": 144
  18. }
  19. ]
  20. }
获取单条AP的详细信息
  1. {
  2. "getAPListDetail":{
  3. "macAddr": "",
  4. }
  5. }
返回
  1. {
  2. "getAPListDetail":{
  3. "macAddr": "00:22:22:11:11:34",
  4. "ssidEn": "1,1,0,0,1,0,0,0",
  5. "ssidShow": "1,1,1,1,1,1,1,1,1,1,1,1",
  6. "ssidEn_5g": "1,0,0,0",
  7. "country": "BR",
  8. "country_5g": "CN",
  9. "netMode": 3,
  10. "netMode_5g": 0,
  11. "bandwidth": 1,
  12. "bandwidth_5g": "0",
  13. "channel": 3,
  14. "channel_5g": 40,
  15. "power": 20,
  16. "power_5g": 0,
  17. "rssi": 90,
  18. "rssi_5g": 0,
  19. "apsdEn": true,
  20. "apsdEn_5g": false,
  21. "precedence_5g": 1,
  22. "timeout": 15,
  23. "timeout_5g": 10
  24. }
  25. },
  26. "getChannel":{
  27. "channel":[0, 1,2,3,4,5,6,7,8,9,10,11,12,13]//2.4g无线信道选项 0为自动
  28. "channel_5g":{
  29. "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],
  30. "40": ["0", "36", "40", "44", "48", "52", "56", "60", "64", "100", "104", "108", "112", "120", "128", "132", "136", "140", "149", "153", "157", "161"],
  31. "80": [0, 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 132, 136, 140, 144, 149, 153, 157, 161]
  32. }
  33. }

设置数据

  1. {
  2. "setAPList":{
  3. "type":"edit",
  4. "data":[
  5. {
  6. "macAddr": "1",
  7. "text":"newText"
  8. }
  9. ]
  10. }
  11. }
  12. {
  13. "setAPList":{
  14. "type":"delete",
  15. "data":["00:12:...."]
  16. }
  17. }
设置单条数据 
  1. {
  2. "setAPCfg":{
  3. "macAddr": "00:22:22:11:11:34",
  4. "country": "BR",
  5. "country_5g": "CN",
  6. "netMode": 3,
  7. "netMode_5g": 0,
  8. "bandwidth": 1,
  9. "bandwidth_5g": 0,
  10. "channel": 3,
  11. "channel_5g": 40,
  12. "power": 20,
  13. "power_5g": 0,
  14. "rssi": 90,
  15. "rssi_5g": 0,
  16. "apsdEn": true,
  17. "apsdEn_5g": false,
  18. "precedence_5g": 1,
  19. "timeout": 15,
  20. "timeout_5g": 10
  21. }
  22. }
导出
  1. {
  2. "handleWtpInfo":{
  3. "language":"cn"
  4. "type":"ap"
  5. }
  6. }
重启
  1. {
  2. "rebootWtp":{
  3. "macAddr":["macAddress"]
  4. }
  5. }
升级
  1. {
  2. "getACMemoState":""
  3. }
复位
  1. {
  2. "restoreWtp":{
  3. "macAddr":["macAddress"]
  4. }
  5. }

射频配置

获取数据,请求
  1. {
  2. "getWLAdvance":""
  3. }
返回
  1. {
  2. "getWLAdvance":{
  3. "rf_net_mode": 1,
  4. "rf_band": 1,
  5. "rf_channel": 6,
  6. "rf_power": 22,
  7. "rf_rssi": 70,
  8. "rf_age_time": 5,
  9. "rf_wind_sched": 1,
  10. "rf_ssid_islo": false,
  11. "rf_transmission":true,
  12. "rf_wmm": true,
  13. "deploy":1,
  14. "rf_net_mode_5g": 1,
  15. "rf_band_5g": 1,
  16. "rf_channel_5g": 40,
  17. "rf_power_5g": 20,
  18. "rf_wind_sched_5g": 0,
  19. "rf_age_time_5g": 5,
  20. "rf_rssi_5g": 70,
  21. "rf_wmm_5g": true,
  22. "gl_driver_level":1,
  23. "gl_led_en":1,
  24. "gl_vlan_en": true,
  25. "gl_vlan_id": 22,
  26. "gl_pvid": 2,
  27. "gl_trunk": "1;1",
  28. "gl_vindicate_type":0,
  29. "gl_vindicate_time_point": 125, //分钟为单位
  30. "gl_vindicate_week": "1,0,1,0,1,0,1",
  31. "gl_vindicate_time_period": 1 //天为单位
  32. }
  33. }

设置数据

  1. {
  2. {
  3. "setWLAdvance":{//保存
  4. "rf_net_mode": 1,
  5. "rf_band": 1,
  6. "rf_channel": 6,
  7. "rf_power": 22,
  8. "rf_rssi": 70,
  9. "rf_age_time": 5,
  10. "rf_wind_sched": 1,
  11. "rf_ssid_islo": false,
  12. "rf_transmission":true,
  13. "rf_wmm": true,
  14. "deploy":1,
  15. "rf_net_mode_5g": 1,
  16. "rf_band_5g": 1,
  17. "rf_channel_5g": 40,
  18. "rf_power_5g": 20,
  19. "rf_wind_sched_5g": 0,
  20. "rf_age_time_5g": 5,
  21. "rf_rssi_5g": 70,
  22. "rf_wmm_5g": true,
  23. "gl_driver_level":1,
  24. "gl_led_en":1,
  25. "gl_vlan_en": true,
  26. "gl_vlan_id": 22,
  27. "gl_pvid": 2,
  28. "gl_trunk": "1;1",
  29. "gl_vindicate_type":0,
  30. "gl_vindicate_time_point": 125, //分钟为单位
  31. "gl_vindicate_week": "1,0,1,0,1,0,1",
  32. "gl_vindicate_time_period": 1 //天为单位
  33. }
  34. }
  35. }

行为管理

IP组与时间组

获取数据,请求
  1. {
  2. "getIPGroupList":"", //获取IP组
  3. "getTimeGroupList":"", //获取时间组
  4. "getLanIpMask":""
  5. }
返回
  1. {
  2. "getLanIpMask":{
  3. "lanIP": "192.168.0.1",
  4. "lanMask": "255.255.255.0"
  5. },
  6. "getIPGroupList":[
  7. {
  8. "ID":1,
  9. "IPGroupName": "allWifiGuest",
  10. "IPGroupStartIP": "192.168.10.10",
  11. "IPGroupEndIP": "192.168.10.20",
  12. "IPGroupRefer": 0,
  13. "IPGroupDefaultTag":true
  14. }
  15. ],
  16. "getTimeGroupList":[
  17. {
  18. "ID":1,
  19. "timeGroupName": "工作日",
  20. "timeGroupStartHour": 0,
  21. "timeGroupStartMinute": 0,
  22. "timeGroupEndHour": 23,
  23. "timeGroupEndMinute": 59,
  24. "timeGroupWeekday": "1111111",//通过该值判断是否全选
  25. "timeGroupRefer": 1
  26. }
  27. ]
  28. }

设置数据
时间组

  1. {
  2. //新增
  3. "setTimeGroupList":{
  4. "type":"add",
  5. "data":{
  6. "timeGroupName":"KD",
  7. "timeGroupStartHour":1,
  8. "timeGroupStartMinute":10,
  9. "timeGroupEndHour":12,
  10. "timeGroupEndMinute":12,
  11. "timeGroupWeekday":"1111111"
  12. }
  13. },
  14. //修改
  15. "setTimeGroupList":{
  16. "type":"edit",
  17. "data":{
  18. "ID":1,
  19. "timeGroupName":"工作日",
  20. "timeGroupStartHour":0,
  21. "timeGroupStartMinute":0,
  22. "timeGroupEndHour":23,
  23. "timeGroupEndMinute":59,
  24. "timeGroupWeekday":"1111111"
  25. }
  26. }
  27. //删除
  28. "setTimeGroupList":{
  29. "type":"delete",
  30. "data":[1, 3, 6]
  31. }
  32. }
  33. IP
  34. {
  35. //新增
  36. "setIPGroupList":{
  37. "type":"add",
  38. "data":{
  39. "IPGroupName":"KD_IP",
  40. "IPGroupStartIP":"192.168.1.1",
  41. "IPGroupEndIP":"192.168.1.2"
  42. }
  43. }
  44. //修改
  45. "setIPGroupList":{
  46. "type":"edit",
  47. "data":{
  48. "ID":1,
  49. "IPGroupName":"KD_IP",
  50. "IPGroupStartIP":"192.168.1.1",
  51. "IPGroupEndIP":"192.168.1.2"
  52. }
  53. }
  54. //删除
  55. "setIPGroupList":{
  56. "type":"delete",
  57. "data":[1, 2]
  58. }
  59. }

MAC地址过滤

获取数据,请求
  1. {
  2. "getMacFilter":"",
  3. "getTimeGroupList":"",
  4. "getMacFilterRules":""
  5. }
返回
  1. {
  2. "getMacFilter":{
  3. "macFilterEn": true,
  4. "macFilterDefaultPolicy": true
  5. },
  6. "getTimeGroupList":[{
  7. "ID":1,
  8. "timeGroupName": "工作日",
  9. "timeGroupStartHour": 0,
  10. "timeGroupStartMinute": 0,
  11. "timeGroupEndHour": 23,
  12. "timeGroupEndMinute": 59,
  13. "timeGroupWeekday": "1111111",//通过该值判断是否全选
  14. "timeGroupRefer": 1
  15. }],
  16. "getMacFilterRules":[{
  17. "ID":1,
  18. "macFilterRuleMode": "black",
  19. "macFilterRuleMac": "C8:3A:35:C8:C8:C8",
  20. "timeGroupName": "工作日",
  21. "macFilterRuleDesc": "macFilter remark",
  22. "macFilterRuleEn": true
  23. }]
  24. }

设置数据

  1. {
  2. //点击确定按钮
  3. "setMacFilter":{
  4. "macFilterEn":true,
  5. "macFilterDefaultPolicy":true
  6. },
  7. "setMacFilterRules":{
  8. "type":"add",
  9. "data":{
  10. "macFilterRuleMode":"black",
  11. "timeGroupName":"上班时间",
  12. "macFilterRuleMac":"C8:3A:35:C8:C8:C1",
  13. "macFilterRuleDesc":"sfdfsdf"
  14. }
  15. },
  16. //设置生效开关
  17. "setMacFilterRules":{
  18. "type":"switch",
  19. "data":{
  20. "ID":1,
  21. "macFilterRuleEn":false
  22. }
  23. }
  24. //修改
  25. "setMacFilterRules":{
  26. "type":"edit",
  27. "data":{
  28. "ID":1,
  29. "macFilterRuleMode":"black"
  30. "timeGroupName":"工作日"
  31. "macFilterRuleMac":"C8:3A:35:C8:C8:C8"
  32. "macFilterRuleDesc":"macFilter remark"
  33. }
  34. }
  35. //删除
  36. "setMacFilterRules":{
  37. "type":"delete",
  38. "data":[1,2,3]
  39. }
  40. }

IP地址过滤

获取数据,请求
  1. {
  2. "getIpFilter":"",
  3. "getIPGroupList":"",
  4. "getTimeGroupList":"",
  5. "getIpFilterRules":""
  6. }
返回
  1. {
  2. "getIpFilter":{
  3. "ipFilterEn": true,
  4. "ipFilterDefaultPolicy": true
  5. },
  6. "getIPGroupList":[
  7. {
  8. "IPGroupName": "allWifiGuest",
  9. "IPGroupRefer": 0,
  10. "IPGroupDefaultTag":true
  11. },{
  12. "IPGroupName": "LaN~DefAUlt$GrOuP",
  13. "IPGroupRefer": 1,
  14. "IPGroupDefaultTag":true
  15. }
  16. ],
  17. "getTimeGroupList":[{
  18. "ID":1,
  19. "timeGroupName": "工作日",
  20. "timeGroupStartHour": 0,
  21. "timeGroupStartMinute": 0,
  22. "timeGroupEndHour": 23,
  23. "timeGroupEndMinute": 59,
  24. "timeGroupWeekday": "1111111",//通过该值判断是否全选
  25. "timeGroupRefer": 1
  26. }],
  27. "getIpFilterRules":[{
  28. "ID":1,
  29. "ipFilterRuleMode": "black",
  30. "ipGroupName": "aa",
  31. "timeGroupName": "工作日",
  32. "ipFilterRuleDesc": "ipFilter remark",
  33. "ipFilterRuleEn": true
  34. }]
  35. }

设置数据

  1. {
  2. //点击确定按钮
  3. "setIpFilter":{
  4. "ipFilterEn":true
  5. "ipFilterDefaultPolicy":true
  6. },
  7. "setIpFilterRules":{
  8. "type":"add",
  9. "data":{
  10. "ipFilterRuleMode":"black",
  11. "ipGroupName":"reasyui2",
  12. "timeGroupName":"工作日",
  13. "ipFilterRuleDesc":"ipFilter remark"
  14. }
  15. },
  16. //设置生效开关
  17. "setIpFilterRules":{
  18. "type":"switch",
  19. "data":{
  20. "ID":1,
  21. "ipFilterRuleEn":false
  22. }
  23. }
  24. //修改
  25. "setIpFilterRules":{
  26. "type":"edit",
  27. "data":{
  28. "ID":1,
  29. "ipFilterRuleMode":"black",
  30. "ipGroupName":"reasyui2",
  31. "timeGroupName":"工作日",
  32. "ipFilterRuleDesc":"ipFilter remark"
  33. }
  34. }
  35. //删除
  36. "setIpFilterRules":{
  37. "type":"delete",
  38. "data":[1,2,3]
  39. }
  40. }

端口过滤

获取数据,请求
  1. {
  2. "getPortFilter":"",
  3. "getIPGroupList":"",
  4. "getTimeGroupList":"",
  5. "getPortFilterRules":""
  6. }
返回
  1. {
  2. "getPortFilter":{
  3. "portFilterEn": true,
  4. "portFilterDefaultPolicy": true
  5. },
  6. "getIPGroupList":[
  7. {
  8. "IPGroupName": "allWifiGuest",
  9. "IPGroupRefer": 0,
  10. "IPGroupDefaultTag":true
  11. },{
  12. "IPGroupName": "LaN~DefAUlt$GrOuP",
  13. "IPGroupRefer": 1,
  14. "IPGroupDefaultTag":true
  15. }
  16. ],
  17. "getTimeGroupList":[{
  18. "ID":1,
  19. "timeGroupName": "工作日",
  20. "timeGroupStartHour": 0,
  21. "timeGroupStartMinute": 0,
  22. "timeGroupEndHour": 23,
  23. "timeGroupEndMinute": 59,
  24. "timeGroupWeekday": "1111111",//通过该值判断是否全选
  25. "timeGroupRefer": 1
  26. }],
  27. "getPortFilterRules":[
  28. {
  29. "ID":1,
  30. "IPGroupName": "DeFaULt~SegMeNT",
  31. "timeGroupName": "工作日",
  32. "portFilterRuleStartPort": 1,
  33. "portFilterRuleEndPort": 65535,
  34. "portFilterRuleProtocol": "TCP",
  35. "portFilterRuleEn": true
  36. }
  37. ]
  38. }

设置数据

  1. {
  2. //确定按钮
  3. "setPortFilter":{
  4. "portFilterEn":true
  5. },
  6. //新增
  7. "setPortFilterRules":{
  8. "type":"add",
  9. "data":{
  10. "IPGroupName":"allWifiGuest",
  11. "timeGroupName":"工作日",
  12. "portFilterRuleStartPort":123,
  13. "portFilterRuleEndPort":12312,
  14. "portFilterRuleProtocol":"ALL"
  15. }
  16. },
  17. //生效开关
  18. "setPortFilterRules":{
  19. "type":"switch",
  20. "data":{
  21. "ID":1,
  22. "portFilterRuleEn":true
  23. }
  24. },
  25. //修改数据
  26. "setPortFilterRules":{
  27. "type":"edit",
  28. "data":{
  29. "ID":1,
  30. "IPGroupName":"DeFaULt~SegMeNT",
  31. "timeGroupName":"工作日",
  32. "portFilterRuleStartPort":1,
  33. "portFilterRuleEndPort":65535,
  34. "portFilterRuleProtocol":"TCP"
  35. }
  36. },
  37. //删除
  38. "setPortFilterRules":{
  39. "type":"delete",
  40. "data":[1, 2, 3]
  41. }
  42. }

网络应用过滤

获取数据, 请求
  1. {
  2. "getAllowQQs":"",
  3. "getWebAppFilter":"",
  4. "getWebAppList":"",
  5. "getWebAppTypeIdNames":"",
  6. "getIPGroupList":"",
  7. "getTimeGroupList":"",
  8. "getWebAppFilterRules":"",
  9. "getWebAppIdNames":""
  10. }
返回
  1. {
  2. "getAllowQQs":[
  3. {
  4. "ID":1,
  5. "allowQQ": "123456789",
  6. "allowQQRemark": "老板的QQ"
  7. }
  8. ],
  9. "getWebAppFilter":{
  10. "webAppFilterEn": false
  11. },
  12. "getWebAppList":[
  13. {
  14. "webAppGroupId": 1,
  15. "webAppGroupName": "聊天",
  16. "webApps": {
  17. "1": [
  18. {
  19. "webAppId": 1,
  20. "webAppName": "腾讯QQ"
  21. }
  22. ],
  23. "2": [
  24. {
  25. "webAppId": 21,
  26. "webAppName": "腾讯QQ"
  27. }
  28. ]
  29. }
  30. }
  31. ],
  32. "getWebAppTypeIdNames":{"0":"电脑端","2":"移动端","3":"WEB视频"},
  33. "getIPGroupList":[
  34. {
  35. "IPGroupName": "allWifiGuest",
  36. "IPGroupRefer": 0,
  37. "IPGroupDefaultTag":true
  38. },{
  39. "IPGroupName": "LaN~DefAUlt$GrOuP",
  40. "IPGroupRefer": 1,
  41. "IPGroupDefaultTag":true
  42. }
  43. ],
  44. "getTimeGroupList":[{
  45. "ID":1,
  46. "timeGroupName": "工作日",
  47. "timeGroupStartHour": 0,
  48. "timeGroupStartMinute": 0,
  49. "timeGroupEndHour": 23,
  50. "timeGroupEndMinute": 59,
  51. "timeGroupWeekday": "1111111",//通过该值判断是否全选
  52. "timeGroupRefer": 1
  53. }],
  54. "getWebAppFilterRules":[
  55. {
  56. "ID":0,
  57. "IPGroupName": "DeFaULt~SegMeNT",
  58. "timeGroupName": "工作日",
  59. "appFilterRuleDesc":"备注信息",
  60. "webAppFilterRuleApps": "2,3",
  61. "webAppFilterRuleEn": true
  62. }
  63. ],
  64. "getWebAppIdNames":{"1":"腾讯QQ","2":"腾讯TM","3":"QT语音","4":"飞信"}
  65. }

设置数据

  1. {
  2. //保存
  3. "setWebAppFilter":{
  4. "webAppFilterEn":true
  5. },
  6. //添加QQ
  7. "setAllowQQs":{
  8. "type":"add",
  9. "data":[
  10. {
  11. "allowQQ": "123456789",
  12. "allowQQRemark": "老板的QQ"
  13. }
  14. ]
  15. },
  16. //删除QQ
  17. "setAllowQQs":{
  18. "type":"delete",
  19. "data":[1,3]
  20. },
  21. //新增规则
  22. "setWebAppFilterRules":{
  23. "type":"add",
  24. "data":{
  25. "IPGroupName":"ds",
  26. "timeGroupName":"工作日",
  27. "appFilterRuleDesc":"备注信息",
  28. "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"
  29. }
  30. },
  31. //生效开关
  32. "setWebAppFilterRules":{
  33. "type":"switch",
  34. "data":{
  35. "ID":0,
  36. "webAppFilterRuleEn":false
  37. }
  38. },
  39. //修改规则
  40. "setWebAppFilterRules":{
  41. "type":"eidt",
  42. "data":{
  43. "ID":1,
  44. "IPGroupName":"ds",
  45. "timeGroupName":"工作日",
  46. "appFilterRuleDesc":"xxx",
  47. "webAppFilterRuleApps":"41 42 43 44 45 46 179 180"
  48. }
  49. },
  50. //删除规则
  51. "setWebAppFilterRules":{
  52. "type":"delete",
  53. "data":[1, 3]
  54. }
  55. }

网址分类过滤

获取数据,请求
  1. {
  2. "getIPGroupList":"",
  3. "getTimeGroupList":"",
  4. "getUrlGroupList":"",
  5. "getUrlFilter":"",
  6. "getUrlFilterRules":""
  7. //单个点击
  8. "getUrls":{
  9. "urlGroupName":"政府职能",
  10. "urlGroupType":"sys"
  11. }
  12. }
返回
  1. {
  2. "getIPGroupList":[
  3. {
  4. "IPGroupName": "allWifiGuest",
  5. "IPGroupRefer": 0,
  6. "IPGroupDefaultTag":true
  7. },{
  8. "IPGroupName": "LaN~DefAUlt$GrOuP",
  9. "IPGroupRefer": 1,
  10. "IPGroupDefaultTag":true
  11. }
  12. ],
  13. "getTimeGroupList":[{
  14. "ID":1,
  15. "timeGroupName": "工作日",
  16. "timeGroupStartHour": 0,
  17. "timeGroupStartMinute": 0,
  18. "timeGroupEndHour": 23,
  19. "timeGroupEndMinute": 59,
  20. "timeGroupWeekday": "1111111",//通过该值判断是否全选
  21. "timeGroupRefer": 1
  22. }],
  23. "getUrlGroupList":
  24. {
  25. "urlSysGroupList":[{
  26. "urlGroupId": 1,
  27. "urlGroupName": "休闲娱乐",
  28. "urlGroupClassify": [
  29. {
  30. "typeId": 1,
  31. "typeName": "音乐网站"
  32. }
  33. ]
  34. }],
  35. "urlUserGroupList":[{
  36. "urlGroupId": 1,
  37. "urlGroupName": "购物3",
  38. "urlGroupRefer": 0
  39. }]
  40. },
  41. "getUrlFilter":{
  42. "urlFilterEn": true
  43. },
  44. "getUrlFilterRules":[
  45. {
  46. "ID":1,
  47. "urlFilterRuleEn": false,
  48. "urlFilterRemark": "xxxx",//新增字段,备注
  49. "urlFilterRuleMode":"white",
  50. "urlFilterGroups": "1,2,3,4;1,2,124,125,126,127,128",
  51. "IPGroupName": "DeFaULt~SegMeNT",
  52. "timeGroupName": "工作日"
  53. }
  54. ],
  55. "getUrls":[
  56. {
  57. "ID":1,
  58. "urlRemark": "亚马逊",
  59. "urlString": "www.amazon.cn"
  60. }, {
  61. "ID":2,
  62. "urlRemark": "当当网",
  63. "urlString": "www.dangdang.com"
  64. }
  65. ]
  66. }

设置数据

  1. {
  2. //保存
  3. "setUrlFilter":{
  4. "urlFilterEn":true
  5. },
  6. //新增规则
  7. "setUrlFilterRules":{
  8. "type":"add",
  9. "data":{
  10. "urlFilterRuleMode":"white",
  11. "IPGroupName":"ds",
  12. "urlFilterRemark":"备注",//新增字段
  13. "timeGroupName":"工作日",
  14. "urlFilterGroups":"1,4;1,2,3,4,5,6,7,8,9,10, 11"//系统和自定义的用;隔开,内部用,隔开,前面是自定义后面是系统
  15. }
  16. },
  17. //生效开关
  18. "setUrlFilterRules":{
  19. "type":"switch",
  20. "data":{
  21. "ID":1,
  22. "urlFilterRuleEn":true
  23. }
  24. },
  25. //修改规则
  26. "setUrlFilterRules":{
  27. "type":"edit",
  28. "data":{
  29. "ID":1,
  30. "urlFilterRuleMode":"white",
  31. "IPGroupName":"ds",
  32. "urlFilterRemark":"备注",//新增字段
  33. "timeGroupName":"工作日",
  34. "urlFilterGroups":"1,4;1,2,3,4,5,6,7,8,9,10, 11"
  35. }
  36. },
  37. //删除规则
  38. "setUrlFilterRules":{
  39. "type":"delete",
  40. "data":[1, 2, 3]
  41. },
  42. //新增分类
  43. "setUrlGroup":{
  44. "urlGroupName":"士大夫",
  45. "urlString":"www.baidu.com",
  46. "urlRemark":"第三方都是"
  47. },
  48. "delUrlGroup":{
  49. "urlGroupId":1
  50. },
  51. "setUrl":{
  52. "type":"delete",
  53. "data":{
  54. "ID":1,
  55. "urlGroupName":"xxxx"
  56. }
  57. },
  58. "setUrl":{
  59. "type":"add",
  60. "data":{
  61. "urlGroupName":"购物3",
  62. "urlString":"www.lofter.com",
  63. "urlRemark":"lofter"
  64. }
  65. }
  66. }

多WAN策略

获取数据, 请求
  1. {
  2. "getWanRoutePolicy":"",
  3. "getIPGroupList":"",
  4. "getWanRouteRules":""
  5. }
返回
  1. {
  2. "getWanRoutePolicy":{
  3. "wanRoutePolicyType": "custom", //增加一个值 custom(自定义),auto(智能),autoIP(基于源IP与目的IP的负载均衡)
  4. //新增接口
  5. "wanDetectEn":true,
  6. "wanDetectUrl":"www.baidu.com",
  7. "wanDetectInterval":5
  8. },
  9. "getIPGroupList":[
  10. {
  11. "IPGroupName": "allWifiGuest",
  12. "IPGroupRefer": 0,
  13. "IPGroupDefaultTag":true
  14. },{
  15. "IPGroupName": "LaN~DefAUlt$GrOuP",
  16. "IPGroupRefer": 1,
  17. "IPGroupDefaultTag":true
  18. }
  19. ],
  20. "getWanRouteRules":[
  21. {
  22. "ID":1,
  23. "IPGroupName": "DeFaULt~SegMeNT",
  24. "wanRouteRuleWAN": "WAN1",
  25. "wanRouteRuleEn": false
  26. }
  27. ]
  28. }

设置数据

  1. {
  2. //保存按钮
  3. "setWanRoutePolicy":{
  4. "wanRoutePolicyType": "custom"
  5. "wanDetectEn":true,
  6. "wanDetectUrl":"www.baidu.com",
  7. "wanDetectInterval":5
  8. },
  9. //新增
  10. "setWanRouteRules":{
  11. "type":"add",
  12. "data":{
  13. "IPGroupName": "DeFaULt~SegMeNT",
  14. "wanRouteRuleWAN": "WAN1"
  15. }
  16. },
  17. //生效开关
  18. "setWanRouteRules":{
  19. "type":"switch",
  20. "data":{
  21. "ID":1,
  22. "wanRouteRuleEn":true
  23. }
  24. },
  25. //修改
  26. "setWanRouteRules":{
  27. "type":"eidt",
  28. "data":{
  29. "ID":1,
  30. "IPGroupName": "DeFaULt~SegMeNT",
  31. "wanRouteRuleWAN": "WAN1"
  32. }
  33. },
  34. //删除
  35. "setWanRouteRules":{
  36. "type":"delete",
  37. "data":[1, 3, 4]
  38. }
  39. }

VPN服务

PPTP/L2TP客户端

获取数据,请求
  1. {
  2. "getLanIpMask":"",
  3. "getVpnClient":""
  4. }
返回
  1. {
  2. "getLanIpMask":{
  3. "lanIP": "192.168.0.1",
  4. "lanMask": "255.255.255.0"
  5. },
  6. "getVpnClient":{
  7. "vpnClientEn": true,
  8. "vpnClientType": "l2tp",
  9. "vpnClientWAN": "WAN2",
  10. "vpnClientServerAddr": "1.0.0.1",
  11. "vpnClientUser": "user",
  12. "vpnClientPwd": "123",
  13. "vpnClientEncryptEn": true,
  14. "vpnClientAgentEn": true,
  15. "vpnClientServerNetAddr": "1.0.0.0",
  16. "vpnClientServerNetMask": "255.0.0.0",
  17. "vpnClientConnectStatus": "disconnected",
  18. "vpnClientIP": "1.0.0.3"
  19. }
  20. }

设置数据
请求

  1. {
  2. "setVpnClient":{
  3. "vpnClientEn": true,
  4. "vpnClientType": "l2tp",
  5. "vpnClientWAN": "WAN2",
  6. "vpnClientServerAddr": "1.0.0.1",
  7. "vpnClientUser": "user",
  8. "vpnClientPwd": "123",
  9. "vpnClientEncryptEn": true,
  10. "vpnClientAgentEn": true,
  11. "vpnClientServerNetAddr": "1.0.0.0",
  12. "vpnClientServerNetMask": "255.0.0.0",
  13. }
  14. }

PPTP/L2TP服务端

获取数据,请求
  1. {
  2. "getLanIpMask":"",
  3. "getVpnServer":"",
  4. "getVpnUserList":""
  5. }
返回
  1. {
  2. "getLanIpMask":{
  3. "lanIP": "192.168.0.1",
  4. "lanMask": "255.255.255.0"
  5. },
  6. "getVpnServer":{
  7. "vpnServerEn": true,
  8. "vpnServerType": "pptp",
  9. "vpnServerWAN": "WAN2",
  10. "pptpServerEncrypt": true,
  11. "l2tpServerEncryptArr": [{
  12. "wanPort":"WAN1",
  13. "ipsecLink":["aa","bb"]
  14. },{
  15. "wanPort":"WAN2",
  16. "ipsecLink":["cc","dd"]
  17. }],
  18. "l2tpServerEncrypt": "disable",
  19. "vpnServerAddrPool": "10.0.0.0",
  20. "vpnServerMaxConnections": 15
  21. },
  22. "getVpnUserList":[
  23. {
  24. "ID":1,
  25. "vpnUserName": "user1asdfawed",
  26. "vpnUserPwd": "123asdfasdfas",
  27. "vpnUserType": true,
  28. "vpnUserNetAddr": "192.168.1.0",
  29. "vpnUserNetMask": "255.255.255.0",
  30. "vpnUserRemark": "what's up,man",
  31. "vpnUserEn":true, // 新增字段
  32. "vpnUserStatus":true //是否在线
  33. }
  34. ]
  35. }

设置数据

  1. //设置VPNserver
  2. {
  3. "setVpnServer":{
  4. "vpnServerEn":true
  5. "vpnServerType":"l2tp"
  6. "vpnServerWAN":"WAN2"
  7. "l2tpServerEncrypt":"disable" //或者 ("pptpServerEncrypt":true)
  8. }
  9. }
  10. //新增PPTP用户
  11. {
  12. "setVpnUserList":{
  13. "type":"add",
  14. "data":{
  15. "vpnUserName": "JD",
  16. "vpnUserPwd": "123123",
  17. "vpnUserType": true,
  18. "vpnUserNetAddr": "192.168.120.0",
  19. "vpnUserNetMask": "255.255.255.0",
  20. "vpnUserRemark": "JD"
  21. }
  22. }
  23. }
  24. //生效开关
  25. {
  26. "setVpnUserList":{
  27. "type":"switch",
  28. "data":{
  29. "ID":1,
  30. "vpnUserEn":true
  31. }
  32. }
  33. }
  34. //修改PPTP用户
  35. {
  36. "setVpnUserList":{
  37. "type":"edit",
  38. "data":{
  39. "ID":1,
  40. "vpnUserName": "JD",
  41. "vpnUserPwd": "123123",
  42. "vpnUserType": true,
  43. "vpnUserNetAddr": "192.168.120.0",
  44. "vpnUserNetMask": "255.255.255.0",
  45. "vpnUserRemark": "JD"
  46. }
  47. }
  48. }
  49. //删除PPTP用户
  50. {
  51. "setVpnUserList":{
  52. "type":"delete",
  53. "data":[1, 2, 3, 4]
  54. }
  55. }

IPsec

获取数据,请求
  1. {
  2. "getWanData":"",
  3. "getLanIpMask":"",
  4. "getQvlan":"",
  5. "getPppoes":"",
  6. "getGuest":"",
  7. "getIPsecTunnelList":""
  8. "getIPsecTunnel":{
  9. "ID":1
  10. }
  11. }
返回
  1. {
  2. "getWanData":[{
  3. "ID":0,
  4. "wanIP": "192.168.9.1",
  5. "wanMask": "255.255.255.0",
  6. "wanGateWay":"192.168.11.1"
  7. }],
  8. "getLanIpMask":{
  9. "lanIP": "192.168.0.1",
  10. "lanMask": "255.255.255.0"
  11. },
  12. "getL2TPServer":{
  13. "serverIP": "192.168.9.1",
  14. "serverMask": "255.255.255.0"
  15. },
  16. "getPPTPServer":{
  17. "serverIP": "192.168.8.1",
  18. "serverMask": "255.255.255.0"
  19. },
  20. "getQvlan":[
  21. {
  22. "ID":0,
  23. "vlanName":"vlan1",
  24. "vlanIP":"192.168.1.2",
  25. "vlanMask":"255.255.255.0"
  26. }
  27. ],
  28. "getPppoes":{
  29. "pppoesIP": "192.168.2.1",
  30. "pppoesMask": "255.255.255.0"
  31. },
  32. "getGuest": {
  33. "guestIP": "192.168.10.1",
  34. "guestMask": "255.255.255.0"
  35. },
  36. "getIPsecTunnelList":[
  37. {
  38. "ID":0,
  39. "IPsecEn": false,
  40. "IPsecWrapMode": "tunnel",
  41. "IPsecWAN":"WAN2",
  42. "IPsecConnectName": "con1",
  43. "IPsecTunnelProtocol": "ESP/AH/AH+ESP",
  44. "IPsecRemoteNet": "192.168.1.0/24",
  45. "IPsecGateway": "1.0.0.1",
  46. "IPsecRefer": 0,
  47. "IPsecSwitchEn":true //生效开关, 新增字段
  48. }
  49. ],
  50. "getIPsecTunnel":{
  51. "IPsecEn":true,
  52. "IPsecWrapMode":"tunnel",
  53. "IPsecWAN":"WAN2",
  54. "IPsecConnectName":"JD",
  55. "IPsecDealMode":1,//协商模式(1:初始者,2:响应者),新增字段
  56. "IPsecTunnelProtocol":"ESP",
  57. "IPsecGateway":"192.168.100.1",
  58. "IPsecLocalNet":"192.168.10.0/23",
  59. "IPsecRemoteNet":"192.168.100.0/24",
  60. "IPsecNegotiation":"auto",
  61. "IPsecSecurity":"psk",
  62. "IPsecSharePwd":"123123",
  63. "IPsecMode":"main",
  64. "IPsecEncrypt1":"3DES",
  65. "IPsecVerify1":"SHA1",
  66. "IPsecDH1":"768",
  67. "IPsecPwdValidity1":3600,
  68. "IPsecPFSEn":true,
  69. "IPsecEncrypt2":"3DES",
  70. "IPsecVerify2":"SHA1",
  71. "IPsecDH2":768,
  72. "IPsecPwdValidity2":3600,
  73. "IPsecDPDEn":true, //DPD检测开启,新增字段
  74. "IPsecDPDTime":10 //DPD检测周期,新增字段
  75. }
  76. }

设置数据

  1. //新增
  2. {
  3. "setIPsecTunnelList":{
  4. "type":"add",
  5. "data":{
  6. "IPsecEn":true,
  7. "IPsecWrapMode":"tunnel",
  8. "IPsecWAN":"WAN2",
  9. "IPsecConnectName":"JD",
  10. "IPsecTunnelProtocol":"ESP",
  11. "IPsecGateway":"192.168.100.1",
  12. "IPsecLocalNet":"192.168.10.0/23",
  13. "IPsecRemoteNet":"192.168.100.0/24",
  14. "IPsecNegotiation":"auto",
  15. "IPsecSecurity":"psk",
  16. "IPsecSharePwd":"123123",
  17. "IPsecMode":"main",
  18. "IPsecEncrypt1":"3DES",
  19. "IPsecVerify1":"SHA1",
  20. "IPsecDH1":"768",
  21. "IPsecPwdValidity1":3600,
  22. "IPsecPFSEn":true,
  23. "IPsecEncrypt2":"3DES",
  24. "IPsecVerify2":"SHA1",
  25. "IPsecDH2":768,
  26. "IPsecPwdValidity2":3600,
  27. "IPsecDPDEn":true, //DPD检测开启,新增字段
  28. "IPsecDPDTime":10 //DPD检测周期,新增字段
  29. }
  30. }
  31. }
  32. //生效开关
  33. {
  34. "setIPsecTunnelList":{
  35. "type":"switch",
  36. "data":{
  37. "ID":1,
  38. "IPsecSwitchEn":false
  39. }
  40. }
  41. }
  42. //修改
  43. {
  44. "setIPsecTunnelList":{
  45. "tyep":"edit",
  46. "data":{
  47. "ID":1,
  48. "IPsecEn":true,
  49. "IPsecWrapMode":"tunnel",
  50. "IPsecWAN":"WAN2",
  51. "IPsecConnectName":"JD",
  52. "IPsecDealMode":1,
  53. "IPsecTunnelProtocol":"ESP",
  54. "IPsecGateway":"192.168.100.1",
  55. "IPsecLocalNet":"192.168.10.0/23",
  56. "IPsecRemoteNet":"192.168.100.0/24",
  57. "IPsecNegotiation":"auto",
  58. "IPsecSecurity":"psk",
  59. "IPsecSharePwd":"123123",
  60. "IPsecMode":"main",
  61. "IPsecEncrypt1":"3DES",
  62. "IPsecVerify1":"SHA1",
  63. "IPsecDH1":"768",
  64. "IPsecPwdValidity1":3600,
  65. "IPsecPFSEn":true,
  66. "IPsecEncrypt2":"3DES",
  67. "IPsecVerify2":"SHA1",
  68. "IPsecDH2":768,
  69. "IPsecPwdValidity2":3600,
  70. "IPsecDPDEn":true, //新增字段
  71. "IPsecDPDTime":10 //新增字段
  72. }
  73. }
  74. }
  75. //删除
  76. {
  77. "setIPsecTunnelList":{
  78. "type":"delete",
  79. "data":[1, 3]
  80. }
  81. }

更多功能

局域网设置

获取数据,请求
  1. {
  2. "getWanData":"",
  3. "getLanIpMask":"",
  4. "getL2TPServer":"",
  5. "getPPTPServer":"",
  6. "getQvlan":"",
  7. "getPppoes":"",
  8. "getGuest":"",
  9. "getDhcpClientList":"", //原名getDhcpBindList
  10. "getDhcpServerList":"",
  11. "getDhcpStaticBindList":""//原名getDhcpStaticList
  12. }
返回
  1. {
  2. "getWanData":[{
  3. "ID":0,
  4. "wanIP": "192.168.9.1",
  5. "wanMask": "255.255.255.0",
  6. "wanGateWay":"192.168.11.1"
  7. }],
  8. "getLanIpMask":{
  9. "lanIP": "192.168.0.1",
  10. "lanMask": "255.255.255.0"
  11. },
  12. "getL2TPServer":{
  13. "serverIP": "192.168.9.1",
  14. "serverMask": "255.255.255.0"
  15. },
  16. "getPPTPServer":{
  17. "serverIP": "192.168.8.1",
  18. "serverMask": "255.255.255.0"
  19. },
  20. "getQvlan":[
  21. {
  22. "ID":0,
  23. "vlanName":"vlan1",
  24. "vlanIP":"192.168.1.2",
  25. "vlanMask":"255.255.255.0"
  26. }
  27. ],
  28. "getPppoes":{
  29. "pppoesIP": "192.168.2.1",
  30. "pppoesMask": "255.255.255.0"
  31. },
  32. "getGuest": {
  33. "guestIP": "192.168.10.1",
  34. "guestMask": "255.255.255.0"
  35. },
  36. "getDhcpClientList":[
  37. {
  38. "ID":0,
  39. "bindIPAddr": "192.168.2.130",
  40. "bindMACAddr": "fc:4d:d4:f8:71:aa",
  41. "hostName":"xxxxx",
  42. "bindStatus": true
  43. }
  44. ],
  45. "getDhcpServerList":[{
  46. "dhcpServerEn" : false,
  47. "dhcpServerStartIP" : "192.168.0.2",
  48. "dhcpServerEndIP" : "192.168.0.254",
  49. "dhcpServerReleaseTime" : 360,
  50. "dhcpServerDns1": "192.168.0.1",
  51. "dhcpServerDns2": "192.168.0.1"
  52. }],
  53. "getDhcpStaticBindList":[
  54. {
  55. "ID":0,
  56. "bindIPAddr": "192.168.2.134",
  57. "bindMACAddr": "fc:4d:d4:f8:71:cd",
  58. "bindRemark": "",
  59. "enableStatus": false
  60. }
  61. ]
  62. }

DHCP列表

  1. //修改
  2. {
  3. "setDhcpStaticBindList":{ //原名setDhcpStaticList
  4. "type":"edit",
  5. "data":{
  6. "ID":0,
  7. "bindMACAddr":"fc:4d:d4:f8:71:cd",
  8. "bindIPAddr":"192.168.1.132",
  9. "bindRemark":"测试",
  10. "enableStatus":true
  11. }
  12. }
  13. }
  14. //新增
  15. {
  16. "setDhcpStaticBindList":{
  17. "type":"add",
  18. "data":{
  19. "bindMACAddr":"fc:4d:d4:f8:71:cd",
  20. "bindIPAddr":"192.168.1.132",
  21. "bindRemark":"测试",
  22. "enableStatus":true
  23. }
  24. }
  25. }
  26. //删除
  27. {
  28. "setDhcpStaticBindList":{
  29. "type":"delete",
  30. "data":[1,3,4,6]
  31. }
  32. }
  33. //绑定DHCP
  34. {
  35. "setDhcpClientList":{
  36. "type":"edit",
  37. "data":[{
  38. "ID":1,
  39. "bindMACAddr":"fc:4d:d4:f8:71:cd",
  40. "bindIPAddr":"192.168.1.132",
  41. "bindStatus":true
  42. }]
  43. }
  44. }
  45. //DHCP服务器列表形式
  46. {
  47. }
  48. //保存数据
  49. {
  50. "setLanIpMask":{
  51. "lanIP": "192.168.0.1",
  52. "lanMask": "255.255.255.0"
  53. },
  54. // 局域网设置,AP lan口设置
  55. "setApLanIp":{
  56. "lanIP": "192.168.0.1"
  57. },
  58. "setDhcpServer":{ //DHCP单个显示形式
  59. "dhcpServerEn" : false,
  60. "dhcpServerStartIP" : "192.168.0.2",
  61. "dhcpServerEndIP" : "192.168.0.254",
  62. "dhcpServerReleaseTime" : 360,
  63. "dhcpServerDns1": "192.168.0.1",
  64. "dhcpServerDns2": "192.168.0.1"
  65. }
  66. }

WAN口参数

获取数据,请求
  1. {
  2. "getWan":"",
  3. "getfastNat":""
  4. }
返回
  1. {
  2. "getWan":[
  3. {
  4. "ID":1
  5. "wanMacCurrent":"C8:3A:35:42:22:22",
  6. "wanMacCurrentPc":"C8:3A:35:42:22:22",
  7. "wanMacDefault":"C8:3A:35:42:11:22",
  8. "wanMacType":"currentPc",
  9. "wanMtu":1492,
  10. "wanSpeed":-100,
  11. "wanType":"pppoe",
  12. }
  13. ],
  14. "getFastNat":{
  15. fastnatEn:true
  16. }
  17. }

修改数据
请求

  1. {
  2. "setWan":{
  3. "type":"edit",
  4. "data":[
  5. {
  6. "ID":1,
  7. "wanSpeed":"auto",
  8. "wanMtu":"1492",
  9. "wanMacType":"currentPc"
  10. }
  11. ]
  12. },
  13. "setFastNat":{
  14. fastnatEn:true
  15. }
  16. }

端口映射

获取数据,请求
  1. {
  2. "getLanIpMask":"",
  3. "getPortMapping":""
  4. }
返回
  1. {
  2. "getLanIpMask":{
  3. "lanIP": "192.168.0.1",
  4. "lanMask":"255.255.255.0"
  5. }
  6. "getPortMapping":[
  7. {
  8. "ID":1,
  9. "portMappingServer": "192.168.0.100",
  10. "porMappingtInternal": "100-200",
  11. "portMappingExternal": "100-200",
  12. "portMappingProtocol": "TCP",
  13. "portMappingWan": "WAN1",
  14. "portMappingEn": true
  15. }
  16. ]
  17. }

新增数据
请求

  1. {
  2. "setPortMapping":{
  3. "type":"add",
  4. "data":{
  5. "portMappingServer":"192.168.0.1",
  6. "innerPortUpstream":1,
  7. "innerPortDownstream":31,
  8. "outerPortUpstream":1,
  9. "outerPortDownstream":31,
  10. "portMappingProtocol":1,
  11. "portMappingWan":1,
  12. "porMappingtInternal":"1-31",
  13. "portMappingExternal":"1-31",
  14. }
  15. }
  16. }

显示隐藏开关

  1. {
  2. "setPortMapping":{
  3. "type":"switch",
  4. "data":{
  5. "ID":1,
  6. "portMappingEn":true
  7. }
  8. }
  9. }

修改数据
请求

  1. {
  2. "setPortMapping":{
  3. "type":"edit",
  4. "data":{
  5. "ID":1,
  6. "portMappingServer":"192.168.0.1",
  7. "innerPortUpstream":1,
  8. "innerPortDownstream":31,
  9. "outerPortUpstream":1,
  10. "outerPortDownstream":31,
  11. "portMappingProtocol":1,
  12. "portMappingWan":1,
  13. "porMappingtInternal":"1-31",
  14. "portMappingExternal":"1-31",
  15. }
  16. }
  17. }

删除数据
请求

  1. {
  2. "setPortMapping":{
  3. "type":"delete",
  4. "data":[1, 2, 3] //删除数据的ID值数组
  5. }
  6. }

DMZ主机

获取数据,请求
  1. {
  2. "getLanIpMask":"",
  3. "getDMZ":""
  4. }
返回
  1. {
  2. "getLanIpMask":{
  3. "lanIP":"192.168.1.98",
  4. "lanMask":"255.255.255.0"
  5. },
  6. "getDMZ":[
  7. {
  8. "ID":0,
  9. "dmzEn":false,
  10. "vpnFilter": true,
  11. "dmzHost":"192.168.1.11"
  12. }
  13. ]
  14. }

修改数据
请求

  1. {
  2. "setDMZ":{
  3. "type":"edit",
  4. "data":[
  5. {
  6. "ID":0,
  7. "dmzEn":false,
  8. "vpnFilter": true,
  9. "dmzHost":"192.168.1.11"
  10. }
  11. ]
  12. }
  13. }

DDNS

获取数据,请求
  1. {
  2. "getDDNS":"",
  3. "getDDNSServerList":{
  4. "lang":"cn" //取值为cn,en
  5. }
  6. }
返回
  1. {
  2. "getDDNSServerList":{
  3. "gnway": "gnway.com",
  4. "88ip": "88ip.cn",
  5. "dyndns":"dyn.com/dns",
  6. "noip":"www.noip.com"
  7. },
  8. "getDDNS":[
  9. {
  10. "ID":0
  11. "ddnsEn":true,
  12. "ddnsServer":"3322",
  13. "ddnsUser":"admin",
  14. "ddnsPwd":"admin",
  15. "ddnsStatus": "autherized",
  16. "ddnsServiceType": "general",
  17. "orayDomain":[],
  18. "ddnsDomain":""
  19. }
  20. ]
  21. }

修改数据
请求

  1. {
  2. "setDDNS":{
  3. "type":"edit",
  4. "data":[
  5. {
  6. "ID":0
  7. "ddnsEn":true,
  8. "ddnsServer":"3322",
  9. "ddnsUser":"admin",
  10. "ddnsPwd":"admin",
  11. "ddnsDomain":"http://dns/tenda.com.cn"
  12. },{
  13. "ID":1,
  14. "ddnsEn":false
  15. }
  16. ]
  17. }
  18. }

端口镜像

获取数据,请求
  1. {
  2. "getPortMirror":""
  3. }
返回
  1. {
  2. "getPortMirror":{
  3. "portMirrorEn": true,
  4. "portMirrorMirroredPorts": "1,1,1,0",
  5. "portMirrorLanPort": 3
  6. }
  7. }

修改数据
请求

  1. {
  2. "setPortMirror":{
  3. "portMirrorEn": true,
  4. "portMirrorMirroredPorts": "1,1,1,0",
  5. "portMirrorLanPort": 3
  6. }
  7. }

UPnP

获取数据,请求
  1. {
  2. "getUPnP":""
  3. }
返回
  1. {
  2. "getUPnP":{
  3. "upnpEn": true,
  4. "upnpList": [
  5. {
  6. "upnpListExternalHost": "192.168.9.1",
  7. "upnpListExternalPort": "80",
  8. "upnpListInternalHost": "192.168.9.2",
  9. "upnpListInternalPort": "81",
  10. "upnpListProtocol": "UDP",
  11. "upnpListDescribe":"描述1"
  12. }
  13. ]
  14. }
  15. }

修改数据
请求

  1. {
  2. "setUPnP":{
  3. "upnpEn":false
  4. }
  5. }

静态路由

获取数据,请求
  1. {
  2. "getStaticRoute":"",
  3. "getRoutingTable":"",
  4. "getLanIpMask":"",
  5. "getWanData":"",
  6. }
返回
  1. {
  2. "getStaticRoute":[{
  3. "ID":0,
  4. "staticRouteNet" : "192.168.0.1",
  5. "staticRouteMask":"255.255.255.0",
  6. "staticRouteGateway": "192.168.0.1",
  7. "staticRouteWAN" : "WAN1"
  8. }],
  9. "getLanIpMask":"",
  10. "getRoutingTable":[{
  11. "ID":0,
  12. "routingTableNet" : "192.168.9.1",
  13. "routingTableMask":"255.255.255.0",
  14. "routingTableGateway": "192.168.0.1",
  15. "routingTableWAN" : "WAN2"
  16. }],
  17. "getWanData":[{
  18. "ID":0,
  19. "wanIP": "192.168.9.1",
  20. "wanMask": "255.255.255.0",
  21. "wanGateWay":"192.168.11.1"
  22. }]
  23. }

删除数据
请求

  1. {
  2. "setStaticRoute":{
  3. "type":"delete",
  4. "data":[0]
  5. }
  6. }

新增数据
请求

  1. {
  2. "setStaticRoute":{
  3. "type":"add",
  4. "data":{
  5. "ID":2
  6. "staticRouteNet":"192.128.0.0",
  7. "staticRouteMask":"255.128.128.0",
  8. "staticRouteGateway":"192.168.1.0",
  9. "staticRouteWAN":"wan1"
  10. }
  11. }
  12. }

DNS劫持

获取数据,请求
  1. "getDNSHijackList":[
  2. {
  3. "ID":1,
  4. "DNSDomainName": "www.baidu.com",
  5. "DNSAddress": "192.168.0.1",
  6. "DNSHijackEn":false
  7. }
  8. ]
修改数据
  1. //新增
  2. "setDNSHijackList":{
  3. "type":"add",
  4. "data":[{
  5. "DNSDomainName": "www.baidu.com",
  6. "DNSAddress": "192.168.0.1"
  7. }]
  8. },
  9. //设置生效开关
  10. "setDNSHijackList":{
  11. "type":"switch",
  12. "data":{
  13. "ID":1,
  14. "DNSHijackEn":false
  15. }
  16. }
  17. //修改
  18. "setDNSHijackList":{
  19. "type":"edit",
  20. "data":{
  21. "ID":1,
  22. "DNSDomainName": "www.baidu.com",
  23. "DNSAddress": "192.168.0.1",
  24. "DNSHijackEn":false
  25. }
  26. }
  27. //删除
  28. "setDNSHijackList":{
  29. "type":"delete",
  30. "data":[1,2,3]
  31. }

DNS定向转发

获取数据,请求

  1. {
  2. "getDNSForwardList":[{
  3. "ID": 1,
  4. "DNSAddress": "192.168.0.1",
  5. "DNSDomainName": "www.baidu.com",
  6. "DNSForwardEn": false,
  7. "DNSInterface": "WAN1"
  8. }]
  9. }
修改数据
  1. //新增
  2. "setDNSForwardList":{
  3. "type":"add",
  4. "data":[{
  5. "DNSDomainName": "www.baidu.com",
  6. "DNSAddress": "192.168.0.1",
  7. "DNSInterface": "WAN1"
  8. }]
  9. },
  10. //设置生效开关
  11. "setDNSForwardList":{
  12. "type":"switch",
  13. "data":{
  14. "ID":1,
  15. "DNSForwardEn":false
  16. }
  17. }
  18. //修改
  19. "setDNSForwardList":{
  20. "type":"edit",
  21. "data":{
  22. "ID":1,
  23. "DNSDomainName": "www.baidu.com",
  24. "DNSAddress": "192.168.0.1",
  25. "DNSInterface": "WAN1"
  26. "DNSForwardEn": false,
  27. }
  28. }
  29. //删除
  30. "setDNSForwardList":{
  31. "type":"delete",
  32. "data":[1,2,3]
  33. }
  34. //导出数据
  35. {
  36. /goform/DownloadDNSForwardList/DNSForward.csv
  37. }
  38. //导入数据
  39. {
  40. /cgi-bin/UploadDNSForwardList
  41. }

拦截非法IP地址

获取数据,请求
  1. {
  2. "getHotelModeInfo":""
  3. }
返回
  1. {
  2. "getHotelModeInfo":{
  3. "hotelModeEn": false,
  4. "pppoeServerEn": true,
  5. "wewifiEn":false,
  6. "webAuthEn": false
  7. }
  8. }

修改数据
请求

  1. {
  2. "setHotelModeInfo":{
  3. "hotelModeEn":true
  4. }
  5. }

DDNS缓存

获取数据,请求
  1. {
  2. "getDnsData":""
  3. }
返回
  1. "getDnsData": {
  2. "bufferEn": "true",
  3. "bufferMemory": 1000
  4. }
设置数据
  1. "setDnsData": {
  2. "bufferEn": "true",
  3. "bufferMemory": 1000
  4. }

攻击防御

获取数据,请求
  1. {
  2. "getDefenseArp":"",
  3. "getDefenseDDos":"",
  4. "getDefenseIp":"",
  5. "getDefensePing":""
  6. }
返回
  1. {
  2. "getDefenseArp":{
  3. "arpAttackEn":true,
  4. "arpBroadCastInterval":1
  5. },
  6. "getDefenseDDos":{
  7. "icmpFloodEn":true,
  8. "icmpThreshold":1500,
  9. "udpFloodEn":false,
  10. "udpThreshold":1500,
  11. "synFloodEn":true,
  12. "synThreshold":1500
  13. },
  14. "getDefenseIp":{
  15. "ipTimestampEn":false,
  16. "ipSecurityEn":true,
  17. "ipStreamEn":false,
  18. "ipRecordRouteEn":true,
  19. "ipLooseSourseRouteEn":false,
  20. "ipIlegalityEn":true
  21. },
  22. "getDefensePing":{
  23. "defensePing": true
  24. }
  25. }

修改数据,请求

  1. {
  2. "setDefenseArp":{
  3. "arpAttackEn":true,
  4. "arpBroadCastInterval":1
  5. },
  6. "setDefenseDDos":{
  7. "icmpFloodEn":true,
  8. "icmpThreshold":1500,
  9. "udpFloodEn":false,
  10. "udpThreshold":1500,
  11. "synFloodEn":true,
  12. "synThreshold":1500
  13. },
  14. "setDefenseIp":{
  15. "ipTimestampEn":false,
  16. "ipSecurityEn":true,
  17. "ipStreamEn":false,
  18. "ipRecordRouteEn":true,
  19. "ipLooseSourseRouteEn":false,
  20. "ipIlegalityEn":true
  21. },
  22. "setDefensePing":{
  23. "defensePing": true
  24. }
  25. }

系统管理

重启与复位

重启获取数据请求
  1. {
  2. "getScheduledReboot":""
  3. }
返回
  1. {
  2. "getScheduledReboot":{
  3. "scheduledRebootEnable":true,
  4. "scheduledRebootTime":"11:30",
  5. "scheduledRebootPolicy":"specificDate",
  6. "scheduledRebootDate":"1101111"
  7. }
  8. }
保存
  1. {
  2. "setScheduledReboot":{
  3. "scheduledRebootEnable":true
  4. "scheduledRebootPolicy":"specificDate"
  5. "scheduledRebootDate":"1101111"
  6. "scheduledRebootTime":"11:30"
  7. }
  8. }
重启
  1. {
  2. "reboot":""
  3. }
  4. //返回
  5. {
  6. "reboot":0
  7. }
复位
  1. {
  2. "restore":"",
  3. "getRestoreInfo":""
  4. }
  5. //返回
  6. {
  7. "reboot":0,
  8. "getRestoreInfo": {
  9. "lanDefaultIP":"192.168.0.252"
  10. }
  11. }

系统自动维护

获取数据请求
  1. {
  2. "getAutoMaintenance":""
  3. }
返回
  1. {
  2. "getAutoMaintenance":{
  3. "autoMaintenanceEn":true
  4. }
  5. }
保存
  1. {
  2. "setAutoMaintenance":{
  3. "autoMaintenanceEn":true
  4. }
  5. }

管理员密码

请求
  1. {
  2. "getAdminList":""
  3. }
返回
  1. {
  2. "getAdminList":[
  3. {
  4. "ID":1,
  5. "accountType":1, //管理员
  6. "password":"123456",
  7. "accountPermission":"xxxxxxx"
  8. },
  9. {
  10. "ID":2,
  11. "accountType":2, //认证管理
  12. "password":"234567",
  13. "accountPermission":"xxxxxxx"
  14. }
  15. ]
  16. }
设置
  1. {
  2. "setAdminList":{
  3. "type":"edit",
  4. "data":[{
  5. "ID":0,
  6. "password":"1231313"
  7. }]
  8. }
  9. }

软件升级

获取数据,请求
  1. {
  2. "getSoftWareVerion":"",
  3. "getUrlVerion":"",
  4. "getUrlUpgrade":"",
  5. "getSoftWareUpgrade":""
  6. }
返回
  1. {
  2. "getSoftWareVerion":{
  3. "softWareVerion":"5.0.1.3"
  4. }
  5. "getUrlVerion":{
  6. "urlVerion":"5.0.1.3"
  7. },
  8. "getUrlUpgrade":{
  9. "status": 2,
  10. "update_info": {
  11. "new_version": "V15.01.0.3(2300)",
  12. "description": [
  13. "V15.01.0.1(2200)",
  14. "V15.01.0.2(2299)",
  15. "V15.01.0.3 (2300)"
  16. ]
  17. }
  18. },
  19. "getSoftWareUpgrade":{
  20. "status": 2,
  21. "update_info": {
  22. "new_version": "V15.01.0.3(2300)",
  23. "description": [
  24. "V15.01.0.1(2200)",
  25. "V15.01.0.2(2299)",
  26. "V15.01.0.3 (2300)"
  27. ]
  28. }
  29. }
  30. }

发送请求
软件升级

  1. {
  2. "setOnlineUpgrade":{
  3. "onlineUpgradeType":"software"
  4. }
  5. }
特征库升级
  1. {
  2. "setOnlineUpgrade":{
  3. "onlineUpgradeType":"url"
  4. }
  5. }

诊断工具

诊断
  1. //ping开始
  2. {
  3. "setFixTools":{
  4. "networkTool":1,
  5. "hostName":"192.168.1.1",
  6. "packageNum":12,
  7. "packageSize":123
  8. }
  9. //返回
  10. {
  11. "setFixTools":{
  12. ...
  13. }
  14. }
  15. //traceroute开始
  16. {
  17. "setFixTools":{
  18. "networkTool":2,
  19. "hostName":"192.168.1.1",
  20. "action":"start"
  21. }
  22. }
  23. //返回
  24. {
  25. "setFixTools":0 //成功
  26. }
  27. //traceroute输出
  28. {
  29. "setFixTools":{
  30. "networkTool":2,
  31. "action":"output"
  32. }
  33. }
  34. //返回
  35. {
  36. "setFixTools""XXXXXX"
  37. }
  38. //停止
  39. {
  40. "setFixTools":{
  41. "networkTool":2,
  42. "action":"stop"
  43. }
  44. }

系统日志

获取数据
  1. {
  2. "getSystemLog":{
  3. "sysLogType":0 //0:全部 1:系统日志,2:攻击日志,3:错误日志
  4. }
  5. }
返回
  1. {
  2. "getSystemLog":[
  3. {
  4. "ID":0,
  5. "sysLogTime":"2010-12-12",
  6. "sysLogType":1, //1:系统日志,2:攻击日志,3:错误日志
  7. "sysLogMsg":"xxxxxxxxxXXXxx"
  8. }
  9. ]
  10. }

导出日志

  1. {
  2. "outPutSysLog":{
  3. "sysLogType":0 //0:全部 1:系统日志,2:攻击日志,3:错误日志
  4. }
  5. }

远程web管理

获取数据
  1. {
  2. "getRemoteWebManage":""
  3. }
返回
  1. {
  2. "getRemoteWebManage":{
  3. "remoteEn": true,
  4. "remoteIP": "",
  5. "remoteType": "anyone",
  6. "remoteWan": "wan2",
  7. "remoteAddress":"xxxxx" //新增字段
  8. }
  9. }

设置数据

  1. {
  2. "setRemoteWebManage":{
  3. "remoteEn": true,
  4. "remoteIP": "",
  5. "remoteType": "anyone",
  6. "remoteWan": "wan2"
  7. }
  8. }

配置备份与恢复

  1. "/cgi-bin/UploadCfg":{
  2. "lanIP":"192.168.0.251",
  3. "bakupResult":"yes"
  4. }

系统时间

获取数据
  1. {
  2. "getSysTime":""
  3. }

返回

  1. {
  2. "getSysTime":{
  3. "sysTimePolicy":"syncNet",
  4. "timeZone":20,
  5. "manualTime":"2015-10-10 12:59:37",
  6. "syncTimeCycle":1800
  7. }
  8. }

设置数据

  1. {
  2. "setSysTime":{
  3. "sysTimePolicy":"syncNet", // syncNet 或者 manual
  4. "timeZone":20,
  5. "manualTime":"2015-10-10 12:59:37",
  6. "syncTimeCycle":1800
  7. }
  8. }

MR9接口

无线设置

无线名称和密码

获取数据
  1. {
  2. "getWirelessList": ""
  3. }
 返回
  1. {
  2. "getWirelessList":[
  3. {
  4. "ID": 1,
  5. "wirelessSwitch": true,
  6. "isEqualName": true,
  7. "wirelessName": "Mr9_1001",
  8. "wirelessPwd": "1001",
  9. "noClientPwd": "1",
  10. "wirelessName5G": "Mr9_1001",
  11. "wirelessPwd5G": "1001",
  12. "noClientPwd5G": "",
  13. "hideWireless": true,
  14. "maxDevice": 40,
  15. "hideWireless5G": true,
  16. "maxDevice5G": 40
  17. },
  18. {
  19. "ID": 2,
  20. "wirelessSwitch": true,
  21. "isEqualName": false,
  22. "wirelessName": "Mr9_1002",
  23. "wirelessPwd": "1002",
  24. "noClientPwd": "1",
  25. "wirelessName5G": "Mr9_1002",
  26. "wirelessPwd5G": "1002",
  27. "noClientPwd5G": "1",
  28. "hideWireless": true,
  29. "maxDevice": 40,
  30. "hideWireless5G": true,
  31. "maxDevice5G": 50
  32. },
  33. {
  34. "ID": 3,
  35. "wirelessSwitch": false,
  36. "isEqualName": true,
  37. "wirelessName": "Mr9_1003",
  38. "wirelessPwd": "1003",
  39. "noClientPwd": "",
  40. "wirelessName5G": "Mr9_1003",
  41. "wirelessPwd5G": "1003",
  42. "noClientPwd5G": "1",
  43. "hideWireless": true,
  44. "maxDevice": 40,
  45. "hideWireless5G": true,
  46. "maxDevice5G": 40
  47. }
  48. ],
  49. }
设置数据  
  1. {
  2. "setWirelessList":{
  3. "type":"edit",
  4. "data":[
  5. {
  6. "ID": 1,
  7. "wirelessSwitch": true, //无线开关
  8. "isEqualName": true, //2.4G和5G无线名称一致
  9. "wirelessName": "Mr9_1001", //无线名称
  10. "wirelessPwd": "1001", //无线密码
  11. "noClientPwd": false, //是否勾选不设密码
  12. "wirelessName5G": "Mr9_1001", //5G无线名称
  13. "wirelessPwd5G": "1001", //5G无线密码
  14. "noClientPwd5G": false,
  15. "hideWireless": true, //隐藏无线网络
  16. "maxDevice": 40,// 最多可接入设备数
  17. "hideWireless5G": true,
  18. "maxDevice5G": 40,
  19. }
  20. ]
  21. }
  22. }

无线设置

无线限速和隔离

获取数据
  1. {
  2. "getWirelessLimitList": ""
  3. }
 返回
  1. {
  2. "getWirelessLimitList":[
  3. {
  4. "ID": 1,
  5. "insulateNet": true, //与其它无线网络隔离
  6. "insulateNet5G": true,
  7. "isEqualName": true, //2.4G与5G是否设置为相同名称
  8. "shareDownRt": "2" , //共享下载速率
  9. "shareDownRt5G": "4" ,
  10. "shareUpRt": "1", //共享上传速率
  11. "shareUpRt5G": "0.5",
  12. "wirelessName": "Tenda", //2.4G网络名
  13. "wirelessName5G": "Tenda_5G"
  14. },
  15. {
  16. "ID": 2,
  17. "insulateNet": false,
  18. "insulateNet5G": true,
  19. "isEqualName": true,
  20. "shareDownRt": "2" , //共享下载速率 -1表示不限速
  21. "shareDownRt5G": "4" ,
  22. "shareUpRt": "1", //共享上传速率
  23. "shareUpRt5G": "0.5", //-1表示不限速
  24. "forbidAccIntranet":true, //禁止访问内网
  25. "forbidAccIntranet5G":true,
  26. "wirelessName": "Tenda",
  27. "wirelessName5G": "Tenda_5G"
  28. },
  29. {
  30. "ID": 3,
  31. "isEqualName": false,
  32. "wirelessName": "Tenda",
  33. "wirelessName5G": "Tenda_5G",
  34. "insulateNet": true,
  35. "insulateNet5G": true,
  36. "forbidAccIntranet":true,
  37. "forbidAccIntranet5G":true,
  38. "shareDownRt": "2" , //共享下载速率
  39. "shareDownRt5G": "4" ,
  40. "shareUpRt": "1", //共享上传速率
  41. "shareUpRt5G": "0.5"
  42. }
  43. ],
  44. }
设置数据  
  1. {
  2. "setWirelessLimitList":{
  3. "type":"edit",
  4. "data":[
  5. {
  6. "ID": 1,
  7. "insulateNet": true, //与其它无线网络隔离
  8. "insulateNet5G": true,
  9. "isEqualName": true, //2.4G与5G是否设置为相同名称
  10. "shareDownRt": "2" , //共享下载速率
  11. "shareDownRt5G": "4" ,
  12. "shareUpRt": "1", //共享上传速率
  13. "shareUpRt5G": "0.5",
  14. "wirelessName": "Tenda", //2.4G网络名
  15. "wirelessName5G": "Tenda_5G"
  16. }
  17. ]
  18. }
  19. }

无线访问控制

    获取数据
  1. {
  2. "getVisitControl":"",
  3. "getMacFilterList":"",
  4. "getVisitControlList":"",//当2.4G和5G同名的情况下只传一条数据过来
  5. }
    返回
  1. {
  2. "getVisitControl":{
  3. "visitControlEn":true
  4. },
  5. "getMacFilterList":[
  6. {
  7. "ID":1,
  8. "wirelessName":"MR9_1111111111",
  9. "macFilter":1, //1-不启用,2-仅允许,3-仅禁止
  10. "band": "2.4G", //该SSID所属频段,2.4G或5G
  11. "isEqualName": true,
  12. "macFilterItems":0 //该SSID已配置MAC过滤策略条目数
  13. }
  14. ],
  15. "getVisitControlList":[
  16. {
  17. "ID":1,
  18. "macAddress":"C8:C8:C8:C8:C8:C8",//mac地址
  19. "remark":"老板的电脑",//备注
  20. "effectiveNet": 1,//生效网络,对应的是设置的SSID数据对应的ID值
  21. "status":true // 状态
  22. }
  23. ]
  24. }
    设置数据
  1. {
  2. "setMacFilterList":{
  3. "type": "edit",
  4. "data": [
  5. {
  6. "ID": 1,
  7. "macFilter": 1//1-不启用,2-仅允许,3-仅禁止
  8. }
  9. ]
  10. },
  11. "setVisitControlList":{
  12. "type":"switch",
  13. "data":{
  14. "ID":1,
  15. "status":true //状态
  16. }
  17. }
  18. "setVisitControlList":{
  19. "type":"add",
  20. "data":[
  21. {
  22. "macAddress":"",
  23. "remark":"",
  24. "effectiveNet": 1 ,
  25. "status":true
  26. }
  27. ]
  28. },
  29. //修改数据
  30. "setVisitControlList":{
  31. "type":"edit",
  32. "data": {
  33. "ID":1,
  34. "macAddress":"",
  35. "remark":"",
  36. "effectiveNet": 1,
  37. "status":true
  38. }
  39. },
  40. //删除数据
  41. "setVisitControlList":{
  42. "type":"delete",
  43. "data": [1,2,3]
  44. }
  45. }

无线高级设置

    获取数据
  1. {
  2. "getAdvancedSetList":"",
  3. }
    返回
  1. {
  2. "getAdvancedSetList":{
  3. "networkEn":true,//true-启用,false-禁用
  4. "wirelessPower":23,//无线功率
  5. "wirelessPowerMin":0,//无线功率最大值
  6. "wirelessPowerMax":200,//无线功率最小值
  7. "networkPattern":2,//2.4g网络模式 1:11b模式, 2:11g模式, 3:11b/g混合模式, 4: 11b/g/n混合模式
  8. "wirelessChannel":3,//无线信道
  9. "wirelessChannelArr":[01,2,3,4,5,6,7,8,9,10,11,12,13]//无线信道选项 0为自动
  10. "channelWidth":0,//信道频宽 {0: "20MHz", 1: "40MHz", 2:"20MHz/40MHz"}
  11. "strengthLimit":60,//接入信号强度限制
  12. "hollowSchedulingEn":2, //空口调度 {1: _("启用"), 0: _("禁用")}
  13. "meshTalkTime":20, //mesh空口时间
  14. "shortGI":1, //1-启用 2-自动 0-禁用
  15. "interferencePattern":0,//Interference模式:[0, 1, 2, 3]
  16. "clientAgeingTime":5,//客户端老化时间[1, 5, 10, 15]
  17. "network5GEn":true,//5G网络{true: _("启用"), false: _("禁用")}
  18. "wirelessPower5G":23,//5g无线功率
  19. "wirelessPowerMin5G":0,//无线功率最大值
  20. "wirelessPowerMax5G":300,//无线功率最小值
  21. "networkPattern5G":2,//网络模式{1: _("11a模式"), 2: _("11ac模式"), 3: _("11a/n混合模式")}
  22. "wirelessChannel5G":36,//无线信道
  23. "wirelessChannelArr5G":{
  24. "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],
  25. "40": ["0", "36", "40", "44", "48", "52", "56", "60", "64", "100", "104", "108", "112", "120", "128", "132", "136", "140", "149", "153", "157", "161"],
  26. "80": [0, 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 132, 136, 140, 144, 149, 153, 157, 161]
  27. }//5g无线信道
  28. "channelWidth5G":"",//信道频宽{0: _("20M"), 1: _("40M"), 2: _("20M/40M")},
  29. "strengthLimit5G":100,//5g接入信号强度限制
  30. "priority5G":true, //5GHz优先 true-启用 false-禁用
  31. "hollowSchedulingEn5G":true, //空口调度{true: _("启用"), false: _("禁用")}
  32. "meshTalkTime5G":60, //mesh空口时间
  33. "APSD5G":true, //true-启用 false-禁用
  34. "interferencePattern5G":0,//Interference模式
  35. "clientAgeingTime5G":5 //客户端老化时间
  36. }
  37. }
    设置数据
  1. {
  2. "setAdvancedSetList":{
  3. "type":"edit",
  4. "data":{
  5. "networkEn":true,
  6. "wirelessPower":23,//无线功率
  7. "networkPattern":2,//网络模式
  8. "wirelessChannel":0,//无线信道
  9. "channelWidth":1,//信道频宽
  10. "strengthLimit":100,//接入信号强度限制
  11. "stagingMode":1, //部署模式 1-强覆盖 2-高密度 3-中密度 4-低密度
  12. "hollowSchedulingEn":2, //空口调度
  13. "meshTalkTime":50, //mesh空口时间
  14. "shortGI":1, //1-启用 2-自动 0-禁用
  15. "interferencePattern":0,
  16. "clientAgeingTime":5,
  17. "network5GEn":true,
  18. "wirelessPower5G":23,//无线功率
  19. "networkPattern5G":2,//网络模式
  20. "wirelessChannel5G":3,//无线信道
  21. "channelWidth5G":1,//信道频宽
  22. "strengthLimit5G":100,//接入信号强度限制
  23. "priority5G":true, //5GHz优先 true-启用 false-禁用
  24. "hollowSchedulingEn5G":1, //空口调度
  25. "meshTalkTime5G":40, //mesh空口时间
  26. "APSD5G":true, //true-启用 false-禁用
  27. "interferencePattern5G":0,
  28. "clientAgeingTime5G":5
  29. }
  30. }
  31. }

无线限速和隔离

获取数据

设置数据  
  1. {
  2. "setWirelessLimitList":{
  3. "type":"edit",
  4. "data":[
  5. {
  6. "ID": 1,
  7. "insulateNet": true, //与其它无线网络隔离
  8. "insulateNet5G": true,
  9. "isEqualName": true, //2.4G与5G是否设置为相同名称
  10. "shareDownRt": "2" , //共享下载速率
  11. "shareDownRt5G": "4" ,
  12. "shareUpRt": "1", //共享上传速率
  13. "shareUpRt5G": "0.5",
  14. "wirelessName": "Tenda", //2.4G网络名
  15. "wirelessName5G": "Tenda_5G"
  16. }
  17. ]
  18. }
  19. }

访客网络

获取数据

  1. {
  2. "getClientWireless":""
  3. }

返回

  1. {
  2. "getClientWireless": {
  3. "clientWirelessSwitch":true,
  4. "isEqualClientName":false,
  5. "insulateClientNet":false, //客户端隔离
  6. "clientWirelessName":"guest_ssid",
  7. "clientWirelessPwd":"12345678",
  8. "noClientPwd":true, //是否设置访问网络密码
  9. "clientWirelessName5G":"guest_ssid_5g",
  10. "clientWirelessPwd5G":"12345678",
  11. "noClientPwd5G": false,
  12. "clientIP":"192.168.0.1",
  13. "clientMask":""
  14. }
  15. }

设置数据

  1. "setClientWireless"

静态IP分配

    获取数据
  1. {
  2. "getOnlineBindList":"",
  3. "getManuallyAssignList":""
  4. }
    返回
  1. {
  2. "getOnlineBindList":[
  3. {
  4. "ID":1,
  5. "hostName":"windowsw-1201123",//主机名称
  6. "ipAddress":"C8:C8:C8:C8:C8:C8",
  7. "macAddress":"C8:C8:C8:C8:C8:C8",
  8. "bindEn":true //IP-MAC绑定
  9. }
  10. ],
  11. "getManuallyAssignList":[
  12. {
  13. "ID":1,
  14. "hostName":"五楼摄像头",
  15. "hostRemark": "逆流时光",//备注
  16. "ipAddress":"192.168.2.10",
  17. "macAddress":"C8:C8:C8:C8:C8:C8",
  18. "status":true
  19. }
  20. ]
  21. }
    设置数据
  1. {
  2. //绑定
  3. "setOnlineBindList":{
  4. "type":"edit",
  5. "data":[1,2,3,4]
  6. }
  7. "setManuallyAssignList":{
  8. "type":"switch",
  9. "data":{
  10. "ID":1,
  11. "status":true //状态
  12. }
  13. }
  14. "setManuallyAssignList":{
  15. "type":"add",
  16. "data":[
  17. {
  18. "ipAddress":"192.168.2.10",
  19. "macAddress":"C8:C8:C8:C8:C8:C8",
  20. "hostRemark":"aaaa" //备注
  21. }
  22. ]
  23. },
  24. "setManuallyAssignList":{
  25. "type":"edit",
  26. "data": {
  27. "ID":1,
  28. "ipAddress": "192.168.2.10",
  29. "macAddress": "C8:C8:C8:C8:C8:C8",
  30. "hostRemark": "aaaa"
  31. }
  32. },
  33. "setManuallyAssignList":{
  34. "type":"delete",
  35. "data":[1,2,3,4]
  36. }
  37. }

导出数据

  1. '/cgi-bin/DownloadStaticIPCfg/staticIP.csv'

导入数据

  1. '/cgi-bin/UploadStaticIPCfg' //请求接口
  2. //返回值
  3. {
  4. "bakupResult": "yes" //yes表示上传成功,否则表示失败
  5. }

系统状态(mesh)

其它沿用之前G0接口

获取数据

  1. {
  2. "getSystemStatus":"", //获取系统状态页显示的基本信息
  3. "getMeshList":"", //获取mesh信息
  4. "getNewMeshList": "", //获取发现的mesh
  5. "getMeshLinkMess":"", //mesh的相互连接信息
  6. "getMeshDetail": {
  7. "serialID": "234324535"
  8. }
  9. }

返回

  1. {
  2. "getSystemStatus":{
  3. "runTime": "0d13h23m45s", //运行时间
  4. "onlineHostCount": 5 //连接终端数
  5. },
  6. "getMeshList":[{
  7. "serialID": "1312313", //序列号
  8. "meshPlace": "hall", //设备位置
  9. "hostCount": 12,//终端数
  10. "flag": 1, //1:MPP,0:MAP
  11. "exterior": "", //外观
  12. // mesh在线状态
  13. "status": 1, //1: 在线, 2:离线
  14. "assocList": [{
  15. "serialID" : "xxxxx",
  16. "wl2gRSSI" : 32,
  17. "wl5gRSSI" : 32,
  18. "wiredRSSI" : true //是否是有线
  19. }]
  20. }],
  21. "getNewMeshList": [{
  22. "serialID": "234234234234234", //序列号
  23. "exterior": ""//外观
  24. }],
  25. "getMeshDetail":{
  26. "serialID": "1312313", //序列号
  27. "flag": 1, //1:MPP,0:MAP
  28. "meshPlace": "eception", //设备位置 eception:前台,hall:大厅,councilHall:会议室,anteroom:接待室,自定义直接传对应的字符串
  29. "meshName": "", // 设备名称
  30. "version": "", //软件版本
  31. "ledStatus": true, //LED灯状态
  32. "online": true, //在线状态
  33. "runTime": "", //运行实际时间
  34. "hostCount": "", //终端数
  35. "MACAddress": "", //MAC地址
  36. "sysTime": "", //系统时间
  37. "lanIP": "", //LAN口IP
  38. "cpuUsePercent": "", //cpn使用率
  39. "memoryUsePercent": "", //内存使用率
  40. "WanInfo": [{ //同WAN口设置里面的字段
  41. "ID":1, //
  42. "wanType": "pppoe", //联网方式
  43. "wanIP": "192.168.98.224", //IP地址
  44. "wanMask": "255.255.255.255", //子网掩码
  45. "wanGateway": "192.168.98.1", //默认网关
  46. "wanDns1": "192.168.108.107", //首选DNS
  47. "wanDns2": "192.168.108.108", //备选DNS
  48. "wanUpFlux": "500", //上传速率
  49. "wanDownFlux": "1500", //下载速率
  50. "wanStatus": "unwired" //联网状态
  51. }],
  52. "meshInfo":{
  53. "wl2gRSSI" : 32,
  54. "wl5gRSSI" : 32,
  55. "wiredRSSI" : true,
  56. "scenes": 1 //使用场景 1:更多用户接入,2:更大面积覆盖
  57. }
  58. },
  59. // 获取单个AP详情
  60. "getApDetail":{
  61. "devicePlace": "eception", //设备位置
  62. "hostCount": "", //终端数
  63. "apName": "", // 设备名称
  64. "ledStatus": true, //LED灯状态
  65. "serialID": "",
  66. "version": "", //软件版本
  67. "runTime": "", //运行实际时间
  68. "flag": 1, //1:MPP,0:MAP
  69. "lanIP": "", //LAN口IP
  70. "MACAddress": "", //MAC地址
  71. "sysTime": "", //系统时间
  72. "cpuUsePercent": "", //cpn使用率
  73. "memoryUsePercent": "" //内存使用率
  74. },
  75. // 设置单个AP位置信息
  76. "setApDetail":{
  77. "serialID":"234",
  78. "apPlace": "hall"
  79. },
  80. }

设置数据

  1. {
  2. //添加mesh
  3. "setNewMesh": {
  4. "serialID": "23sdf1"
  5. },
  6. //删除么事
  7. "delMesh":{
  8. "serialID": "2341"
  9. },
  10. "setMeshDetail":{
  11. "serialID":"234",
  12. "scenes":2, //若修改就传,没有修改则不传
  13. "meshPlace": "hall" //若修改就传,没有修改则不传
  14. },
  15. //开启关闭LED
  16. "switchLed":{
  17. "serialID": "2341",
  18. "ledStatus": true
  19. },
  20. //删除mesh节点
  21. "deleteMesh":{
  22. "serialID": "2341"
  23. },
  24. //重启mesh节点
  25. "rebootMesh":{
  26. "serialID": "2341"
  27. },
  28. }

短信认证,邮箱认证

获取数据

  1. "getMessageProvider":""

返回

  1. "getMessageProvider":{
  2. apiKey: "12345678",
  3. apiSecret: "87654321"
  4. codeType: "gb2312"
  5. failCode: "8888888"
  6. messageContent: "ä½ å¥½ï¼Œè¿™é‡Œæ˜¯è­¦å¯Ÿå±€"
  7. messageProvider: "3"
  8. providerName: "xxx"
  9. providerPwd: "sss"
  10. urlInterface: "www.nishaa.com"
  11. }

设置数据

  1. "setMessageProvider":{
  2. apiKey: "12345678",
  3. apiSecret: "87654321"
  4. codeType: "gb2312"
  5. failCode: "8888888"
  6. messageContent: "ä½ å¥½ï¼Œè¿™é‡Œæ˜¯è­¦å¯Ÿå±€"
  7. messageProvider: "3"
  8. providerName: "xxx"
  9. providerPwd: "sss"
  10. urlInterface: "www.nishaa.com"
  11. }
  12. //测试短信接口有效性
  13. "setValidTest":{
  14. "phoneNumber":"",
  15. "textContent":""
  16. }
  17. //获取短信验证码
  18. "getVarifyCode":{
  19. "phoneNumber":"asdasdasd"
  20. }

获取显示列表

  1. "getFunctionUseList":{
  2. "networkEn":true
  3. "networkEn5G":true
  4. "visitControlEn":true
  5. "qosPolicyEn":true
  6. "webAuthEn": true
  7. "wewifiEn":true
  8. "macFilterEn": true
  9. "urlFilterEn": true
  10. "portFilterEn": true
  11. "dhcpServerEn" : true
  12. "fastnatEn":true
  13. "portMirrorEn": true
  14. "remoteEn": true
  15. "ddnsEn":true
  16. "dmzEn":true
  17. "upnpEn": true
  18. "hotelModeEn": false
  19. "vpnClientEn": true
  20. "autoMaintenanceEn":true
  21. "vpnServerEn": true
  22. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注