Bug? GetMyPackages ...
 
Notifications
Clear all

Bug? GetMyPackages API command always returns 0 for disk space and bandwidth quota

5 Posts
2 Users
0 Likes
864 Views
Posts: 99
 Ben
Topic starter
(@maoxiong)
Estimable Member
Joined: 6 years ago

As title - if you run the GetMyPackages command, you get back a package data array but the values for diskspace and bandwidth quota are both 0 (DiskSpaceQuota & BandWidthQuota)

Is there an extra argument I need to send or is this a bug?

4 Replies
Posts: 1456
Admin
(@trobinson)
Noble Member
Joined: 8 years ago

Hello,

esPackages.asmx GetMyPackages API call just accepts the input of userId.

I have checked and it appears to be an bug that it doesn't report back the bandwidth and diskspace correctly.

You can use the call GetPackageContext and look at the QuotasArray for the QuotaUsedValue on *DiskSpace to get the used value for the user. Do note that OS.Diskspace is generally the value for web and other providers like Exchange should have their own values.

Thanks,

Trevor Robinson

Reply
Posts: 99
 Ben
Topic starter
(@maoxiong)
Estimable Member
Joined: 6 years ago

Thanks Trevor.

OS.Diskspace and OS.Bandwidth are the two quotas shown under the "System" quotas right?

Reply
Posts: 1456
Admin
(@trobinson)
Noble Member
Joined: 8 years ago

That's correct

Reply
Posts: 99
 Ben
Topic starter
(@maoxiong)
Estimable Member
Joined: 6 years ago

Thank you 🙂

Reply
Share: