tccli 3.0.860.1__py2.py3-none-any.whl → 3.0.861.1__py2.py3-none-any.whl

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.
@@ -168,6 +168,20 @@
168
168
  "output": "DescribeIpHitItemsResponse",
169
169
  "status": "online"
170
170
  },
171
+ "DescribePeakPoints": {
172
+ "document": "查询业务和攻击概要趋势",
173
+ "input": "DescribePeakPointsRequest",
174
+ "name": "查询业务和攻击概要趋势",
175
+ "output": "DescribePeakPointsResponse",
176
+ "status": "online"
177
+ },
178
+ "DescribePeakValue": {
179
+ "document": "获取业务和攻击概览峰值",
180
+ "input": "DescribePeakValueRequest",
181
+ "name": "获取业务和攻击概览峰值",
182
+ "output": "DescribePeakValueResponse",
183
+ "status": "online"
184
+ },
171
185
  "DescribePolicyStatus": {
172
186
  "document": "获取防护状态以及生效的实例id",
173
187
  "input": "DescribePolicyStatusRequest",
@@ -2967,6 +2981,204 @@
2967
2981
  ],
2968
2982
  "type": "object"
2969
2983
  },
2984
+ "DescribePeakPointsRequest": {
2985
+ "document": "DescribePeakPoints请求参数结构体",
2986
+ "members": [
2987
+ {
2988
+ "default": "",
2989
+ "document": "查询起始时间",
2990
+ "example": "2019-12-30 00:00:00",
2991
+ "member": "datetime",
2992
+ "name": "FromTime",
2993
+ "required": true,
2994
+ "type": "string"
2995
+ },
2996
+ {
2997
+ "default": "",
2998
+ "document": "查询终止时间",
2999
+ "example": "2019-12-30 23:59:59",
3000
+ "member": "datetime",
3001
+ "name": "ToTime",
3002
+ "required": true,
3003
+ "type": "string"
3004
+ },
3005
+ {
3006
+ "default": "",
3007
+ "document": "查询的域名,如果查询所有域名数据,该参数不填写",
3008
+ "example": "abc.qcloudwaf.com",
3009
+ "member": "string",
3010
+ "name": "Domain",
3011
+ "required": false,
3012
+ "type": "string"
3013
+ },
3014
+ {
3015
+ "default": "",
3016
+ "document": "只有两个值有效,sparta-waf,clb-waf,不传则不过滤",
3017
+ "example": "sparta-waf",
3018
+ "member": "string",
3019
+ "name": "Edition",
3020
+ "required": false,
3021
+ "type": "string"
3022
+ },
3023
+ {
3024
+ "default": "",
3025
+ "document": "WAF实例ID,不传则不过滤",
3026
+ "example": "waf_000q3t12p",
3027
+ "member": "string",
3028
+ "name": "InstanceID",
3029
+ "required": false,
3030
+ "type": "string"
3031
+ },
3032
+ {
3033
+ "default": "",
3034
+ "document": "六个值可选:\naccess-峰值qps趋势图\nbotAccess- bot峰值qps趋势图\ndown-下行峰值带宽趋势图\nup-上行峰值带宽趋势图\nattack-Web攻击总数趋势图\ncc-CC攻击总数趋势图",
3035
+ "example": "access",
3036
+ "member": "string",
3037
+ "name": "MetricName",
3038
+ "required": false,
3039
+ "type": "string"
3040
+ }
3041
+ ],
3042
+ "type": "object"
3043
+ },
3044
+ "DescribePeakPointsResponse": {
3045
+ "document": "DescribePeakPoints返回参数结构体",
3046
+ "members": [
3047
+ {
3048
+ "document": "数据点",
3049
+ "example": "无",
3050
+ "member": "PeakPointsItem",
3051
+ "name": "Points",
3052
+ "required": true,
3053
+ "type": "list",
3054
+ "value_allowed_null": false
3055
+ },
3056
+ {
3057
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
3058
+ "member": "string",
3059
+ "name": "RequestId",
3060
+ "type": "string"
3061
+ }
3062
+ ],
3063
+ "type": "object"
3064
+ },
3065
+ "DescribePeakValueRequest": {
3066
+ "document": "DescribePeakValue请求参数结构体",
3067
+ "members": [
3068
+ {
3069
+ "default": "",
3070
+ "document": "查询起始时间",
3071
+ "example": "2019-12-30 00:00:00",
3072
+ "member": "datetime",
3073
+ "name": "FromTime",
3074
+ "required": true,
3075
+ "type": "string"
3076
+ },
3077
+ {
3078
+ "default": "",
3079
+ "document": "查询结束时间",
3080
+ "example": "2019-12-30 23:59:59",
3081
+ "member": "datetime",
3082
+ "name": "ToTime",
3083
+ "required": true,
3084
+ "type": "string"
3085
+ },
3086
+ {
3087
+ "default": "",
3088
+ "document": "需要查询的域名,当前用户所有域名可以不传",
3089
+ "example": "abc.qcloudwaf.com",
3090
+ "member": "string",
3091
+ "name": "Domain",
3092
+ "required": false,
3093
+ "type": "string"
3094
+ },
3095
+ {
3096
+ "default": "",
3097
+ "document": "只有两个值有效,sparta-waf,clb-waf,不传则不过滤",
3098
+ "example": "sparta-waf",
3099
+ "member": "string",
3100
+ "name": "Edition",
3101
+ "required": false,
3102
+ "type": "string"
3103
+ },
3104
+ {
3105
+ "default": "",
3106
+ "document": "WAF实例ID,不传则不过滤",
3107
+ "example": "waf_000q3t12p",
3108
+ "member": "string",
3109
+ "name": "InstanceID",
3110
+ "required": false,
3111
+ "type": "string"
3112
+ },
3113
+ {
3114
+ "default": "",
3115
+ "document": "五个值可选:\naccess-峰值qps\ndown-下行峰值带宽\nup-上行峰值带宽\nattack-Web攻击总数\ncc-CC攻击总数趋势图",
3116
+ "example": "access",
3117
+ "member": "string",
3118
+ "name": "MetricName",
3119
+ "required": false,
3120
+ "type": "string"
3121
+ }
3122
+ ],
3123
+ "type": "object"
3124
+ },
3125
+ "DescribePeakValueResponse": {
3126
+ "document": "DescribePeakValue返回参数结构体",
3127
+ "members": [
3128
+ {
3129
+ "document": "QPS峰值",
3130
+ "example": "0",
3131
+ "member": "uint64",
3132
+ "name": "Access",
3133
+ "required": true,
3134
+ "type": "int",
3135
+ "value_allowed_null": false
3136
+ },
3137
+ {
3138
+ "document": "上行带宽峰值,单位B",
3139
+ "example": "0",
3140
+ "member": "uint64",
3141
+ "name": "Up",
3142
+ "required": true,
3143
+ "type": "int",
3144
+ "value_allowed_null": false
3145
+ },
3146
+ {
3147
+ "document": "下行带宽峰值,单位B",
3148
+ "example": "0",
3149
+ "member": "uint64",
3150
+ "name": "Down",
3151
+ "required": true,
3152
+ "type": "int",
3153
+ "value_allowed_null": false
3154
+ },
3155
+ {
3156
+ "document": "Web攻击总数",
3157
+ "example": "0",
3158
+ "member": "uint64",
3159
+ "name": "Attack",
3160
+ "required": true,
3161
+ "type": "int",
3162
+ "value_allowed_null": false
3163
+ },
3164
+ {
3165
+ "document": "CC攻击总数",
3166
+ "example": "0",
3167
+ "member": "uint64",
3168
+ "name": "Cc",
3169
+ "required": true,
3170
+ "type": "int",
3171
+ "value_allowed_null": false
3172
+ },
3173
+ {
3174
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
3175
+ "member": "string",
3176
+ "name": "RequestId",
3177
+ "type": "string"
3178
+ }
3179
+ ],
3180
+ "type": "object"
3181
+ },
2970
3182
  "DescribePolicyStatusRequest": {
2971
3183
  "document": "DescribePolicyStatus请求参数结构体",
2972
3184
  "members": [
@@ -5339,6 +5551,82 @@
5339
5551
  ],
5340
5552
  "type": "object"
5341
5553
  },
5554
+ "PeakPointsItem": {
5555
+ "document": "PeakPoints数组项",
5556
+ "members": [
5557
+ {
5558
+ "default": "",
5559
+ "document": "秒级别时间戳",
5560
+ "example": "2",
5561
+ "member": "uint64",
5562
+ "name": "Time",
5563
+ "required": true,
5564
+ "type": "int",
5565
+ "value_allowed_null": false
5566
+ },
5567
+ {
5568
+ "default": "",
5569
+ "document": "QPS",
5570
+ "example": "1",
5571
+ "member": "uint64",
5572
+ "name": "Access",
5573
+ "required": true,
5574
+ "type": "int",
5575
+ "value_allowed_null": false
5576
+ },
5577
+ {
5578
+ "default": "",
5579
+ "document": "上行带宽峰值,单位B",
5580
+ "example": "4",
5581
+ "member": "uint64",
5582
+ "name": "Up",
5583
+ "required": true,
5584
+ "type": "int",
5585
+ "value_allowed_null": false
5586
+ },
5587
+ {
5588
+ "default": "",
5589
+ "document": "下行带宽峰值,单位B",
5590
+ "example": "7",
5591
+ "member": "uint64",
5592
+ "name": "Down",
5593
+ "required": true,
5594
+ "type": "int",
5595
+ "value_allowed_null": false
5596
+ },
5597
+ {
5598
+ "default": "",
5599
+ "document": "Web攻击次数",
5600
+ "example": "8",
5601
+ "member": "uint64",
5602
+ "name": "Attack",
5603
+ "required": true,
5604
+ "type": "int",
5605
+ "value_allowed_null": false
5606
+ },
5607
+ {
5608
+ "default": "",
5609
+ "document": "CC攻击次数",
5610
+ "example": "9",
5611
+ "member": "uint64",
5612
+ "name": "Cc",
5613
+ "required": true,
5614
+ "type": "int",
5615
+ "value_allowed_null": false
5616
+ },
5617
+ {
5618
+ "default": "",
5619
+ "document": "Bot qps\n注意:此字段可能返回 null,表示取不到有效值。",
5620
+ "example": "100",
5621
+ "member": "uint64",
5622
+ "name": "BotAccess",
5623
+ "required": true,
5624
+ "type": "int",
5625
+ "value_allowed_null": true
5626
+ }
5627
+ ],
5628
+ "usage": "out"
5629
+ },
5342
5630
  "PortInfo": {
5343
5631
  "document": "防护域名端口配置信息",
5344
5632
  "members": [],
@@ -210,6 +210,22 @@
210
210
  "title": "Waf IP封堵状态查询"
211
211
  }
212
212
  ],
213
+ "DescribePeakPoints": [
214
+ {
215
+ "document": "",
216
+ "input": "POST / HTTP/1.1\nHost: waf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePeakPoints\n<公共请求参数>\n\n{\n \"FromTime\": \"2021-07-21 00:00:00\",\n \"ToTime\": \"2021-07-21 23:59:59\"\n}",
217
+ "output": "{\n \"Response\": {\n \"Points\": [\n {\n \"Time\": 1626908400,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n },\n {\n \"Time\": 1626908460,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n },\n {\n \"Time\": 1626908520,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n },\n {\n \"Time\": 1626908580,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n },\n {\n \"Time\": 1626908640,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n },\n {\n \"Time\": 1626908700,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n },\n {\n \"Time\": 1626908760,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n },\n {\n \"Time\": 1626908820,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n },\n {\n \"Time\": 1626908880,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n },\n {\n \"Time\": 1626908940,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n },\n {\n \"Time\": 1626909000,\n \"Access\": 0,\n \"BotAccess\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"Down\": 0,\n \"Up\": 0\n }\n ],\n \"RequestId\": \"fuqian-test\"\n }\n}",
218
+ "title": "查询业务和攻击概要趋势"
219
+ }
220
+ ],
221
+ "DescribePeakValue": [
222
+ {
223
+ "document": "获取业务和攻击概览峰值",
224
+ "input": "https://waf.tencentcloudapi.com/?Action=DescribePeakValue\n&FromTime=2019-12-30 00:00:00\n&ToTime=2019-12-30 23:59:59\n&Domain=abc.qcloudwaf.com\n&<公共请求参数>",
225
+ "output": "{\n \"Response\": {\n \"Access\": 0,\n \"Up\": 0,\n \"Down\": 0,\n \"Attack\": 0,\n \"Cc\": 0,\n \"RequestId\": \"xxxx-xxxx-xxxxx\"\n }\n}",
226
+ "title": "获取业务和攻击概览峰值"
227
+ }
228
+ ],
213
229
  "DescribePolicyStatus": [
214
230
  {
215
231
  "document": "",
@@ -1005,7 +1005,7 @@ def doDescribeAccessFastAnalysis(args, parsed_globals):
1005
1005
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1006
1006
 
1007
1007
 
1008
- def doModifyCustomRuleStatus(args, parsed_globals):
1008
+ def doDescribePeakPoints(args, parsed_globals):
1009
1009
  g_param = parse_global_arg(parsed_globals)
1010
1010
 
1011
1011
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1034,11 +1034,11 @@ def doModifyCustomRuleStatus(args, parsed_globals):
1034
1034
  client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
1035
1035
  client._sdkVersion += ("_CLI_" + __version__)
1036
1036
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1037
- model = models.ModifyCustomRuleStatusRequest()
1037
+ model = models.DescribePeakPointsRequest()
1038
1038
  model.from_json_string(json.dumps(args))
1039
1039
  start_time = time.time()
1040
1040
  while True:
1041
- rsp = client.ModifyCustomRuleStatus(model)
1041
+ rsp = client.DescribePeakPoints(model)
1042
1042
  result = rsp.to_json_string()
1043
1043
  try:
1044
1044
  json_obj = json.loads(result)
@@ -1317,7 +1317,7 @@ def doDescribeIpHitItems(args, parsed_globals):
1317
1317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1318
1318
 
1319
1319
 
1320
- def doSwitchDomainRules(args, parsed_globals):
1320
+ def doModifyCustomRuleStatus(args, parsed_globals):
1321
1321
  g_param = parse_global_arg(parsed_globals)
1322
1322
 
1323
1323
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1346,11 +1346,63 @@ def doSwitchDomainRules(args, parsed_globals):
1346
1346
  client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
1347
1347
  client._sdkVersion += ("_CLI_" + __version__)
1348
1348
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1349
- model = models.SwitchDomainRulesRequest()
1349
+ model = models.ModifyCustomRuleStatusRequest()
1350
1350
  model.from_json_string(json.dumps(args))
1351
1351
  start_time = time.time()
1352
1352
  while True:
1353
- rsp = client.SwitchDomainRules(model)
1353
+ rsp = client.ModifyCustomRuleStatus(model)
1354
+ result = rsp.to_json_string()
1355
+ try:
1356
+ json_obj = json.loads(result)
1357
+ except TypeError as e:
1358
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1359
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1360
+ break
1361
+ cur_time = time.time()
1362
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1363
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1364
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1365
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1366
+ else:
1367
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1368
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1369
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1370
+
1371
+
1372
+ def doDescribePeakValue(args, parsed_globals):
1373
+ g_param = parse_global_arg(parsed_globals)
1374
+
1375
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1376
+ cred = credential.CVMRoleCredential()
1377
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1378
+ cred = credential.STSAssumeRoleCredential(
1379
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1380
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1381
+ )
1382
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1383
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1384
+ else:
1385
+ cred = credential.Credential(
1386
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1387
+ )
1388
+ http_profile = HttpProfile(
1389
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1390
+ reqMethod="POST",
1391
+ endpoint=g_param[OptionsDefine.Endpoint],
1392
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1393
+ )
1394
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1395
+ if g_param[OptionsDefine.Language]:
1396
+ profile.language = g_param[OptionsDefine.Language]
1397
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1398
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
1399
+ client._sdkVersion += ("_CLI_" + __version__)
1400
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
+ model = models.DescribePeakValueRequest()
1402
+ model.from_json_string(json.dumps(args))
1403
+ start_time = time.time()
1404
+ while True:
1405
+ rsp = client.DescribePeakValue(model)
1354
1406
  result = rsp.to_json_string()
1355
1407
  try:
1356
1408
  json_obj = json.loads(result)
@@ -2201,6 +2253,58 @@ def doAddDomainWhiteRule(args, parsed_globals):
2201
2253
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2202
2254
 
2203
2255
 
2256
+ def doSwitchDomainRules(args, parsed_globals):
2257
+ g_param = parse_global_arg(parsed_globals)
2258
+
2259
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2260
+ cred = credential.CVMRoleCredential()
2261
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2262
+ cred = credential.STSAssumeRoleCredential(
2263
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2264
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2265
+ )
2266
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2267
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2268
+ else:
2269
+ cred = credential.Credential(
2270
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2271
+ )
2272
+ http_profile = HttpProfile(
2273
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2274
+ reqMethod="POST",
2275
+ endpoint=g_param[OptionsDefine.Endpoint],
2276
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2277
+ )
2278
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2279
+ if g_param[OptionsDefine.Language]:
2280
+ profile.language = g_param[OptionsDefine.Language]
2281
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2282
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
2283
+ client._sdkVersion += ("_CLI_" + __version__)
2284
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2285
+ model = models.SwitchDomainRulesRequest()
2286
+ model.from_json_string(json.dumps(args))
2287
+ start_time = time.time()
2288
+ while True:
2289
+ rsp = client.SwitchDomainRules(model)
2290
+ result = rsp.to_json_string()
2291
+ try:
2292
+ json_obj = json.loads(result)
2293
+ except TypeError as e:
2294
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2295
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2296
+ break
2297
+ cur_time = time.time()
2298
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2299
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2300
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2301
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2302
+ else:
2303
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2304
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2305
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2306
+
2307
+
2204
2308
  def doDescribeDomainWhiteRules(args, parsed_globals):
2205
2309
  g_param = parse_global_arg(parsed_globals)
2206
2310
 
@@ -2387,13 +2491,14 @@ ACTION_MAP = {
2387
2491
  "DescribeUserCdcClbWafRegions": doDescribeUserCdcClbWafRegions,
2388
2492
  "ModifyDomainWhiteRule": doModifyDomainWhiteRule,
2389
2493
  "DescribeAccessFastAnalysis": doDescribeAccessFastAnalysis,
2390
- "ModifyCustomRuleStatus": doModifyCustomRuleStatus,
2494
+ "DescribePeakPoints": doDescribePeakPoints,
2391
2495
  "DescribeWafAutoDenyStatus": doDescribeWafAutoDenyStatus,
2392
2496
  "GetAttackDownloadRecords": doGetAttackDownloadRecords,
2393
2497
  "AddCustomRule": doAddCustomRule,
2394
2498
  "DescribeIpAccessControl": doDescribeIpAccessControl,
2395
2499
  "DescribeIpHitItems": doDescribeIpHitItems,
2396
- "SwitchDomainRules": doSwitchDomainRules,
2500
+ "ModifyCustomRuleStatus": doModifyCustomRuleStatus,
2501
+ "DescribePeakValue": doDescribePeakValue,
2397
2502
  "ModifyWafThreatenIntelligence": doModifyWafThreatenIntelligence,
2398
2503
  "DescribeRuleLimit": doDescribeRuleLimit,
2399
2504
  "ModifyWafAutoDenyRules": doModifyWafAutoDenyRules,
@@ -2410,6 +2515,7 @@ ACTION_MAP = {
2410
2515
  "DescribePolicyStatus": doDescribePolicyStatus,
2411
2516
  "PostAttackDownloadTask": doPostAttackDownloadTask,
2412
2517
  "AddDomainWhiteRule": doAddDomainWhiteRule,
2518
+ "SwitchDomainRules": doSwitchDomainRules,
2413
2519
  "DescribeDomainWhiteRules": doDescribeDomainWhiteRules,
2414
2520
  "DescribeCustomWhiteRule": doDescribeCustomWhiteRule,
2415
2521
  "UpsertIpAccessControl": doUpsertIpAccessControl,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.860.1
3
+ Version: 3.0.861.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-cli.git
6
6
  Author: Tencent Cloud
@@ -21,7 +21,7 @@ Classifier: Programming Language :: Python :: 3.3
21
21
  Classifier: Programming Language :: Python :: 3.4
22
22
  Classifier: Programming Language :: Python :: 3.5
23
23
  Classifier: Programming Language :: Python :: 3.6
24
- Requires-Dist: tencentcloud-sdk-python (>=3.0.860)
24
+ Requires-Dist: tencentcloud-sdk-python (>=3.0.861)
25
25
  Requires-Dist: jmespath (==0.10.0)
26
26
  Requires-Dist: six (==1.16.0)
27
27
 
@@ -1,4 +1,4 @@
1
- tccli/__init__.py,sha256=jZLllsZPONW3dGl1MdUtqbptUcC0M9HTN9mi7oAP59I,26
1
+ tccli/__init__.py,sha256=YxcjRBOfEBx-EnWYKxmhNvNL3VgVGW7IdcZ5uo-ZOFE,26
2
2
  tccli/argparser.py,sha256=iFaw_iIMdyVwUdcv2_2OHQfe7-7j9yGzoOgXgXswoBo,5555
3
3
  tccli/argument.py,sha256=ZtVo3AySpzM-Hw6_hPdU27FjUsc8QPB2fIuLy7JSBAk,8091
4
4
  tccli/base_command.py,sha256=rFWNAwfS0GA6LLGNOM-iPI0RV81Jag5cZn536ZQN0pw,2859
@@ -307,7 +307,7 @@ tccli/services/cvm/v20170312/api.json,sha256=D-S15ApF7aUvJ_94DQ0Ukf4IRwseUhDVJzx
307
307
  tccli/services/cvm/v20170312/examples.json,sha256=d00bxv99Epluwm8I0_QFQ5JpxcFlp1yS8L98I6sJc7k,124113
308
308
  tccli/services/cwp/__init__.py,sha256=VzfiK7QzpNmTiO4zrmILRFSkKMJka8elLwzYLTjUPFw,85
309
309
  tccli/services/cwp/cwp_client.py,sha256=A6HeWQijvgNkXSCqAvayop5UZn27vlrmvA4CsUgQONs,839400
310
- tccli/services/cwp/v20180228/api.json,sha256=rkQqApCvJptUg8dyMMPB1c9d6itG6f6DdryriAZMjXg,1046877
310
+ tccli/services/cwp/v20180228/api.json,sha256=_iSn9U3Pw8FNZj7Wd9tLvNuKj8eg720r_-J61KPcawM,1046915
311
311
  tccli/services/cwp/v20180228/examples.json,sha256=6jKViSt8RQqAoy_OtQmg0YsVKVGDMn740IE1e7quQVk,285230
312
312
  tccli/services/cws/__init__.py,sha256=sBc-PJIZWjB5UHi4aHmxAAC9ahEHw5zyRGdUsH1fEoA,85
313
313
  tccli/services/cws/cws_client.py,sha256=KkwMmRa9jY3knZNx8nbnvz3aRpsYFGCD5-8obVuGaqQ,63123
@@ -412,9 +412,9 @@ tccli/services/es/es_client.py,sha256=n2J6pSE0u-ROFYTxQ0_9SU9N7QlxDlhExFYBc0IseH
412
412
  tccli/services/es/v20180416/api.json,sha256=ZkllEw0NJrhJXqGe7me5_ebKQqelyVy9erLcxn-4PZA,204775
413
413
  tccli/services/es/v20180416/examples.json,sha256=8Ycu-y_0R2cXm2U6PlimB4IUSb2zIF1FWv9mta8r4a4,42643
414
414
  tccli/services/ess/__init__.py,sha256=heBHzUKDuNxQ68yNutgyA8stCndyFWqYJqiQFozTiDs,85
415
- tccli/services/ess/ess_client.py,sha256=-oOjI2Pz0C1oSibyhNwXQAeWATuERw7qhuwEmjsdYyc,136944
416
- tccli/services/ess/v20201111/api.json,sha256=rMvoRYGsXSTH5my0an8mxfl7BxpBYz8T1NGCyl-lTtM,221506
417
- tccli/services/ess/v20201111/examples.json,sha256=6gPLgmXer--kdTdU2_2QFVvkXxBiZYDOiBvPYQugmgA,77962
415
+ tccli/services/ess/ess_client.py,sha256=soROj4ZcfcY0EM7rcX01EsjxiQMYx0JEXrKX9yAbDig,143202
416
+ tccli/services/ess/v20201111/api.json,sha256=1TmQ4sVhT-hma4E2mCcmE_cVYM3k446tCV3x8iH5qqw,225743
417
+ tccli/services/ess/v20201111/examples.json,sha256=1qvqpMH6F3Sx3M0pjBx89SMIDwS4W1ahG6UQsF6KJjw,80584
418
418
  tccli/services/essbasic/__init__.py,sha256=Uh5kuYtJvJ4F1S2w-19_B6a_JMF1ubh8Se-7p5LA0PE,95
419
419
  tccli/services/essbasic/essbasic_client.py,sha256=HlQTj3-2sc-gIuoJLBmBTbUoNiw0xo2J4YL2EmgqIgM,296583
420
420
  tccli/services/essbasic/v20201222/api.json,sha256=HEcYY208pKQB5nFuzhgBrZxbFH5EY9tedE5bBuAqjRY,194941
@@ -504,9 +504,9 @@ tccli/services/iir/v20200417/examples.json,sha256=zXKIItNi68s0CuXszpMPzC_0-i_G7y
504
504
  tccli/services/ims/__init__.py,sha256=sO7sILwkAJxSi_iUxr_upneXgs5V7jyqCExDuLT4irA,85
505
505
  tccli/services/ims/ims_client.py,sha256=NyqEWL2OQzkYODg6Xp_G9KBbc-c27oFVmkQECLsggiQ,11761
506
506
  tccli/services/ims/v20200713/api.json,sha256=PkfbTMIDO_Qg0IoNBSzsUXYiy3XMrlZ4Sx4hiVUvoiA,32674
507
- tccli/services/ims/v20200713/examples.json,sha256=TZm7SBJQcxhwk8fdDv4KT1yzoaoc6L7izGur2dnm1SM,3858
507
+ tccli/services/ims/v20200713/examples.json,sha256=JnIKXbJoEcUeHFMMQ27C0Z_1LcF3WPuOdYO8r1Ja5mo,3921
508
508
  tccli/services/ims/v20201229/api.json,sha256=uzmWv_n-g_rn33bI4LLS6Cw4fmO1OCcuXq9KozIsg8I,56998
509
- tccli/services/ims/v20201229/examples.json,sha256=9pOVz6PeQ8eoFe3W49i1EHKKIXyhnS8R4hpB5AQAtJI,3295
509
+ tccli/services/ims/v20201229/examples.json,sha256=i_sVdTM-9bLi0-LpZJHvcB4DU9fCvR-F5XAnBlPR-F8,3409
510
510
  tccli/services/intlpartnersmgt/__init__.py,sha256=E8B98vxps9z6xicQ7HBfjtRPNewdCb9ym-oSYM0a_5c,109
511
511
  tccli/services/intlpartnersmgt/intlpartnersmgt_client.py,sha256=r37h0TWnXJtBIIxp7hXfPRKBLPR7t1sVKzbhsNz06VU,39217
512
512
  tccli/services/iot/__init__.py,sha256=VWHJfpa2sPAtd3HH8b9emPlGCada72BQ9Q2rg5KxHno,85
@@ -700,9 +700,9 @@ tccli/services/rp/rp_client.py,sha256=VNo8_lAVQFTyzWHNlriCQCGTBmpC8IAmROCi4-b7Fw
700
700
  tccli/services/rp/v20200224/api.json,sha256=nfQMujjNk3f8NaBRfB1gLkmPEZtvlkboH5283h-NqpE,11103
701
701
  tccli/services/rp/v20200224/examples.json,sha256=QaAcie5M2OtqjfF8P-exCfQuWn5ICVMMwosEqrzt-Qs,717
702
702
  tccli/services/rum/__init__.py,sha256=oXPEbf66MAqanykJb83RnJ91vuz5r2Pw0_FavDgj_vc,85
703
- tccli/services/rum/rum_client.py,sha256=TulvIN9pzCYOHwNJJ62oaQnpCX_xCE5Xp4JgGraGIqA,191401
704
- tccli/services/rum/v20210622/api.json,sha256=eOCMfXE27aLjPo6_e18ZVTjGmkukkCT7FkOX2ziIaz8,211150
705
- tccli/services/rum/v20210622/examples.json,sha256=uszCjU6Q8KQwmjPpfbMbE_bxUEHs8zeSadxzBSkNP1g,46588
703
+ tccli/services/rum/rum_client.py,sha256=_CU3UCW2qZGMjj3DCejR7UJEkoA22YoArzOjFLCJ4Tw,203742
704
+ tccli/services/rum/v20210622/api.json,sha256=YrFwOOrqzaZSZpLaVSeMGjn3onKEa3qoWLplNHv3Dq4,225602
705
+ tccli/services/rum/v20210622/examples.json,sha256=NF_tmwMFnDco1CFp_edYur59MxizFXXYSJiZOZ5nPgE,57662
706
706
  tccli/services/scf/__init__.py,sha256=3faZHXJgI7IwnqjGNKVPOIQ6ZW08wo8kgTLRpok8ZMc,85
707
707
  tccli/services/scf/scf_client.py,sha256=xrpQy7HI0ZNzDgNBECMGeGjnF0JczzgxheJ7Q931kc4,142277
708
708
  tccli/services/scf/v20180416/api.json,sha256=seCTz0BiOUFlVVNOlruQh556nvwKPWOmZyk-qSJmr6c,205635
@@ -924,9 +924,9 @@ tccli/services/trdp/trdp_client.py,sha256=zmMaNBmQ6rMvoyErwZAOPgHTGQXGCfUf4tDlT_
924
924
  tccli/services/trdp/v20220726/api.json,sha256=05_s4N1rvc2LerAfZqPx0YWQI5zp4vHVgq6xC6TKVz0,28414
925
925
  tccli/services/trdp/v20220726/examples.json,sha256=P0dCwSSJOPSy3XZ8_Ueb8WsWRGNT-C02xSxpL0QbsxA,2955
926
926
  tccli/services/trp/__init__.py,sha256=T-R-mOKU-Yw3iE6Me6WIUj0jVKRMD9-sTiAfkNGZvPo,85
927
- tccli/services/trp/trp_client.py,sha256=rYyoGjRe2uWdKBaZOtO3xJzX8wCGSqzfcWoMdAVAgmE,142232
928
- tccli/services/trp/v20210515/api.json,sha256=Q-qPRKffScJ-Qw0fokIb6LMVMHXLgrByUbfmcKw4jPc,159276
929
- tccli/services/trp/v20210515/examples.json,sha256=5AsAX65DMjxtIF_14RP3eeDoyC_5AFaMonIDUd9R4NE,35589
927
+ tccli/services/trp/trp_client.py,sha256=cUuAwTwGD3e-j3lasGP8vD0MSQHa3Lo0KHXpv-ukQI4,151379
928
+ tccli/services/trp/v20210515/api.json,sha256=bYMwT0I1agG5MyODdbcsA14j61JVT6eotWXhTQHOqXY,165799
929
+ tccli/services/trp/v20210515/examples.json,sha256=zsV5u7dRpHdoZbezuuQYVadFHmgNXVO4aqIUFGOYOX4,37811
930
930
  tccli/services/trro/__init__.py,sha256=XhKF8MouhlSO5dKFVj8HOszEhQHW81KHh7uk959DhE4,87
931
931
  tccli/services/trro/trro_client.py,sha256=l7lBZeNROC0jzNG2Tuo2kVW6q3xlKfMF8cF7ObOHmJU,75369
932
932
  tccli/services/trro/v20220325/api.json,sha256=7O9brz2ZPjj5M3VKguO0EBK9Qeo20r2WS17mWlzK2vw,69455
@@ -982,9 +982,9 @@ tccli/services/vrs/vrs_client.py,sha256=ap5LHh8v9R_YPcYi1oL_1fWaWgWB9AguwgnMPBIb
982
982
  tccli/services/vrs/v20200824/api.json,sha256=Hd6jfYqzrI_8ztZjxbh_05_i8FRLCwCgGXh3V2IR1O4,16062
983
983
  tccli/services/vrs/v20200824/examples.json,sha256=BeYxa7olWn1fMlTeDYHZVu6j-N6mcxzxrInSKen9ZTI,3091
984
984
  tccli/services/waf/__init__.py,sha256=CQIYSctAXRbX8x5xidAj7CBzOVIdMOZJQ0e6ENff3HU,85
985
- tccli/services/waf/waf_client.py,sha256=yNuLWsKFJ_eXdVeRrficspoQhxYM-NKbYmmi3dd0CGY,142922
986
- tccli/services/waf/v20180125/api.json,sha256=7q_kqPaDIuL05VDt6xejw_-CyWghCsV6kPUyvAY7zvA,185208
987
- tccli/services/waf/v20180125/examples.json,sha256=wMfFxaUT-5MFTuO2fWqRj-Zr5UI92nF1AAtpZKz5TPE,77709
985
+ tccli/services/waf/waf_client.py,sha256=YFsgBs4rFNzYiWAigOsfQumzxuZfsCycgtLtcgDVoZE,149005
986
+ tccli/services/waf/v20180125/api.json,sha256=4RgLcroeS86ReOpvv5GNqoE-dJ8_Gh0CHhAIk7poi_4,193717
987
+ tccli/services/waf/v20180125/examples.json,sha256=iaoLxHbUO9h8E7nd8Qcj0Yd_RUhG4UTa3Ue1P_-K_rE,81562
988
988
  tccli/services/wav/__init__.py,sha256=iOdPQbxYh0cdKcDo0kRWmQMiCl38owcMur1PRm3R6R8,85
989
989
  tccli/services/wav/wav_client.py,sha256=YGwUq_INt2sN1ZUsQq8bW4Z19WEqWilR2MPfKk5PBeQ,78863
990
990
  tccli/services/wav/v20210129/api.json,sha256=Lipl4OmvrZBVJzsVRQaPgU9c4_87AkbJGjnijYXcGSM,150077
@@ -1019,9 +1019,9 @@ tccli/services/zj/__init__.py,sha256=JNIWOLhm9nZkkFNXz2J4MacFeVh0gxpH05Lv99NyB98
1019
1019
  tccli/services/zj/zj_client.py,sha256=csVqRzSKo0qCw53zWR5nz0Bt4ReeHCcQnXOva_xnpvs,69153
1020
1020
  tccli/services/zj/v20190121/api.json,sha256=d4VP5xLrZfFNG8OPq3cx9M23YE5l5_L0muV-e9EYeUY,70794
1021
1021
  tccli/services/zj/v20190121/examples.json,sha256=vKIKHNqLjELXPXi6gRh5INQ0X0yKATVPnL_3ak3qYh8,14226
1022
- tccli-3.0.860.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1023
- tccli-3.0.860.1.dist-info/METADATA,sha256=jl119t6Xozf5wFhYKZaMYZisticuodsD9Yob0o3TCLM,1038
1024
- tccli-3.0.860.1.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
1025
- tccli-3.0.860.1.dist-info/entry_points.txt,sha256=YAy1-SmtjTpXdLZ9IbG4-dvy-0YgudLZHkUQf1IdnA0,86
1026
- tccli-3.0.860.1.dist-info/top_level.txt,sha256=gYFrQRE3IqZ_46Syp-vkVwwvNaYEtKcM4fE_C4Puomk,6
1027
- tccli-3.0.860.1.dist-info/RECORD,,
1022
+ tccli-3.0.861.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1023
+ tccli-3.0.861.1.dist-info/METADATA,sha256=nPpMeM--c-8R-91aH1LBB7RhLvuUPTCG25rewBoPgjo,1038
1024
+ tccli-3.0.861.1.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
1025
+ tccli-3.0.861.1.dist-info/entry_points.txt,sha256=YAy1-SmtjTpXdLZ9IbG4-dvy-0YgudLZHkUQf1IdnA0,86
1026
+ tccli-3.0.861.1.dist-info/top_level.txt,sha256=gYFrQRE3IqZ_46Syp-vkVwwvNaYEtKcM4fE_C4Puomk,6
1027
+ tccli-3.0.861.1.dist-info/RECORD,,