cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
343
Views
1
Helpful
4
Replies

Cisco Unified Communications Manager CUCM API Failed

SecurityJumbo
Level 1
Level 1

Hello team,

I'm using the following information for the CUCM to check the service status but it is failed and return the error message below.  Please advise if I'm missing anything or this is a know issue with CUCM version 14.0 (my CUCM running (14.0.1.12900(161) )

 

curl --location 'https://x.x.x.x:8443/axl/' \
--header 'Content-Type: text/xml; charset=utf-8' \
--header 'SOAPAction: CUCM:DB ver=14.0' \
--header 'Authorization: ••••••' \
--data '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap">
   <soapenv:Header/>
   <soapenv:Body>
      <soap:soapGetStaticServiceList>
         <soap:ServiceInformationResponse></soap:ServiceInformationResponse>
      </soap:soapGetStaticServiceList>
   </soapenv:Body>
</soapenv:Envelope>'
 
 
Error Message
nsIDc08:ClientThe endpoint reference (EPR) for the Operation not found is https://X.X.X.X/axl/services/AXLAPIService and the WSA Action = CUCM:DB ver=14.0 soapGetStaticServiceList. If this EPR was previously reachable, please contact the server administrator.
 
4 Replies 4

DavidStaudt
Level 1
Level 1

It looks like the request is being sent to the AXL API base path: https://x.x.x.x:8443/axl/
But it looks like you're trying to use a Control Center Services API request, which has a different base path: https://ServerName:8443/controlcenterservice2/services/ControlCenterServices
See the top of the doc here: https://developer.cisco.com/docs/sxml/control-center-services-api/
For a working Python-base sample, check out this repo: https://github.com/CiscoDevNet/serviceability-python-zeep-samples

Hello @DavidStaudt 
 
Thank you very much for your response. I updated the request quesy as the following
 
curl -k -v 'https://X.X.X.X:8443/controlcenterservice2/services/ControlCenterServices?wsdl' \
--header 'Content-Type: text/xml;charset=utf-8' \
--header 'SOAPAction: CUCM:DB ver=14.0' \
--header 'Accept-Encoding: gzip,deflate' \
--header 'Authorization: ••••••' \
--data '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap">
<soapenv:Header/>
   <soapenv:Body>
      <soap:soapGetServiceStatus>
          <soap:ServiceStatus></soap:ServiceStatus>
      </soap:soapGetServiceStatus>
   </soapenv:Body>
</soapenv:Envelope>'
 
 
but now I got the following error message while I have the "AXL API Access" and "CCM Admin" permission already assigned to the user and it is working when I use the "https://X.X.X.X:8443/axl" APIs.
 
<faultcode>axis2ns23:Server.Unauthorized</faultcode>
<faultstring> Admin2 is not authorized to access controlcenterservice2</faultstring>
 
Please advise if there is anything else I need to check,

Hello!
 
Has your user been assigned the "Standard CCM Server Monitoring" access control group?
 
 
Please change your requests header.
 
from:
--header 'SOAPAction: CUCM:DB ver=14.0'
to:
--header 'SOAPAction: soapGetServiceStatus'
 
 
Best regards

thedd
Level 1
Level 1

Did you check the AXl Reference?
GetServiceStatus is nothing i can find there.

You have to use another api. AXL is the wrong one.