产品管理

API - 产品日志

描述:产品日志

请求方式:GET

请求地址:/v1/hosts/[:id]/logs

版本:v1

内部API调用方法名:Host_getHostLogs

请求参数

参数类型验证规则最大长度描述示例
   page int require - 页数 1
   limit int require - 分页条数 20
   orderby string - 排序字段
   sort string - DESC降序,ASC升序,只有这有这两个值 DESC
   keywords string - 搜索

返回参数

参数类型验证规则最大长度描述示例
   total int - 数据条数 1
  _list array[] - 日志列表 [{"id":1,"uid":1,"user":"example","description":"example","ipaddr":"192.168.1.1","port":443,"create_time":1639979575}]
         Lid int - 日志ID 1
         Luid int - 用户ID 1
         Luser string - 用户名 example
         Ldescription string - 描述 example
         Lipaddr string - IP地址 192.168.1.1
         Lport int - 端口号 443
         Lcreate_time int - 创建时间 1639979575