|
1 | | -# describeAttackLogs |
2 | | - |
3 | | - |
4 | | -## 描述 |
5 | | -查询攻击记录 |
6 | | - |
7 | | -## 请求方式 |
8 | | -GET |
9 | | - |
10 | | -## 请求地址 |
11 | | -https://baseanti.jdcloud-api.com/v1/attacklog |
12 | | - |
13 | | - |
14 | | -## 请求参数 |
15 | | -|名称|类型|是否必需|默认值|描述| |
16 | | -|---|---|---|---|---| |
17 | | -|**pageNumber**|Integer|False|1|页码| |
18 | | -|**pageSize**|Integer|False|10|分页大小| |
19 | | -|**startTime**|String|True| |开始时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ| |
20 | | -|**endTime**|String|True| |结束时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ| |
21 | | -|**ip**|String[]|False| |基础防护已防护的公网 IP, ip 不为空时, 查询 ip 对应的攻击记录, ip 为空时, 查询用户所有攻击记录<br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-basic/api/describeelasticipresources'>describeElasticIpResources</a> 接口查询基础防护已防护的私有网络弹性公网 IP<br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-basic/api/describecpsipresources'>describeCpsIpResources</a> 接口查询基础防护已防护的云物理服务器公网IP 和 弹性公网 IP<br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-basic/api/describeccsipresources'>describeCcsIpResources</a> 接口查询基础防护已防护的托管区公网 IP| |
22 | | - |
23 | | - |
24 | | -## 返回参数 |
25 | | -|名称|类型|描述| |
26 | | -|---|---|---| |
27 | | -|**result**|Result| | |
28 | | -|**requestId**|String| | |
29 | | -|**error**|Error| | |
30 | | - |
31 | | -### Error |
32 | | -|名称|类型|描述| |
33 | | -|---|---|---| |
34 | | -|**err**|Err| | |
35 | | -### Err |
36 | | -|名称|类型|描述| |
37 | | -|---|---|---| |
38 | | -|**code**|Long|同http code| |
39 | | -|**details**|Object| | |
40 | | -|**message**|String| | |
41 | | -|**status**|String|具体错误| |
42 | | -### Result |
43 | | -|名称|类型|描述| |
44 | | -|---|---|---| |
45 | | -|**dataList**|AttackLog[]| | |
46 | | -|**currentCount**|Integer|当前页数量| |
47 | | -|**totalCount**|Integer|实例总数| |
48 | | -|**totalPage**|Integer|总页数| |
49 | | -### AttackLog |
50 | | -|名称|类型|描述| |
51 | | -|---|---|---| |
52 | | -|**ip**|String|公网 IP 地址| |
53 | | -|**resourceType**|Integer|公网 IP 类型或绑定资源类型.<br>- 0: 未知类型,<br>- 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知),<br>- 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源),<br>- 11: 云主机,<br>- 12: 负载均衡,<br>- 13: 原生容器实例,<br>- 14: 原生容器 Pod,<br>- 2: 云物理服务器,<br>- 4: 托管区公网 IP| |
54 | | -|**attackLogId**|String|攻击记录 ID| |
55 | | -|**startTime**|String|攻击开始时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ| |
56 | | -|**endTime**|String|攻击结束时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ| |
57 | | -|**cause**|Integer|触发原因.<br>- 0: 未知,<br>- 1: 四层,<br>- 2: 七层,<br>- 3: 四层和七层| |
58 | | -|**status**|Integer|状态. <br>- 0: 清洗完成<br>- 1: 清洗中<br>- 2: 黑洞中| |
59 | | -|**blackHole**|Boolean|是否黑洞| |
60 | | -|**peak**|Number|攻击流量峰值| |
61 | | -|**unit**|String|攻击流量峰值单位| |
62 | | -|**attackType**|String[]|攻击类型| |
63 | | - |
64 | | -## 返回码 |
65 | | -|返回码|描述| |
66 | | -|---|---| |
67 | | -|**200**|OK| |
| 1 | +# describeAttackLogs |
| 2 | + |
| 3 | + |
| 4 | +## 描述 |
| 5 | +查询攻击记录 |
| 6 | + |
| 7 | +## 请求方式 |
| 8 | +GET |
| 9 | + |
| 10 | +## 请求地址 |
| 11 | +https://baseanti.jdcloud-api.com/v1/attacklog |
| 12 | + |
| 13 | + |
| 14 | +## 请求参数 |
| 15 | +|名称|类型|是否必需|默认值|描述| |
| 16 | +|---|---|---|---|---| |
| 17 | +|**pageNumber**|Integer|False|1|页码| |
| 18 | +|**pageSize**|Integer|False|10|分页大小| |
| 19 | +|**startTime**|String|True| |开始时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ| |
| 20 | +|**endTime**|String|True| |结束时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ| |
| 21 | +|**ip**|String[]|False| |基础防护已防护的公网 IP, ip 不为空时, 查询 ip 对应的攻击记录, ip 为空时, 查询用户所有攻击记录<br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-basic/api/describeelasticipresources'>describeElasticIpResources</a> 接口查询基础防护已防护的私有网络弹性公网 IP<br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-basic/api/describecpsipresources'>describeCpsIpResources</a> 接口查询基础防护已防护的云物理服务器公网IP 和 弹性公网 IP<br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-basic/api/describeccsipresources'>describeCcsIpResources</a> 接口查询基础防护已防护的托管区公网 IP| |
| 22 | + |
| 23 | + |
| 24 | +## 返回参数 |
| 25 | +|名称|类型|描述| |
| 26 | +|---|---|---| |
| 27 | +|**result**|[Result](describeattacklogs#result)| | |
| 28 | +|**requestId**|String| | |
| 29 | +|**error**|[Error](describeattacklogs#error)| | |
| 30 | + |
| 31 | +### <div id="error">Error</div> |
| 32 | +|名称|类型|描述| |
| 33 | +|---|---|---| |
| 34 | +|**err**|[Err](describeattacklogs#err)| | |
| 35 | +### <div id="err">Err</div> |
| 36 | +|名称|类型|描述| |
| 37 | +|---|---|---| |
| 38 | +|**code**|Long|同http code| |
| 39 | +|**details**|Object| | |
| 40 | +|**message**|String| | |
| 41 | +|**status**|String|具体错误| |
| 42 | +### <div id="result">Result</div> |
| 43 | +|名称|类型|描述| |
| 44 | +|---|---|---| |
| 45 | +|**dataList**|[AttackLog[]](describeattacklogs#attacklog)| | |
| 46 | +|**currentCount**|Integer|当前页数量| |
| 47 | +|**totalCount**|Integer|实例总数| |
| 48 | +|**totalPage**|Integer|总页数| |
| 49 | +### <div id="attacklog">AttackLog</div> |
| 50 | +|名称|类型|描述| |
| 51 | +|---|---|---| |
| 52 | +|**ip**|String|公网 IP 地址| |
| 53 | +|**resourceType**|Integer|公网 IP 类型或绑定资源类型.<br>- 0: 未知类型,<br>- 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知),<br>- 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源),<br>- 11: 云主机,<br>- 12: 负载均衡,<br>- 13: 原生容器实例,<br>- 14: 原生容器 Pod,<br>- 2: 云物理服务器,<br>- 4: 托管区公网 IP| |
| 54 | +|**attackLogId**|String|攻击记录 ID| |
| 55 | +|**startTime**|String|攻击开始时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ| |
| 56 | +|**endTime**|String|攻击结束时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ| |
| 57 | +|**cause**|Integer|触发原因.<br>- 0: 未知,<br>- 1: 四层,<br>- 2: 七层,<br>- 3: 四层和七层| |
| 58 | +|**status**|Integer|状态. <br>- 0: 清洗完成<br>- 1: 清洗中<br>- 2: 黑洞中| |
| 59 | +|**blackHole**|Boolean|是否黑洞| |
| 60 | +|**peak**|Double|攻击流量峰值| |
| 61 | +|**unit**|String|攻击流量峰值单位| |
| 62 | +|**attackType**|String[]|攻击类型| |
| 63 | + |
| 64 | +## 返回码 |
| 65 | +|返回码|描述| |
| 66 | +|---|---| |
| 67 | +|**200**|OK| |
0 commit comments