搜索看看
获取主机磁盘SMART列表接口
1、示例,下面【2】是参数说明:
请求URL:http://localhost:9999/systemInfoOpen/agentDiskSmartList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06", "hostname":"192.168.1.2" } 返回结果: { "msg":"", "code":"0", "data":[ { "fileSystem":"/dev/csmi0,0", "pageSize":20, "hostname":"192.168.1.2", "diskState":"PASSED", "createTime":1621953760000, "id":"1397201508596056065", "page":1 } ] }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,大小写均可", "hostname":"必填,主机ip,完全匹配" } 返回结果: { "msg":"错误信息,成功时候为空", "code":"0成功1错误", "data":[ { "fileSystem":"盘符", "hostname":"主机IP", "diskState":"磁盘健康状态,PASSED健康,FAILED失败,Disabled已禁用", "createTime":"创建时间,毫秒", "id":"1397201508596056065" } ] }