---
title: "Return all cPanel accounts disk usage"
method: GET
path: "/get_disk_usage"
tags: ["Bandwidth and Disk Quotas"]
---

# Return all cPanel accounts disk usage

`GET /get_disk_usage`

This function lists the disk usage status of the system's user accounts. This also lists information about file system object (inode) usage.

## Query parameters

- `cache_mode` 'on' | 'off'

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `accounts` object[] — A list of objects containing the disk usage data for all accounts on the server.
      - `blocks_limit` integer, nullable — The account's disk space quota, in kibibytes (KiB). * `null` - The account has unlimited disk space.
      - `blocks_used` integer — The account's current disk space usage, in kibibytes (KiB).
      - `inodes_limit` integer, nullable — The account's inode quota. * `null` - The account has an unlimited number of inodes.
      - `inodes_used` integer — The account's current inode usage.
      - `user` string — The cPanel or Reseller account username.
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 0 | 1 — * `1` - Success. * `0` - Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
