cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
791
Views
0
Helpful
1
Replies

Accessing CUPI using CURL

Chester Rieman
Cisco Employee
Cisco Employee

Cisco Unity Connection version: 8.5.1ES77.14052-77

Have tried without:

curl -k -v  https://178.215.133.200/vmrest/mailboxstores

and with username/password:

curl -k -u crieman:password https://178.215.137.201/vmrest/mailboxstores

It looks like I can get this page OK with a browser but cURL gets a

HTTP/1.1 401 Unauthorized

< Pragma: No-cache

< Cache-Control: no-cache

< Expires: Thu, 01 Jan 1970 00:00:00 GMT+00:00

< WWW-Authenticate: Basic realm="Cisco VTG Realm"

< Content-Type: text/html;charset=utf-8

< Content-Length: 2186

< Date: Thu, 07 Nov 2013 16:35:19 GMT

< Server: 

Connection #0 to host 178.215.133.200 left intact

* Closing connection #0

The username/password I am using is an admin here - anything esle needed?  Am I passing the cedentials correctly?

Any info is appreciated.

Chester

1 Reply 1

Chester Rieman
Cisco Employee
Cisco Employee

OK I must have fat fingered or something beacause this works:

curl -k -u crieman:password https://178.215.133.200/vmrest/mailboxstores

Use xmllint to get it into a decent format:

curl -k -u crieman:password https://178.215.133.200/vmrest/mailboxstores | xmllint --format - > cuc.txt

And its working fine however the one item I need is not here TotalSizeOfMailbox

 

    /vmrest/mailboxstores/xxxx-xxxx-xxxxx

    UnityMbxDb1

    cuxng1a

    2cc490d6-d93c-47ad-869c-7001b0842f02

    true

    0

    0

    Unity Messaging Database -1

    ciscounity

    0

    true

    0

    15000

    /vmrest/mailboxstores/xxxx-xxxx-xxxxx/mailboxes

 

http://docwiki.cisco.com/wiki/Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Mailbox_Store_API

Shows this value being returned but I don't see it on my system, whats up with that?

Have also tried:

GET https:///vmrest/mailboxstores/

And still dont see the TotalSizeOfMailbox.

Alos I f I try and see the users as the document shows, I get:

 

    TOO_MANY_RESULTS

I just want a value, not a list of all the users, possible to get that?  and drawbacks on a busy system?

Any info is appreciated!


Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: