---
title: "Retrieve all available WAF rules for a Shield Zone"
method: GET
path: "/shield/waf/rules/{shieldZoneId}"
tags: ["WAF"]
---

# Retrieve all available WAF rules for a Shield Zone

`GET /shield/waf/rules/{shieldZoneId}`

## Path parameters

- `shieldZoneId` integer, required — The ID of the Shield Zone for the WAF Rules.

## Response `200`

OK

- WafRuleMainGroupModel[]
  - `name` string, nullable
  - `ruleset` string, nullable
  - `ruleGroups` WafRuleGroupModel[], nullable
    - `id` integer
    - `name` string, nullable
    - `code` string, nullable
    - `fileName` string, nullable
    - `mainGroup` string, nullable
    - `ruleset` string, nullable
    - `description` string, nullable
    - `rules` WafRuleModel[], nullable
      - `ruleId` string, nullable
      - `description` string, nullable

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/versions/9e622620664b/schema)
