A curated map of the Internal (legacy) API resource methods — grouped by domain, with each resource's CRUD verbs and the by-MAC, reorder, and upload extras.
The Internal (legacy) API exposes every resource as plain methods on the client (also reachable via
c.Internal()). They follow a strict naming convention, so this page
maps the resources rather than transcribing hundreds of generated struct fields — for those, browse
the unifi package on pkg.go.dev.
Most resources expose the same five methods, named <Verb><Resource>:
Verb
Signature
Returns
Create
Create<R>(ctx, site, *R)
(*R, error)
Get
Get<R>(ctx, site, id)
(*R, error)
List
List<R>(ctx, site)
([]R, error)
Update
Update<R>(ctx, site, *R)
(*R, error)
Delete
Delete<R>(ctx, site, id)
error
So the Network row below means CreateNetwork, GetNetwork, ListNetwork, UpdateNetwork,
DeleteNetwork. Every method takes a context.Context first and a site name string ("default");
Get returns ErrNotFound when the resource doesn't exist, while List
returns an empty slice (and a nil error) when there are none. In the tables below, CRUD is shorthand
for all five; deviations are spelled out.
Upload-based — no Create/Update; upload from a path or an io.Reader.
This map is curated for orientation. The exact field set of each resource struct — and any rarely used
helper — is authoritative on
pkg.go.dev. The full method list also lives
on the InternalClient interface.