Update Virtual Service Waf Config

Update Virtual Service Waf Config

Updates WAF configuration for a Virtual Service.

Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/loadBalancer/virtualServices/{virtualServiceId}/waf
COPY
Path Parameters
string
virtualServiceId
Required

virtualServiceId

string
virtualServiceId
Required

virtualServiceId


Request Body
EdgeVirtualServiceWafConfig of type(s) application/json
Required
{
    "active": false,
    "mode": "string"
}
boolean
active
Optional

Whether the WAF is active or not. Defaults to false. WAF requires Edge Gateway Load Balancer with PREMIUM feature set.

string As ^(?!\s+$).+
mode
Optional

Mode of the WAF. Supported values are:

  • DETECTION - A log entry is created when the request is flagged based on the specified rules.
  • ENFORCEMENT - It will be blocked when the request is flagged based on the specified rules.
Defaults to DETECTION.
Authentication
This operation uses the following authentication methods.
Responses
202

The request have been accepted and the task to monitor the request is in the Location header.

Operation doesn't return any data structure