UniFi Network source #55
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter#55
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A source for UniFi Network on a UniFi OS console (UDM, UDR, UCG, Cloud Key Gen2+). It opens problems for devices that are offline or waiting to be adopted. During a diagnosis it tells the AI which access point or switch a host is connected to, so a "host down" report can be traced to the network.
Setup
/proxy/network/integration/v1/...with theX-API-KEYheader. This needs Network 9.3 or later.validate_settingscallsGET /v1/infoandGET /v1/sites.Problems (
GET /v1/sites/{site}/devices, plus/v1/pending-devices)open_after.Context queries
devices: every device with its state, model, IP address and uptime.device: one device's details plusstatistics/latest(CPU, memory, uptime, uplink transfer rates, radios).client: find a client by IP address, MAC address or name, and return its type, when it connected, and its uplink device (uplinkDeviceIdresolved to the device's name).context_summary: number of devices online and offline, and number of clients.Out of scope for now (the official API doesn't expose these)
These are only in the legacy API, which needs a username and password login, so they're left out.
Open questions
statevalues exist. Check the OpenAPI spec for 9.3 and 10.x before building.Done when
Req.Testfake console.