forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
11 KiB
11 KiB
Switching the WAF Mode
Function Description
This API is used to switch the WAF mode.
URI
Request
Request parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
protect_status |
Yes |
Integer |
Specifies the WAF mode of a domain name.
|
Response
Response parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
protect_status |
Yes |
Integer |
Specifies the WAF mode of a domain name.
|
Examples
protect_status with a value of 1 is used as an example.
- Request example
{ "protect_status": 1 }
- Response example
{ "protect_status": 1 }
Status Code
Table 4 describes the normal status code returned by the API.
For details about error status codes, see Status Codes.
Parent topic: Protection Status and Domain Setup