Event Counter

Event Counters

The event_counter endpoint allows clients to retrieve event counters for either a specific customer or if their permission level allows it all the termination ranges stored within ACS.

GET /api/event_counter

Retrieve a list of event counters stored in the underlying OCNCC system which the current authenticated user has access to.

This request supports the following parameters:

Key Type Required Description
customer_id Integer False The unique ID of a customer to query event counters for.

Response Content

The response will be a JSON array of objects, with each object consisting of the following information:

Key Type Description
id String The unique ID of the event counter.
name String The name of the event counter.

Examples

Request:

curl 'http://localhost/jarvis-agent/n2fe/api/event_counter' -H 'Cookie: N2FE_CGISESSID=48ac880f98504e81373207d62dd2f807' -H 'customer_id: 1'

Response:

[
   {
      "id": "1",
      "name": "test event counter"
   },
   ...
]