Author |
|
letsgo Newbie
Joined: 23 August 2016 Location: Turkey
Online Status: Offline Posts: 15
|
Posted: 03 October 2016 at 6:53am | IP Logged
|
|
|
Hi Guys,
Is there any way to access used & free space quota information of user's email and file storage on Aurora?
I Send,receive some emails and upload pictures to "Files", Then tried below codes but can't find a useful data
$oPluginManager->Actions()->GetCurrentAccount()->StorageQuota // 104857600
$oPluginManager->Actions()->GetCurrentAccount()->StorageUsedSpace // 0
Best Regards.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 04 October 2016 at 6:29am | IP Logged
|
|
|
Try the following code:
Code:
include_once '/var/www/769/libraries/afterlogic/api.php';
if (class_exists('CApi') && CApi::IsValid()) {
$oApiIntegratorManager = CApi::Manager('integrator');
$oAccount = $oApiIntegratorManager->LoginToAccount($sEmail, $sPassword);
if ($oAccount)
{
$oApiMailManager = CApi::Manager('mail');
$quota=$oApiMailManager->getQuota($oAccount);
echo $quota[0]." of ".$quota[1]."Kb used";
} |
|
|
Getting 104857600 (100G) in response stands for unlimited quota.
As for files, currently Aurora doesn't support per-user quotas there.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
letsgo Newbie
Joined: 23 August 2016 Location: Turkey
Online Status: Offline Posts: 15
|
Posted: 04 October 2016 at 7:23am | IP Logged
|
|
|
Thank you for the answer, On my example, I get the below echo:
"4488 of 488281 Kb used".
How is work the 'File' feature is have domain based quota or users have unlimited file storage ?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 04 October 2016 at 7:26am | IP Logged
|
|
|
In Aurora, quota is available on tenant level only. You can read more about tenants and multi-tenancy here.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|