This function retrieves the cPanel account's quota for the server where you run the function. For example, a distributed cPanel account could approach its quota. The servers will balance that cPanel user's quota between the parent and the child node.
Note:
This function runs on only the local server. To retrieve the cPanel account's total quota, use the UAPI Quota::get_quota
function instead.
uapi --output=jsonpretty \ --user=username \ Quota \ get_local_quota_info
{- "apiversion": 3,
- "func": "get_local_quota_info",
- "module": "Quota",
- "result": {
- "data": {
- "byte_limit": 262144000,
- "bytes_used": 4149284,
- "inode_limit": 0,
- "inodes_used": 1035
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}