2 functions, invoked through the cpanel_uapi tool.
Return the account's disk usage against its local and package quota
scope cpanel:uapistats
Call any function with cpanel_uapi(service_id, module="Quota", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.
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.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
byte_limitinteger
The limit for disk space the cPanel account may use on this server, in bytes. A positive integer. 0 - Unlimited or disabled server quotas. Note: This value does not update immediately.
bytes_usedinteger
The amount of disk space the cPanel account uses on this server, in bytes. A positive integer. 0 - No usage or disabled server quotas.
inode_limitinteger
The limit for inodes that the cPanel account may use on this server. A positive integer. 0 - Unlimited or disabled server quotas.
inodes_usedinteger
The number of inodes that the cPanel account uses on this server. A positive integer. 0 - No usage or disabled server quotas.