cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
418
Views
0
Helpful
1
Replies

Request for System Status / ProductID using API

Baskaraganesan Natarajan
Cisco Employee
Cisco Employee

 

curl -k -u 'admin:cisco'  -d '<Status><SystemUnit><ProductId status="True"></ProductId></SystemUnit></Status>' http://<IP>/putxml

 

I am trying to get the API working to get the System Status  and have the following command. It fails with the error below.

 

<?xml version="1.0"?><ActionError><Reason>No action detected in document.</Reason></ActionError>[

 

But API is working fine for Callhistory.  I am not sure what I am missing in the Status Query.  Any help in this regard would only be appreciated.

 

[root@rmsem7appd01 ~]#  curl -k -u 'admin:cisco'  -d '<Command><CallHistory><Get command="True"><DetailLevel>Full</DetailLevel></Get></CallHistory></Command>' http://10.88.85.42/putxml 
<Command><CallHistoryGetResult status="OK" item="1">
  <Entry item="0">
    <CallHistoryId item="1">60</CallHistoryId>

 

 

1 Reply 1

Ekaterina Coker
Cisco Employee
Cisco Employee

according to the API Reference guide:

You can only use the putxml option for configurations and commands. In other words to ask the codec to do  something. change the time, get the last call data, get current call statistics, etc...

If i understand correctly you are trying to retrieve information and should use the url with getxml?location=path

 

curl --user admin:cisco --url http://IP/getxml?location=/Status/SystemUnit/ProductId

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: