Docs

API reference · WAF

List what the WAF did on a hostname, per hour, rule and action

GET/v1/orgs/{org}/zones/{zone}/hostnames/{hostname}/waf/counts
Permission
waf.settings.read
Operation
waf.hostnames.counts

Parameters

NameInTypeRequiredNotes
orgpathstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
zonepathstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
hostnamepathstringyesfor example "hostname_01h455vb4pex5vsknk084sn02q"
hoursqueryintegerno1 to 168; default 24
x-obhut-management-assignmentheaderstringnoSelect one staff assignment. Direct membership remains the default. Bound API tokens use their stored source and ignore this selector. For example "masg_01h455vb4pex5vsknk084sn02q"

Response 200

FieldTypeRequiredNotes
itemsarray of objectyes
items[].hourstring (date-time)yesUTC, ISO 8601.
items[].hostnameIdstring or nullyes
items[].ruleintegeryes0 to ∞
items[].actionstringyesone of "block", "log", "would_block", "excepted", "body_unseen", "body_cut", "arguments_limit", "condition_failed", "overflow"
items[].exceptionIdstring or nullyes
items[].countintegeryes0 to ∞
keyCountintegeryes0 to ∞