搜索看看
数据开放接口 / 获取FTP/SFTP监测列表
1、示例,只查询监控中的数据,下面【2】是参数说明:
请求URL:http://localhost:9999/ftpInfo/agentList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06" } 返回结果: { "msg":"", "code":"0", "data":{ "pageSize":2, "list":[ { "ftpName":"ftp测试服务器", "ftpHost":"192.168.1.2", "ftpType":"FTP", "userName":"已脱敏显示", "port":"已脱敏显示", "passwd":"已脱敏显示", "createTime":1659539385000, "active":"1", "state":"2", "account":"zhangsansan", "id":"1554846992012804096" } ], "pageNum":1, "total":15, "pages":8 } }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,大小写均可" } 返回结果: { "msg":"错误信息", "code":"0成功1错误", "data":{ "pageSize":2, "list":[ { "ftpName":"服务名称", "ftpHost":"IP", "ftpType":"ftp类型,SFTP或者FTP", "userName":"用户名,已经脱敏显示", "port":"端口,已经脱敏显示", "passwd":"密码,已经脱敏显示", "createTime":1659539385000, "active":"监控状态,1启用监控2停止监控", "state":"ftp服务状态,1正常,2下线", "account":"zhangsansan", "id":"1554846992012804096" } ], "pageNum":1, "total":15, "pages":8 } }