---
title: "GET /network-policy/subjects/{subject_kind}/{subject_id}"
method: GET
path: "/network-policy/subjects/{subject_kind}/{subject_id}"
tags: ["Network Policy"]
---

# GET /network-policy/subjects/{subject_kind}/{subject_id}

`GET /network-policy/subjects/{subject_kind}/{subject_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/subjects/{subject_kind}/{subject_id}`
- Auth: HTTP bearer

## Path parameters

- `subject_kind` string, required
- `subject_id` integer, required

## Response `200`

What this workload may reach, and where it is enforced

- EffectivePolicyResponse
  - `enforced` boolean, required
  - `enforcing_nodes` integer[], required: Nodes whose mode is `enforce`. Empty: the policy is shown but not enforced anywhere yet (every node is `legacy` or `shadow`).
  - `inbound_links` NetworkPolicyRuleResponse[], required: Link rules of other workloads that name this one; they are accepted even when this workload's ingress is restricted.
    - `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
  - `profile` ProfileResponse, required
    - `egress` string, required
    - `egress_source` string, required: `default` (the kind's) or `override`.
    - `ingress` string, required
    - `ingress_source` string, required
  - `rules` NetworkPolicyRuleResponse[], required: Rules whose subject is this workload.
    - `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
  - `subject_id` integer, required
  - `subject_kind` string, required

## Other responses

- `400`: Unknown kind or missing workload
- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `400` status
  - 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/subjects/:subject_kind/:subject_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)
