---
title: "Get network policy"
method: GET
path: "/runs/{id}/network_policy"
tags: ["Runs"]
---

# Get network policy

`GET /runs/{id}/network_policy`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/runs/{id}/network_policy`
- Auth: API key in header `Authorization`

Returns job run's network policy.

## Path parameters

- `id` number, required

## Response `200`

Successful response

- object
  - `rules` object, required: List of rules
  - `rules.left_set_type` string, required: Left set type
  - `rules.right_set_type` string, required: Right set type
  - `rules.max_connections` number, required: Maximum connections count
  - `rules.conditions` object, required: List of conditions
  - `rules.conditions.set_type` string, required: Type of set
  - `rules.conditions.negative` boolean, required: Negative condition or not
  - `sets` object, required: List of Agent's sets
  - `sets.id` string, required: Set id
  - `sets.type` string, required: Set type
  - `sets.agents` number, required: List of Agent's id in set
  - `sets_map_levels` object, required: Priority list of set's network policy
  - `sets_map_levels.id` string, required: Set id
  - `sets_map_levels.src_sets` string, required: List of source set's id
  - `agents_map_levels` object, required: Priority list of Agent's network policy
  - `agents_map_levels.id` number, required: Agent id
  - `agents_map_levels.src_agents` object, required: List of source Agents with sets information
  - `agents_map_levels.src_agents.id` number, required: Source Agent id
  - `agents_map_levels.src_agents.set_id` string, required: Set id
  - `agents_map_levels.src_agents.src_set_id` string, required: Source set id

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

[API](https://skmtc.dev/resilio/apis/resilio-api.md) - [All operations](https://skmtc.dev/resilio/apis/resilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/resilio/apis/resilio-api/revisions/ca39130a395e?raw)
