06-01-2023 06:39 AM
CER API to retrieve ERL membership of Switch Port or IP Subnet
I would like to capture current ERL membership of either by Switch Port or IP Subnet. I am looking at the site https://developer.cisco.com/docs/cer-config/#!erl-management/erl-management but can't find the get request.
Can someone help me?
Thanks
06-01-2023 07:09 AM - edited 06-01-2023 07:11 AM
Hi
I haven't worked with the product or API, but by looking at the doc, I recommend you test if these two endpoints support HTTP GET operation:
GET http://{CER-IP}/cerappservices/service/switchport
GET http://{CER-IP}/cerappservices/service/ipsubnetphone
The doc only lists PUT for these endpoints, but maybe it's worth a try?
06-01-2023 08:22 AM
This is what i read also @Marcel Zehnder https://developer.cisco.com/site/cer/documents/api-reference/#!cisco-emergency-responder-cer-api-documentation/-switchport-info
06-01-2023 01:07 PM
Thanks for the replies.
I did see the switchport/info and tried it but getting the 401 error.
HTTP/1.1 401
Cache-Control: private
Set-Cookie: JSESSIONID=B2CF7252AF3370579922FA3D3AE8EB2B; Path=/cerappservices; Secure; HttpOnly
WWW-Authenticate: Basic
Content-Type: text/html;charset=utf-8
Content-Length: 2143
Date: Thu, 01 Jun 2023 19:59:36 GMT
<!-- custom Cisco error page --><html> <head> <title> Cisco System - null </title> <style type="text/css"> a { color: #316984; text-decoration: none; } a:hover { color: #316984; text-decoration: underline; } a:visted { color: #316984; text-decoration: none; } body { background-attachment: fixed; background-color: #ffffff; background-repeat: no-repeat; color: #316984; font-family: arial,helvetica,sans-serif; } #content { border: 1px solid #d6d7d6; font-size: 93.5%; margin: 0px 10% 30px 10%; } #content-header { background-color: #eeeeee; border-bottom: 1px solid #666666; color: #666666; font-size: 124.5%; padding: 5px 15px 5px 15px; } #copyright { font-size: 75%; margin: 0px 10% 0px 10%; padding: 3px 0px 0px 0px; text-align: right; } img { display: block; margin: 0px 0px 20px 0px; } #logo { margin: 30px 10% 0px 10%; } p { padding: 5px 15px 5px 15px; } pre { padding: 5px 15px 5px 30px; } </style> </head> <body> <div id="logo"> <img src="/ciscologo.gif" alt="Cisco Systems, Inc." /> </div> <div id="content"> <div id="content-header">HTTP Status 401 – </div> <p> <b> type: </b> Status Report </p> <p> <b>Message: </b> </p> <p> <b>Description: </b> http.401 </p> </div> </body></html>
06-02-2023 02:26 AM
Does the `GET http://{CER-IP}/cerappservices/export/authenticate/status` work?
06-02-2023 07:01 AM
I am getting same error 401. It works for 'GET http://{CER-IP}/cerappservices/service/user/' request works.
06-02-2023 08:49 AM
What do you get if you use the user role, am thinking that the other have resourcePermission and this call will show if your user can access these resources? 100% guess here btw
06-02-2023 11:21 AM
what would be full URL would look like with role?
06-02-2023 10:55 PM
would be GET https://{CER-IP}/cerappservices/service/user?userName=admin
https://developer.cisco.com/docs/cer-config/#!user-management/user-management-1
06-05-2023 05:41 AM
I get an error.
23
{"status":"Not Found","users":null}
0
06-20-2023 05:01 AM
I've looked into doing this and pulling all the DID numbers configured per site, I haven't had much luck at all working with the CER API, it appears to be nowhere near as robust as the CUCM API.
I would also get errors like you are seeing.
06-20-2023 06:35 AM
Thanks for the information. Is there a Webex team's space for CER?
06-20-2023 07:25 AM
I never saw one, there is a good thread here (all be this three years old) https://community.cisco.com/t5/collaboration-applications/looking-to-utilize-the-cer-api-for-version-12-5/td-p/4145389
Anything else after this, is a TAC call i think.
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