---
title: "GET /rules/{id}/"
method: GET
path: "/rules/{id}/"
tags: ["rules"]
---

# GET /rules/{id}/

`GET /rules/{id}/`

Get the rule by its id

## Path parameters

- `id` integer, required

## Response `200`

Return the rule by its id.

- RuleOut
  - `id` integer, required — ID of the ruleset
  - `name` string, required — Name of the rule
  - `action` object, nullable — The action in the rule
  - `fired_stats` object[], required — List of stats
  - `rulebook_id` integer, nullable — ID of the rulebook
  - `ruleset_id` integer, nullable — ID of the ruleset
  - `project_id` integer, nullable — ID of the project

## Changes

- **2023-05-19** `f84d9240fdf2` — 1 info
  - the endpoint scheme security `cookieAuth` was removed from the API
- **2023-04-25** `62d33b790834` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ansible/apis/event-driven-ansible-api/changes/rules/:id/get.md)

---

[API](https://skmtc.dev/ansible/apis/event-driven-ansible-api.md) · [All operations](https://skmtc.dev/ansible/apis/event-driven-ansible-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ansible/event-driven-ansible-api/revisions/f84d9240fdf2/schema)
