Quick ONU check from the last poll (never live).
GET
/onus/{id}/diagnose
const url = 'https://example.com/api/v1/onus/example/diagnose';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/onus/example/diagnose \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”OK
Media typeapplication/json
object
data
required
object
id
required
string
olt_id
required
integer
olt_name
string
slot
required
integer
port
required
integer
onu_id
required
integer
interface
string | null
serial_number
string | null
mac
string | null
type_name
string | null
name
string | null
customer_name
string | null
status
required
string
admin_state
string
phase_state
string
last_down_cause
string | null
optical
required
object
rx_power_dbm
required
number | null
rx_power_label
string | null
tx_power_dbm
required
number | null
distance_m
required
integer | null
odp
required
object
id
integer
name
string | null
acs
required
object
linked
required
boolean
product_class
string | null
last_inform_at
required
string | null format: date-time
online
required
boolean
alarms
required
Array<object>
object
id
required
integer
type
required
string
severity
required
string
message
string | null
first_seen_at
string | null format: date-time
last_seen_at
string | null format: date-time
external_refs
References from other systems (system:value), e.g. maung:customer:
Array<string>
freshness
required
object
state
required
string
last_polled_at
required
string | null format: date-time
poll_age_seconds
integer | null
stale_after_seconds
integer
links
required
object
ui
required
string | null format: uri
meta
required
object
observed_at
required
string | null format: date-time
stale
required
boolean
Example
{ "data": { "status": "online", "freshness": { "state": "fresh" } }}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"}