跳到主要内容
版本:latest

GetSiteLogs

获取指定网站的 Web 访问日志内容。

  • 路由POST /site
  • actionGetSiteLogs

输入参数

参数名称必选类型描述
actionString固定值 GetSiteLogs
siteNameString网站域名

输出参数

参数名称类型描述
statusBooleantrue 读取成功
msgString日志内容(可能为空字符串)

示例

请求

POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

action=GetSiteLogs&siteName=testapi.bt.local

响应

{"status": true, "msg": ""}

msg 为空表示暂无访问日志。