Description
This function retrieves an email account's quota.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
|
string |
Required The email account username. |
A valid email account username. For example, user if the email address isuser@example.com. |
user |
domain |
string |
The email account's domain. This parameter defaults to the cPanel account's main domain. |
A valid domain on the cPanel account. For example, example.com if the email address isuser@example.com. |
example.com |
as_bytes |
Boolean |
Whether to return the quota as bytes. This parameter defaults to 0. |
|
1 |
Returns
Return |
Type |
Description |
Possible values |
Example |
data |
integer |
The email account's quota. |
An integer that represents the email account's quota. Note: This value's unit of measure depends on the as_bytes input parameter's value. |
262144000 |