---
title: "GET /network-policy/nodes"
method: GET
path: "/network-policy/nodes"
tags: ["Network Policy"]
---

# GET /network-policy/nodes

`GET /network-policy/nodes`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/network-policy/nodes`
- Auth: HTTP bearer

## Response `200`

Every node's mode; node 0 is the control plane

- NodeNetworkPolicyModeListResponse
  - `nodes` NodeNetworkPolicyModeResponse[], required
    - `enforcement_unavailable_reason` string, nullable: Why `shadow`/`enforce` is unavailable, when `supports_enforcement` is false.
    - `mode` string, required: `legacy` (today's behaviour), `shadow` (computed and logged, not applied) or `enforce`.
    - `name` string, required
    - `node_id` integer, required: 0 is the control plane.
    - `role` string, required
    - `status` string, required
    - `supports_enforcement` boolean, required: Whether this node can run `shadow` or `enforce`: always on the control plane, on a worker while its agent reports an enforcer. A stored non-legacy mode on a node without one is never counted as enforcing.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 3 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-28** `b8d51a990805`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/network-policy/nodes/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
