Web Application Firewall (WAF)

Manage WAF resources, modes, and custom rules through the Security API.

Create WAF Resource

post

Creates a new WAF-enabled CDN Resource for the specified organization.

Path parameters
organization_uuidstringRequired

UUID of the organization.

Body
resource_typestringRequiredExample: dynamic
data_sourcestringRequiredExample: origin
protocolstringRequiredExample: https
origin_urlstringRequiredExample: test.com
server_namestringRequiredExample: domain.test.com
resource_namestringRequiredExample: waf-213105900
extensionsstringRequiredExample: waf
Responses
200

WAF resource created successfully.

application/json
post
/api/v1/cdn/{organization_uuid}/resource
200

WAF resource created successfully.

Change WAF Resource Mode

put

Switch between detection, active, or disabled modes for the WAF.

Path parameters
organization_uuidstringRequired

UUID of the organization.

resource_uuidstringRequired

UUID of the WAF resource.

Body
resource_uuidstringRequired
waf_statusstring · enumRequired

WAF operating mode.

Possible values:
typestringRequiredExample: waf
Responses
200

WAF resource mode changed successfully.

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

WAF resource mode changed successfully.

Create or Update Custom WAF Rules

put

Define or modify custom WAF rules, including conditions and actions.

Path parameters
organization_uuidstringRequired

UUID of the organization.

resource_uuidstringRequired

UUID of the WAF resource.

Body
resource_uuidstringRequired
waf_statusstring · enumRequiredPossible values:
typestringRequiredExample: waf
Responses
200

Custom WAF rule creation successful.

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}/rules
200

Custom WAF rule creation successful.

Delete All Custom WAF Rules

delete

Removes all defined custom rules for the WAF resource.

Path parameters
organization_uuidstringRequired

UUID of the organization.

resource_uuidstringRequired

UUID of the WAF resource.

Body
resource_uuidstringRequired
waf_statusstring · enumRequiredPossible values:
typestringRequiredExample: waf
waf_rulesobject[]Required

Empty array deletes all WAF rules.

Responses
200

WAF rules deleted successfully.

application/json
delete
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}/rules
200

WAF rules deleted successfully.

Last updated

Was this helpful?