CUPI Installation

Version 1
    This document was generated from CDN thread

    Created by: kapil khanna on 06-06-2011 11:55:04 AM
    Can anyone point me to a document that describes how to install/enable CUPI? Does one need to install CUPI via the cisco unity connection administration web console?
     

    Subject: RE: CUPI Installation
    Replied by: kapil khanna on 06-06-2011 12:25:35 PM
    Thanks. I was trying a very simple API call by going to the following URL -

    https://<server>/vmrest/users?rowsPerPage=0

    I get a certificate error, which I ignore and then a HTTP digest auth dialog appears. I put in my username/password but I get a 403 error.

    What sort of rights does the CUPI user need to have? Can you elaborate on that?

    Subject: RE: New Message from kapil khanna in Cisco Unity Connection Provisioning In
    Replied by: Matthew Penning on 06-06-2011 12:56:54 PM
    Can¿t recall the name of the role off hand, but if you go to your user page, select ¿Roles¿, it should be fairly obvious (I think it¿s something like ¿remote access¿ if I remember right).  Assign yourself that role and try again.  Also for testing you give yourself something greater than that if you wish, like ¿System Administrator¿.  I¿d recommend going with the least possible rights for production though.



    ~ Matt



    From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
    Sent: Monday, June 06, 2011 9:26 AM
    To: cdicuser@developer.cisco.com
    Subject: New Message from kapil khanna in Cisco Unity Connection Provisioning Interface (CUPI) - CUPI Questions: RE: CUPI Installation



    kapil khanna has created a new message in the forum "CUPI Questions":

    --------------------------------------------------------------
    Thanks. I was trying a very simple API call by going to the following URL -

    https://<server>/vmrest/users?rowsPerPage=0

    I get a certificate error, which I ignore and then a HTTP digest auth dialog appears. I put in my username/password but I get a 403 error.

    What sort of rights does the CUPI user need to have? Can you elaborate on that?
    --
    To respond to this post, please click the following link:

    <http://developer.cisco.com/web/cupi/forums/-/message_boards/view_message/4011490>

    or simply reply to this email.

    Subject: RE: CUPI Installation
    Replied by: kapil khanna on 06-06-2011 02:25:29 PM
    I was able to provide sys admin access and now I am getting results from the API. I am trying to get the user count in the system without the payload. As per the docs, this should work -

    GET http://<connection-server>/vmrest/users?rowsPerPage=0

    However this returns response of 400 - BAD Request.

    Any ideas?

    Subject: RE: CUPI Installation
    Replied by: kapil khanna on 06-06-2011 02:50:13 PM
    This is the error that is returned -

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ErrorDetails><errors><code>DATA_EXCEPTION</code><message>A syntax error has occurred.</message></errors></ErrorDetails>
    Tried both with rowsPerPage=0, and also with pageNumber=0 as per the docs. Both return the same error.

    Subject: Re: New Message from kapil khanna in Cisco Unity Connection Provisioning In
    Replied by: Sascha Monteiro on 06-06-2011 06:10:54 PM
    Hi,

    I have tested the request from a REST client and from a web-browser, both return the number of users fine..
    it did require https though, what client did you use? does it follow redirects? (i.e. from http to https )


    On 7/06/2011, at 4:25 AM, Cisco Developer Community Forums wrote:

    > kapil khanna has created a new message in the forum "CUPI Questions":
    >
    > --------------------------------------------------------------
    > I was able to provide sys admin access and now I am getting results from the API. I am trying to get the user count in the system without the payload. As per the docs, this should work -
    >
    > GET http://<connection-server>/vmrest/users?rowsPerPage=0
    >
    > However this returns response of 400 - BAD Request.
    >
    > Any ideas?
    > --
    > To respond to this post, please click the following link:
    >
    > <http://developer.cisco.com/web/cupi/forums/-/message_boards/view_message/4011771>
    >
    > or simply reply to this email.

    Subject: RE: CUPI Installation
    Replied by: kapil khanna on 06-06-2011 06:30:50 PM
    I tried HTTP & HTTPS as well. The HTTP redirects to HTTPS as you mention. However I get the same XML error message.

    Can you post the XML response that you receive?

    Subject: Re: New Message from kapil khanna in Cisco Unity Connection Provisioning In
    Replied by: Sascha Monteiro on 06-06-2011 06:39:54 PM
    it's from our lab;
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><Users total="3"/>

    On 7/06/2011, at 8:30 AM, Cisco Developer Community Forums wrote:

    > kapil khanna has created a new message in the forum "CUPI Questions":
    >
    > --------------------------------------------------------------
    > I tried HTTP & HTTPS as well. The HTTP redirects to HTTPS as you mention. However I get the same XML error message.
    >
    > Can you post the XML response that you receive?
    > --
    > To respond to this post, please click the following link:
    >
    > <http://developer.cisco.com/web/cupi/forums/-/message_boards/view_message/4012208>
    >
    > or simply reply to this email.

    Subject: RE: CUPI Installation
    Replied by: kapil khanna on 06-06-2011 08:06:26 PM
    Well that is something like what I was expecting. Unfortunately I do not get the same result. Is this some sort of a configuration issue?

    Subject: RE: New Message from kapil khanna in Cisco Unity Connection Provisioning In
    Replied by: Matthew Penning on 06-06-2011 12:14:54 PM
    CUPI is installed and enabled by default ¿



    ~ Matt



    From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
    Sent: Monday, June 06, 2011 8:55 AM
    To: cdicuser@developer.cisco.com
    Subject: New Message from kapil khanna in Cisco Unity Connection Provisioning Interface (CUPI) - CUPI Questions: CUPI Installation



    kapil khanna has created a new message in the forum "CUPI Questions":

    --------------------------------------------------------------
    Can anyone point me to a document that describes how to install/enable CUPI? Does one need to install CUPI via the cisco unity connection administration web console?

    --
    To respond to this post, please click the following link:

    <http://developer.cisco.com/web/cupi/forums/-/message_boards/view_message/4011409>

    or simply reply to this email.

    Subject: RE: CUPI Installation
    Replied by: kapil khanna on 07-06-2011 12:59:45 PM
    This is the version of the Unity Connection Manager - Version 7.1.3ES10.21005-10

    Not sure if that would help in diagnozing the issue with the total no of users query.

    I have a total of 8 users on this system with 3 users that have a mailboxes.

    Subject: RE: CUPI Installation
    Replied by: Anil Verma on 07-06-2011 04:07:42 PM
    I think you are probably facing the issue because of the version number. The rowcount feature might have been an addition to a later release.
    Can you issue your query without the rowcount, so something like -
    GET http://<connection-server>/vmrest/users

    Subject: RE: CUPI Installation
    Replied by: kapil khanna on 07-06-2011 04:41:59 PM
    The call to get all users works just fine. It just throws an error when I try and fetch a count of all the users. Can someone confirm that this feature was added in a later version and specifically which version?