Docs

API reference · WAF

Save a hostname's own WAF settings against the revision read

PUT/v1/orgs/{org}/zones/{zone}/hostnames/{hostname}/waf
Permission
waf.settings.manage
Request body
at most 1,048,576 bytes
Audit log
waf.settings.update
Operation
waf.hostnames.replace

Parameters

NameInTypeRequiredNotes
orgpathstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
zonepathstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
hostnamepathstringyesfor example "hostname_01h455vb4pex5vsknk084sn02q"
Idempotency-KeyheaderstringnoOne key per intended mutation. A retry with the key replays the recorded response instead of executing again; the key with another request answers 422 idempotency_key_reused. For example "01h455vb4pex5vsknk084sn02q"
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"

Request body

FieldTypeRequiredNotes
revisionstring or nullyes
vpatchModestring or nullyes
exceptionsarray of objectyes0 to 100 items
exceptions[].idstringnofor example "wafx_01h455vb4pex5vsknk084sn02q"
exceptions[].namestringyes1 to 100 characters
exceptions[].conditionstringyes
exceptions[].languageVersion1yes
exceptions[].rulesarray of integeryes1 to 32 items

Response 200

FieldTypeRequiredNotes
zoneIdstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
hostnameIdstringyesfor example "hostname_01h455vb4pex5vsknk084sn02q"
revisionstring or nullyes
vpatchModestring or nullyes
exceptionsarray of objectyes
exceptions[].idstringyesfor example "wafx_01h455vb4pex5vsknk084sn02q"
exceptions[].namestringyes
exceptions[].conditionstringyes
exceptions[].languageVersionintegeryesmore than 0
exceptions[].rulesarray of integeryes
updatedAtstring (date-time) or nullyes