v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Reporting

[Deprecated]: List WAF Events

Use /reporting/sites/{id}/waf/eventlist instead

get/v1/reporting/sites/{id}/waf/events

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Query parameters

duration'30m' | '1h' | '6h' | '12h' | '24h' | '72h' | '7d' | '30d' required

Duration that the listed data is for (m = minutes, h = hours, d = days)

Example:7d
limitinteger

Number of events to provide back

searchstring

Search for an event by action, client_ip, country, request_path, user_agent, or query_string

Example:/admin-ajax.php
actionstring[]

Filter events matching a specific action taken by the WAF

[
  "allow"
]
client_ipstring
Example:1.2.3.4

Filter events matching a specific IP address

request_pathstring
Example:/wp-login.php

Filter events matching a specific request path or partial path

countrystring[]

Filter events matching a specific country

[
  "US"
]
asnstring
Example:14618

Filter events matching a specific ASN

asn_descriptionstring
Example:AMAZON-AES

Filter events matching a specific or partial ASN description

http_methodstring[]

Filter events matching a specific HTTP method

[
  "POST"
]
http_protocolstring
Example:HTTP/1.1

Filter events matching a specific or partial HTTP Protocol

query_stringstring
Example:&bad=request

Filter events matching a specific or partial Query String

user_agentstring
Example:Mozilla/5.0

Filter events matching a specific or partial HTTP User Agent

Response

OK

errorsstring[]

Example response

{
  "errors": [
    "bf095f43-72a7-45cc-b4c3-cfbace9695cb"
  ],
  "data": {
    "viewer": {
      "__typename": "viewer",
      "zones": [
        {
          "__typename": "zone",
          "activity": [
            {
              "__typename": "ZoneFirewallEventsAdaptive",
              "action": "block",
              "clientASNDescription": "UUNET",
              "clientAsn": "701",
              "clientCountryName": "US",
              "clientIP": "1.2.3.4",
              "clientRequestHTTPHost": "rocket.net",
              "clientRequestHTTPMethodName": "GET",
              "clientRequestHTTPProtocol": "HTTP/2",
              "clientRequestPath": "/blog/the-rocket-difference-how-we-created-the-fastest-wordpress-hosting-in-the-world/",
              "clientRequestQuery": "?rocket=fast",
              "datetime": "2024-08-19T20:05:00Z",
              "metadata": [
                {
                  "__typename": "ZoneFirewallEventsAdaptiveMetadataElem",
                  "key": "ruleset_version",
                  "value": "10"
                }
              ],
              "rayName": "8b5cc1855d86842a",
              "ruleId": "bfd30cf7be1e4f0b871c7d10dda5fc66",
              "sampleInterval": 3.8457300275482096,
              "source": "firewallCustom",
              "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 [FBAN/FBIOS;FBAV/471.0.0.27.107;FBBV/632147304;FBDV/iPhone15,3;FBMD/iPhone;FBSN/iOS;FBSV/17.6.1;FBSS/3;FBCR/;FBID/phone;FBLC/en_US;FBOP/80]"
            }
          ],
          "total": [
            {
              "__typeName": "ZoneFirewallEventsAdaptiveByTimeGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveByTimeGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 456888
            }
          ]
        }
      ]
    }
  }
}