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>
12 KiB
12 KiB
Connecting a Domain Name to WAF
Function Description
This API is used to connect a domain name to WAF.
URI
Request
Request parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
access_status |
Yes |
Integer |
Specifies whether a domain name is connected to WAF. 1: The domain name is connected to WAF. |
Response
Response parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
access_status |
Yes |
Integer |
Specifies whether a domain name is connected to WAF.
|
protect_status |
Yes |
Integer |
Specifies the WAF mode of a domain name.
|
Examples
access_status with a value of 1 is used as an example.
- Request example
{ "access_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