tencentcloud-sdk-python-waf 3.1.164__tar.gz → 3.1.165__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/setup.py +1 -1
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud/waf/v20180125/errorcodes.py +3 -3
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud/waf/v20180125/models.py +221 -116
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud/waf/v20180125/waf_client.py +2 -1
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud/waf/v20180125/waf_client_async.py +2 -1
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_waf-3.1.165/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_waf-3.1.164/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/README.rst +0 -0
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/setup.cfg +0 -0
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud/waf/__init__.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud/waf/v20180125/__init__.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_waf-3.1.164 → tencentcloud_sdk_python_waf-3.1.165}/tencentcloud_sdk_python_waf.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-waf
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.165
|
|
4
4
|
Summary: Tencent Cloud Waf SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.165
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-waf',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.165,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Waf SDK for Python',
|
|
@@ -65,9 +65,6 @@ FAILEDOPERATION_REDISOPERATIONFAILED = 'FailedOperation.RedisOperationFailed'
|
|
|
65
65
|
# FailedOperation.SearchTimeout
|
|
66
66
|
FAILEDOPERATION_SEARCHTIMEOUT = 'FailedOperation.SearchTimeout'
|
|
67
67
|
|
|
68
|
-
# 删除的Session正在被启用
|
|
69
|
-
FAILEDOPERATION_SESSIONINUSED = 'FailedOperation.SessionInUsed'
|
|
70
|
-
|
|
71
68
|
# FailedOperation.SyntaxError
|
|
72
69
|
FAILEDOPERATION_SYNTAXERROR = 'FailedOperation.SyntaxError'
|
|
73
70
|
|
|
@@ -367,3 +364,6 @@ UNSUPPORTEDOPERATION_BOTSERVICENOTSUBSCRIBEERR = 'UnsupportedOperation.BotServic
|
|
|
367
364
|
|
|
368
365
|
# InvalidRequest
|
|
369
366
|
UNSUPPORTEDOPERATION_INVALIDREQUEST = 'UnsupportedOperation.InvalidRequest'
|
|
367
|
+
|
|
368
|
+
# 不支持的操作,会话配置在被引用
|
|
369
|
+
UNSUPPORTEDOPERATION_SESSIONINUSED = 'UnsupportedOperation.SessionInUsed'
|
|
@@ -1940,18 +1940,25 @@ class AddCustomRuleRequest(AbstractModel):
|
|
|
1940
1940
|
def __init__(self):
|
|
1941
1941
|
r"""
|
|
1942
1942
|
:param _Name: 规则名称
|
|
1943
|
+
入参限制:1-128个字符,不允许特殊字符
|
|
1943
1944
|
:type Name: str
|
|
1944
|
-
:param _SortId:
|
|
1945
|
+
:param _SortId: 优先级,0-100的整数,数字越小,代表这条规则的执行优先级越高
|
|
1946
|
+
默认值:0
|
|
1945
1947
|
:type SortId: str
|
|
1946
1948
|
:param _Strategies: 策略详情
|
|
1947
1949
|
:type Strategies: list of Strategy
|
|
1948
1950
|
:param _Domain: 需要添加策略的域名
|
|
1949
1951
|
:type Domain: str
|
|
1950
|
-
:param _ActionType:
|
|
1952
|
+
:param _ActionType: 动作类型
|
|
1953
|
+
取值说明:1-阻断,2-人机识别(滑块),3-观察,4-重定向,5-JS校验,6-人机识别(无感验证-拦截),7-人机识别(无感验证-观察),8-语音验证码
|
|
1954
|
+
入参限制:必填,取值范围为1-8
|
|
1955
|
+
约束条件:当ActionType为4(重定向)时,Redirect参数不能为空
|
|
1951
1956
|
:type ActionType: str
|
|
1952
1957
|
:param _Redirect: 如果动作是重定向,则表示重定向的地址;其他情况可以为空
|
|
1953
1958
|
:type Redirect: str
|
|
1954
|
-
:param _ExpireTime: 过期时间,单位为秒级时间戳,例如1677254399表示过期时间为2023-02-24 23:59:59
|
|
1959
|
+
:param _ExpireTime: 过期时间,单位为秒级时间戳,例如1677254399表示过期时间为2023-02-24 23:59:59
|
|
1960
|
+
取值说明:0表示永不过期
|
|
1961
|
+
默认值:0(解析失败时也默认为0)
|
|
1955
1962
|
:type ExpireTime: str
|
|
1956
1963
|
:param _Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
|
|
1957
1964
|
:type Edition: str
|
|
@@ -1972,8 +1979,12 @@ class AddCustomRuleRequest(AbstractModel):
|
|
|
1972
1979
|
:param _PageId: 拦截页面id
|
|
1973
1980
|
:type PageId: str
|
|
1974
1981
|
:param _LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
|
1982
|
+
默认值:and
|
|
1983
|
+
入参限制:不区分大小写,仅支持and或or
|
|
1975
1984
|
:type LogicalOp: str
|
|
1976
|
-
:param _ActionRatio:
|
|
1985
|
+
:param _ActionRatio: 动作灰度比例,即规则命中后执行动作的流量百分比
|
|
1986
|
+
取值范围:1-100
|
|
1987
|
+
默认值:100(全量生效)
|
|
1977
1988
|
:type ActionRatio: int
|
|
1978
1989
|
"""
|
|
1979
1990
|
self._Name = None
|
|
@@ -1998,6 +2009,7 @@ class AddCustomRuleRequest(AbstractModel):
|
|
|
1998
2009
|
@property
|
|
1999
2010
|
def Name(self):
|
|
2000
2011
|
r"""规则名称
|
|
2012
|
+
入参限制:1-128个字符,不允许特殊字符
|
|
2001
2013
|
:rtype: str
|
|
2002
2014
|
"""
|
|
2003
2015
|
return self._Name
|
|
@@ -2008,7 +2020,8 @@ class AddCustomRuleRequest(AbstractModel):
|
|
|
2008
2020
|
|
|
2009
2021
|
@property
|
|
2010
2022
|
def SortId(self):
|
|
2011
|
-
r"""
|
|
2023
|
+
r"""优先级,0-100的整数,数字越小,代表这条规则的执行优先级越高
|
|
2024
|
+
默认值:0
|
|
2012
2025
|
:rtype: str
|
|
2013
2026
|
"""
|
|
2014
2027
|
return self._SortId
|
|
@@ -2041,7 +2054,10 @@ class AddCustomRuleRequest(AbstractModel):
|
|
|
2041
2054
|
|
|
2042
2055
|
@property
|
|
2043
2056
|
def ActionType(self):
|
|
2044
|
-
r"""
|
|
2057
|
+
r"""动作类型
|
|
2058
|
+
取值说明:1-阻断,2-人机识别(滑块),3-观察,4-重定向,5-JS校验,6-人机识别(无感验证-拦截),7-人机识别(无感验证-观察),8-语音验证码
|
|
2059
|
+
入参限制:必填,取值范围为1-8
|
|
2060
|
+
约束条件:当ActionType为4(重定向)时,Redirect参数不能为空
|
|
2045
2061
|
:rtype: str
|
|
2046
2062
|
"""
|
|
2047
2063
|
return self._ActionType
|
|
@@ -2063,7 +2079,9 @@ class AddCustomRuleRequest(AbstractModel):
|
|
|
2063
2079
|
|
|
2064
2080
|
@property
|
|
2065
2081
|
def ExpireTime(self):
|
|
2066
|
-
r"""过期时间,单位为秒级时间戳,例如1677254399表示过期时间为2023-02-24 23:59:59
|
|
2082
|
+
r"""过期时间,单位为秒级时间戳,例如1677254399表示过期时间为2023-02-24 23:59:59
|
|
2083
|
+
取值说明:0表示永不过期
|
|
2084
|
+
默认值:0(解析失败时也默认为0)
|
|
2067
2085
|
:rtype: str
|
|
2068
2086
|
"""
|
|
2069
2087
|
return self._ExpireTime
|
|
@@ -2178,6 +2196,8 @@ class AddCustomRuleRequest(AbstractModel):
|
|
|
2178
2196
|
@property
|
|
2179
2197
|
def LogicalOp(self):
|
|
2180
2198
|
r"""匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
|
2199
|
+
默认值:and
|
|
2200
|
+
入参限制:不区分大小写,仅支持and或or
|
|
2181
2201
|
:rtype: str
|
|
2182
2202
|
"""
|
|
2183
2203
|
return self._LogicalOp
|
|
@@ -2188,7 +2208,9 @@ class AddCustomRuleRequest(AbstractModel):
|
|
|
2188
2208
|
|
|
2189
2209
|
@property
|
|
2190
2210
|
def ActionRatio(self):
|
|
2191
|
-
r"""
|
|
2211
|
+
r"""动作灰度比例,即规则命中后执行动作的流量百分比
|
|
2212
|
+
取值范围:1-100
|
|
2213
|
+
默认值:100(全量生效)
|
|
2192
2214
|
:rtype: int
|
|
2193
2215
|
"""
|
|
2194
2216
|
return self._ActionRatio
|
|
@@ -14030,7 +14052,7 @@ class CreateIpAccessControlRequest(AbstractModel):
|
|
|
14030
14052
|
:type SourceType: str
|
|
14031
14053
|
:param _Note: 备注
|
|
14032
14054
|
:type Note: str
|
|
14033
|
-
:param _JobType: 规则执行的方式,TimedJob为定时执行,CronJob
|
|
14055
|
+
:param _JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行,JobType为空时,永久生效
|
|
14034
14056
|
:type JobType: str
|
|
14035
14057
|
:param _JobDateTime: 定时配置详情
|
|
14036
14058
|
:type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
|
|
@@ -14141,7 +14163,7 @@ class CreateIpAccessControlRequest(AbstractModel):
|
|
|
14141
14163
|
|
|
14142
14164
|
@property
|
|
14143
14165
|
def JobType(self):
|
|
14144
|
-
r"""规则执行的方式,TimedJob为定时执行,CronJob
|
|
14166
|
+
r"""规则执行的方式,TimedJob为定时执行,CronJob为周期执行,JobType为空时,永久生效
|
|
14145
14167
|
:rtype: str
|
|
14146
14168
|
"""
|
|
14147
14169
|
return self._JobType
|
|
@@ -16578,10 +16600,13 @@ class DeleteCustomRuleRequest(AbstractModel):
|
|
|
16578
16600
|
:param _Domain: 删除的域名
|
|
16579
16601
|
:type Domain: str
|
|
16580
16602
|
:param _RuleId: 删除的规则ID
|
|
16603
|
+
说明:支持批量删除,多个规则ID用英文逗号分隔
|
|
16604
|
+
与DomainRuleIdList二选一,优先使用DomainRuleIdList
|
|
16581
16605
|
:type RuleId: str
|
|
16582
16606
|
:param _Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
|
|
16583
16607
|
:type Edition: str
|
|
16584
16608
|
:param _DomainRuleIdList: 批量删除的规则列表
|
|
16609
|
+
说明:支持跨域名批量删除,每个元素指定域名和规则ID。如果不为空则忽略Domain和RuleId字段
|
|
16585
16610
|
:type DomainRuleIdList: list of DomainRuleId
|
|
16586
16611
|
"""
|
|
16587
16612
|
self._Domain = None
|
|
@@ -16603,6 +16628,8 @@ class DeleteCustomRuleRequest(AbstractModel):
|
|
|
16603
16628
|
@property
|
|
16604
16629
|
def RuleId(self):
|
|
16605
16630
|
r"""删除的规则ID
|
|
16631
|
+
说明:支持批量删除,多个规则ID用英文逗号分隔
|
|
16632
|
+
与DomainRuleIdList二选一,优先使用DomainRuleIdList
|
|
16606
16633
|
:rtype: str
|
|
16607
16634
|
"""
|
|
16608
16635
|
return self._RuleId
|
|
@@ -16625,6 +16652,7 @@ class DeleteCustomRuleRequest(AbstractModel):
|
|
|
16625
16652
|
@property
|
|
16626
16653
|
def DomainRuleIdList(self):
|
|
16627
16654
|
r"""批量删除的规则列表
|
|
16655
|
+
说明:支持跨域名批量删除,每个元素指定域名和规则ID。如果不为空则忽略Domain和RuleId字段
|
|
16628
16656
|
:rtype: list of DomainRuleId
|
|
16629
16657
|
"""
|
|
16630
16658
|
return self._DomainRuleIdList
|
|
@@ -27231,6 +27259,8 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
|
|
|
27231
27259
|
:type SessionId: str
|
|
27232
27260
|
:param _IntentContent: <p>意图检测请求内容</p>
|
|
27233
27261
|
:type IntentContent: :class:`tencentcloud.waf.v20180125.models.IntentContent`
|
|
27262
|
+
:param _ClientIP: <p>客户端来源IP地址,用于白名单匹配等场景,支持IPv4和IPv6格式</p>
|
|
27263
|
+
:type ClientIP: str
|
|
27234
27264
|
"""
|
|
27235
27265
|
self._ServiceId = None
|
|
27236
27266
|
self._Type = None
|
|
@@ -27244,6 +27274,7 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
|
|
|
27244
27274
|
self._ToolArgs = None
|
|
27245
27275
|
self._SessionId = None
|
|
27246
27276
|
self._IntentContent = None
|
|
27277
|
+
self._ClientIP = None
|
|
27247
27278
|
|
|
27248
27279
|
@property
|
|
27249
27280
|
def ServiceId(self):
|
|
@@ -27377,6 +27408,17 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
|
|
|
27377
27408
|
def IntentContent(self, IntentContent):
|
|
27378
27409
|
self._IntentContent = IntentContent
|
|
27379
27410
|
|
|
27411
|
+
@property
|
|
27412
|
+
def ClientIP(self):
|
|
27413
|
+
r"""<p>客户端来源IP地址,用于白名单匹配等场景,支持IPv4和IPv6格式</p>
|
|
27414
|
+
:rtype: str
|
|
27415
|
+
"""
|
|
27416
|
+
return self._ClientIP
|
|
27417
|
+
|
|
27418
|
+
@ClientIP.setter
|
|
27419
|
+
def ClientIP(self, ClientIP):
|
|
27420
|
+
self._ClientIP = ClientIP
|
|
27421
|
+
|
|
27380
27422
|
|
|
27381
27423
|
def _deserialize(self, params):
|
|
27382
27424
|
self._ServiceId = params.get("ServiceId")
|
|
@@ -27393,6 +27435,7 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
|
|
|
27393
27435
|
if params.get("IntentContent") is not None:
|
|
27394
27436
|
self._IntentContent = IntentContent()
|
|
27395
27437
|
self._IntentContent._deserialize(params.get("IntentContent"))
|
|
27438
|
+
self._ClientIP = params.get("ClientIP")
|
|
27396
27439
|
memeber_set = set(params.keys())
|
|
27397
27440
|
for name, value in vars(self).items():
|
|
27398
27441
|
property_name = name[1:]
|
|
@@ -31221,19 +31264,13 @@ class DescribeTopicsRequest(AbstractModel):
|
|
|
31221
31264
|
r"""
|
|
31222
31265
|
:param _Filters: <ul><li>topicName 按照【日志主题名称】进行过滤,默认为模糊匹配,Filter.Values 当要查询访问日志时为access,查询攻击日志时为attack</li></ul>注意:每次请求的 Filters 的上限为10,Filter.Values 的上限为100。
|
|
31223
31266
|
:type Filters: list of FilterCls
|
|
31224
|
-
:param _Offset:
|
|
31267
|
+
:param _Offset: <p>分页的偏移量,默认值为0。</p>
|
|
31225
31268
|
:type Offset: int
|
|
31226
|
-
:param _Limit:
|
|
31269
|
+
:param _Limit: <p>分页单页限制数目,默认值为20,最大值100。</p>
|
|
31227
31270
|
:type Limit: int
|
|
31228
|
-
:param _PreciseSearch:
|
|
31229
|
-
<ul><li>0: 默认值,topicName 和 logsetName 模糊匹配</li>
|
|
31230
|
-
<li>1: topicName 精确匹配</li>
|
|
31231
|
-
<li>2: logsetName精确匹配</li>
|
|
31232
|
-
<li>3: topicName 和logsetName 都精确匹配</li></ul>
|
|
31271
|
+
:param _PreciseSearch: <p>控制Filters相关字段是否为精确匹配。</p><ul><li>0: 默认值,topicName 和 logsetName 模糊匹配</li><li>1: topicName 精确匹配</li><li>2: logsetName精确匹配</li><li>3: topicName 和logsetName 都精确匹配</li></ul>
|
|
31233
31272
|
:type PreciseSearch: int
|
|
31234
|
-
:param _BizType:
|
|
31235
|
-
<ul><li>0:日志主题,默认值</li>
|
|
31236
|
-
<li>1:指标主题</li></ul>
|
|
31273
|
+
:param _BizType: <p>主题类型</p><ul><li>0:日志主题,默认值</li><li>1:指标主题</li></ul>
|
|
31237
31274
|
:type BizType: int
|
|
31238
31275
|
"""
|
|
31239
31276
|
self._Filters = None
|
|
@@ -31255,7 +31292,7 @@ class DescribeTopicsRequest(AbstractModel):
|
|
|
31255
31292
|
|
|
31256
31293
|
@property
|
|
31257
31294
|
def Offset(self):
|
|
31258
|
-
r"""
|
|
31295
|
+
r"""<p>分页的偏移量,默认值为0。</p>
|
|
31259
31296
|
:rtype: int
|
|
31260
31297
|
"""
|
|
31261
31298
|
return self._Offset
|
|
@@ -31266,7 +31303,7 @@ class DescribeTopicsRequest(AbstractModel):
|
|
|
31266
31303
|
|
|
31267
31304
|
@property
|
|
31268
31305
|
def Limit(self):
|
|
31269
|
-
r"""
|
|
31306
|
+
r"""<p>分页单页限制数目,默认值为20,最大值100。</p>
|
|
31270
31307
|
:rtype: int
|
|
31271
31308
|
"""
|
|
31272
31309
|
return self._Limit
|
|
@@ -31277,11 +31314,7 @@ class DescribeTopicsRequest(AbstractModel):
|
|
|
31277
31314
|
|
|
31278
31315
|
@property
|
|
31279
31316
|
def PreciseSearch(self):
|
|
31280
|
-
r"""
|
|
31281
|
-
<ul><li>0: 默认值,topicName 和 logsetName 模糊匹配</li>
|
|
31282
|
-
<li>1: topicName 精确匹配</li>
|
|
31283
|
-
<li>2: logsetName精确匹配</li>
|
|
31284
|
-
<li>3: topicName 和logsetName 都精确匹配</li></ul>
|
|
31317
|
+
r"""<p>控制Filters相关字段是否为精确匹配。</p><ul><li>0: 默认值,topicName 和 logsetName 模糊匹配</li><li>1: topicName 精确匹配</li><li>2: logsetName精确匹配</li><li>3: topicName 和logsetName 都精确匹配</li></ul>
|
|
31285
31318
|
:rtype: int
|
|
31286
31319
|
"""
|
|
31287
31320
|
return self._PreciseSearch
|
|
@@ -31292,9 +31325,7 @@ class DescribeTopicsRequest(AbstractModel):
|
|
|
31292
31325
|
|
|
31293
31326
|
@property
|
|
31294
31327
|
def BizType(self):
|
|
31295
|
-
r"""
|
|
31296
|
-
<ul><li>0:日志主题,默认值</li>
|
|
31297
|
-
<li>1:指标主题</li></ul>
|
|
31328
|
+
r"""<p>主题类型</p><ul><li>0:日志主题,默认值</li><li>1:指标主题</li></ul>
|
|
31298
31329
|
:rtype: int
|
|
31299
31330
|
"""
|
|
31300
31331
|
return self._BizType
|
|
@@ -31332,9 +31363,9 @@ class DescribeTopicsResponse(AbstractModel):
|
|
|
31332
31363
|
|
|
31333
31364
|
def __init__(self):
|
|
31334
31365
|
r"""
|
|
31335
|
-
:param _Topics:
|
|
31366
|
+
:param _Topics: <p>日志主题列表</p>
|
|
31336
31367
|
:type Topics: list of TopicInfo
|
|
31337
|
-
:param _TotalCount:
|
|
31368
|
+
:param _TotalCount: <p>总数目</p>
|
|
31338
31369
|
:type TotalCount: int
|
|
31339
31370
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
31340
31371
|
:type RequestId: str
|
|
@@ -31345,7 +31376,7 @@ class DescribeTopicsResponse(AbstractModel):
|
|
|
31345
31376
|
|
|
31346
31377
|
@property
|
|
31347
31378
|
def Topics(self):
|
|
31348
|
-
r"""
|
|
31379
|
+
r"""<p>日志主题列表</p>
|
|
31349
31380
|
:rtype: list of TopicInfo
|
|
31350
31381
|
"""
|
|
31351
31382
|
return self._Topics
|
|
@@ -31356,7 +31387,7 @@ class DescribeTopicsResponse(AbstractModel):
|
|
|
31356
31387
|
|
|
31357
31388
|
@property
|
|
31358
31389
|
def TotalCount(self):
|
|
31359
|
-
r"""
|
|
31390
|
+
r"""<p>总数目</p>
|
|
31360
31391
|
:rtype: int
|
|
31361
31392
|
"""
|
|
31362
31393
|
return self._TotalCount
|
|
@@ -47100,8 +47131,12 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
|
47100
47131
|
:param _RuleId: 编辑的规则ID
|
|
47101
47132
|
:type RuleId: int
|
|
47102
47133
|
:param _RuleName: 编辑的规则名称
|
|
47134
|
+
入参限制:1-128个字符,不允许特殊字符
|
|
47103
47135
|
:type RuleName: str
|
|
47104
|
-
:param _RuleAction:
|
|
47136
|
+
:param _RuleAction: 动作类型
|
|
47137
|
+
取值说明:1-阻断,2-人机识别(滑块),3-观察,4-重定向,5-JS校验,6-人机识别(无感验证-拦截),7-人机识别(无感验证-观察),8-语音验证码
|
|
47138
|
+
入参限制:必填,取值范围为1-8
|
|
47139
|
+
约束条件:当RuleAction为4(重定向)时,Redirect参数不能为空
|
|
47105
47140
|
:type RuleAction: str
|
|
47106
47141
|
:param _Strategies: 匹配条件数组
|
|
47107
47142
|
:type Strategies: list of Strategy
|
|
@@ -47129,8 +47164,12 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
|
47129
47164
|
:param _PageId: 拦截页面id
|
|
47130
47165
|
:type PageId: str
|
|
47131
47166
|
:param _LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
|
47167
|
+
默认值:and
|
|
47168
|
+
入参限制:不区分大小写,仅支持and或or
|
|
47132
47169
|
:type LogicalOp: str
|
|
47133
|
-
:param _ActionRatio:
|
|
47170
|
+
:param _ActionRatio: 动作灰度比例,即规则命中后执行动作的流量百分比
|
|
47171
|
+
取值范围:1-100
|
|
47172
|
+
默认值:100(全量生效)
|
|
47134
47173
|
:type ActionRatio: int
|
|
47135
47174
|
"""
|
|
47136
47175
|
self._Domain = None
|
|
@@ -47176,6 +47215,7 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
|
47176
47215
|
@property
|
|
47177
47216
|
def RuleName(self):
|
|
47178
47217
|
r"""编辑的规则名称
|
|
47218
|
+
入参限制:1-128个字符,不允许特殊字符
|
|
47179
47219
|
:rtype: str
|
|
47180
47220
|
"""
|
|
47181
47221
|
return self._RuleName
|
|
@@ -47186,7 +47226,10 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
|
47186
47226
|
|
|
47187
47227
|
@property
|
|
47188
47228
|
def RuleAction(self):
|
|
47189
|
-
r"""
|
|
47229
|
+
r"""动作类型
|
|
47230
|
+
取值说明:1-阻断,2-人机识别(滑块),3-观察,4-重定向,5-JS校验,6-人机识别(无感验证-拦截),7-人机识别(无感验证-观察),8-语音验证码
|
|
47231
|
+
入参限制:必填,取值范围为1-8
|
|
47232
|
+
约束条件:当RuleAction为4(重定向)时,Redirect参数不能为空
|
|
47190
47233
|
:rtype: str
|
|
47191
47234
|
"""
|
|
47192
47235
|
return self._RuleAction
|
|
@@ -47326,6 +47369,8 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
|
47326
47369
|
@property
|
|
47327
47370
|
def LogicalOp(self):
|
|
47328
47371
|
r"""匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
|
47372
|
+
默认值:and
|
|
47373
|
+
入参限制:不区分大小写,仅支持and或or
|
|
47329
47374
|
:rtype: str
|
|
47330
47375
|
"""
|
|
47331
47376
|
return self._LogicalOp
|
|
@@ -47336,7 +47381,9 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
|
47336
47381
|
|
|
47337
47382
|
@property
|
|
47338
47383
|
def ActionRatio(self):
|
|
47339
|
-
r"""
|
|
47384
|
+
r"""动作灰度比例,即规则命中后执行动作的流量百分比
|
|
47385
|
+
取值范围:1-100
|
|
47386
|
+
默认值:100(全量生效)
|
|
47340
47387
|
:rtype: int
|
|
47341
47388
|
"""
|
|
47342
47389
|
return self._ActionRatio
|
|
@@ -58534,7 +58581,7 @@ class Strategy(AbstractModel):
|
|
|
58534
58581
|
|
|
58535
58582
|
def __init__(self):
|
|
58536
58583
|
r"""
|
|
58537
|
-
:param _Field: 匹配字段
|
|
58584
|
+
:param _Field: 匹配字段 匹配字段不同,相应的匹配参数、逻辑符号、匹配内容有所不同,具体如下所示: <table>
|
|
58538
58585
|
<thead>
|
|
58539
58586
|
<tr>
|
|
58540
58587
|
<th>匹配字段</th>
|
|
@@ -58559,13 +58606,13 @@ class Strategy(AbstractModel):
|
|
|
58559
58606
|
<tr>
|
|
58560
58607
|
<td>Referer(Referer)</td>
|
|
58561
58608
|
<td>不支持参数</td>
|
|
58562
|
-
<td>empty(内容为空)<br />null(不存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br/>belong_to(属于)<br/>not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58609
|
+
<td>empty(内容为空)<br />nempty(内容不为空)<br />null(不存在)<br />nnull(存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58563
58610
|
<td>请输入内容,512个字符以内</td>
|
|
58564
58611
|
</tr>
|
|
58565
58612
|
<tr>
|
|
58566
58613
|
<td>URL(请求路径)</td>
|
|
58567
58614
|
<td>不支持参数</td>
|
|
58568
|
-
<td>eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />
|
|
58615
|
+
<td>eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)<br /></td>
|
|
58569
58616
|
<td>请以/开头,512个字符以内</td>
|
|
58570
58617
|
</tr>
|
|
58571
58618
|
<tr>
|
|
@@ -58577,25 +58624,25 @@ class Strategy(AbstractModel):
|
|
|
58577
58624
|
<tr>
|
|
58578
58625
|
<td>HTTP_METHOD(HTTP请求方法)</td>
|
|
58579
58626
|
<td>不支持参数</td>
|
|
58580
|
-
<td>eq(等于)<br />neq(不等于)<br/>belong_to(属于)<br/>not_belong_to
|
|
58627
|
+
<td>eq(等于)<br />neq(不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />rematch(正则匹配)</td>
|
|
58581
58628
|
<td>请输入方法名称,建议大写</td>
|
|
58582
58629
|
</tr>
|
|
58583
58630
|
<tr>
|
|
58584
58631
|
<td>QUERY_STRING(请求字符串)</td>
|
|
58585
58632
|
<td>不支持参数</td>
|
|
58586
|
-
<td
|
|
58633
|
+
<td>empty(内容为空)<br />nnull(存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58587
58634
|
<td>请输入内容,512个字符以内</td>
|
|
58588
58635
|
</tr>
|
|
58589
58636
|
<tr>
|
|
58590
58637
|
<td>GET(GET参数值)</td>
|
|
58591
58638
|
<td>支持参数录入</td>
|
|
58592
|
-
<td>contains(包含)<br />ncontains(不包含)<br/>belong_to(属于)<br/>not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix
|
|
58639
|
+
<td>empty(内容为空)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58593
58640
|
<td>请输入内容,512个字符以内</td>
|
|
58594
58641
|
</tr>
|
|
58595
58642
|
<tr>
|
|
58596
58643
|
<td>GET_PARAMS_NAMES(GET参数名)</td>
|
|
58597
58644
|
<td>不支持参数</td>
|
|
58598
|
-
<td>
|
|
58645
|
+
<td>eq(等于)<br />neq(不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)</td>
|
|
58599
58646
|
<td>请输入内容,512个字符以内</td>
|
|
58600
58647
|
</tr>
|
|
58601
58648
|
<tr>
|
|
@@ -58607,22 +58654,20 @@ class Strategy(AbstractModel):
|
|
|
58607
58654
|
<tr>
|
|
58608
58655
|
<td>GET_POST_NAMES(POST参数名)</td>
|
|
58609
58656
|
<td>不支持参数</td>
|
|
58610
|
-
<td
|
|
58657
|
+
<td>eq(等于)<br />neq(不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58611
58658
|
<td>请输入内容,512个字符以内</td>
|
|
58612
58659
|
</tr>
|
|
58613
58660
|
<tr>
|
|
58614
58661
|
<td>POST_BODY(完整BODY)</td>
|
|
58615
58662
|
<td>不支持参数</td>
|
|
58616
|
-
<td
|
|
58663
|
+
<td>empty(内容为空)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58617
58664
|
<td>请输入BODY内容,512个字符以内</td>
|
|
58618
58665
|
</tr>
|
|
58619
58666
|
<tr>
|
|
58620
58667
|
<td>COOKIE(Cookie)</td>
|
|
58621
58668
|
<td>不支持参数</td>
|
|
58622
|
-
<td>empty(内容为空)<br />null(不存在)<br />rematch(正则匹配)</td>
|
|
58623
|
-
<td>
|
|
58624
|
-
<font color="Red">暂不支持</font>
|
|
58625
|
-
</td>
|
|
58669
|
+
<td>empty(内容为空)<br />null(不存在)<br />nnull(存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />rematch(正则匹配)</td>
|
|
58670
|
+
<td>请输入内容,512个字符以内</td>
|
|
58626
58671
|
</tr>
|
|
58627
58672
|
<tr>
|
|
58628
58673
|
<td>GET_COOKIES_NAMES(Cookie参数名)</td>
|
|
@@ -58639,43 +58684,49 @@ class Strategy(AbstractModel):
|
|
|
58639
58684
|
<tr>
|
|
58640
58685
|
<td>GET_HEADERS_NAMES(Header参数名)</td>
|
|
58641
58686
|
<td>不支持参数</td>
|
|
58642
|
-
<td>
|
|
58687
|
+
<td>eq(等于)<br />neq(不等于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58643
58688
|
<td>请输入内容,建议小写,512个字符以内</td>
|
|
58644
58689
|
</tr>
|
|
58645
58690
|
<tr>
|
|
58646
58691
|
<td>ARGS_HEADER(Header参数值)</td>
|
|
58647
58692
|
<td>支持参数录入</td>
|
|
58648
|
-
<td>contains(包含)<br />ncontains(不包含)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58693
|
+
<td>empty(内容为空)<br />nempty(内容不为空)<br />null(不存在)<br />nnull(存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58649
58694
|
<td>请输入内容,512个字符以内</td>
|
|
58650
58695
|
</tr>
|
|
58651
58696
|
<tr>
|
|
58652
58697
|
<td>CONTENT_LENGTH(Content-length)</td>
|
|
58653
|
-
<td
|
|
58654
|
-
<td>numgt(数值大于)<br />numlt(数值小于)<br />
|
|
58698
|
+
<td>不支持参数</td>
|
|
58699
|
+
<td>numeq(数值等于)<br />numneq(数值不等于)<br />numgt(数值大于)<br />numlt(数值小于)<br />numge(数值大于等于)<br />numle(数值小于等于)</td>
|
|
58655
58700
|
<td>请输入0-9999999999999之间的整数</td>
|
|
58656
58701
|
</tr>
|
|
58657
58702
|
<tr>
|
|
58658
58703
|
<td>IP_GEO(来源IP归属地)</td>
|
|
58659
|
-
<td
|
|
58660
|
-
<td>geo_in(属于)<br />geo_not_in
|
|
58704
|
+
<td>不支持参数</td>
|
|
58705
|
+
<td>geo_in(属于)<br />geo_not_in(不属于)</td>
|
|
58661
58706
|
<td>请输入内容,10240字符以内,格式为序列化的JSON,格式为:[{"Country":"中国","Region":"广东","City":"深圳"}]</td>
|
|
58662
58707
|
</tr>
|
|
58708
|
+
<tr>
|
|
58709
|
+
<td>HOST(请求Host)</td>
|
|
58710
|
+
<td>不支持参数</td>
|
|
58711
|
+
<td>empty(内容为空)<br />null(不存在)<br />nnull(存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58712
|
+
<td>请输入Host值,512个字符以内</td>
|
|
58713
|
+
</tr>
|
|
58663
58714
|
<tr>
|
|
58664
58715
|
<td>CAPTCHA_RISK(验证码风险)</td>
|
|
58665
58716
|
<td>不支持参数</td>
|
|
58666
|
-
<td>eq(等于)<br />neq(不等于)<br />
|
|
58717
|
+
<td>eq(等于)<br />neq(不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />null(不存在)<br />nnull(存在)</td>
|
|
58667
58718
|
<td>请输入风险等级值,支持数值范围0-255</td>
|
|
58668
58719
|
</tr>
|
|
58669
58720
|
<tr>
|
|
58670
58721
|
<td>CAPTCHA_DEVICE_RISK(验证码设备风险)</td>
|
|
58671
58722
|
<td>不支持参数</td>
|
|
58672
|
-
<td>eq(等于)<br />neq(不等于)<br />
|
|
58723
|
+
<td>eq(等于)<br />neq(不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />null(不存在)<br />nnull(存在)</td>
|
|
58673
58724
|
<td>请输入设备风险代码,支持取值:101、201、301、401、501、601、701</td>
|
|
58674
58725
|
</tr>
|
|
58675
58726
|
<tr>
|
|
58676
58727
|
<td>CAPTCHAR_SCORE(验证码风险评估分)</td>
|
|
58677
58728
|
<td>不支持参数</td>
|
|
58678
|
-
<td>numeq(数值等于)<br />numgt(数值大于)<br />numlt(数值小于)<br />numle(数值小于等于)<br />numge(数值大于等于)<br />null(不存在)<br />
|
|
58729
|
+
<td>numeq(数值等于)<br />numneq(数值不等于)<br />numgt(数值大于)<br />numlt(数值小于)<br />numle(数值小于等于)<br />numge(数值大于等于)<br />null(不存在)<br />nnull(存在)</td>
|
|
58679
58730
|
<td>请输入评估分数,支持数值范围0-100</td>
|
|
58680
58731
|
</tr>
|
|
58681
58732
|
</tbody>
|
|
@@ -58683,30 +58734,34 @@ class Strategy(AbstractModel):
|
|
|
58683
58734
|
:type Field: str
|
|
58684
58735
|
:param _CompareFunc: 逻辑符号
|
|
58685
58736
|
|
|
58686
|
-
|
|
58737
|
+
逻辑符号一共分为以下几种类型:
|
|
58687
58738
|
empty ( 内容为空)
|
|
58688
|
-
|
|
58739
|
+
nempty ( 内容不为空)
|
|
58740
|
+
null (不存在)
|
|
58741
|
+
nnull (存在)
|
|
58689
58742
|
eq ( 等于)
|
|
58690
|
-
|
|
58743
|
+
neq ( 不等于)
|
|
58691
58744
|
contains ( 包含)
|
|
58692
58745
|
ncontains ( 不包含)
|
|
58693
|
-
|
|
58694
|
-
|
|
58746
|
+
belong_to (属于)
|
|
58747
|
+
not_belong_to (不属于)
|
|
58748
|
+
strprefix ( 前缀匹配)
|
|
58749
|
+
strsuffix ( 后缀匹配)
|
|
58695
58750
|
len_eq ( 长度等于)
|
|
58696
|
-
|
|
58751
|
+
len_gt ( 长度大于)
|
|
58697
58752
|
len_lt ( 长度小于)
|
|
58698
|
-
ipmatch (
|
|
58699
|
-
|
|
58753
|
+
ipmatch ( IP匹配)
|
|
58754
|
+
ipnmatch ( IP不匹配)
|
|
58755
|
+
rematch ( 正则匹配)
|
|
58700
58756
|
numgt ( 数值大于)
|
|
58701
58757
|
numlt ( 数值小于)
|
|
58702
58758
|
numeq ( 数值等于)
|
|
58703
|
-
|
|
58704
|
-
|
|
58759
|
+
numneq ( 数值不等于)
|
|
58760
|
+
numle ( 数值小于等于)
|
|
58705
58761
|
numge ( 数值大于等于)
|
|
58706
|
-
belong_to(属于)
|
|
58707
|
-
not_belong_to(不属于)
|
|
58708
58762
|
geo_in ( IP地理属于)
|
|
58709
58763
|
geo_not_in ( IP地理不属于)
|
|
58764
|
+
cel ( CEL表达式)
|
|
58710
58765
|
各匹配字段对应的逻辑符号不同,详见上述匹配字段表格
|
|
58711
58766
|
:type CompareFunc: str
|
|
58712
58767
|
:param _Content: 匹配内容
|
|
@@ -58736,7 +58791,7 @@ class Strategy(AbstractModel):
|
|
|
58736
58791
|
|
|
58737
58792
|
@property
|
|
58738
58793
|
def Field(self):
|
|
58739
|
-
r"""匹配字段
|
|
58794
|
+
r"""匹配字段 匹配字段不同,相应的匹配参数、逻辑符号、匹配内容有所不同,具体如下所示: <table>
|
|
58740
58795
|
<thead>
|
|
58741
58796
|
<tr>
|
|
58742
58797
|
<th>匹配字段</th>
|
|
@@ -58761,13 +58816,13 @@ class Strategy(AbstractModel):
|
|
|
58761
58816
|
<tr>
|
|
58762
58817
|
<td>Referer(Referer)</td>
|
|
58763
58818
|
<td>不支持参数</td>
|
|
58764
|
-
<td>empty(内容为空)<br />null(不存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br/>belong_to(属于)<br/>not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58819
|
+
<td>empty(内容为空)<br />nempty(内容不为空)<br />null(不存在)<br />nnull(存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58765
58820
|
<td>请输入内容,512个字符以内</td>
|
|
58766
58821
|
</tr>
|
|
58767
58822
|
<tr>
|
|
58768
58823
|
<td>URL(请求路径)</td>
|
|
58769
58824
|
<td>不支持参数</td>
|
|
58770
|
-
<td>eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />
|
|
58825
|
+
<td>eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)<br /></td>
|
|
58771
58826
|
<td>请以/开头,512个字符以内</td>
|
|
58772
58827
|
</tr>
|
|
58773
58828
|
<tr>
|
|
@@ -58779,25 +58834,25 @@ class Strategy(AbstractModel):
|
|
|
58779
58834
|
<tr>
|
|
58780
58835
|
<td>HTTP_METHOD(HTTP请求方法)</td>
|
|
58781
58836
|
<td>不支持参数</td>
|
|
58782
|
-
<td>eq(等于)<br />neq(不等于)<br/>belong_to(属于)<br/>not_belong_to
|
|
58837
|
+
<td>eq(等于)<br />neq(不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />rematch(正则匹配)</td>
|
|
58783
58838
|
<td>请输入方法名称,建议大写</td>
|
|
58784
58839
|
</tr>
|
|
58785
58840
|
<tr>
|
|
58786
58841
|
<td>QUERY_STRING(请求字符串)</td>
|
|
58787
58842
|
<td>不支持参数</td>
|
|
58788
|
-
<td
|
|
58843
|
+
<td>empty(内容为空)<br />nnull(存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58789
58844
|
<td>请输入内容,512个字符以内</td>
|
|
58790
58845
|
</tr>
|
|
58791
58846
|
<tr>
|
|
58792
58847
|
<td>GET(GET参数值)</td>
|
|
58793
58848
|
<td>支持参数录入</td>
|
|
58794
|
-
<td>contains(包含)<br />ncontains(不包含)<br/>belong_to(属于)<br/>not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix
|
|
58849
|
+
<td>empty(内容为空)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58795
58850
|
<td>请输入内容,512个字符以内</td>
|
|
58796
58851
|
</tr>
|
|
58797
58852
|
<tr>
|
|
58798
58853
|
<td>GET_PARAMS_NAMES(GET参数名)</td>
|
|
58799
58854
|
<td>不支持参数</td>
|
|
58800
|
-
<td>
|
|
58855
|
+
<td>eq(等于)<br />neq(不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)</td>
|
|
58801
58856
|
<td>请输入内容,512个字符以内</td>
|
|
58802
58857
|
</tr>
|
|
58803
58858
|
<tr>
|
|
@@ -58809,22 +58864,20 @@ class Strategy(AbstractModel):
|
|
|
58809
58864
|
<tr>
|
|
58810
58865
|
<td>GET_POST_NAMES(POST参数名)</td>
|
|
58811
58866
|
<td>不支持参数</td>
|
|
58812
|
-
<td
|
|
58867
|
+
<td>eq(等于)<br />neq(不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58813
58868
|
<td>请输入内容,512个字符以内</td>
|
|
58814
58869
|
</tr>
|
|
58815
58870
|
<tr>
|
|
58816
58871
|
<td>POST_BODY(完整BODY)</td>
|
|
58817
58872
|
<td>不支持参数</td>
|
|
58818
|
-
<td
|
|
58873
|
+
<td>empty(内容为空)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58819
58874
|
<td>请输入BODY内容,512个字符以内</td>
|
|
58820
58875
|
</tr>
|
|
58821
58876
|
<tr>
|
|
58822
58877
|
<td>COOKIE(Cookie)</td>
|
|
58823
58878
|
<td>不支持参数</td>
|
|
58824
|
-
<td>empty(内容为空)<br />null(不存在)<br />rematch(正则匹配)</td>
|
|
58825
|
-
<td>
|
|
58826
|
-
<font color="Red">暂不支持</font>
|
|
58827
|
-
</td>
|
|
58879
|
+
<td>empty(内容为空)<br />null(不存在)<br />nnull(存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />rematch(正则匹配)</td>
|
|
58880
|
+
<td>请输入内容,512个字符以内</td>
|
|
58828
58881
|
</tr>
|
|
58829
58882
|
<tr>
|
|
58830
58883
|
<td>GET_COOKIES_NAMES(Cookie参数名)</td>
|
|
@@ -58841,43 +58894,49 @@ class Strategy(AbstractModel):
|
|
|
58841
58894
|
<tr>
|
|
58842
58895
|
<td>GET_HEADERS_NAMES(Header参数名)</td>
|
|
58843
58896
|
<td>不支持参数</td>
|
|
58844
|
-
<td>
|
|
58897
|
+
<td>eq(等于)<br />neq(不等于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58845
58898
|
<td>请输入内容,建议小写,512个字符以内</td>
|
|
58846
58899
|
</tr>
|
|
58847
58900
|
<tr>
|
|
58848
58901
|
<td>ARGS_HEADER(Header参数值)</td>
|
|
58849
58902
|
<td>支持参数录入</td>
|
|
58850
|
-
<td>contains(包含)<br />ncontains(不包含)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58903
|
+
<td>empty(内容为空)<br />nempty(内容不为空)<br />null(不存在)<br />nnull(存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />belong_to(属于)<br />not_belong_to(不属于)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58851
58904
|
<td>请输入内容,512个字符以内</td>
|
|
58852
58905
|
</tr>
|
|
58853
58906
|
<tr>
|
|
58854
58907
|
<td>CONTENT_LENGTH(Content-length)</td>
|
|
58855
|
-
<td
|
|
58856
|
-
<td>numgt(数值大于)<br />numlt(数值小于)<br />
|
|
58908
|
+
<td>不支持参数</td>
|
|
58909
|
+
<td>numeq(数值等于)<br />numneq(数值不等于)<br />numgt(数值大于)<br />numlt(数值小于)<br />numge(数值大于等于)<br />numle(数值小于等于)</td>
|
|
58857
58910
|
<td>请输入0-9999999999999之间的整数</td>
|
|
58858
58911
|
</tr>
|
|
58859
58912
|
<tr>
|
|
58860
58913
|
<td>IP_GEO(来源IP归属地)</td>
|
|
58861
|
-
<td
|
|
58862
|
-
<td>geo_in(属于)<br />geo_not_in
|
|
58914
|
+
<td>不支持参数</td>
|
|
58915
|
+
<td>geo_in(属于)<br />geo_not_in(不属于)</td>
|
|
58863
58916
|
<td>请输入内容,10240字符以内,格式为序列化的JSON,格式为:[{"Country":"中国","Region":"广东","City":"深圳"}]</td>
|
|
58864
58917
|
</tr>
|
|
58918
|
+
<tr>
|
|
58919
|
+
<td>HOST(请求Host)</td>
|
|
58920
|
+
<td>不支持参数</td>
|
|
58921
|
+
<td>empty(内容为空)<br />null(不存在)<br />nnull(存在)<br />eq(等于)<br />neq(不等于)<br />contains(包含)<br />ncontains(不包含)<br />len_eq(长度等于)<br />len_gt(长度大于)<br />len_lt(长度小于)<br />strprefix(前缀匹配)<br />strsuffix(后缀匹配)<br />rematch(正则匹配)</td>
|
|
58922
|
+
<td>请输入Host值,512个字符以内</td>
|
|
58923
|
+
</tr>
|
|
58865
58924
|
<tr>
|
|
58866
58925
|
<td>CAPTCHA_RISK(验证码风险)</td>
|
|
58867
58926
|
<td>不支持参数</td>
|
|
58868
|
-
<td>eq(等于)<br />neq(不等于)<br />
|
|
58927
|
+
<td>eq(等于)<br />neq(不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />null(不存在)<br />nnull(存在)</td>
|
|
58869
58928
|
<td>请输入风险等级值,支持数值范围0-255</td>
|
|
58870
58929
|
</tr>
|
|
58871
58930
|
<tr>
|
|
58872
58931
|
<td>CAPTCHA_DEVICE_RISK(验证码设备风险)</td>
|
|
58873
58932
|
<td>不支持参数</td>
|
|
58874
|
-
<td>eq(等于)<br />neq(不等于)<br />
|
|
58933
|
+
<td>eq(等于)<br />neq(不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />null(不存在)<br />nnull(存在)</td>
|
|
58875
58934
|
<td>请输入设备风险代码,支持取值:101、201、301、401、501、601、701</td>
|
|
58876
58935
|
</tr>
|
|
58877
58936
|
<tr>
|
|
58878
58937
|
<td>CAPTCHAR_SCORE(验证码风险评估分)</td>
|
|
58879
58938
|
<td>不支持参数</td>
|
|
58880
|
-
<td>numeq(数值等于)<br />numgt(数值大于)<br />numlt(数值小于)<br />numle(数值小于等于)<br />numge(数值大于等于)<br />null(不存在)<br />
|
|
58939
|
+
<td>numeq(数值等于)<br />numneq(数值不等于)<br />numgt(数值大于)<br />numlt(数值小于)<br />numle(数值小于等于)<br />numge(数值大于等于)<br />null(不存在)<br />nnull(存在)</td>
|
|
58881
58940
|
<td>请输入评估分数,支持数值范围0-100</td>
|
|
58882
58941
|
</tr>
|
|
58883
58942
|
</tbody>
|
|
@@ -58894,30 +58953,34 @@ class Strategy(AbstractModel):
|
|
|
58894
58953
|
def CompareFunc(self):
|
|
58895
58954
|
r"""逻辑符号
|
|
58896
58955
|
|
|
58897
|
-
|
|
58956
|
+
逻辑符号一共分为以下几种类型:
|
|
58898
58957
|
empty ( 内容为空)
|
|
58899
|
-
|
|
58958
|
+
nempty ( 内容不为空)
|
|
58959
|
+
null (不存在)
|
|
58960
|
+
nnull (存在)
|
|
58900
58961
|
eq ( 等于)
|
|
58901
|
-
|
|
58962
|
+
neq ( 不等于)
|
|
58902
58963
|
contains ( 包含)
|
|
58903
58964
|
ncontains ( 不包含)
|
|
58904
|
-
|
|
58905
|
-
|
|
58965
|
+
belong_to (属于)
|
|
58966
|
+
not_belong_to (不属于)
|
|
58967
|
+
strprefix ( 前缀匹配)
|
|
58968
|
+
strsuffix ( 后缀匹配)
|
|
58906
58969
|
len_eq ( 长度等于)
|
|
58907
|
-
|
|
58970
|
+
len_gt ( 长度大于)
|
|
58908
58971
|
len_lt ( 长度小于)
|
|
58909
|
-
ipmatch (
|
|
58910
|
-
|
|
58972
|
+
ipmatch ( IP匹配)
|
|
58973
|
+
ipnmatch ( IP不匹配)
|
|
58974
|
+
rematch ( 正则匹配)
|
|
58911
58975
|
numgt ( 数值大于)
|
|
58912
58976
|
numlt ( 数值小于)
|
|
58913
58977
|
numeq ( 数值等于)
|
|
58914
|
-
|
|
58915
|
-
|
|
58978
|
+
numneq ( 数值不等于)
|
|
58979
|
+
numle ( 数值小于等于)
|
|
58916
58980
|
numge ( 数值大于等于)
|
|
58917
|
-
belong_to(属于)
|
|
58918
|
-
not_belong_to(不属于)
|
|
58919
58981
|
geo_in ( IP地理属于)
|
|
58920
58982
|
geo_not_in ( IP地理不属于)
|
|
58983
|
+
cel ( CEL表达式)
|
|
58921
58984
|
各匹配字段对应的逻辑符号不同,详见上述匹配字段表格
|
|
58922
58985
|
:rtype: str
|
|
58923
58986
|
"""
|
|
@@ -62110,26 +62173,46 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62110
62173
|
def __init__(self):
|
|
62111
62174
|
r"""
|
|
62112
62175
|
:param _Domain: 域名
|
|
62176
|
+
入参限制:必填,必须为合法域名格式
|
|
62113
62177
|
:type Domain: str
|
|
62114
|
-
:param _Source:
|
|
62178
|
+
:param _Source: 会话来源位置
|
|
62179
|
+
取值说明:get-从URL查询参数中提取,post-从POST Body中提取,cookie-从Cookie中提取,header-从HTTP Header中提取
|
|
62180
|
+
入参限制:必填,取值范围为get/post/cookie/header
|
|
62115
62181
|
:type Source: str
|
|
62116
62182
|
:param _Category: 提取类别
|
|
62183
|
+
取值说明:location-按位置提取(使用StartOffset和EndOffset),match-按字符串匹配提取(使用KeyOrStartMat和EndMat),exact_key-按精准Key提取(使用Key字段)
|
|
62184
|
+
入参限制:必填,取值范围为location/match/exact_key
|
|
62117
62185
|
:type Category: str
|
|
62118
62186
|
:param _KeyOrStartMat: 提取key或者起始匹配模式
|
|
62187
|
+
入参限制:最长32个字符,不允许包含MongoDB注入字符
|
|
62188
|
+
说明:当Category为match时,表示匹配的起始字符串;当Category为exact_key时,表示精确匹配的key名
|
|
62119
62189
|
:type KeyOrStartMat: str
|
|
62120
62190
|
:param _EndMat: 结束匹配模式
|
|
62191
|
+
入参限制:必填,最长32个字符,不允许包含MongoDB注入字符
|
|
62192
|
+
说明:当Category为match时,表示匹配的结束字符串
|
|
62121
62193
|
:type EndMat: str
|
|
62122
62194
|
:param _StartOffset: 起始偏移位置
|
|
62195
|
+
入参限制:必填,整数字符串
|
|
62196
|
+
约束条件:EndOffset不能小于StartOffset,且EndOffset-StartOffset+1不能超过256
|
|
62197
|
+
说明:当Category为location时生效,表示从会话值中提取的起始字节位置
|
|
62123
62198
|
:type StartOffset: str
|
|
62124
62199
|
:param _EndOffset: 结束偏移位置
|
|
62200
|
+
入参限制:必填,整数字符串
|
|
62201
|
+
约束条件:不能小于StartOffset,且EndOffset-StartOffset+1不能超过256
|
|
62202
|
+
说明:当Category为location时生效,表示从会话值中提取的结束字节位置
|
|
62125
62203
|
:type EndOffset: str
|
|
62126
62204
|
:param _Edition: 版本
|
|
62127
62205
|
:type Edition: str
|
|
62128
|
-
:param _SessionName:
|
|
62206
|
+
:param _SessionName: 会话名称
|
|
62207
|
+
说明:用于标识会话的可读名称
|
|
62129
62208
|
:type SessionName: str
|
|
62130
|
-
:param _SessionID:
|
|
62209
|
+
:param _SessionID: 会话ID
|
|
62210
|
+
说明:传-1表示新增会话(系统自动生成ID),传已有ID表示更新该会话配置
|
|
62211
|
+
约束条件:新增时每个域名最多10条会话规则
|
|
62131
62212
|
:type SessionID: int
|
|
62132
|
-
:param _Key:
|
|
62213
|
+
:param _Key: 会话标识参数(精准匹配key)
|
|
62214
|
+
入参限制:key中"."分隔的层级不超过2层
|
|
62215
|
+
说明:当Category为exact_key时使用,表示要精确匹配的参数名
|
|
62133
62216
|
:type Key: str
|
|
62134
62217
|
"""
|
|
62135
62218
|
self._Domain = None
|
|
@@ -62147,6 +62230,7 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62147
62230
|
@property
|
|
62148
62231
|
def Domain(self):
|
|
62149
62232
|
r"""域名
|
|
62233
|
+
入参限制:必填,必须为合法域名格式
|
|
62150
62234
|
:rtype: str
|
|
62151
62235
|
"""
|
|
62152
62236
|
return self._Domain
|
|
@@ -62157,7 +62241,9 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62157
62241
|
|
|
62158
62242
|
@property
|
|
62159
62243
|
def Source(self):
|
|
62160
|
-
r"""
|
|
62244
|
+
r"""会话来源位置
|
|
62245
|
+
取值说明:get-从URL查询参数中提取,post-从POST Body中提取,cookie-从Cookie中提取,header-从HTTP Header中提取
|
|
62246
|
+
入参限制:必填,取值范围为get/post/cookie/header
|
|
62161
62247
|
:rtype: str
|
|
62162
62248
|
"""
|
|
62163
62249
|
return self._Source
|
|
@@ -62169,6 +62255,8 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62169
62255
|
@property
|
|
62170
62256
|
def Category(self):
|
|
62171
62257
|
r"""提取类别
|
|
62258
|
+
取值说明:location-按位置提取(使用StartOffset和EndOffset),match-按字符串匹配提取(使用KeyOrStartMat和EndMat),exact_key-按精准Key提取(使用Key字段)
|
|
62259
|
+
入参限制:必填,取值范围为location/match/exact_key
|
|
62172
62260
|
:rtype: str
|
|
62173
62261
|
"""
|
|
62174
62262
|
return self._Category
|
|
@@ -62180,6 +62268,8 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62180
62268
|
@property
|
|
62181
62269
|
def KeyOrStartMat(self):
|
|
62182
62270
|
r"""提取key或者起始匹配模式
|
|
62271
|
+
入参限制:最长32个字符,不允许包含MongoDB注入字符
|
|
62272
|
+
说明:当Category为match时,表示匹配的起始字符串;当Category为exact_key时,表示精确匹配的key名
|
|
62183
62273
|
:rtype: str
|
|
62184
62274
|
"""
|
|
62185
62275
|
return self._KeyOrStartMat
|
|
@@ -62191,6 +62281,8 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62191
62281
|
@property
|
|
62192
62282
|
def EndMat(self):
|
|
62193
62283
|
r"""结束匹配模式
|
|
62284
|
+
入参限制:必填,最长32个字符,不允许包含MongoDB注入字符
|
|
62285
|
+
说明:当Category为match时,表示匹配的结束字符串
|
|
62194
62286
|
:rtype: str
|
|
62195
62287
|
"""
|
|
62196
62288
|
return self._EndMat
|
|
@@ -62202,6 +62294,9 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62202
62294
|
@property
|
|
62203
62295
|
def StartOffset(self):
|
|
62204
62296
|
r"""起始偏移位置
|
|
62297
|
+
入参限制:必填,整数字符串
|
|
62298
|
+
约束条件:EndOffset不能小于StartOffset,且EndOffset-StartOffset+1不能超过256
|
|
62299
|
+
说明:当Category为location时生效,表示从会话值中提取的起始字节位置
|
|
62205
62300
|
:rtype: str
|
|
62206
62301
|
"""
|
|
62207
62302
|
return self._StartOffset
|
|
@@ -62213,6 +62308,9 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62213
62308
|
@property
|
|
62214
62309
|
def EndOffset(self):
|
|
62215
62310
|
r"""结束偏移位置
|
|
62311
|
+
入参限制:必填,整数字符串
|
|
62312
|
+
约束条件:不能小于StartOffset,且EndOffset-StartOffset+1不能超过256
|
|
62313
|
+
说明:当Category为location时生效,表示从会话值中提取的结束字节位置
|
|
62216
62314
|
:rtype: str
|
|
62217
62315
|
"""
|
|
62218
62316
|
return self._EndOffset
|
|
@@ -62234,7 +62332,8 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62234
62332
|
|
|
62235
62333
|
@property
|
|
62236
62334
|
def SessionName(self):
|
|
62237
|
-
r"""
|
|
62335
|
+
r"""会话名称
|
|
62336
|
+
说明:用于标识会话的可读名称
|
|
62238
62337
|
:rtype: str
|
|
62239
62338
|
"""
|
|
62240
62339
|
return self._SessionName
|
|
@@ -62245,7 +62344,9 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62245
62344
|
|
|
62246
62345
|
@property
|
|
62247
62346
|
def SessionID(self):
|
|
62248
|
-
r"""
|
|
62347
|
+
r"""会话ID
|
|
62348
|
+
说明:传-1表示新增会话(系统自动生成ID),传已有ID表示更新该会话配置
|
|
62349
|
+
约束条件:新增时每个域名最多10条会话规则
|
|
62249
62350
|
:rtype: int
|
|
62250
62351
|
"""
|
|
62251
62352
|
return self._SessionID
|
|
@@ -62256,7 +62357,9 @@ class UpsertSessionRequest(AbstractModel):
|
|
|
62256
62357
|
|
|
62257
62358
|
@property
|
|
62258
62359
|
def Key(self):
|
|
62259
|
-
r"""
|
|
62360
|
+
r"""会话标识参数(精准匹配key)
|
|
62361
|
+
入参限制:key中"."分隔的层级不超过2层
|
|
62362
|
+
说明:当Category为exact_key时使用,表示要精确匹配的参数名
|
|
62260
62363
|
:rtype: str
|
|
62261
62364
|
"""
|
|
62262
62365
|
return self._Key
|
|
@@ -62297,7 +62400,8 @@ class UpsertSessionResponse(AbstractModel):
|
|
|
62297
62400
|
r"""
|
|
62298
62401
|
:param _Data: 结果
|
|
62299
62402
|
:type Data: str
|
|
62300
|
-
:param _SessionID:
|
|
62403
|
+
:param _SessionID: 会话ID
|
|
62404
|
+
说明:新增时返回系统生成的SessionID,更新时返回请求中传入的SessionID
|
|
62301
62405
|
:type SessionID: int
|
|
62302
62406
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62303
62407
|
:type RequestId: str
|
|
@@ -62319,7 +62423,8 @@ class UpsertSessionResponse(AbstractModel):
|
|
|
62319
62423
|
|
|
62320
62424
|
@property
|
|
62321
62425
|
def SessionID(self):
|
|
62322
|
-
r"""
|
|
62426
|
+
r"""会话ID
|
|
62427
|
+
说明:新增时返回系统生成的SessionID,更新时返回请求中传入的SessionID
|
|
62323
62428
|
:rtype: int
|
|
62324
62429
|
"""
|
|
62325
62430
|
return self._SessionID
|
|
@@ -5180,7 +5180,8 @@ class WafClient(AbstractClient):
|
|
|
5180
5180
|
|
|
5181
5181
|
|
|
5182
5182
|
def UpsertSession(self, request):
|
|
5183
|
-
r"""
|
|
5183
|
+
r"""新增或更新WAF会话(Session)定义
|
|
5184
|
+
说明:SessionID传-1时为新增,传已有ID时为更新。每个域名最多支持10条会话规则。
|
|
5184
5185
|
|
|
5185
5186
|
:param request: Request instance for UpsertSession.
|
|
5186
5187
|
:type request: :class:`tencentcloud.waf.v20180125.models.UpsertSessionRequest`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-waf
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.165
|
|
4
4
|
Summary: Tencent Cloud Waf SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.165
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.165
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.164
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|