Skip to content

Commit 50e6f61

Browse files
publish jdcloud-sdk-python 1.6.131
1 parent 7c1302f commit 50e6f61

25 files changed

Lines changed: 485 additions & 21 deletions

jdcloud_sdk/services/ipanti/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# 更新历史 #
2-
API版本:1.10.0
2+
API版本:1.11.0
33

44
| 发布时间 | 版本号 | 更新 | 说明 |
55
| ---------- | ------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
6+
| 2022-01-14 | 1.11.0 | 接口新增与更新 | 1. 新增接口根据计费资源ID查询实例ID<br>2. 新增接口查询状态码报表<br>3. 报表统计类接口支持按照高防IP级别统计<br>4. 转发规则支持配置多个高防IP, IP黑洞时自动切换<br>5. 网站规则支持同时绑定国密,非国密多张证书(需工单申请支持国密)|
67
| 2021-03-12 | 1.10.0 | 接口新增 | 1. 新增防护调度规则相关接口<br>2. 新增接口 describeOriginWhiteIpList 查询高防回源 IP 白名单|
78
| 2021-01-29 | 1.9.0 | 接口新增与更新 | 1. 新增接口 describeDDoSIpAttackLogs 查询IP级别的攻击记录<br>2. 新增接口查询新建与并发连接数统计报表, 业务流量报表<br>3. 新增实例全局访问控制配置, 包括全局的IP黑白名单和geo拦截配置接口<br>4. 新增错误码返回自定义页面相关配置接口<br>5. 网站规则回源 IP 支持设置托管区公网 IP(使用 describeCcsIpList 查询可知)|
89
| 2020-11-19 | 1.8.0 | 接口新增与更新 | 1. 新增JS指纹相关接口<br>2. 新增网站类规则的自定义 CC 防护规则总开关接口<br>3. 新增批量创建网站规则接口<br>4. 新增批量创建非网站规则接口|

jdcloud_sdk/services/ipanti/apis/DescribeAttackStatisticsRequest.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
class DescribeAttackStatisticsRequest(JDCloudRequest):
2323
"""
2424
查询攻击次数及流量峰值
25+
参数 serviceIp 优先级大于 instanceId.
26+
- 指定 serviceIp 参数时, 忽略 instanceId 参数, 统计 ip 相关攻击
27+
- 未指定 serviceIp 时, 统计 instanceId 指定实例相关攻击
28+
- serviceIp 和 instanceId 均未指定时, 统计用户所有攻击记录
29+
CC攻击为实例级别, 查询类型 type 为 cc 时, 参数 serviceIp 无效
30+
2531
"""
2632

2733
def __init__(self, parameters, header=None, version="v1"):
@@ -43,6 +49,7 @@ def __init__(self, regionId, startTime, type):
4349
self.startTime = startTime
4450
self.endTime = None
4551
self.instanceId = None
52+
self.serviceIp = None
4653
self.type = type
4754

4855
def setEndTime(self, endTime):
@@ -57,3 +64,9 @@ def setInstanceId(self, instanceId):
5764
"""
5865
self.instanceId = instanceId
5966

67+
def setServiceIp(self, serviceIp):
68+
"""
69+
:param serviceIp: (Optional) 高防IP列表. <br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-pro/api/describeServiceIpList'>describeServiceIpList</a> 接口查询实例的高防 IP
70+
"""
71+
self.serviceIp = serviceIp
72+

jdcloud_sdk/services/ipanti/apis/DescribeAttackTypeCountRequest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
class DescribeAttackTypeCountRequest(JDCloudRequest):
2323
"""
2424
查询各类型攻击次数
25+
参数 serviceIp 优先级大于 instanceId.
26+
- 指定 serviceIp 参数时, 忽略 instanceId 参数, 统计 ip 相关攻击
27+
- 未指定 serviceIp 时, 统计 instanceId 指定实例相关攻击
28+
- serviceIp 和 instanceId 均未指定时, 统计用户所有攻击记录
29+
2530
"""
2631

2732
def __init__(self, parameters, header=None, version="v1"):
@@ -42,6 +47,7 @@ def __init__(self, regionId, startTime, ):
4247
self.startTime = startTime
4348
self.endTime = None
4449
self.instanceId = None
50+
self.serviceIp = None
4551

4652
def setEndTime(self, endTime):
4753
"""
@@ -55,3 +61,9 @@ def setInstanceId(self, instanceId):
5561
"""
5662
self.instanceId = instanceId
5763

64+
def setServiceIp(self, serviceIp):
65+
"""
66+
:param serviceIp: (Optional) 高防IP列表. <br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-pro/api/describeServiceIpList'>describeServiceIpList</a> 接口查询实例的高防 IP
67+
"""
68+
self.serviceIp = serviceIp
69+

jdcloud_sdk/services/ipanti/apis/DescribeBusinessGraphRequest.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121

2222
class DescribeBusinessGraphRequest(JDCloudRequest):
2323
"""
24-
业务流量报表
24+
业务流量报表
25+
参数 serviceIp 优先级大于 instanceId.
26+
- 指定 serviceIp 参数时, 忽略 instanceId 参数, 查询 ip 相关报表
27+
- 未指定 serviceIp 时, 查询 instanceId 指定实例相关报表
28+
- serviceIp 和 instanceId 均未指定时, 查询用户所有实例报表
29+
2530
"""
2631

2732
def __init__(self, parameters, header=None, version="v1"):
@@ -42,6 +47,7 @@ def __init__(self, regionId, startTime, ):
4247
self.startTime = startTime
4348
self.endTime = None
4449
self.instanceId = None
50+
self.serviceIp = None
4551

4652
def setEndTime(self, endTime):
4753
"""
@@ -55,3 +61,9 @@ def setInstanceId(self, instanceId):
5561
"""
5662
self.instanceId = instanceId
5763

64+
def setServiceIp(self, serviceIp):
65+
"""
66+
:param serviceIp: (Optional) 高防IP列表. <br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-pro/api/describeServiceIpList'>describeServiceIpList</a> 接口查询实例的高防 IP
67+
"""
68+
self.serviceIp = serviceIp
69+

jdcloud_sdk/services/ipanti/apis/DescribeConnStatGraphRequest.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121

2222
class DescribeConnStatGraphRequest(JDCloudRequest):
2323
"""
24-
新建与并发连接数统计报表
24+
新建与并发连接数统计报表
25+
参数 serviceIp 优先级大于 instanceId.
26+
- 指定 serviceIp 参数时, 忽略 instanceId 参数, 查询 ip 相关报表
27+
- 未指定 serviceIp 时, 查询 instanceId 指定实例相关报表
28+
- serviceIp 和 instanceId 均未指定时, 查询用户所有实例报表
29+
2530
"""
2631

2732
def __init__(self, parameters, header=None, version="v1"):
@@ -42,6 +47,7 @@ def __init__(self, regionId, startTime, ):
4247
self.startTime = startTime
4348
self.endTime = None
4449
self.instanceId = None
50+
self.serviceIp = None
4551

4652
def setEndTime(self, endTime):
4753
"""
@@ -55,3 +61,9 @@ def setInstanceId(self, instanceId):
5561
"""
5662
self.instanceId = instanceId
5763

64+
def setServiceIp(self, serviceIp):
65+
"""
66+
:param serviceIp: (Optional) 高防IP列表. <br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-pro/api/describeServiceIpList'>describeServiceIpList</a> 接口查询实例的高防 IP
67+
"""
68+
self.serviceIp = serviceIp
69+

jdcloud_sdk/services/ipanti/apis/DescribeDDoSGraphRequest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
class DescribeDDoSGraphRequest(JDCloudRequest):
2323
"""
2424
DDos 防护流量报表
25+
参数 serviceIp 优先级大于 instanceId.
26+
- 指定 serviceIp 参数时, 忽略 instanceId 参数, 查询 ip 相关报表
27+
- 未指定 serviceIp 时, 查询 instanceId 指定实例相关报表
28+
- serviceIp 和 instanceId 均未指定时, 查询用户所有实例报表
29+
2530
"""
2631

2732
def __init__(self, parameters, header=None, version="v1"):
@@ -42,6 +47,7 @@ def __init__(self, regionId, startTime, ):
4247
self.startTime = startTime
4348
self.endTime = None
4449
self.instanceId = None
50+
self.serviceIp = None
4551

4652
def setEndTime(self, endTime):
4753
"""
@@ -55,3 +61,9 @@ def setInstanceId(self, instanceId):
5561
"""
5662
self.instanceId = instanceId
5763

64+
def setServiceIp(self, serviceIp):
65+
"""
66+
:param serviceIp: (Optional) 高防IP列表. <br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-pro/api/describeServiceIpList'>describeServiceIpList</a> 接口查询实例的高防 IP
67+
"""
68+
self.serviceIp = serviceIp
69+

jdcloud_sdk/services/ipanti/apis/DescribeDDoSIpAttackLogsRequest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
class DescribeDDoSIpAttackLogsRequest(JDCloudRequest):
2323
"""
2424
查询高防IP的 DDoS 攻击日志, 仅BGP实例返回的是IP级别的攻击记录, 非BGP实例返回的仍是实例级别的攻击记录(serviceIp 字段为空)
25+
参数 serviceIp 优先级大于 instanceId.
26+
- 指定 serviceIp 参数时, 忽略 instanceId 参数, 查询 ip 相关攻击记录.
27+
- 未指定 serviceIp 时, 查询 instanceId 指定实例相关攻击记录.
28+
- serviceIp 和 instanceId 均未指定时, 查询用户所有攻击记录
29+
2530
"""
2631

2732
def __init__(self, parameters, header=None, version="v1"):
@@ -44,6 +49,7 @@ def __init__(self, regionId, startTime, ):
4449
self.startTime = startTime
4550
self.endTime = None
4651
self.instanceId = None
52+
self.serviceIp = None
4753

4854
def setPageNumber(self, pageNumber):
4955
"""
@@ -69,3 +75,9 @@ def setInstanceId(self, instanceId):
6975
"""
7076
self.instanceId = instanceId
7177

78+
def setServiceIp(self, serviceIp):
79+
"""
80+
:param serviceIp: (Optional) 高防IP列表. <br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-pro/api/describeServiceIpList'>describeServiceIpList</a> 接口查询实例的高防 IP
81+
"""
82+
self.serviceIp = serviceIp
83+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeInstanceIdByResourceIdRequest(JDCloudRequest):
23+
"""
24+
根据高防计费资源ID查询对应的实例Id, 调用 <a href='http://docs.jdcloud.com/anti-ddos-pro/api/createInstance'>createInstance</a> 接口成功后,跟据message字段返回的计费资源Id查询对应的高防实例ID, 需要高防实例实际创建成功以后才可查询得到
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeInstanceIdByResourceIdRequest, self).__init__(
29+
'/regions/{regionId}/describeInstanceIdByResourceId', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeInstanceIdByResourceIdParameters(object):
34+
35+
def __init__(self, regionId, resourceId):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param resourceId: 高防实例计费资源ID
39+
"""
40+
41+
self.regionId = regionId
42+
self.resourceId = resourceId
43+
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeStatusGraphRequest(JDCloudRequest):
23+
"""
24+
高防返回客户端状态码报表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeStatusGraphRequest, self).__init__(
29+
'/regions/{regionId}/charts:statusGraph', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeStatusGraphParameters(object):
34+
35+
def __init__(self, regionId, startTime, ):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param startTime: 开始时间, 只能查询最近 7 天以内的数据, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ
39+
"""
40+
41+
self.regionId = regionId
42+
self.startTime = startTime
43+
self.endTime = None
44+
self.instanceId = None
45+
self.subDomain = None
46+
47+
def setEndTime(self, endTime):
48+
"""
49+
:param endTime: (Optional) 查询的结束时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ
50+
"""
51+
self.endTime = endTime
52+
53+
def setInstanceId(self, instanceId):
54+
"""
55+
:param instanceId: (Optional) 高防实例 Id 列表
56+
"""
57+
self.instanceId = instanceId
58+
59+
def setSubDomain(self, subDomain):
60+
"""
61+
:param subDomain: (Optional) 规则域名列表
62+
"""
63+
self.subDomain = subDomain
64+

jdcloud_sdk/services/ipanti/client/IpantiClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
2626
if config is None:
2727
config = Config('ipanti.jdcloud-api.com')
2828

29-
super(IpantiClient, self).__init__(credential, config, 'ipanti', '1.10.0', logger)
29+
super(IpantiClient, self).__init__(credential, config, 'ipanti', '1.11.0', logger)

0 commit comments

Comments
 (0)