Skip to main content

UniFi Cloud | Inspector Missing WAN Interface IP Address - API Limitation

Overview ✨

When reviewing data collected by the Liongard UniFi Cloud Inspector, partners may notice that the WAN Interfaces section does not display the IP addresses assigned to their UniFi gateway's WAN interfaces, even though this information is visible within the UniFi Network console.

This behavior is related to the information currently available through the UniFi Network API endpoints used by the inspector.

The API returns device IP addresses and WAN interface information through separate endpoints. However, the WAN interface response does not provide the corresponding IP address or sufficient information to reliably associate the interface with a specific device IP address.

⚠️ Known Limitation: The UniFi Network Child Inspector may display only the WAN interface ID and name under WANInterfaces. The ipAddress value collected under Devices represents the device IP address returned by the UniFi API and should not be interpreted as the WAN interface IP address.

Applies To

Area

Details

Inspector

UniFi Cloud Inspector

Affected Component

UniFi Network Child Inspector

Data Views

Network Devices and WAN Interfaces

DataPrint Objects

Devices and WANInterfaces

Scenario

Missing WAN interface IP address or an apparent discrepancy between device and WAN IP addresses

Limitation Type

Third-party API data availability

Symptoms

Partners may observe one or more of the following behaviors:

  • The UniFi Network Child Inspector completes successfully.

  • The WAN Interfaces data view displays interface names and IDs but does not include IP addresses.

  • The gateway's IP address under Network Devices differs from the WAN IP address displayed in the UniFi Network console.

  • WAN IP address information visible within the UniFi Network console is not available in the Liongard DataPrint.

  • Custom metrics or reports cannot retrieve interface-specific WAN IP addresses from the WANInterfaces object.


Why This Happens

The Liongard UniFi Network Child Inspector retrieves device inventory and WAN interface information using separate UniFi Network API endpoints.

Device Information

API Endpoint: GET /v1/sites/{siteId}/devices

This endpoint returns information about adopted UniFi devices, including device names, models, identifiers, MAC addresses, firmware versions, and IP addresses.

The following is a simplified example of a device record returned by the API:

Liongard collects the ipAddress value directly from the device information returned by UniFi and exposes it within the Devices object in the DataPrint.

This value represents the device IP address reported by the API. It is not necessarily the IP address assigned to the device's WAN interface.

WAN Interface Information

API Endpoint: GET /v1/sites/{siteId}/wans

This endpoint returns the WAN interface definitions associated with a UniFi Network site.

The following is a simplified example of a WAN interface record:

The WAN interface response provides the interface identifier and name but does not include:

  • The IP address assigned to the WAN interface.

  • A corresponding device identifier.

  • Sufficient information to reliably associate the WAN interface with a specific device IP address.

As a result, Liongard cannot reliably populate an interface-specific IP address within the WANInterfaces object using this response.


Understanding the Difference Between Device IP and WAN Interface IP

Property

API Source

Description

Devices.ipAddress

/sites/{siteId}/devices

IP address reported by UniFi for the adopted network device.

WANInterfaces.id

/sites/{siteId}/wans

Unique identifier associated with the WAN interface.

WANInterfaces.name

/sites/{siteId}/wans

Name assigned to the WAN interface.

WAN Interface IP Address

Not provided by the WAN interface endpoint

IP address assigned to the WAN interface.

ℹ️ Important: A device IP address and a WAN interface IP address serve different purposes and are not interchangeable. Liongard does not substitute the device IP address for the WAN interface IP address, as doing so could result in inaccurate reporting.


Current Limitation

Liongard has validated the behavior by comparing the UniFi Network Child Inspector's collected data with the corresponding UniFi API responses.

The investigation confirmed that the observed discrepancy was not caused by Liongard swapping or incorrectly mapping device and WAN interface IP addresses. The limitation is that the WAN interface endpoint does not expose the IP address or the relationship required to reliably associate an IP address with its corresponding WAN interface.

Although additional WAN information may be visible within the UniFi Network console, information available through the console is not necessarily exposed through the API endpoints used by third-party integrations.

To support interface-specific WAN IP address collection in Liongard, UniFi would need to expose the required information through the existing WAN endpoint or another supported API endpoint that provides a reliable association between WAN interfaces and their corresponding IP addresses.


Available Workarounds

Until interface-specific WAN IP information becomes available through a supported API source used by the inspector, consider the following alternatives:

  • Review the WAN interface IP address directly within the UniFi Network console.

  • Use the Devices.ipAddress property only when reporting the device IP address.

‼️ Note: Rerunning the inspector, clearing its cache, or recreating the API key will not make additional fields available if they are not returned by the underlying UniFi API.


When to Contact Ubiquiti Support

If your organization requires WAN interface IP addresses to be available through the UniFi Network API, contact Ubiquiti Support for further assistance or submit a feature request for enhanced API coverage.

When submitting your request, consider asking whether the API can provide:

  • IP addresses assigned to individual WAN interfaces.

  • A device identifier associated with each WAN interface.

  • A supported API endpoint that reliably maps WAN interfaces to their corresponding IP addresses.

These additions would help third-party integrations retrieve and report WAN interface information accurately.


When to Contact Liongard Support 🦁

Contact Liongard Support if you observe behavior that differs from the known limitation described in this article.

For example:

  • The device IP address collected by Liongard differs from the value returned by the UniFi device API.

  • WAN interface IDs or names returned by the UniFi API are missing from the Liongard DataPrint.

  • A supported UniFi API endpoint provides WAN interface IP addresses with a reliable interface association that is not currently collected by Liongard.

  • The UniFi Network Child Inspector fails or reports unexpected errors while collecting device or WAN interface information.

When submitting a support request, include the following information:

  • Affected Environment and UniFi Network Child Inspector name.

  • UniFi gateway model.

  • UniFi OS version, where applicable, and Network application version.

  • Screenshots of the relevant UniFi Network console and Liongard data views.

  • Relevant DataPrint excerpts and API responses, if available.


Related Articles and References ⭐️

Liongard Documentation

Ubiquiti Documentation

🚨 Note : We may occasionally provide links to third-party tools or resources for additional reference. These resources are offered for convenience only, and Liongard does not control, maintain, or guarantee their functionality, accuracy, or availability. Please review and use any third-party resources at your own discretion.

Did this answer your question?