tccli 3.0.1401.1__py2.py3-none-any.whl → 3.0.1402.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.
@@ -329,6 +329,58 @@ def doDescribeVirusSummary(args, parsed_globals):
329
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
330
 
331
331
 
332
+ def doModifyRaspRules(args, parsed_globals):
333
+ g_param = parse_global_arg(parsed_globals)
334
+
335
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
336
+ cred = credential.CVMRoleCredential()
337
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
338
+ cred = credential.STSAssumeRoleCredential(
339
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
340
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
341
+ )
342
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
343
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
344
+ else:
345
+ cred = credential.Credential(
346
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
347
+ )
348
+ http_profile = HttpProfile(
349
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
350
+ reqMethod="POST",
351
+ endpoint=g_param[OptionsDefine.Endpoint],
352
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
353
+ )
354
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
355
+ if g_param[OptionsDefine.Language]:
356
+ profile.language = g_param[OptionsDefine.Language]
357
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
358
+ client = mod.TcssClient(cred, g_param[OptionsDefine.Region], profile)
359
+ client._sdkVersion += ("_CLI_" + __version__)
360
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
+ model = models.ModifyRaspRulesRequest()
362
+ model.from_json_string(json.dumps(args))
363
+ start_time = time.time()
364
+ while True:
365
+ rsp = client.ModifyRaspRules(model)
366
+ result = rsp.to_json_string()
367
+ try:
368
+ json_obj = json.loads(result)
369
+ except TypeError as e:
370
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
371
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
372
+ break
373
+ cur_time = time.time()
374
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
375
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
376
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
377
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
378
+ else:
379
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
380
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
381
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
+
383
+
332
384
  def doCreateAbnormalProcessRulesExportJob(args, parsed_globals):
333
385
  g_param = parse_global_arg(parsed_globals)
334
386
 
@@ -4489,6 +4541,58 @@ def doDescribeAssetImageBindRuleInfo(args, parsed_globals):
4489
4541
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4490
4542
 
4491
4543
 
4544
+ def doDescribeSecEventsTendency(args, parsed_globals):
4545
+ g_param = parse_global_arg(parsed_globals)
4546
+
4547
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4548
+ cred = credential.CVMRoleCredential()
4549
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4550
+ cred = credential.STSAssumeRoleCredential(
4551
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4552
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4553
+ )
4554
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4555
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4556
+ else:
4557
+ cred = credential.Credential(
4558
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4559
+ )
4560
+ http_profile = HttpProfile(
4561
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4562
+ reqMethod="POST",
4563
+ endpoint=g_param[OptionsDefine.Endpoint],
4564
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4565
+ )
4566
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4567
+ if g_param[OptionsDefine.Language]:
4568
+ profile.language = g_param[OptionsDefine.Language]
4569
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4570
+ client = mod.TcssClient(cred, g_param[OptionsDefine.Region], profile)
4571
+ client._sdkVersion += ("_CLI_" + __version__)
4572
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4573
+ model = models.DescribeSecEventsTendencyRequest()
4574
+ model.from_json_string(json.dumps(args))
4575
+ start_time = time.time()
4576
+ while True:
4577
+ rsp = client.DescribeSecEventsTendency(model)
4578
+ result = rsp.to_json_string()
4579
+ try:
4580
+ json_obj = json.loads(result)
4581
+ except TypeError as e:
4582
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4583
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4584
+ break
4585
+ cur_time = time.time()
4586
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4587
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4588
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4589
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4590
+ else:
4591
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4592
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4593
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4594
+
4595
+
4492
4596
  def doUpdateNetworkFirewallPolicyDetail(args, parsed_globals):
4493
4597
  g_param = parse_global_arg(parsed_globals)
4494
4598
 
@@ -14057,7 +14161,7 @@ def doModifyRiskDnsEventStatus(args, parsed_globals):
14057
14161
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
14058
14162
 
14059
14163
 
14060
- def doDescribeSecLogJoinTypeList(args, parsed_globals):
14164
+ def doModifyDefendStatus(args, parsed_globals):
14061
14165
  g_param = parse_global_arg(parsed_globals)
14062
14166
 
14063
14167
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -14086,11 +14190,11 @@ def doDescribeSecLogJoinTypeList(args, parsed_globals):
14086
14190
  client = mod.TcssClient(cred, g_param[OptionsDefine.Region], profile)
14087
14191
  client._sdkVersion += ("_CLI_" + __version__)
14088
14192
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
14089
- model = models.DescribeSecLogJoinTypeListRequest()
14193
+ model = models.ModifyDefendStatusRequest()
14090
14194
  model.from_json_string(json.dumps(args))
14091
14195
  start_time = time.time()
14092
14196
  while True:
14093
- rsp = client.DescribeSecLogJoinTypeList(model)
14197
+ rsp = client.ModifyDefendStatus(model)
14094
14198
  result = rsp.to_json_string()
14095
14199
  try:
14096
14200
  json_obj = json.loads(result)
@@ -14213,6 +14317,58 @@ def doDescribeVulRegistryImageList(args, parsed_globals):
14213
14317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
14214
14318
 
14215
14319
 
14320
+ def doCreateClusterAccess(args, parsed_globals):
14321
+ g_param = parse_global_arg(parsed_globals)
14322
+
14323
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
14324
+ cred = credential.CVMRoleCredential()
14325
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
14326
+ cred = credential.STSAssumeRoleCredential(
14327
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
14328
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
14329
+ )
14330
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
14331
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
14332
+ else:
14333
+ cred = credential.Credential(
14334
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
14335
+ )
14336
+ http_profile = HttpProfile(
14337
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
14338
+ reqMethod="POST",
14339
+ endpoint=g_param[OptionsDefine.Endpoint],
14340
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
14341
+ )
14342
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
14343
+ if g_param[OptionsDefine.Language]:
14344
+ profile.language = g_param[OptionsDefine.Language]
14345
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
14346
+ client = mod.TcssClient(cred, g_param[OptionsDefine.Region], profile)
14347
+ client._sdkVersion += ("_CLI_" + __version__)
14348
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
14349
+ model = models.CreateClusterAccessRequest()
14350
+ model.from_json_string(json.dumps(args))
14351
+ start_time = time.time()
14352
+ while True:
14353
+ rsp = client.CreateClusterAccess(model)
14354
+ result = rsp.to_json_string()
14355
+ try:
14356
+ json_obj = json.loads(result)
14357
+ except TypeError as e:
14358
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
14359
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
14360
+ break
14361
+ cur_time = time.time()
14362
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
14363
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
14364
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
14365
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
14366
+ else:
14367
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
14368
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
14369
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
14370
+
14371
+
14216
14372
  def doDescribeVulLevelImageSummary(args, parsed_globals):
14217
14373
  g_param = parse_global_arg(parsed_globals)
14218
14374
 
@@ -15253,7 +15409,7 @@ def doOpenTcssTrial(args, parsed_globals):
15253
15409
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
15254
15410
 
15255
15411
 
15256
- def doDescribeRiskSyscallNames(args, parsed_globals):
15412
+ def doDescribeSearchTemplates(args, parsed_globals):
15257
15413
  g_param = parse_global_arg(parsed_globals)
15258
15414
 
15259
15415
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -15282,11 +15438,11 @@ def doDescribeRiskSyscallNames(args, parsed_globals):
15282
15438
  client = mod.TcssClient(cred, g_param[OptionsDefine.Region], profile)
15283
15439
  client._sdkVersion += ("_CLI_" + __version__)
15284
15440
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
15285
- model = models.DescribeRiskSyscallNamesRequest()
15441
+ model = models.DescribeSearchTemplatesRequest()
15286
15442
  model.from_json_string(json.dumps(args))
15287
15443
  start_time = time.time()
15288
15444
  while True:
15289
- rsp = client.DescribeRiskSyscallNames(model)
15445
+ rsp = client.DescribeSearchTemplates(model)
15290
15446
  result = rsp.to_json_string()
15291
15447
  try:
15292
15448
  json_obj = json.loads(result)
@@ -15877,7 +16033,7 @@ def doDescribeAssetImageVirusList(args, parsed_globals):
15877
16033
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
15878
16034
 
15879
16035
 
15880
- def doDescribeSecEventsTendency(args, parsed_globals):
16036
+ def doDescribeRiskSyscallNames(args, parsed_globals):
15881
16037
  g_param = parse_global_arg(parsed_globals)
15882
16038
 
15883
16039
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -15906,11 +16062,11 @@ def doDescribeSecEventsTendency(args, parsed_globals):
15906
16062
  client = mod.TcssClient(cred, g_param[OptionsDefine.Region], profile)
15907
16063
  client._sdkVersion += ("_CLI_" + __version__)
15908
16064
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
15909
- model = models.DescribeSecEventsTendencyRequest()
16065
+ model = models.DescribeRiskSyscallNamesRequest()
15910
16066
  model.from_json_string(json.dumps(args))
15911
16067
  start_time = time.time()
15912
16068
  while True:
15913
- rsp = client.DescribeSecEventsTendency(model)
16069
+ rsp = client.DescribeRiskSyscallNames(model)
15914
16070
  result = rsp.to_json_string()
15915
16071
  try:
15916
16072
  json_obj = json.loads(result)
@@ -16241,58 +16397,6 @@ def doCreateHostExportJob(args, parsed_globals):
16241
16397
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
16242
16398
 
16243
16399
 
16244
- def doDescribeSearchTemplates(args, parsed_globals):
16245
- g_param = parse_global_arg(parsed_globals)
16246
-
16247
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
16248
- cred = credential.CVMRoleCredential()
16249
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
16250
- cred = credential.STSAssumeRoleCredential(
16251
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
16252
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
16253
- )
16254
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
16255
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
16256
- else:
16257
- cred = credential.Credential(
16258
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
16259
- )
16260
- http_profile = HttpProfile(
16261
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
16262
- reqMethod="POST",
16263
- endpoint=g_param[OptionsDefine.Endpoint],
16264
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
16265
- )
16266
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
16267
- if g_param[OptionsDefine.Language]:
16268
- profile.language = g_param[OptionsDefine.Language]
16269
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
16270
- client = mod.TcssClient(cred, g_param[OptionsDefine.Region], profile)
16271
- client._sdkVersion += ("_CLI_" + __version__)
16272
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
16273
- model = models.DescribeSearchTemplatesRequest()
16274
- model.from_json_string(json.dumps(args))
16275
- start_time = time.time()
16276
- while True:
16277
- rsp = client.DescribeSearchTemplates(model)
16278
- result = rsp.to_json_string()
16279
- try:
16280
- json_obj = json.loads(result)
16281
- except TypeError as e:
16282
- json_obj = json.loads(result.decode('utf-8')) # python3.3
16283
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
16284
- break
16285
- cur_time = time.time()
16286
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
16287
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
16288
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
16289
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
16290
- else:
16291
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
16292
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
16293
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
16294
-
16295
-
16296
16400
  def doDescribeImageComponentList(args, parsed_globals):
16297
16401
  g_param = parse_global_arg(parsed_globals)
16298
16402
 
@@ -17177,7 +17281,7 @@ def doDescribeVulSummary(args, parsed_globals):
17177
17281
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
17178
17282
 
17179
17283
 
17180
- def doModifyRaspRules(args, parsed_globals):
17284
+ def doDescribeSecLogJoinTypeList(args, parsed_globals):
17181
17285
  g_param = parse_global_arg(parsed_globals)
17182
17286
 
17183
17287
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -17206,11 +17310,11 @@ def doModifyRaspRules(args, parsed_globals):
17206
17310
  client = mod.TcssClient(cred, g_param[OptionsDefine.Region], profile)
17207
17311
  client._sdkVersion += ("_CLI_" + __version__)
17208
17312
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
17209
- model = models.ModifyRaspRulesRequest()
17313
+ model = models.DescribeSecLogJoinTypeListRequest()
17210
17314
  model.from_json_string(json.dumps(args))
17211
17315
  start_time = time.time()
17212
17316
  while True:
17213
- rsp = client.ModifyRaspRules(model)
17317
+ rsp = client.DescribeSecLogJoinTypeList(model)
17214
17318
  result = rsp.to_json_string()
17215
17319
  try:
17216
17320
  json_obj = json.loads(result)
@@ -17610,6 +17714,7 @@ ACTION_MAP = {
17610
17714
  "UpdateAndPublishNetworkFirewallPolicyYamlDetail": doUpdateAndPublishNetworkFirewallPolicyYamlDetail,
17611
17715
  "DescribeVirusScanTimeoutSetting": doDescribeVirusScanTimeoutSetting,
17612
17716
  "DescribeVirusSummary": doDescribeVirusSummary,
17717
+ "ModifyRaspRules": doModifyRaspRules,
17613
17718
  "CreateAbnormalProcessRulesExportJob": doCreateAbnormalProcessRulesExportJob,
17614
17719
  "DescribeAssetHostList": doDescribeAssetHostList,
17615
17720
  "DescribeAssetImageRegistryScanStatusOneKey": doDescribeAssetImageRegistryScanStatusOneKey,
@@ -17690,6 +17795,7 @@ ACTION_MAP = {
17690
17795
  "DescribeReverseShellDetail": doDescribeReverseShellDetail,
17691
17796
  "DescribeESAggregations": doDescribeESAggregations,
17692
17797
  "DescribeAssetImageBindRuleInfo": doDescribeAssetImageBindRuleInfo,
17798
+ "DescribeSecEventsTendency": doDescribeSecEventsTendency,
17693
17799
  "UpdateNetworkFirewallPolicyDetail": doUpdateNetworkFirewallPolicyDetail,
17694
17800
  "CreateAssetImageVirusExportJob": doCreateAssetImageVirusExportJob,
17695
17801
  "DescribeNetworkFirewallPolicyDiscover": doDescribeNetworkFirewallPolicyDiscover,
@@ -17874,9 +17980,10 @@ ACTION_MAP = {
17874
17980
  "DescribeAssetImageRiskListExport": doDescribeAssetImageRiskListExport,
17875
17981
  "ModifyReverseShellStatus": doModifyReverseShellStatus,
17876
17982
  "ModifyRiskDnsEventStatus": doModifyRiskDnsEventStatus,
17877
- "DescribeSecLogJoinTypeList": doDescribeSecLogJoinTypeList,
17983
+ "ModifyDefendStatus": doModifyDefendStatus,
17878
17984
  "DescribeVulIgnoreLocalImageList": doDescribeVulIgnoreLocalImageList,
17879
17985
  "DescribeVulRegistryImageList": doDescribeVulRegistryImageList,
17986
+ "CreateClusterAccess": doCreateClusterAccess,
17880
17987
  "DescribeVulLevelImageSummary": doDescribeVulLevelImageSummary,
17881
17988
  "ModifySecLogCleanSettingInfo": doModifySecLogCleanSettingInfo,
17882
17989
  "CreateVirusScanAgain": doCreateVirusScanAgain,
@@ -17897,7 +18004,7 @@ ACTION_MAP = {
17897
18004
  "ModifyCompliancePeriodTask": doModifyCompliancePeriodTask,
17898
18005
  "DescribeAssetImageRegistrySummary": doDescribeAssetImageRegistrySummary,
17899
18006
  "OpenTcssTrial": doOpenTcssTrial,
17900
- "DescribeRiskSyscallNames": doDescribeRiskSyscallNames,
18007
+ "DescribeSearchTemplates": doDescribeSearchTemplates,
17901
18008
  "DescribeAutoAuthorizedRuleHost": doDescribeAutoAuthorizedRuleHost,
17902
18009
  "ScanComplianceAssetsByPolicyItem": doScanComplianceAssetsByPolicyItem,
17903
18010
  "DescribeImageAuthorizedInfo": doDescribeImageAuthorizedInfo,
@@ -17909,14 +18016,13 @@ ACTION_MAP = {
17909
18016
  "DescribeReverseShellWhiteListDetail": doDescribeReverseShellWhiteListDetail,
17910
18017
  "CreateAssetImageScanSetting": doCreateAssetImageScanSetting,
17911
18018
  "DescribeAssetImageVirusList": doDescribeAssetImageVirusList,
17912
- "DescribeSecEventsTendency": doDescribeSecEventsTendency,
18019
+ "DescribeRiskSyscallNames": doDescribeRiskSyscallNames,
17913
18020
  "CreateK8sApiAbnormalRuleInfo": doCreateK8sApiAbnormalRuleInfo,
17914
18021
  "DescribeVulDefenceEvent": doDescribeVulDefenceEvent,
17915
18022
  "DescribeSecLogDeliveryKafkaSetting": doDescribeSecLogDeliveryKafkaSetting,
17916
18023
  "DescribeInspectionReport": doDescribeInspectionReport,
17917
18024
  "DescribeReverseShellEvents": doDescribeReverseShellEvents,
17918
18025
  "CreateHostExportJob": doCreateHostExportJob,
17919
- "DescribeSearchTemplates": doDescribeSearchTemplates,
17920
18026
  "DescribeImageComponentList": doDescribeImageComponentList,
17921
18027
  "CheckRepeatAssetImageRegistry": doCheckRepeatAssetImageRegistry,
17922
18028
  "AddNetworkFirewallPolicyDetail": doAddNetworkFirewallPolicyDetail,
@@ -17934,7 +18040,7 @@ ACTION_MAP = {
17934
18040
  "DescribeSecLogAlertMsg": doDescribeSecLogAlertMsg,
17935
18041
  "ModifyK8sApiAbnormalRuleStatus": doModifyK8sApiAbnormalRuleStatus,
17936
18042
  "DescribeVulSummary": doDescribeVulSummary,
17937
- "ModifyRaspRules": doModifyRaspRules,
18043
+ "DescribeSecLogJoinTypeList": doDescribeSecLogJoinTypeList,
17938
18044
  "DescribeAssetImageDetail": doDescribeAssetImageDetail,
17939
18045
  "DeleteReverseShellWhiteLists": doDeleteReverseShellWhiteLists,
17940
18046
  "DescribeK8sApiAbnormalEventInfo": doDescribeK8sApiAbnormalEventInfo,
@@ -189,6 +189,13 @@
189
189
  "output": "CreateCheckComponentResponse",
190
190
  "status": "online"
191
191
  },
192
+ "CreateClusterAccess": {
193
+ "document": "创建集群接入",
194
+ "input": "CreateClusterAccessRequest",
195
+ "name": "创建集群接入",
196
+ "output": "CreateClusterAccessResponse",
197
+ "status": "online"
198
+ },
192
199
  "CreateClusterCheckTask": {
193
200
  "document": "创建集群检查任务,用户检查用户的集群相关风险项",
194
201
  "input": "CreateClusterCheckTaskRequest",
@@ -2058,6 +2065,13 @@
2058
2065
  "output": "ModifyContainerNetStatusResponse",
2059
2066
  "status": "online"
2060
2067
  },
2068
+ "ModifyDefendStatus": {
2069
+ "document": "修改防护状态",
2070
+ "input": "ModifyDefendStatusRequest",
2071
+ "name": "修改防护状态",
2072
+ "output": "ModifyDefendStatusResponse",
2073
+ "status": "online"
2074
+ },
2061
2075
  "ModifyEscapeEventStatus": {
2062
2076
  "document": "ModifyEscapeEventStatus 修改容器逃逸扫描事件状态",
2063
2077
  "input": "ModifyEscapeEventStatusRequest",
@@ -9701,6 +9715,33 @@
9701
9715
  ],
9702
9716
  "type": "object"
9703
9717
  },
9718
+ "CreateClusterAccessRequest": {
9719
+ "document": "CreateClusterAccess请求参数结构体",
9720
+ "members": [
9721
+ {
9722
+ "disabled": false,
9723
+ "document": "集群ID",
9724
+ "example": "无",
9725
+ "member": "string",
9726
+ "name": "ClusterIDs",
9727
+ "required": true,
9728
+ "type": "list"
9729
+ }
9730
+ ],
9731
+ "type": "object"
9732
+ },
9733
+ "CreateClusterAccessResponse": {
9734
+ "document": "CreateClusterAccess返回参数结构体",
9735
+ "members": [
9736
+ {
9737
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
9738
+ "member": "string",
9739
+ "name": "RequestId",
9740
+ "type": "string"
9741
+ }
9742
+ ],
9743
+ "type": "object"
9744
+ },
9704
9745
  "CreateClusterCheckTaskRequest": {
9705
9746
  "document": "CreateClusterCheckTask请求参数结构体",
9706
9747
  "members": [
@@ -35991,6 +36032,60 @@
35991
36032
  ],
35992
36033
  "type": "object"
35993
36034
  },
36035
+ "ModifyDefendStatusRequest": {
36036
+ "document": "ModifyDefendStatus请求参数结构体",
36037
+ "members": [
36038
+ {
36039
+ "disabled": false,
36040
+ "document": "开关是否开启",
36041
+ "example": "无",
36042
+ "member": "bool",
36043
+ "name": "SwitchOn",
36044
+ "required": true,
36045
+ "type": "bool"
36046
+ },
36047
+ {
36048
+ "disabled": false,
36049
+ "document": "实例类型 <li> Cluster: 集群</li> <li> Node: 节点</li>",
36050
+ "example": "无",
36051
+ "member": "string",
36052
+ "name": "InstanceType",
36053
+ "required": true,
36054
+ "type": "string"
36055
+ },
36056
+ {
36057
+ "disabled": false,
36058
+ "document": "是否是全部实例",
36059
+ "example": "无",
36060
+ "member": "bool",
36061
+ "name": "IsAll",
36062
+ "required": true,
36063
+ "type": "bool"
36064
+ },
36065
+ {
36066
+ "disabled": false,
36067
+ "document": "实例id列表",
36068
+ "example": "无",
36069
+ "member": "string",
36070
+ "name": "InstanceIDs",
36071
+ "required": false,
36072
+ "type": "list"
36073
+ }
36074
+ ],
36075
+ "type": "object"
36076
+ },
36077
+ "ModifyDefendStatusResponse": {
36078
+ "document": "ModifyDefendStatus返回参数结构体",
36079
+ "members": [
36080
+ {
36081
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
36082
+ "member": "string",
36083
+ "name": "RequestId",
36084
+ "type": "string"
36085
+ }
36086
+ ],
36087
+ "type": "object"
36088
+ },
35994
36089
  "ModifyEscapeEventStatusRequest": {
35995
36090
  "document": "ModifyEscapeEventStatus请求参数结构体",
35996
36091
  "members": [
@@ -234,6 +234,14 @@
234
234
  "title": "安装检查组件示例"
235
235
  }
236
236
  ],
237
+ "CreateClusterAccess": [
238
+ {
239
+ "document": "创建集群接入",
240
+ "input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterAccess\n<公共请求参数>\n\n{\n \"ClusterIDs\": [\n \"abc\"\n ]\n}",
241
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
242
+ "title": "创建集群接入"
243
+ }
244
+ ],
237
245
  "CreateClusterCheckTask": [
238
246
  {
239
247
  "document": "",
@@ -2442,6 +2450,14 @@
2442
2450
  "title": "隔离容器网络状态"
2443
2451
  }
2444
2452
  ],
2453
+ "ModifyDefendStatus": [
2454
+ {
2455
+ "document": "",
2456
+ "input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDefendStatus\n<公共请求参数>\n\n{\n \"SwitchOn\": true,\n \"InstanceType\": \"abc\",\n \"IsAll\": true,\n \"InstanceIDs\": [\n \"abc\"\n ]\n}",
2457
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
2458
+ "title": "修改防护状态"
2459
+ }
2460
+ ],
2445
2461
  "ModifyEscapeEventStatus": [
2446
2462
  {
2447
2463
  "document": "",
@@ -420,7 +420,7 @@
420
420
  },
421
421
  {
422
422
  "disabled": false,
423
- "document": "该字段表示使用的策略的具体编号,该字段需要先在[内容安全控制台](https://console.cloud.tencent.com/cms/clouds/manage)中配置,控制台访问地址:。\n备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。",
423
+ "document": "该字段表示使用的策略的具体编号,该字段需要先在[内容安全控制台](https://console.cloud.tencent.com/cms/clouds/manage)中配置。\n备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。",
424
424
  "example": "TencentCloud",
425
425
  "member": "string",
426
426
  "name": "BizType",
@@ -465,7 +465,7 @@
465
465
  },
466
466
  {
467
467
  "disabled": false,
468
- "document": "审核的业务类型,枚举值包括\"TEXT\"和\"TEXT_AIGC\"。其中\"TEXT\"表示传统文本审核,\"TEXT_AIGC”表示AI生成检测(生成检测能力具体能力了解可[参见文档](https://cloud.tencent.com/document/product/1124/118694))。",
468
+ "document": "审核的业务类型,枚举值包括\"TEXT\"和\"TEXT_AIGC\"。其中\"TEXT\"表示传统文本审核,\"TEXT_AIGC\"表示AI生成检测(生成检测能力具体能力了解可[参见文档](https://cloud.tencent.com/document/product/1124/118694))。",
469
469
  "example": "TEXT",
470
470
  "member": "string",
471
471
  "name": "Type",
@@ -15,7 +15,7 @@
15
15
  "status": "online"
16
16
  },
17
17
  "DescribeVRSTaskStatus": {
18
- "document": "在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。(注意:回调方式目前仅支持轻量版声音复刻)\n• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 [“声音复刻任务创建接口”](https://cloud.tencent.com/document/product/1283/90064) CallbackUrl参数说明 。\n• 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。\n• 请求方法为 HTTP POST , Content-Type为\"application/json; charset=utf-8\"\n• 签名方法参考 公共参数 中签名方法v3。",
18
+ "document": "在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。(注意:回调方式暂不支持一句话版声音复刻)\n• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 [“声音复刻任务创建接口”](https://cloud.tencent.com/document/product/1283/90064) CallbackUrl参数说明 。\n• 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。\n• 请求方法为 HTTP POST , Content-Type为\"application/json; charset=utf-8\"\n• 签名方法参考 公共参数 中签名方法v3。",
19
19
  "input": "DescribeVRSTaskStatusRequest",
20
20
  "name": "声音复刻任务结果查询接口",
21
21
  "output": "DescribeVRSTaskStatusResponse",
@@ -185,7 +185,7 @@
185
185
  },
186
186
  {
187
187
  "disabled": false,
188
- "document": "回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。(注意:回调方式目前仅支持轻量版声音复刻)\n回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{\"TaskId\":\"xxxxxxxxxxxxxx\",\"Status\":2,\"StatusStr\":\"success\",\"VoiceType\":xxxxx,\"ErrorMsg\":\"\"}",
188
+ "document": "回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。(注意:回调方式暂不支持一句话版声音复刻)\n回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{\"TaskId\":\"xxxxxxxxxxxxxx\",\"Status\":2,\"StatusStr\":\"success\",\"VoiceType\":xxxxx,\"ErrorMsg\":\"\"}",
189
189
  "example": "http://example.com/callback",
190
190
  "member": "string",
191
191
  "name": "CallbackUrl",
@@ -203,8 +203,8 @@
203
203
  },
204
204
  {
205
205
  "disabled": false,
206
- "document": "复刻类型。\n0 - 轻量版声音复刻(默认);\n5 - 一句话声音复刻。",
207
- "example": "0",
206
+ "document": "复刻类型。\n5 - 一句话声音复刻。",
207
+ "example": "5",
208
208
  "member": "int64",
209
209
  "name": "TaskType",
210
210
  "required": false,
@@ -253,7 +253,7 @@
253
253
  {
254
254
  "disabled": false,
255
255
  "document": "创建任务结果",
256
- "example": "ce68122c-0ca8-4fa6-99b1-90a28670626b",
256
+ "example": "",
257
257
  "member": "CreateVRSTaskRespData",
258
258
  "name": "Data",
259
259
  "output_required": true,
@@ -432,8 +432,8 @@
432
432
  },
433
433
  {
434
434
  "disabled": false,
435
- "document": "复刻类型。\n0 - 轻量版声音复刻(默认);\n5 - 一句话声音复刻。",
436
- "example": "0",
435
+ "document": "复刻类型。5 - 一句话声音复刻。",
436
+ "example": "5",
437
437
  "member": "int64",
438
438
  "name": "TaskType",
439
439
  "required": false,
@@ -608,8 +608,8 @@
608
608
  "members": [
609
609
  {
610
610
  "disabled": false,
611
- "document": "复刻类型。\n0 - 轻量版声音复刻(默认);\n5 - 一句话声音复刻。",
612
- "example": "0",
611
+ "document": "复刻类型。\n5 - 一句话声音复刻。",
612
+ "example": "5",
613
613
  "member": "int64",
614
614
  "name": "TaskType",
615
615
  "required": false,
@@ -827,8 +827,8 @@
827
827
  },
828
828
  {
829
829
  "disabled": false,
830
- "document": "复刻类型: 0-轻量版复刻 1-基础版复刻",
831
- "example": "0",
830
+ "document": "复刻类型: 1-基础版复刻",
831
+ "example": "1",
832
832
  "member": "int64",
833
833
  "name": "TaskType",
834
834
  "output_required": true,
@@ -20,7 +20,7 @@
20
20
  {
21
21
  "document": "声音复刻任务结果查询",
22
22
  "input": "POST / HTTP/1.1\nHost: vrs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVrsTaskStatus\n<公共请求参数>\n\n{\n \"TaskId\": \"ed461a019355c5cd1ce31ab4dfb8cb12\"\n}",
23
- "output": "{\n \"Response\": {\n \"Data\": {\n \"TaskId\": \"ed461a019355c5cd1ce31ab4dfb8cb12\",\n \"Status\": 2,\n \"StatusStr\": \"waiting in queue\",\n \"VoiceType\": 100000,\n \"ErrorMsg\": \"\"\n },\n \"RequestId\": \"63f43c3d6e30af6bd63735b0\"\n }\n}",
23
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"TaskId\": \"ce68122c-0ca8-4fa6-99b1-90a2867\",\n \"Status\": 2,\n \"StatusStr\": \"waiting in queue\",\n \"VoiceType\": 200000000,\n \"FastVoiceType\": \"WCHN-353xxxx0f3eace0c1\",\n \"ErrorMsg\": \"\"\n },\n \"RequestId\": \"63f43c3d6e30af6bd63735b0\"\n }\n}",
24
24
  "title": "声音复刻任务结果查询"
25
25
  }
26
26
  ],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1401.1
3
+ Version: 3.0.1402.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
6
6
  Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Requires-Dist: jmespath==0.10.0
15
15
  Requires-Dist: six==1.16.0
16
- Requires-Dist: tencentcloud-sdk-python>=3.0.1401
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1402
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介