Return server's drive partition information

This function retrieves the server's drive partition information.

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  getdiskusage

Response samples

Content type
application/json
{
  • "data": {
    • "partition": [
      • {
        • "available": 377856,
        • "device": "/dev/vda1",
        • "disk": "vda1",
        • "filesystem": "/",
        • "inodes_available": 20575847,
        • "inodes_ipercentage": 2,
        • "inodes_total": 20970944,
        • "inodes_used": 395097,
        • "mount": "/boot",
        • "percentage": 20,
        • "total": 495844,
        • "used": 92388
        }
      ]
    },
  • "metadata": {
    • "command": "getdiskusage",
    • "reason": "Successfully retrieved disk usage",
    • "result": 1,
    • "version": 1
    }
}