Quota
Disk Quotas
Return local disk quota information
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.
get/Quota/get_local_quota_info
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "get_local_quota_info",
"module": "Quota",
"result": {
"data": {
"byte_limit": 262144000,
"bytes_used": 4149284,
"inodes_used": 1035
},
"status": 1
}
}