06-07-2018 08:11 AM
Does documentation exist for the API for the 11.5 release of CER? Most of the commands in the existing documentation work in 10.5 but fail in 11.5 so something must have been changed with the URLs in the GET requests. I'm working on a project at work where we had planned on using the API to pull information into our MACR database.
07-18-2018 08:31 AM
Cisco has not done a good job of keeping documentation updated but there have been changes. URLs may need to be formatted as follows. in my example i am looking for unlocatedphones
http://CER /cerappservices/export/unlocatedphones/info/{username}/{password}
http://CER /cerappservices/export/unlocatedphones/info/teste/5E884898DA28047151D0E56F8DC6292773603D0D6AABBDD62A11EF721D1542D8
you code may also need Header Accept:application/xml
07-25-2018 10:03 AM
Yeah, basically CER 10.5 required no authentication and CER 11/12 does. I've created a tool to pull all information from available CER APIs and it works on both 10 and 11+ just fine. Here is Python snippet of my tools creating authentication for version 11+:
ip_add = input("Please enter CER Server IP address: ")
cer_version = input("Please enter major CER version, i.e. 10, 11, 12: ")
if cer_version != "10":
username = input("Please enter CER username: ")
password = input("Please enter CER user password: ")
# decrypt password to sha256
sha_password = hashlib.sha256(password.encode()).hexdigest()
# create authentication URL
resp = requests.get('http://' + ip_add + '/cerappservices/export/authenticate/status/' + username + "/" + sha_password,auth=(username, sha_password))
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide