Can't get data for vmrest/mailbox but ok for vmrest/users and vmrest/ports

Version 1
    This document was generated from CDN thread

    Created by: Valerie Kan on 15-10-2012 12:36:24 AM
    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.

    Subject: RE: Can't get data for vmrest/mailbox but ok for vmrest/users and vmrest/po
    Replied by: Anil Verma on 15-10-2012 01:53:15 AM
    Look at this blog post, it would help -
    Accessing a users mailbox

    Subject: RE: Can't get data for vmrest/mailbox but ok for vmrest/users and vmrest/po
    Replied by: Anil Singh on 15-10-2012 03:27:46 AM
    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

    Subject: RE: Can't get data for vmrest/mailbox but ok for vmrest/users and vmrest/po
    Replied by: Valerie Kan on 15-10-2012 06:49:38 PM
    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.
     

    Subject: RE: Can't get data for vmrest/mailbox but ok for vmrest/users and vmrest/po
    Replied by: Anil Verma on 15-10-2012 11:26:04 PM
    Check out the sample code here for finding out the mailbozes that are over quota -
    VoiceMailQuotaReportSample
     

    Subject: RE: Can't get data for vmrest/mailbox but ok for vmrest/users and vmrest/po
    Replied by: Valerie Kan on 16-10-2012 12:12:17 AM
    Thanks for the code sample. It is great. I understand now.

    Subject: RE: Can't get data for vmrest/mailbox but ok for vmrest/users and vmrest/po
    Replied by: Valerie Kan on 16-10-2012 12:57:53 AM
    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.