Skip to content

Commit 0d6accb

Browse files
committed
publish jdcloud-sdk-python 1.6.89
1 parent 13e64b5 commit 0d6accb

106 files changed

Lines changed: 3629 additions & 27 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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.8.0
2+
API版本:1.9.0
33

44
| 发布时间 | 版本号 | 更新 | 说明 |
55
| ---------- | ------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
6+
| 2021-01-29 | 1.9.0 | 接口新增与更新 | 1. 新增接口 describeDDoSIpAttackLogs 查询IP级别的攻击记录<br>2. 新增接口查询新建与并发连接数统计报表, 业务流量报表<br>3. 新增实例全局访问控制配置, 包括全局的IP黑白名单和geo拦截配置接口<br>4. 新增错误码返回自定义页面相关配置接口<br>5. 网站规则回源 IP 支持设置托管区公网 IP(使用 describeCcsIpList 查询可知)|
67
| 2020-11-19 | 1.8.0 | 接口新增与更新 | 1. 新增JS指纹相关接口<br>2. 新增网站类规则的自定义 CC 防护规则总开关接口<br>3. 新增批量创建网站规则接口<br>4. 新增批量创建非网站规则接口|
78
| 2020-06-24 | 1.7.0 | 接口新增与更新 | 1. 新增查询实例高防IP接口<br>2. 创建实例支持BGP线路, 支持购买高防IP数, 端口数, 域名数, 支持同时开通自动续费<br>3. 查询攻击记录黑洞状态更新为未封禁、封禁中、封禁结束<br>4. 告警配置支持HTTP状态码告警 |
89
| 2020-03-05 | 1.6.12 | 接口新增与更新 | 1. 网站规则创建与编辑不再支持上传证书, IP 高防已对接 SSL 数字证书, 新增网站规则绑定证书接口 bindCert <br>2. 网站类规则支持按地域回源, 新增接口查询网站类转发规则按地域回源配置 geoRsRoute 参数可设置的区域 |
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 CreateCustomPageRequest(JDCloudRequest):
23+
"""
24+
添加自定义页面
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateCustomPageRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/customPages', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateCustomPageParameters(object):
34+
35+
def __init__(self, regionId, instanceId, customPageSpec):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param instanceId: 实例 ID
39+
:param customPageSpec: 添加自定义页面请求参数
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.customPageSpec = customPageSpec
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 DeleteCustomPageRequest(JDCloudRequest):
23+
"""
24+
删除自定义页面, 使用中的不允许删除
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DeleteCustomPageRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/customPages/{pageId}', 'DELETE', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeleteCustomPageParameters(object):
34+
35+
def __init__(self, regionId, instanceId, pageId, ):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param instanceId: 实例 ID
39+
:param pageId: 自定义页面Id
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.pageId = pageId
45+
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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 DescribeBusinessGraphRequest(JDCloudRequest):
23+
"""
24+
业务流量报表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeBusinessGraphRequest, self).__init__(
29+
'/regions/{regionId}/charts:businessGraph', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeBusinessGraphParameters(object):
34+
35+
def __init__(self, regionId, startTime, ):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param startTime: 开始时间, 只能查询最近 90 天以内的数据, 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+
46+
def setEndTime(self, endTime):
47+
"""
48+
:param endTime: (Optional) 查询的结束时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ
49+
"""
50+
self.endTime = endTime
51+
52+
def setInstanceId(self, instanceId):
53+
"""
54+
:param instanceId: (Optional) 高防实例 Id 列表
55+
"""
56+
self.instanceId = instanceId
57+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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 DescribeCcsIpListRequest(JDCloudRequest):
23+
"""
24+
查询用户可设置为网站类规则回源 IP 的京东云托管区公网 IP 资源
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeCcsIpListRequest, self).__init__(
29+
'/regions/{regionId}/ccsIpResources', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeCcsIpListParameters(object):
34+
35+
def __init__(self, regionId, ):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
"""
39+
40+
self.regionId = regionId
41+
self.pageNumber = None
42+
self.pageSize = None
43+
44+
def setPageNumber(self, pageNumber):
45+
"""
46+
:param pageNumber: (Optional) 页码, 默认为 1
47+
"""
48+
self.pageNumber = pageNumber
49+
50+
def setPageSize(self, pageSize):
51+
"""
52+
:param pageSize: (Optional) 分页大小, 默认为 10, 取值范围 [0, 100], 0 表示全量
53+
"""
54+
self.pageSize = pageSize
55+
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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 DescribeConnStatGraphRequest(JDCloudRequest):
23+
"""
24+
新建与并发连接数统计报表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeConnStatGraphRequest, self).__init__(
29+
'/regions/{regionId}/charts:connStatGraph', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeConnStatGraphParameters(object):
34+
35+
def __init__(self, regionId, startTime, ):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param startTime: 开始时间, 只能查询最近 90 天以内的数据, 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+
46+
def setEndTime(self, endTime):
47+
"""
48+
:param endTime: (Optional) 查询的结束时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ
49+
"""
50+
self.endTime = endTime
51+
52+
def setInstanceId(self, instanceId):
53+
"""
54+
:param instanceId: (Optional) 高防实例 Id 列表
55+
"""
56+
self.instanceId = instanceId
57+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 DescribeCustomPagesRequest(JDCloudRequest):
23+
"""
24+
查询自定义页面列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeCustomPagesRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/customPages', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeCustomPagesParameters(object):
34+
35+
def __init__(self, regionId, instanceId, ):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param instanceId: 实例 ID
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+
self.status = None
44+
45+
def setStatus(self, status):
46+
"""
47+
:param status: (Optional) 自定义页面状态, 可取值approving: 审批中, refused: 审批不通过, approved: 审批通过, 为空时查询全部
48+
"""
49+
self.status = status
50+

jdcloud_sdk/services/ipanti/apis/DescribeDDoSAttackLogsRequest.py

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

2222
class DescribeDDoSAttackLogsRequest(JDCloudRequest):
2323
"""
24-
查询 DDoS 攻击日志
24+
查询 DDoS 攻击日志, 仅能查询非BGP实例的攻击记录, 同时查询BGP和非BGP实例请使用 <a href='http://docs.jdcloud.com/anti-ddos-pro/api/describeDDoSIpAttackLogs'>describeDDoSIpAttackLogs</a>
2525
"""
2626

2727
def __init__(self, parameters, header=None, version="v1"):

0 commit comments

Comments
 (0)