Bug? GetMyPackages ...
 
Notifications
Clear all

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

5 Posts
2 Users
0 Reactions
1,055 Views
Posts: 100
 Ben
Topic starter
(@maoxiong)
Estimable Member
Joined: 7 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: 1457
Admin
(@trobinson)
Noble Member
Joined: 9 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: 100
 Ben
Topic starter
(@maoxiong)
Estimable Member
Joined: 7 years ago

Thanks Trevor.

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

Reply
Posts: 1457
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

That's correct

Reply
Posts: 100
 Ben
Topic starter
(@maoxiong)
Estimable Member
Joined: 7 years ago

Thank you 🙂

Reply
Share: