Skip to main content
GET
/
shield
/
metrics
/
shield-zone
/
{shieldZoneId}
/
waf-rule
/
{ruleId}
Get metrics for a specific WAF Rule within the specified Shield Zone
curl --request GET \
  --url https://api.bunny.net/shield/metrics/shield-zone/{shieldZoneId}/waf-rule/{ruleId}
{
  "data": {
    "totalTriggers": 123,
    "blockedRequests": 123,
    "loggedRequests": 123,
    "challengedRequests": 123,
    "overviewPastTwentyEightDays": {}
  },
  "error": {
    "success": true,
    "message": "<string>",
    "errorKey": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.bunny.net/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

shieldZoneId
integer<int32>
required

The ID of the Shield Zone.

ruleId
string
required

The ID of the WAF Rule.

Pattern: ^[A-Za-z0-9_-]{1,64}$

Response

OK

data
object
error
object

Generic response object containing status information for API operations.