搜索看看
获取主机磁盘容量列表接口
1、示例,下面【2】是参数说明:
请求URL:http://localhost:9999/systemInfoOpen/agentDeskStatesList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06", "hostname":"192.168.1.2" } 返回结果: { "msg":"", "code":"0", "data":[ { "fileSystem":"D:", "avail":"110.36G", "used":"89.64G", "hostname":"10.2.10.19", "size":"200.0G", "createTime":1640612616000, "id":"1475462401246756865", "usePer":"44.82%" } ] }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,大小写均可", "hostname":"必填,主机ip,完全匹配" } 返回结果: { "msg":"错误信息", "code":"0成功1错误", "data":[ { "fileSystem":"盘符类型", "avail":"可用", "used":"已使用", "hostname":"主机IP", "size":"分区大小", "createTime":"添加时间,毫秒", "id":"1475462401246756865", "usePer":"已使用百分比" } ] }