Description
This function retrieves the disk space that an email account uses.
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 |
user |
string |
The email account username. If you do not specify a value, the function returns information for the cPanel account's default address. |
A valid email account username on the cPanel account. For example, user if the email address is user@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. |
example.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
diskused |
numeric |
The disk space that the email account uses. |
|
399.6 |
login |
string |
The email address, or the main account username. |
|
user@example.com |
domain |
string |
The email account's domain. |
The email account's domain. For example, example.com if the email address isuser@example.com. |
example.com |
user |
string |
The email account username. |
The email account's username. For example, user if the email address isuser@example.com. |
user |