CUC Forums

« Back to CUMI Questions

RE: Can't get data for vmrest/mailbox but ok for vmrest/users and vmrest/po

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
I have a test unity connection server and just trying to play with the CUPI and CUMI etc. I manged to just use a browser and the following URLs to get to users and ports data. https://10.102.90.11/vmrest/users https://10.102.90.11/vmrest/ports but I can't get to mailbox data using https://10.102.90.11/vmrest/mailbox Is there anything different to mailbox, any service or parameters I have to enable, any specific roles I need for the credential I use? Thanks in advance.

Look at this blog post, it would help -
Accessing a users mailbox

Hi Kan,
we use below REST API to aceess mailbox details for normal voice mail user and for that we need credential of that voice mail user, its not accessible using admin account and there is no any settings for that.
https://10.102.90.11/vmrest/mailbox
 
Admin can access below url:
1) https://X.X.X.X/vmrest/mailboxstores
you can get mailboxstoredetails with mailboxstoreobjectid "20f8e46e-9604-4cdc-bea9-ef9871446a0f"
2) https://X.X.X.X/vmrest/mailboxstores/20f8e46e-9604-4cdc-bea9-ef9871446a0f/mailboxes
you can get total mailboxes.
 
Thanks
Anil Singh

I see. No big brother spying.
If that's the case, what would be the quickest way using any of the available APIs to get a list of mailboxes and whether they have exceeded quota? That's actually what I am after.
Thanks for your help in advance.
 

Check out the sample code here for finding out the mailbozes that are over quota -
VoiceMailQuotaReportSample
 

Thanks for the code sample. It is great. I understand now.

Anil, thanks so much for the info. While I am at it, is there a way to get the "Total Size of All Voice Messages and Attachments" via any of the interfaces? I am referring to the one shown in the "Edit Mailboxstore" cuc admin page. Thanks again.