This function returns a list of the user's archive files.
uapi --output=jsonpretty \ --user=username \ LogManager \ list_archives
{- "apiversion": 3,
- "func": "list_archives",
- "module": "LogManager",
- "result": {
- "data": [
- {
- "file": "domain.com-May-2019.gz",
- "mtime": 1557835866,
- "path": "/home/user/logs/domain.com-May-2019.gz"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}