创建日志清理任务
curl --request POST \
--url https://api.lmm.best/api/system-task/log-cleanupimport requests
url = "https://api.lmm.best/api/system-task/log-cleanup"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.lmm.best/api/system-task/log-cleanup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/system-task/log-cleanup"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}日志
创建日志清理任务
👑 需要超级管理员权限(Root)。使用 target_timestamp 指定需清理的历史日志边界,并返回异步系统任务。
POST
/
api
/
system-task
/
log-cleanup
创建日志清理任务
curl --request POST \
--url https://api.lmm.best/api/system-task/log-cleanupimport requests
url = "https://api.lmm.best/api/system-task/log-cleanup"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.lmm.best/api/system-task/log-cleanup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/system-task/log-cleanup"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}查询参数
响应
200
成功创建任务或返回参数错误
最后修改于 2026年9月23日
⌘I