Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

REST API Method: GET /rest/license/historicalstatistics

Page Tree
rootResource - license

This action retrieves the historical statistics for the SIP License usage in the Sonus SBC 1000/2000 system. The collections are over 1 hour intervals for a period of 1 day, thus giving a maximum of 24 historical records.

Info

The current interval is always the resource with ID 1. There will be a maximum of 25 rows returned for a lookup, where the row with ID 1 is the current interval being collected and the rows with ID 2-25 are the historical collections.

Tip

If no ID is specified, a listing of all collections will be returned along with their associated IDs. These identifiers can be used to get the individual resource element values.

URL:

https://134.56.227.163/rest/license/historicalstatistics

HTTP Method

GET

Requires Authentication

true

Resource Schema

Statistics

Description
Parameter Name Description Data Type Possible Values
rt_PeakSIPCallPeak value of used SIP call licenses.int
rt_PeakSIPRegistrationPeak value of used SIP registration licenses.int
rt_PeakTDMChannelPeak value of used TDM channel licenses.int
rt_PeakDSPPeak value of used DSP licenses.int

Usage Example: (about cURL | requires a session token)

Code Block
languagebash
curl --cookie PHPSESSID=ima0r3nkaeg8mo0suln67vg4m7 --cacert 134.56.227.163.crt 
-i https://134.56.227.163/rest/license/historicalstatistics

Response:

Code Block
languagehtml/xml
<?xml version="1.0"?> 
<root>
   <status>
     <http_code>200</http_code>
   </status>
   <historicalstatistics_list count="3">
       <historicalstatistics_pk id="1" href="https://134.56.227.163/rest/license/historicalstatistics/1"/>
       <historicalstatistics_pk id="2" href="https://134.56.227.163/rest/license/historicalstatistics/2"/>
       <historicalstatistics_pk id="3" href="https://134.56.227.163/rest/license/historicalstatistics/3"/>
   </historicalstatistics_list>
</root>