Web Log Retention
Logs
List accounts' web log retention settings
List each cPanel account's web server log retention preference alongside the server default.
get/list_accounts_retention
Request
- Base URLhttps://whm-server.tld:2087/json-api
- AuthHTTP basic
Response
HTTP Request was successful.
Example response
{
"data": {
"default_retention": 14,
"accounts": [
{
"user": "alice",
"domain": "example.com",
"retention_days": 30
}
]
},
"metadata": {
"command": "list_accounts_retention",
"reason": "OK",
"result": 1,
"version": 1
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.