Disk usage by account
whm_disk_usageList disk and inode usage per cPanel account to find accounts near quota limits or high-usage accounts, with sorting, filtering, and optional fresh quota data.
Instructions
List disk and inode usage per account. Use min_percent to find accounts near their quota, or the default sort with a small limit to find the biggest consumers. Accounts with an unlimited quota have a null percent_used and are left out when min_percent is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Only return this account. | |
| fresh | No | Bypass WHM's quota cache. This is slower but more accurate. | |
| limit | No | Maximum items to return. | |
| offset | No | Items to skip. Use next_offset from the previous response. | |
| sort_by | No | Sort order, highest first. | used |
| min_percent | No | Only return accounts using at least this percentage of their disk quota. |