Base URL
The NBI listens on port 7557 by default.genieacs-nbi is running locally on the default port.
Queries
Most collection endpoints accept aquery parameter containing a MongoDB-style JSON filter. The value must be URL-encoded.
Query operators
Queries use MongoDB’s JSON query syntax.| Operator | Description |
|---|---|
{"field": "value"} | Equality match |
$gt | Greater than |
$lt | Less than |
$gte | Greater than or equal |
$lte | Less than or equal |
$ne | Not equal |
Projection
Collection query endpoints accept an optionalprojection parameter: a comma-separated list of parameter paths to include in the response. Use this to reduce response size when working with large device documents.
Queryable collections
The following collections can be queried viaGET /<collection>/?query=<query>:
| Collection | Description |
|---|---|
devices | CPE device records |
tasks | Queued device management tasks |
presets | Configuration rules |
objects | Generic configuration objects |
files | Uploaded firmware and configuration files |
faults | Device fault records |
provisions | Provision scripts |
virtualParameters | Virtual parameter scripts |
Pagination
Collection queries supportskip and limit parameters for pagination. The response total header contains the total number of matching documents.
Sorting
Pass asort parameter as a JSON object with field names and sort direction (1 for ascending, -1 for descending):
Ping a device
200 OK with ping output on success. 404 Not Found if the host is unreachable. 500 Internal Server Error if ping fails to run.
API resources
Devices
Query devices, manage tags, and delete device records.
Tasks
Enqueue and manage device management tasks.
Presets
Create and manage device configuration presets.
Provisions
Upload and manage provision scripts and virtual parameters.
Files
Upload firmware images and configuration files.
Faults
Query and clear device faults.