go-unifi

Get Network References

Retrieve references to a specific network.

GET
/v1/sites/{siteId}/networks/{networkId}/references

Retrieve references to a specific network.

X-Api-Key<token>

UniFi API key. Create one under Control Plane → Admins & Users → your admin → Create API Key (requires controller 9.0.114+).

In: header

Path Parameters

networkId*string
siteId*string

Response Body

application/json

curl -X GET "https://example.com/v1/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/networks/497f6eca-6276-4993-bfeb-53cbbbba6f08/references"
{  "referenceResources": [    {      "resourceType": "CLIENT",      "referenceCount": 1,      "references": [        {          "referenceId": "8502eb05-558d-4480-8511-c1011710b340"        }      ]    }  ]}