---
title: DeviceIpNetwork type | Wartiva GraphQL API
description: An IP prefix containing an IP address and CIDR mask that a Device was seen using. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/device-ip-network.html
updated: 2026-10-07
---

Networks, devices, and sensors · GraphQL type

# `DeviceIpNetwork` type

An IP prefix containing an IP address and CIDR mask that a Device was seen using.

## Fields

| Field Name | Description |
|---|---|
| `ipNet` - [`IpNetwork!`](https://wartiva.com/api-docs/types/ip-network.html) | The IP network where this device was found. |
| `networkPrefix` - [`NetworkPrefix`](https://wartiva.com/api-docs/types/network-prefix.html) | The [NetworkPrefix](https://wartiva.com/api-docs/types/network-prefix.html) this device was seen using. Null when the observed prefix is not a host address (no NetworkPrefix is materialized for it) or the prefix object has aged out. The [Network](https://wartiva.com/api-docs/types/network.html) this device was found on is reachable via the prefix's network field. |
| `seenOnline` - [`SeenOnline!`](https://wartiva.com/api-docs/types/seen-online.html) | Describes when this IP prefix was seen in use by this Device. |
| `seenIsGateway` - [`SeenOnline!`](https://wartiva.com/api-docs/types/seen-online.html) | Describes when this IP prefix was seen in use by this Device as a default gateway. |

## Used by

- [`Device`](https://wartiva.com/api-docs/types/device.html) type: A physical or virtual device that does not run the Wartiva endpoint application but is visible on the network to a managed Endpoint, such as…

## Related types

- [`Network`](https://wartiva.com/api-docs/types/network.html) An IP network (subnet) that a managed Endpoint has been attached to, identified by its address range in CIDR notation and, for networks outside a…
- [`NetworkPrefix`](https://wartiva.com/api-docs/types/network-prefix.html) A specific IP address together with its subnet prefix length (e.g.

## Example

### Example

```json
{
  "ipNet": IpNetwork,
  "networkPrefix": NetworkPrefix,
  "seenOnline": SeenOnline,
  "seenIsGateway": SeenOnline
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
