Lewati ke konten

ONU inventory. limit/cursor = cursor pagination; else page/per_page.

GET
/onus
curl --request GET \
--url https://example.com/api/v1/onus \
--header 'Authorization: Bearer <token>'
olt_id
integer

Only this OLT.

status
string

ONUs: online|offline|warning. Alarms: active|cleared|all (default active).

q
string

Search text.

external_ref
string

NMS-11 (R7): system:value, e.g. maung:customer:; only ONUs linked to it.

limit
integer

1–200, default 50. Switches to cursor pagination.

cursor
string

Meta.next_cursor of the previous page (opaque).

page
integer

Page number (page mode).

per_page
integer

1–200 (page mode).

OK

Media typeapplication/json
object
data
required
Array<object>
object
id
required

Stable opaque ONU id (onu_…); null when the ONU has no serial or MAC.

string | null
olt_id
required
integer
olt_name
string
slot
required
integer
port
required
integer
onu_id
required
integer
interface
string | null
serial_number

Masked to the last 4 characters without nms.read.pii.

string | null
mac
string | null
type_name
string | null
name
string | null
description
string | null
customer_name
string | null
admin_state
string
phase_state
string
online
required
boolean
stale
required
boolean
last_down_cause
string | null
rx_power_dbm
number | null
rx_power_label
string | null
odp_id
integer | null
odp_name
string | null
acs
object | null
external_refs

References from other systems (system:value), e.g. maung:customer:.

Array<string>
links
required
object
ui
required
string | null format: uri
meta
required
object
count
required
integer
observed_at
string | null format: date-time
stale
boolean
next_cursor
string | null

Example generated

{
"data": [
{
"id": "example",
"olt_id": 1,
"olt_name": "example",
"slot": 1,
"port": 1,
"onu_id": 1,
"interface": "example",
"serial_number": "example",
"mac": "example",
"type_name": "example",
"name": "example",
"description": "example",
"customer_name": "example",
"admin_state": "example",
"phase_state": "example",
"online": true,
"stale": true,
"last_down_cause": "example",
"rx_power_dbm": 1,
"rx_power_label": "example",
"odp_id": 1,
"odp_name": "example",
"acs": "example",
"external_refs": [
"example"
],
"links": {
"ui": "https://example.com"
}
}
],
"meta": {
"count": 1,
"observed_at": "2026-04-15T12:00:00Z",
"stale": true,
"next_cursor": "example"
}
}

No token, expired (code token_expired) or unknown token.

Media typeapplication/json
object
message
required
string
code
string

Example generated

{
"message": "example",
"code": "example"
}

Service_token_required, ip_not_allowed or scope_missing.

Media typeapplication/json
object
message
required
string
code
string

Example generated

{
"message": "example",
"code": "example"
}

Not found, or belongs to another organisation.

Media typeapplication/json
object
message
required
string
code
string

Example generated

{
"message": "example",
"code": "example"
}

Rate limit of the token; see Retry-After.

Media typeapplication/json
object
message
required
string
code
string

Example generated

{
"message": "example",
"code": "example"
}