v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
LogManager
Logs

Return cPanel account's archive files list

This function returns a list of the user's archive files.

get/LogManager/list_archives

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "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"
      }
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}