---
title: PortState enum | Wartiva GraphQL API
description: The observed reachability state of a network port from the perspective of the scanner or sensor that probed it.
url: https://wartiva.com/api-docs/types/port-state.html
updated: 2026-10-07
---

Networks, devices, and sensors · GraphQL enum

# `PortState` enum

The observed reachability state of a network port from the perspective of the scanner or sensor that probed it.

## Values

| Enum Value | Description |
|---|---|
| `OPEN` | The port responded to a probe and is accepting connections. |
| `CLOSED` | The port did not respond or actively refused the probe and is not accepting connections. |

## Used by

- [`OpenPort`](https://wartiva.com/api-docs/types/open-port.html) type: One TCP or UDP port at one IP address on a discovered Device, found by managed endpoints port-scanning the devices on their local networks and by…
- [`OpenPortSummary`](https://wartiva.com/api-docs/types/open-port-summary.html) type: An abbreviated summary of an OpenPort.

## Example

### Example

```json
"OPEN"

```

---

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