---
title: "Retrieve all available WAF enum mappings"
method: GET
path: "/shield/waf/enums"
tags: ["WAF"]
---

# Retrieve all available WAF enum mappings

`GET /shield/waf/enums`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/shield/waf/enums`
- Auth: none declared

## Response `200`

OK

- GetWafEnumsResponse
  - `data` WafMappedEnumList[], nullable
    - `enumName` string, nullable
    - `enumValues` WafMappedEnum[], nullable
      - `optionalInput` boolean, nullable
      - `isPremium` boolean
      - `name` string, nullable
      - `value` integer
      - `supportedValues` WafSupportedValues
        - `values` string[], nullable
        - `editable` boolean
      - `recommendedOperator` WafRecommendedOperator
        - `operator` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 14 | 15 | 17 | 18: 0 = BEGINSWITH 1 = ENDSWITH 2 = CONTAINS 3 = CONTAINSWORD 4 = STRMATCH 5 = EQ 6 = GE 7 = GT 8 = LE 9 = LT 12 = WITHIN 13 = IPMATCH 14 = RX 15 = STREQ 17 = DETECTSQLI 18 = DETECTXSS
        - `values` string[], nullable
      - `valueConstraint` WafValueConstraint
        - `kind` 'Text' | 'Number' | 'Regex' | 'IPMatch'
        - `pattern` string, nullable
        - `maxLength` integer
        - `chainedMaxLength` integer
        - `example` string, nullable
        - `message` string, nullable

## Other responses

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

## Changes

- **2026-11-12** `6a424e866a61`: 9 info
  - added the optional property `data/items/enumValues/items/recommendedOperator` to the response with the `200` status (media type: text/plain)
  - added the optional property `data/items/enumValues/items/recommendedOperator` to the response with the `200` status (media type: application/json)
  - added the optional property `data/items/enumValues/items/recommendedOperator` to the response with the `200` status (media type: text/json)
  - added the optional property `data/items/enumValues/items/supportedValues` to the response with the `200` status (media type: text/plain)
  - …5 more
- **2026-04-18** `18994bc5533c`: 3 info
  - api operation id `Get WAF Enum Mappings` was added
  - api tag `WAF` added
  - api tag `Waf` removed

[Operation history](https://skmtc.dev/bunny/apis/bunny-shield-api/changes/shield/waf/enums/get.md)

---

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