---
title: "Get a rule"
method: GET
path: "/v1/firewalls/policies/{policyID}/rules/{ruleID}"
tags: ["public", "firewalls"]
---

# Get a rule

`GET /v1/firewalls/policies/{policyID}/rules/{ruleID}`

## Request

- Base URL: `https://api.vozora.io`
- URL: `https://api.vozora.io/v1/firewalls/policies/{policyID}/rules/{ruleID}`
- Auth: API key in header `Authorization`

Returns one rule of a policy.

## Path parameters

- `policyID` string, required
- `ruleID` string, required

## Response `200`

OK

- FirewallPublicRule
  - `action` string
  - `conn_state` string
  - `created_at` string
  - `description` string
  - `direction` string
  - `dst_cidr` string
  - `enabled` boolean
  - `id` string
  - `ip_version` string
  - `name` string
  - `policy_id` string
  - `port_max` integer
  - `port_min` integer
  - `position` integer
  - `protocol` string
  - `src_cidr` string
  - `updated_at` string

## Other responses

- `401`: invalid or missing API key
- `403`: the key lacks firewall:read
- `404`: no such resource, or it belongs to another account

---

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