You need to enable JavaScript to run this app.
文档中心
DDoS防护

DDoS防护

复制全文
下载 pdf
日志管理
GetWebDefAttackLog-查询 Web 攻击防护日志
复制全文
下载 pdf
GetWebDefAttackLog-查询 Web 攻击防护日志
根据防护域名,攻击源 IP、攻击类型或攻击路径等信息,查询 Web 攻击防护日志,包括请求方法,请求协议等信息。​
请求说明​
  • 请求方式:POST​
  • 请求地址:https://advdefence.volcengineapi.com/?Action=GetWebDefAttackLog&Version=2021-06-15​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
Query​
Action String 必选 示例值:GetWebDefAttackLog​
接口名称。当前 API 的名称为 GetWebDefAttackLog。​
​
Version String 必选 示例值:2021-06-15​
接口版本。当前 API 的版本为 2021-06-15。​
​
​
Body​
ActionType Integer 可选 示例值:1​
处理动作。默认为 0(告警)。​
  • 0:告警​
  • 1:拦截​
  • -1:全部处理动作​
​
AttackIP String 可选 示例值:1.1.1.1​
攻击源 IP。​
​
AttackTypeList String[] 可选 示例值:black​
攻击类型。​
  • black:黑名单​
  • geo_black:区域封禁(地理位置封禁)​
  • httpflood:CC 攻击​
​
CurrPage Integer 必选 示例值:1​
当前页码。​
​
EndTime Integer 可选 示例值:1718876580​
  • 攻击结束时间,秒级时间戳,结束时间应大于起始时间。​
  • 若不填,则默认为当前时刻。​
​
EventLevelList String[] 可选 示例值:中危​
攻击事件等级。​
  • 低危​
  • 中危​
  • 高危​
  • 严重​
​
HostList String[] 必选 示例值:["www.testddos.com"]​
防护域名列表。​
​
PageSize Integer 必选 示例值:10​
每个页面展示的条目数量。​
​
RequestPath String 可选 示例值:/attack​
请求路径。​
​
StartTime Integer 可选 示例值:1716284580​
  • 攻击起始时间,秒级时间戳,结束时间应大于起始时间。​
  • 若不填,则默认为一小时前。​
​
​
返回参数​
PageInfo Object 示例值:--​
页面信息。​
Count Integer​
​
PageSize Integer​
​
TotalCount Integer​
​
CurrentPage Integer​
​
​
Result Object[] 示例值:--​
攻击日志详情。​
Args String 示例值:id=2​
请求的 Query string。​
​
Body String 示例值:--​
请求 Playload。​
​
Host String 示例值:www.testddos.com​
客户端请求头部的 host 字段,表示被访问的域名。包括泛域名和精确域名。​
​
ConfId Integer 示例值:233343​
配置 ID。​
​
Cookie String 示例值:userID=4f3f6b***; expires=Sun, 09 Apr 2023 10:18:14 GMT​
请求客户端的 Cookie 信息。​
​
Plugin String 示例值:cc_policy​
触发的防护功能模块。​
  • cc_policy:CC 防护。​
  • acl:区域封禁/访问黑名单​
​
Region String 示例值:cn-beijing​
高防 IP 所属地域。​
​
Status Integer 示例值:403​
响应客户端的 HTTP 状态码。​
​
Headers String 示例值:{"Accept-Encoding":"gzip, deflate","Cc-Test":"2.2.2.2"}​
请求 Header 信息。​
​
HitInfo String 示例值:-​
命中信息。​
​
Referer String 示例值:www.testddos.com​
请求的来源 URL 信息。​
​
RuleTag String 示例值:C000003243322​
攻击事件触发的防护策略对应 ID。​
​
ClientIp String 示例值:2.2.2.2​
攻击源 IP。​
​
Geography String 示例值:中国-北京​
攻击源 IP 所在地理位置。​
​
TimeStamp Integer 示例值:1718112533​
攻击事件发生的时间,秒级时间戳。​
​
UserAgent String 示例值:Mozilla/5.0 (Windows NT 10.0; Win64; x64)​
客户端请求头部的 User-Agent。​
​
ActionType Integer 示例值:0​
处置动作。​
  • 0:仅上报​
  • 1:已拦截​
​
AttackType String 示例值:httpflood​
攻击事件类型。​
​
DropCounts Integer 示例值:2​
规则命中次数。​
​
EventLevel String 示例值:中危​
事件等级。​
  • 低危​
  • 中危​
  • 高危​
  • 严重​
​
InstanceIp String 示例值:3.3.3.3​
高防实例 IP。​
​
RuleDetail Object 示例值:--​
规则详情。​
RuleName String 示例值:testRule​
规则名称。​
​
RuleDescription String 示例值:for cc attack​
规则描述。​
​
​
ContentType String 示例值:application/x-www-form-urlencoded​
被请求的内容类型。​
​
MatchedInfo String 示例值:[{"Key":"","Val":"2.2.2.2","VarName":"ClientIP"}]​
规则匹配命中的字段。​
​
RequestPath String 示例值:/cctest​
请求路径。​
​
HostOriginal String 示例值:www.test.com​
防护域名对应的精确域名。​
​
RequestMethod String 示例值:GET​
请求方法。​
​
XForwardedFor String 示例值:2.2.2.2 3.3.3.3​
客户端请求头部的 X-Forwarded-For(XFF)字段。​
​
RequestTraceId String 示例值:20240611xxxxxxxxxxxxxxxxxxxxxxxx​
客户端请求的唯一标识。​
​
XForwardedProto String 示例值:HTTP​
客户端请求协议。​
​
​
​
请求示例​
​
​
POST https://advdefence.volcengineapi.com/?Action=GetWebDefAttackLog&Version=2021-06-15​
{​
"CurrPage": 1,​
"PageSize": 10,​
"HostList": [​
"www.testddos.com"​
],​
"ActionType": -1,​
"StartTime": 1720404480,​
"EndTime": 1721009280,​
"AttackIP": "",​
"RequestPath": ""​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20240715100918***111269009E3926A7",​
"Action": "GetWebDefAttackLog",​
"Version": "2021-06-15",​
"Service": "AdvDefence",​
"Region": "cn-beijing"​
},​
"Result": [​
{​
"RuleDetail": {​
"RuleName": "",​
"RuleDescription": "",​
"ExtraInfo": null​
},​
"ActionType": 1,​
"Args": "",​
"AttackType": "httpflood",​
"Body": "",​
"ClientIp": "120.76.**.**",​
"InstanceIp": "",​
"ConfId": 22371,​
"ContentType": "",​
"Cookie": "null",​
"DropCounts": 13,​
"EventLevel": "严重",​
"Headers": "null",​
"HitInfo": "-",​
"Host": "www.testddos.com",​
"HostOriginal": "www.testddos.com",​
"MatchedInfo": "[{\"Key\":\"\",\"Val\":\"120.76.**.**\",\"VarName\":\"ClientIP\"}]",​
"Plugin": "cc_policy",​
"Referer": "",​
"Region": "cn-beijing",​
"RequestMethod": "GET",​
"RequestPath": "/",​
"RequestTraceId": "20240712174838****C9D25E8143207568",​
"Status": 403,​
"TimeStamp": 1720777693,​
"UserAgent": "curl/7.61.1",​
"UserId": "2100190377",​
"XForwardedFor": "120.76.**.**",​
"XForwardedProto": "",​
"Geography": "中国-广东",​
"RuleTag": "E000000009995"​
},​
{​
"RuleDetail": {​
"RuleName": "",​
"RuleDescription": "",​
"ExtraInfo": null​
},​
"ActionType": 1,​
"Args": "",​
"AttackType": "httpflood",​
"Body": "",​
"ClientIp": "120.76.**.**",​
"InstanceIp": "",​
"ConfId": 22371,​
"ContentType": "",​
"Cookie": "null",​
"DropCounts": 17,​
"EventLevel": "严重",​
"Headers": "null",​
"HitInfo": "-",​
"Host": "www.testddos.com",​
"HostOriginal": "www.testddos.com",​
"MatchedInfo": "[{\"Key\":\"\",\"Val\":\"120.76.**.**\",\"VarName\":\"ClientIP\"}]",​
"Plugin": "cc_policy",​
"Referer": "",​
"Region": "cn-beijing",​
"RequestMethod": "GET",​
"RequestPath": "/",​
"RequestTraceId": "20240712174837****006421CFE520D598",​
"Status": 403,​
"TimeStamp": 1720777689,​
"UserAgent": "curl/7.61.1",​
"UserId": "2100190377",​
"XForwardedFor": "120.76.**.**",​
"XForwardedProto": "",​
"Geography": "中国-广东",​
"RuleTag": "E000000009995"​
}​
],​
"PageInfo": {​
"TotalCount": 2,​
"PageSize": 10,​
"CurrentPage": 1,​
"Count": 2​
}​
}​
​
最近更新时间:2026.02.09 21:44:43
这个页面对您有帮助吗?
有用
有用
无用
无用