This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.
Get WAF Configuration for a Site
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| SiteId | long | No | Site ID, which can be obtained by calling the ListSites API. | 1 |
| SiteVersion | integer | No | Site version. | 0 |
| Path | string | No | Specifies the configuration path. If not provided, all configurations will be retrieved. Enumeration Value:
| bot_management |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"Settings": {
"ClientIpIdentifier": {
"Mode": "headers",
"Headers": [
"X-Forwarded-For"
]
},
"AddBotProtectionHeaders": {
"Enable": true
},
"AddSecurityHeaders": {
"Enable": true
},
"SecurityLevel": {
"Value": "low"
},
"BotManagement": {
"DefiniteBots": {
"Id": 20000001,
"Action": "captcha"
},
"LikelyBots": {
"Id": 20000002,
"Action": "deny"
},
"VerifiedBots": {
"Id": 20000003,
"Action": "bypass"
},
"JSDetection": {
"Enable": true
},
"EffectOnStatic": {
"Enable": true
}
}
}
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-12-12 | The Error code has changed. The request parameters of the API has changed | View Change Details |
| 2024-09-25 | The Error code has changed | View Change Details |
| 2024-09-18 | The Error code has changed | View Change Details |
