---
title: network query | Wartiva GraphQL API
description: Retrieves a Network by its graph object id: an IP subnet that managed endpoints have joined, classified as PREMISE, REMOTE, or LINK_LOCAL.
url: https://wartiva.com/api-docs/queries/network.html
updated: 2026-10-07
---

Networks, devices, and sensors · GraphQL query

# `network` query

Retrieves a [Network](https://wartiva.com/api-docs/types/network.html) by its graph object id: an IP subnet that managed endpoints have joined, classified as PREMISE, REMOTE, or LINK_LOCAL, with remote networks told apart by their gateway's MAC address. A network links to the endpoints and [Device](https://wartiva.com/api-docs/types/device.html) objects seen on it, its gateway devices, its [NetworkPrefix](https://wartiva.com/api-docs/types/network-prefix.html) addresses, open ports, services, and observed position. An [Endpoint](https://wartiva.com/api-docs/types/endpoint.html) lists its networks through `networks`; find them across the organization with [graphSearch](https://wartiva.com/api-docs/queries/graph-search.html) on the NETWORK object type. Returns a not-found error when no object has the id, and an error when the id belongs to another object type.

## Response

Returns a [`NetworkPayload!`](https://wartiva.com/api-docs/types/network-payload.html)

## Arguments

| Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The Network identifier. |
| `mockOptions` - [`MockDataInput`](https://wartiva.com/api-docs/types/mock-data-input.html) | Options for mock data generation. Options supported: none. |

## Example

### Query

```graphql
query network(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  network(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      seen {
        ...SeenOnlineFragment
      }
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      networkType
      addressFamily
      ipNet {
        ...IpNetworkFragment
      }
      position {
        ...PositionSeenFragment
      }
      connectedInterfaces {
        ...InterfaceConnectionFragment
      }
      devices {
        ...DeviceConnectionFragment
      }
      endpoints {
        ...EndpointConnectionFragment
      }
      gatewayDevices {
        ...DeviceConnectionFragment
      }
      ports {
        ...OpenPortConnectionFragment
      }
      prefixes {
        ...NetworkPrefixConnectionFragment
      }
      seenConnectedInterfaces {
        ...InterfaceConnectionFragment
      }
      services {
        ...ServiceConnectionFragment
      }
      wlanAccessPoints {
        ...WlanAccessPointConnectionFragment
      }
      wlanInterfaceConnections {
        ...WlanInterfaceConnectionConnectionFragment
      }
      wlanInterfaceConnectionsSeen {
        ...WlanInterfaceConnectionConnectionFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

```

### Variables

```json
{
  "id": "4",
  "mockOptions": MockDataInput
}

```

### Response

```json
{"data": {"network": {"node": Network}}}

```

---

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