Question:
May some API experts help me for the following question ?
What API can help to provision user in Cisco Unified Presence Server ?
In Cisco Unified presence server,
- What API can do the following tasks equivalent to the following GUI operation ?
Application>Desk Phone Control>User Assignment, then “Enable Desk Phone Control"
- What API can do the following tasks equivalent to the following GUI operation ?
Application > Cisco Unified Personal Communicator > Voicemail profile, then select user and “Add Users to Profile”
- What API can do the following tasks equivalent to the following GUI operation ?
Application>Cisco Unified Personal Communicatior > LDAP profile, then select user and “Add Users to Profile”
Please kindly comment and suggest where I can get more information about those management API for Presence server
Answer:
I am not too sure about the last two so I will have to research that. But the first can be accomplished using AXL / Roster Management API for the CUP Server.
You can get the WSDL for the API here: https://<Your CUP Server>/axl/services/AXLAPIService?wsdl
You will send your SOAP messages using the next link: https://<Your CUP Server>:8443/axl/services/AXLAPIService
Here is the CUP developer guide: https://developer.cisco.com/fileMedia/download/f4a5c1d3-e8c9-4a5c-ac6c-c68dedaa8f9f
Below are some requests and responses I have done using SOAPUI:
getDeskphoneControlUserSettings Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.0">
<soapenv:Header/>
<soapenv:Body>
<ns:getDeskphoneControlUserSettings sequence="?">
<!--You have a CHOICE of the next 2 items at this level-->
<userid>User1<userid>
<!--<uuid>?</uuid>-->
<!--Optional:-->
<returnedTags uuid="?">
<!--Optional:-->
<userid>?</userid>
<!--Optional:-->
<enabled>?</enabled>
</returnedTags>
</ns:getDeskphoneControlUserSettings>
</soapenv:Body>
</soapenv:Envelope>
getDeskphoneControlUserSettings Response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:getDeskphoneControlUserSettingsResponse xmlns:ns="http://www.cisco.com/AXL/API/8.0">
<return>
<deskphoneControlUserSettings uuid="{1FAC9737-C6BF-03C4-A2CD-1C6E49D0B824}">
<userid>User1</userid>
<enabled>false</enabled>
</deskphoneControlUserSettings>
</return>
</ns:getDeskphoneControlUserSettingsResponse>
</soapenv:Body>
</soapenv:Envelope>
updateDeskphoneControlUserSettings Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.0">
<soapenv:Header/>
<soapenv:Body>
<ns:updateDeskphoneControlUserSettings sequence="?">
<!--You have a CHOICE of the next 2 items at this level-->
<!--<uuid>?</uuid>-->
<userid>User1</userid>
<!--Optional:-->
<enabled>true</enabled>
</ns:updateDeskphoneControlUserSettings>
</soapenv:Body>
</soapenv:Envelope>
updateDeskphoneControlUserSettings Response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:updateDeskphoneControlUserSettingsResponse xmlns:ns="http://www.cisco.com/AXL/API/8.0">
<return>{1FAC9737-C6BF-03C4-A2CD-1C6E49D0B824}</return>
</ns:updateDeskphoneControlUserSettingsResponse>
</soapenv:Body>
</soapenv:Envelope>
getDeskphoneControlUserSettings Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.0">
<soapenv:Header/>
<soapenv:Body>
<ns:getDeskphoneControlUserSettings sequence="?">
<!--You have a CHOICE of the next 2 items at this level-->
<userid>User1</userid>
<!--<uuid>?</uuid>-->
<!--Optional:-->
<returnedTags uuid="?">
<!--Optional:-->
<userid>?</userid>
<!--Optional:-->
<enabled>?</enabled>
</returnedTags>
</ns:getDeskphoneControlUserSettings>
</soapenv:Body>
</soapenv:Envelope>
getDeskphoneControlUserSettings Response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:getDeskphoneControlUserSettingsResponse xmlns:ns="http://www.cisco.com/AXL/API/8.0">
<return>
<deskphoneControlUserSettings uuid="{1FAC9737-C6BF-03C4-A2CD-1C6E49D0B824}">
<userid>User1</userid>
<enabled>true</enabled>
</deskphoneControlUserSettings>
</return>
</ns:getDeskphoneControlUserSettingsResponse>
</soapenv:Body>
</soapenv:Envelope>
Comments
0 comments
Please sign in to leave a comment.