This function retrieves the server's drive partition information.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ getdiskusage
{- "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
}
}