cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1616
Views
3
Helpful
12
Replies

CER API to retrieve ERL membership of Switch Port or IP Subnet

jdrinkwater
Level 1
Level 1

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

12 Replies 12

Marcel Zehnder
Spotlight
Spotlight

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?

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

 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

jdrinkwater
Level 1
Level 1

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>

Does the `GET http://{CER-IP}/cerappservices/export/authenticate/status` work?

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

I am getting same error 401. It works for 'GET http://{CER-IP}/cerappservices/service/user/' request works.

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

/userrole?userRoleName=CER%20System%20Admin

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

what would be full URL would look like with role?

would be GET https://{CER-IP}/cerappservices/service/user?userName=admin

https://developer.cisco.com/docs/cer-config/#!user-management/user-management-1

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

I get an error.

23
{"status":"Not Found","users":null}
0

 

terry duffy
Level 1
Level 1

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.

Thanks for the information. Is there a Webex team's space for CER?

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.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io