---
title: "GET /network-policy/rules/{rule_id}"
method: GET
path: "/network-policy/rules/{rule_id}"
tags: ["Network Policy"]
---

# GET /network-policy/rules/{rule_id}

`GET /network-policy/rules/{rule_id}`

## Request

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

## Path parameters

- `rule_id` integer, required

## Response `200`

The rule

- NetworkPolicyRuleResponse
  - `action` string, required
  - `created_at` string, date-time, required
  - `created_by` integer, nullable
  - `description` string, nullable
  - `direction` string, required
  - `enforceable` boolean, required: False for a `host` rule: hostname rules are enforced only by the shared egress proxy, which no node runs yet, so such a rule (stored before new ones were refused) is shown but never enforced.
  - `id` integer, required
  - `link_id` integer, nullable
  - `link_table` string, nullable
  - `origin` string, required: `link` rules are removed by unlinking, not deleted directly.
  - `peer_kind` string, required
  - `peer_ref` string, required
  - `port_end` integer, nullable
  - `port_start` integer, nullable
  - `protocol` string, required
  - `subject_id` integer, required
  - `subject_kind` string, required
  - `updated_at` string, date-time, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: No such rule
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 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 `404` 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/rules/:rule_id/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)
