---
title: "Get rules from Rulezet by vulnerability id"
method: GET
path: "/rulezet/search_rules_by_vulnerabilities/{vulnerability_id}"
tags: ["rulezet"]
---

# Get rules from Rulezet by vulnerability id

`GET /rulezet/search_rules_by_vulnerabilities/{vulnerability_id}`

Get rules from Rulezet by vulnerability id.

## Query parameters

- `page` integer
- `per_page` integer

## Headers

- `X-Fields` string, mask

## Response `200`

Success.

- RulesList[]
  - `metadata` Metadata
    - `count` integer — Total number of the items of the data.
    - `page` integer — Number of the page.
    - `per_page` integer — Requested limit data.
  - `data` Rule[] — List of rules.
    - `id` integer, required — Rule ID.
    - `uuid` string, required — Rule UUID.
    - `vulnerability_id` string, required — Related vulnerability.
    - `format` string, required — Format of the rule.
    - `title` string, required — Title of the rule.
    - `description` string, required — Description of the rule.
    - `raw` string, required — raw version of the rule.
    - `detail_url` string, required — URL of the rule.
    - `creation_date` string, required — Date the ule was created.
    - `updated_date` string, required — Date the rule was updated.

## Other responses

- `404` — Rule not found in Rulezet.
- `502` — Bad Gateway: Invalid response from Rulezet.
- `503` — Service Unavailable: Unable to reach Rulezet or misconfigured.

---

[API](https://skmtc.net/vulnerability-lookup/apis/vulnerability-lookup-api.md) · [All operations](https://skmtc.net/vulnerability-lookup/apis/vulnerability-lookup-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vulnerability-lookup/vulnerability-lookup-api/revisions/e6ef25beb687/schema)
