该接口用于获取站点WAF配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SiteId |
integer |
否 |
站点 ID,可通过调用 ListSites 接口获取 |
1 |
| SiteVersion |
integer |
否 |
站点版本。 |
0 |
| Path |
string |
否 |
指定配置路径,不填则代表全部获取。 枚举值:
|
bot_management |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
响应结果。 |
||
| RequestId |
string |
请求 ID。 |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| Settings | WafSiteSettings |
站点 WAF 配置详情。 |
示例
正常返回示例
JSON格式
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"Settings": {
"ClientIpIdentifier": {
"Headers": [
"X-Forwarded-For"
],
"Mode": "headers"
},
"AddBotProtectionHeaders": {
"Enable": true
},
"AddSecurityHeaders": {
"Enable": true
},
"SecurityLevel": {
"Value": "low"
},
"BotManagement": {
"DefiniteBots": {
"Action": "captcha",
"Id": 20000001
},
"LikelyBots": {
"Action": "deny",
"Id": 20000002
},
"JSDetection": {
"Enable": true
},
"VerifiedBots": {
"Action": "bypass",
"Id": 20000003
},
"EffectOnStatic": {
"Enable": true
}
},
"BandwidthAbuseProtection": {
"Status": "on",
"Action": "deny",
"Id": 10000001
},
"DisableSecurityModule": {
"Status": "on"
}
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | 输入参数规范校验失败。 |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。