tccli 3.0.1363.1__py2.py3-none-any.whl → 3.0.1365.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.
- tccli/__init__.py +1 -1
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/bi/v20220105/api.json +97 -5
- tccli/services/bi/v20220105/examples.json +5 -5
- tccli/services/cam/cam_client.py +61 -8
- tccli/services/cam/v20190116/api.json +96 -0
- tccli/services/cam/v20190116/examples.json +8 -0
- tccli/services/cdb/v20170320/api.json +35 -35
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdn/cdn_client.py +161 -1380
- tccli/services/cdn/v20180606/api.json +5302 -9471
- tccli/services/cdn/v20180606/examples.json +0 -184
- tccli/services/cfs/cfs_client.py +817 -128
- tccli/services/cfs/v20190719/api.json +2256 -848
- tccli/services/cfs/v20190719/examples.json +104 -0
- tccli/services/clb/v20180317/api.json +29 -9
- tccli/services/cls/v20201016/api.json +76 -72
- tccli/services/cls/v20201016/examples.json +3 -3
- tccli/services/ctem/v20231128/api.json +331 -97
- tccli/services/ctem/v20231128/examples.json +8 -8
- tccli/services/dlc/dlc_client.py +1622 -403
- tccli/services/dlc/v20210125/api.json +10882 -8052
- tccli/services/dlc/v20210125/examples.json +184 -0
- tccli/services/emr/v20190103/api.json +1 -1
- tccli/services/es/v20250101/api.json +38 -1
- tccli/services/ess/ess_client.py +110 -4
- tccli/services/ess/v20201111/api.json +354 -1
- tccli/services/ess/v20201111/examples.json +16 -0
- tccli/services/hunyuan/hunyuan_client.py +73 -179
- tccli/services/hunyuan/v20230901/api.json +0 -190
- tccli/services/hunyuan/v20230901/examples.json +0 -16
- tccli/services/kms/v20190118/api.json +2 -2
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lowcode/lowcode_client.py +212 -0
- tccli/services/lowcode/v20210108/api.json +239 -0
- tccli/services/lowcode/v20210108/examples.json +32 -0
- tccli/services/monitor/v20180724/api.json +2 -2
- tccli/services/mps/v20190612/api.json +5 -5
- tccli/services/mqtt/v20240516/api.json +84 -0
- tccli/services/ocr/v20181119/api.json +3 -3
- tccli/services/ssl/v20191205/api.json +38 -28
- tccli/services/teo/teo_client.py +1266 -206
- tccli/services/teo/v20220901/api.json +1818 -116
- tccli/services/teo/v20220901/examples.json +160 -0
- tccli/services/tione/v20211111/api.json +10 -0
- tccli/services/trtc/v20190722/api.json +40 -7
- tccli/services/waf/v20180125/api.json +499 -0
- tccli/services/waf/v20180125/examples.json +32 -0
- tccli/services/waf/waf_client.py +224 -12
- tccli/services/wedata/v20210820/api.json +191 -11
- tccli/services/wedata/v20210820/examples.json +10 -2
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1363.1.dist-info → tccli-3.0.1365.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1363.1.dist-info → tccli-3.0.1365.1.dist-info}/RECORD +57 -57
- {tccli-3.0.1363.1.dist-info → tccli-3.0.1365.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1363.1.dist-info → tccli-3.0.1365.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1363.1.dist-info → tccli-3.0.1365.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/waf/waf_client.py
CHANGED
@@ -69,6 +69,58 @@ def doDescribeAttackType(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
+
def doDescribePeakPoints(args, parsed_globals):
|
73
|
+
g_param = parse_global_arg(parsed_globals)
|
74
|
+
|
75
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
76
|
+
cred = credential.CVMRoleCredential()
|
77
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
78
|
+
cred = credential.STSAssumeRoleCredential(
|
79
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
80
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
81
|
+
)
|
82
|
+
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):
|
83
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
84
|
+
else:
|
85
|
+
cred = credential.Credential(
|
86
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
87
|
+
)
|
88
|
+
http_profile = HttpProfile(
|
89
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
90
|
+
reqMethod="POST",
|
91
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
92
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
93
|
+
)
|
94
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
95
|
+
if g_param[OptionsDefine.Language]:
|
96
|
+
profile.language = g_param[OptionsDefine.Language]
|
97
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
98
|
+
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
+
model = models.DescribePeakPointsRequest()
|
102
|
+
model.from_json_string(json.dumps(args))
|
103
|
+
start_time = time.time()
|
104
|
+
while True:
|
105
|
+
rsp = client.DescribePeakPoints(model)
|
106
|
+
result = rsp.to_json_string()
|
107
|
+
try:
|
108
|
+
json_obj = json.loads(result)
|
109
|
+
except TypeError as e:
|
110
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
111
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
112
|
+
break
|
113
|
+
cur_time = time.time()
|
114
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
115
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
116
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
117
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
118
|
+
else:
|
119
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
120
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
121
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
|
+
|
123
|
+
|
72
124
|
def doDescribeDomainDetailsClb(args, parsed_globals):
|
73
125
|
g_param = parse_global_arg(parsed_globals)
|
74
126
|
|
@@ -381,6 +433,58 @@ def doDeleteIpAccessControl(args, parsed_globals):
|
|
381
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
382
434
|
|
383
435
|
|
436
|
+
def doDeleteOwaspWhiteRule(args, parsed_globals):
|
437
|
+
g_param = parse_global_arg(parsed_globals)
|
438
|
+
|
439
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
440
|
+
cred = credential.CVMRoleCredential()
|
441
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
442
|
+
cred = credential.STSAssumeRoleCredential(
|
443
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
444
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
445
|
+
)
|
446
|
+
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):
|
447
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
448
|
+
else:
|
449
|
+
cred = credential.Credential(
|
450
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
451
|
+
)
|
452
|
+
http_profile = HttpProfile(
|
453
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
454
|
+
reqMethod="POST",
|
455
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
456
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
457
|
+
)
|
458
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
459
|
+
if g_param[OptionsDefine.Language]:
|
460
|
+
profile.language = g_param[OptionsDefine.Language]
|
461
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
462
|
+
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
463
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
464
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
465
|
+
model = models.DeleteOwaspWhiteRuleRequest()
|
466
|
+
model.from_json_string(json.dumps(args))
|
467
|
+
start_time = time.time()
|
468
|
+
while True:
|
469
|
+
rsp = client.DeleteOwaspWhiteRule(model)
|
470
|
+
result = rsp.to_json_string()
|
471
|
+
try:
|
472
|
+
json_obj = json.loads(result)
|
473
|
+
except TypeError as e:
|
474
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
475
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
476
|
+
break
|
477
|
+
cur_time = time.time()
|
478
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
479
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
480
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
481
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
482
|
+
else:
|
483
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
484
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
485
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
|
+
|
487
|
+
|
384
488
|
def doDescribeAreaBanAreas(args, parsed_globals):
|
385
489
|
g_param = parse_global_arg(parsed_globals)
|
386
490
|
|
@@ -1889,7 +1993,7 @@ def doDeleteAntiInfoLeakRule(args, parsed_globals):
|
|
1889
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
1994
|
|
1891
1995
|
|
1892
|
-
def
|
1996
|
+
def doCreateOwaspWhiteRule(args, parsed_globals):
|
1893
1997
|
g_param = parse_global_arg(parsed_globals)
|
1894
1998
|
|
1895
1999
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1918,11 +2022,11 @@ def doDescribePeakPoints(args, parsed_globals):
|
|
1918
2022
|
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
2023
|
client._sdkVersion += ("_CLI_" + __version__)
|
1920
2024
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
-
model = models.
|
2025
|
+
model = models.CreateOwaspWhiteRuleRequest()
|
1922
2026
|
model.from_json_string(json.dumps(args))
|
1923
2027
|
start_time = time.time()
|
1924
2028
|
while True:
|
1925
|
-
rsp = client.
|
2029
|
+
rsp = client.CreateOwaspWhiteRule(model)
|
1926
2030
|
result = rsp.to_json_string()
|
1927
2031
|
try:
|
1928
2032
|
json_obj = json.loads(result)
|
@@ -3553,6 +3657,58 @@ def doDescribeAttackOverview(args, parsed_globals):
|
|
3553
3657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
3658
|
|
3555
3659
|
|
3660
|
+
def doModifyOwaspWhiteRule(args, parsed_globals):
|
3661
|
+
g_param = parse_global_arg(parsed_globals)
|
3662
|
+
|
3663
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3664
|
+
cred = credential.CVMRoleCredential()
|
3665
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3666
|
+
cred = credential.STSAssumeRoleCredential(
|
3667
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3668
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3669
|
+
)
|
3670
|
+
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):
|
3671
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3672
|
+
else:
|
3673
|
+
cred = credential.Credential(
|
3674
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3675
|
+
)
|
3676
|
+
http_profile = HttpProfile(
|
3677
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3678
|
+
reqMethod="POST",
|
3679
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3680
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3681
|
+
)
|
3682
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3683
|
+
if g_param[OptionsDefine.Language]:
|
3684
|
+
profile.language = g_param[OptionsDefine.Language]
|
3685
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3686
|
+
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
3687
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3688
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3689
|
+
model = models.ModifyOwaspWhiteRuleRequest()
|
3690
|
+
model.from_json_string(json.dumps(args))
|
3691
|
+
start_time = time.time()
|
3692
|
+
while True:
|
3693
|
+
rsp = client.ModifyOwaspWhiteRule(model)
|
3694
|
+
result = rsp.to_json_string()
|
3695
|
+
try:
|
3696
|
+
json_obj = json.loads(result)
|
3697
|
+
except TypeError as e:
|
3698
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3699
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3700
|
+
break
|
3701
|
+
cur_time = time.time()
|
3702
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3703
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3704
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3705
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3706
|
+
else:
|
3707
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3708
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3709
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3710
|
+
|
3711
|
+
|
3556
3712
|
def doDescribeAttackWhiteRule(args, parsed_globals):
|
3557
3713
|
g_param = parse_global_arg(parsed_globals)
|
3558
3714
|
|
@@ -3761,7 +3917,7 @@ def doDescribePolicyStatus(args, parsed_globals):
|
|
3761
3917
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3762
3918
|
|
3763
3919
|
|
3764
|
-
def
|
3920
|
+
def doDescribeBotSceneList(args, parsed_globals):
|
3765
3921
|
g_param = parse_global_arg(parsed_globals)
|
3766
3922
|
|
3767
3923
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3790,11 +3946,11 @@ def doDescribeSession(args, parsed_globals):
|
|
3790
3946
|
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
3791
3947
|
client._sdkVersion += ("_CLI_" + __version__)
|
3792
3948
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3793
|
-
model = models.
|
3949
|
+
model = models.DescribeBotSceneListRequest()
|
3794
3950
|
model.from_json_string(json.dumps(args))
|
3795
3951
|
start_time = time.time()
|
3796
3952
|
while True:
|
3797
|
-
rsp = client.
|
3953
|
+
rsp = client.DescribeBotSceneList(model)
|
3798
3954
|
result = rsp.to_json_string()
|
3799
3955
|
try:
|
3800
3956
|
json_obj = json.loads(result)
|
@@ -4177,6 +4333,58 @@ def doDescribeCiphersDetail(args, parsed_globals):
|
|
4177
4333
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4178
4334
|
|
4179
4335
|
|
4336
|
+
def doDescribeOwaspWhiteRules(args, parsed_globals):
|
4337
|
+
g_param = parse_global_arg(parsed_globals)
|
4338
|
+
|
4339
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4340
|
+
cred = credential.CVMRoleCredential()
|
4341
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4342
|
+
cred = credential.STSAssumeRoleCredential(
|
4343
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4344
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4345
|
+
)
|
4346
|
+
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):
|
4347
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4348
|
+
else:
|
4349
|
+
cred = credential.Credential(
|
4350
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4351
|
+
)
|
4352
|
+
http_profile = HttpProfile(
|
4353
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4354
|
+
reqMethod="POST",
|
4355
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4356
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4357
|
+
)
|
4358
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4359
|
+
if g_param[OptionsDefine.Language]:
|
4360
|
+
profile.language = g_param[OptionsDefine.Language]
|
4361
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4362
|
+
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
4363
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4364
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4365
|
+
model = models.DescribeOwaspWhiteRulesRequest()
|
4366
|
+
model.from_json_string(json.dumps(args))
|
4367
|
+
start_time = time.time()
|
4368
|
+
while True:
|
4369
|
+
rsp = client.DescribeOwaspWhiteRules(model)
|
4370
|
+
result = rsp.to_json_string()
|
4371
|
+
try:
|
4372
|
+
json_obj = json.loads(result)
|
4373
|
+
except TypeError as e:
|
4374
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4375
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4376
|
+
break
|
4377
|
+
cur_time = time.time()
|
4378
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4379
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4380
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4381
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4382
|
+
else:
|
4383
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4384
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4385
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4386
|
+
|
4387
|
+
|
4180
4388
|
def doModifyAreaBanStatus(args, parsed_globals):
|
4181
4389
|
g_param = parse_global_arg(parsed_globals)
|
4182
4390
|
|
@@ -7193,7 +7401,7 @@ def doDescribeWafAutoDenyStatus(args, parsed_globals):
|
|
7193
7401
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7194
7402
|
|
7195
7403
|
|
7196
|
-
def
|
7404
|
+
def doDescribeSession(args, parsed_globals):
|
7197
7405
|
g_param = parse_global_arg(parsed_globals)
|
7198
7406
|
|
7199
7407
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -7222,11 +7430,11 @@ def doDescribeBotSceneList(args, parsed_globals):
|
|
7222
7430
|
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
7223
7431
|
client._sdkVersion += ("_CLI_" + __version__)
|
7224
7432
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7225
|
-
model = models.
|
7433
|
+
model = models.DescribeSessionRequest()
|
7226
7434
|
model.from_json_string(json.dumps(args))
|
7227
7435
|
start_time = time.time()
|
7228
7436
|
while True:
|
7229
|
-
rsp = client.
|
7437
|
+
rsp = client.DescribeSession(model)
|
7230
7438
|
result = rsp.to_json_string()
|
7231
7439
|
try:
|
7232
7440
|
json_obj = json.loads(result)
|
@@ -8557,12 +8765,14 @@ MODELS_MAP = {
|
|
8557
8765
|
|
8558
8766
|
ACTION_MAP = {
|
8559
8767
|
"DescribeAttackType": doDescribeAttackType,
|
8768
|
+
"DescribePeakPoints": doDescribePeakPoints,
|
8560
8769
|
"DescribeDomainDetailsClb": doDescribeDomainDetailsClb,
|
8561
8770
|
"AddAntiInfoLeakRules": doAddAntiInfoLeakRules,
|
8562
8771
|
"DescribeAccessIndex": doDescribeAccessIndex,
|
8563
8772
|
"GetAttackTotalCount": doGetAttackTotalCount,
|
8564
8773
|
"DescribeBatchIpAccessControl": doDescribeBatchIpAccessControl,
|
8565
8774
|
"DeleteIpAccessControl": doDeleteIpAccessControl,
|
8775
|
+
"DeleteOwaspWhiteRule": doDeleteOwaspWhiteRule,
|
8566
8776
|
"DescribeAreaBanAreas": doDescribeAreaBanAreas,
|
8567
8777
|
"ModifyCustomRule": doModifyCustomRule,
|
8568
8778
|
"DescribeFindDomainList": doDescribeFindDomainList,
|
@@ -8592,7 +8802,7 @@ ACTION_MAP = {
|
|
8592
8802
|
"DescribeWebshellStatus": doDescribeWebshellStatus,
|
8593
8803
|
"DescribeDomainWhiteRules": doDescribeDomainWhiteRules,
|
8594
8804
|
"DeleteAntiInfoLeakRule": doDeleteAntiInfoLeakRule,
|
8595
|
-
"
|
8805
|
+
"CreateOwaspWhiteRule": doCreateOwaspWhiteRule,
|
8596
8806
|
"ModifyAreaBanAreas": doModifyAreaBanAreas,
|
8597
8807
|
"CreateDeals": doCreateDeals,
|
8598
8808
|
"DescribeAreaBanSupportAreas": doDescribeAreaBanSupportAreas,
|
@@ -8624,11 +8834,12 @@ ACTION_MAP = {
|
|
8624
8834
|
"DeleteAttackDownloadRecord": doDeleteAttackDownloadRecord,
|
8625
8835
|
"DescribeCustomRuleList": doDescribeCustomRuleList,
|
8626
8836
|
"DescribeAttackOverview": doDescribeAttackOverview,
|
8837
|
+
"ModifyOwaspWhiteRule": doModifyOwaspWhiteRule,
|
8627
8838
|
"DescribeAttackWhiteRule": doDescribeAttackWhiteRule,
|
8628
8839
|
"DescribeHosts": doDescribeHosts,
|
8629
8840
|
"AddSpartaProtection": doAddSpartaProtection,
|
8630
8841
|
"DescribePolicyStatus": doDescribePolicyStatus,
|
8631
|
-
"
|
8842
|
+
"DescribeBotSceneList": doDescribeBotSceneList,
|
8632
8843
|
"DescribeTopAttackDomain": doDescribeTopAttackDomain,
|
8633
8844
|
"ModifyBotSceneStatus": doModifyBotSceneStatus,
|
8634
8845
|
"ModifyHost": doModifyHost,
|
@@ -8636,6 +8847,7 @@ ACTION_MAP = {
|
|
8636
8847
|
"DescribeTlsVersion": doDescribeTlsVersion,
|
8637
8848
|
"ModifyProtectionStatus": doModifyProtectionStatus,
|
8638
8849
|
"DescribeCiphersDetail": doDescribeCiphersDetail,
|
8850
|
+
"DescribeOwaspWhiteRules": doDescribeOwaspWhiteRules,
|
8639
8851
|
"ModifyAreaBanStatus": doModifyAreaBanStatus,
|
8640
8852
|
"ModifyIpAccessControl": doModifyIpAccessControl,
|
8641
8853
|
"DescribeAntiFakeRules": doDescribeAntiFakeRules,
|
@@ -8694,7 +8906,7 @@ ACTION_MAP = {
|
|
8694
8906
|
"ModifyApiAnalyzeStatus": doModifyApiAnalyzeStatus,
|
8695
8907
|
"ModifyAreaBanRule": doModifyAreaBanRule,
|
8696
8908
|
"DescribeWafAutoDenyStatus": doDescribeWafAutoDenyStatus,
|
8697
|
-
"
|
8909
|
+
"DescribeSession": doDescribeSession,
|
8698
8910
|
"ModifyCustomWhiteRuleStatus": doModifyCustomWhiteRuleStatus,
|
8699
8911
|
"DescribePorts": doDescribePorts,
|
8700
8912
|
"ModifyHostMode": doModifyHostMode,
|
@@ -1211,6 +1211,13 @@
|
|
1211
1211
|
"output": "DescribeSuccessorOpsTaskInfosResponse",
|
1212
1212
|
"status": "online"
|
1213
1213
|
},
|
1214
|
+
"DescribeSuccessorTaskInfoList": {
|
1215
|
+
"document": "获取下游任务信息批量",
|
1216
|
+
"input": "DescribeSuccessorTaskInfoListRequest",
|
1217
|
+
"name": "获取下游任务信息批量",
|
1218
|
+
"output": "DescribeSuccessorTaskInfoListResponse",
|
1219
|
+
"status": "online"
|
1220
|
+
},
|
1214
1221
|
"DescribeTableBasicInfo": {
|
1215
1222
|
"document": "元数据模型-表基础信息查询接口",
|
1216
1223
|
"input": "DescribeTableBasicInfoRequest",
|
@@ -21671,19 +21678,10 @@
|
|
21671
21678
|
"required": false,
|
21672
21679
|
"type": "int"
|
21673
21680
|
},
|
21674
|
-
{
|
21675
|
-
"disabled": false,
|
21676
|
-
"document": "租户id",
|
21677
|
-
"example": "1315051788",
|
21678
|
-
"member": "string",
|
21679
|
-
"name": "TenantId",
|
21680
|
-
"required": false,
|
21681
|
-
"type": "string"
|
21682
|
-
},
|
21683
21681
|
{
|
21684
21682
|
"disabled": false,
|
21685
21683
|
"document": "项目id",
|
21686
|
-
"example": "
|
21684
|
+
"example": "2272143094841700352",
|
21687
21685
|
"member": "string",
|
21688
21686
|
"name": "ProjectId",
|
21689
21687
|
"required": false,
|
@@ -21737,7 +21735,7 @@
|
|
21737
21735
|
{
|
21738
21736
|
"disabled": false,
|
21739
21737
|
"document": "主账号",
|
21740
|
-
"example": "
|
21738
|
+
"example": "100028448200",
|
21741
21739
|
"member": "string",
|
21742
21740
|
"name": "OnwerUid",
|
21743
21741
|
"required": false,
|
@@ -23857,6 +23855,52 @@
|
|
23857
23855
|
],
|
23858
23856
|
"type": "object"
|
23859
23857
|
},
|
23858
|
+
"DescribeSuccessorTaskInfoListRequest": {
|
23859
|
+
"document": "DescribeSuccessorTaskInfoList请求参数结构体",
|
23860
|
+
"members": [
|
23861
|
+
{
|
23862
|
+
"disabled": false,
|
23863
|
+
"document": "任务id集合",
|
23864
|
+
"example": "无",
|
23865
|
+
"member": "string",
|
23866
|
+
"name": "TaskIds",
|
23867
|
+
"required": false,
|
23868
|
+
"type": "list"
|
23869
|
+
},
|
23870
|
+
{
|
23871
|
+
"disabled": false,
|
23872
|
+
"document": "项目id",
|
23873
|
+
"example": "无",
|
23874
|
+
"member": "string",
|
23875
|
+
"name": "ProjectId",
|
23876
|
+
"required": false,
|
23877
|
+
"type": "string"
|
23878
|
+
}
|
23879
|
+
],
|
23880
|
+
"type": "object"
|
23881
|
+
},
|
23882
|
+
"DescribeSuccessorTaskInfoListResponse": {
|
23883
|
+
"document": "DescribeSuccessorTaskInfoList返回参数结构体",
|
23884
|
+
"members": [
|
23885
|
+
{
|
23886
|
+
"disabled": false,
|
23887
|
+
"document": "出参",
|
23888
|
+
"example": "无",
|
23889
|
+
"member": "SuccessorTaskInfo",
|
23890
|
+
"name": "Data",
|
23891
|
+
"output_required": false,
|
23892
|
+
"type": "list",
|
23893
|
+
"value_allowed_null": false
|
23894
|
+
},
|
23895
|
+
{
|
23896
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
23897
|
+
"member": "string",
|
23898
|
+
"name": "RequestId",
|
23899
|
+
"type": "string"
|
23900
|
+
}
|
23901
|
+
],
|
23902
|
+
"type": "object"
|
23903
|
+
},
|
23860
23904
|
"DescribeTableBasicInfoRequest": {
|
23861
23905
|
"document": "DescribeTableBasicInfo请求参数结构体",
|
23862
23906
|
"members": [
|
@@ -51658,6 +51702,142 @@
|
|
51658
51702
|
],
|
51659
51703
|
"usage": "both"
|
51660
51704
|
},
|
51705
|
+
"SuccessorTaskInfo": {
|
51706
|
+
"document": "下游任务列表",
|
51707
|
+
"members": [
|
51708
|
+
{
|
51709
|
+
"disabled": false,
|
51710
|
+
"document": "任务id",
|
51711
|
+
"example": "无",
|
51712
|
+
"member": "string",
|
51713
|
+
"name": "TaskId",
|
51714
|
+
"output_required": true,
|
51715
|
+
"type": "string",
|
51716
|
+
"value_allowed_null": false
|
51717
|
+
},
|
51718
|
+
{
|
51719
|
+
"disabled": false,
|
51720
|
+
"document": "所属工作流id",
|
51721
|
+
"example": "无",
|
51722
|
+
"member": "string",
|
51723
|
+
"name": "WorkflowId",
|
51724
|
+
"output_required": true,
|
51725
|
+
"type": "string",
|
51726
|
+
"value_allowed_null": false
|
51727
|
+
},
|
51728
|
+
{
|
51729
|
+
"disabled": false,
|
51730
|
+
"document": "任务名",
|
51731
|
+
"example": "无",
|
51732
|
+
"member": "string",
|
51733
|
+
"name": "TaskName",
|
51734
|
+
"output_required": true,
|
51735
|
+
"type": "string",
|
51736
|
+
"value_allowed_null": false
|
51737
|
+
},
|
51738
|
+
{
|
51739
|
+
"disabled": false,
|
51740
|
+
"document": "层级,0表示当前任务",
|
51741
|
+
"example": "0",
|
51742
|
+
"member": "int64",
|
51743
|
+
"name": "Layer",
|
51744
|
+
"output_required": true,
|
51745
|
+
"type": "int",
|
51746
|
+
"value_allowed_null": false
|
51747
|
+
},
|
51748
|
+
{
|
51749
|
+
"disabled": false,
|
51750
|
+
"document": "任务状态",
|
51751
|
+
"example": "Y",
|
51752
|
+
"member": "string",
|
51753
|
+
"name": "Status",
|
51754
|
+
"output_required": true,
|
51755
|
+
"type": "string",
|
51756
|
+
"value_allowed_null": false
|
51757
|
+
},
|
51758
|
+
{
|
51759
|
+
"disabled": false,
|
51760
|
+
"document": "任务类型,-1表示跨流任务",
|
51761
|
+
"example": "1",
|
51762
|
+
"member": "int64",
|
51763
|
+
"name": "TaskTypeId",
|
51764
|
+
"output_required": true,
|
51765
|
+
"type": "int",
|
51766
|
+
"value_allowed_null": false
|
51767
|
+
},
|
51768
|
+
{
|
51769
|
+
"disabled": false,
|
51770
|
+
"document": "责任人",
|
51771
|
+
"example": "无",
|
51772
|
+
"member": "string",
|
51773
|
+
"name": "InCharge",
|
51774
|
+
"output_required": true,
|
51775
|
+
"type": "string",
|
51776
|
+
"value_allowed_null": false
|
51777
|
+
},
|
51778
|
+
{
|
51779
|
+
"disabled": false,
|
51780
|
+
"document": "项目id",
|
51781
|
+
"example": "无",
|
51782
|
+
"member": "string",
|
51783
|
+
"name": "ProjectId",
|
51784
|
+
"output_required": true,
|
51785
|
+
"type": "string",
|
51786
|
+
"value_allowed_null": false
|
51787
|
+
},
|
51788
|
+
{
|
51789
|
+
"disabled": false,
|
51790
|
+
"document": "项目名称",
|
51791
|
+
"example": "无",
|
51792
|
+
"member": "string",
|
51793
|
+
"name": "ProjectName",
|
51794
|
+
"output_required": true,
|
51795
|
+
"type": "string",
|
51796
|
+
"value_allowed_null": false
|
51797
|
+
},
|
51798
|
+
{
|
51799
|
+
"disabled": false,
|
51800
|
+
"document": "所属工作流名称",
|
51801
|
+
"example": "无",
|
51802
|
+
"member": "string",
|
51803
|
+
"name": "WorkflowName",
|
51804
|
+
"output_required": true,
|
51805
|
+
"type": "string",
|
51806
|
+
"value_allowed_null": false
|
51807
|
+
},
|
51808
|
+
{
|
51809
|
+
"disabled": false,
|
51810
|
+
"document": "周期单位\n注意:此字段可能返回 null,表示取不到有效值。",
|
51811
|
+
"example": "无",
|
51812
|
+
"member": "string",
|
51813
|
+
"name": "CycleUnit",
|
51814
|
+
"output_required": false,
|
51815
|
+
"type": "string",
|
51816
|
+
"value_allowed_null": true
|
51817
|
+
},
|
51818
|
+
{
|
51819
|
+
"disabled": false,
|
51820
|
+
"document": "调度计划\n注意:此字段可能返回 null,表示取不到有效值。",
|
51821
|
+
"example": "无",
|
51822
|
+
"member": "string",
|
51823
|
+
"name": "ScheduleDesc",
|
51824
|
+
"output_required": false,
|
51825
|
+
"type": "string",
|
51826
|
+
"value_allowed_null": true
|
51827
|
+
},
|
51828
|
+
{
|
51829
|
+
"disabled": false,
|
51830
|
+
"document": "任务类型描述\n注意:此字段可能返回 null,表示取不到有效值。",
|
51831
|
+
"example": "无",
|
51832
|
+
"member": "string",
|
51833
|
+
"name": "TaskTypeDesc",
|
51834
|
+
"output_required": false,
|
51835
|
+
"type": "string",
|
51836
|
+
"value_allowed_null": true
|
51837
|
+
}
|
51838
|
+
],
|
51839
|
+
"usage": "out"
|
51840
|
+
},
|
51661
51841
|
"SuspendIntegrationTaskRequest": {
|
51662
51842
|
"document": "SuspendIntegrationTask请求参数结构体",
|
51663
51843
|
"members": [
|
@@ -1273,8 +1273,8 @@
|
|
1273
1273
|
"DescribeReportTaskList": [
|
1274
1274
|
{
|
1275
1275
|
"document": "正常调用",
|
1276
|
-
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReportTaskList\n<公共请求参数>\n\n{\n \"PageNum\": 1,\n \"PageSize\": 10,\n \"EngineTaskId\": \"
|
1277
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"PageNum\": 1,\n \"PageSize\": 10,\n \"Rows\": [\n {\n \"
|
1276
|
+
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReportTaskList\n<公共请求参数>\n\n{\n \"PageNum\": 1,\n \"PageSize\": 10,\n \"EngineTaskId\": \"xxxxxxx\"\n}",
|
1277
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"PageNum\": 1,\n \"PageSize\": 10,\n \"Rows\": [\n {\n \"EngineExeEndTime\": \"2025-01-06 18:09:25\",\n \"EngineExeStartTime\": \"2025-01-06 18:09:24\",\n \"EngineExeStatus\": \"SUCCESS\",\n \"EngineExeUser\": null,\n \"EngineName\": \"DLC_Standard_Presto\",\n \"EngineSubType\": \"DLC_Standard_Presto\",\n \"EngineTaskId\": \"xxxxxxx\",\n \"EngineType\": \"DLC\",\n \"InChargeId\": null,\n \"InstanceId\": \"xxxxxxx\",\n \"JobId\": \"xxxxxxx\",\n \"OnwerUid\": null,\n \"ProductSource\": \"DATA_EXPLORATION\",\n \"ProjectId\": \"1460947878944567296\",\n \"TaskId\": null,\n \"TaskName\": null,\n \"TaskTypeId\": null\n }\n ],\n \"TotalCount\": 1,\n \"TotalPageNumber\": 1\n },\n \"RequestId\": \"cf410329-1b40-46cb-91ea-8d6d970c819b\"\n }\n}",
|
1278
1278
|
"title": "正常调用"
|
1279
1279
|
}
|
1280
1280
|
],
|
@@ -1486,6 +1486,14 @@
|
|
1486
1486
|
"title": "获取下游任务信息"
|
1487
1487
|
}
|
1488
1488
|
],
|
1489
|
+
"DescribeSuccessorTaskInfoList": [
|
1490
|
+
{
|
1491
|
+
"document": "",
|
1492
|
+
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSuccessorTaskInfoList\n<公共请求参数>\n\n{\n \"TaskIds\": [\n \"abc\"\n ],\n \"ProjectId\": \"abc\"\n}",
|
1493
|
+
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"TaskId\": \"abc\",\n \"WorkflowId\": \"abc\",\n \"TaskName\": \"abc\",\n \"Layer\": 0,\n \"Status\": \"abc\",\n \"TaskTypeId\": 0,\n \"InCharge\": \"abc\",\n \"ProjectId\": \"abc\",\n \"ProjectName\": \"abc\",\n \"WorkflowName\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
1494
|
+
"title": "例子"
|
1495
|
+
}
|
1496
|
+
],
|
1489
1497
|
"DescribeTableBasicInfo": [
|
1490
1498
|
{
|
1491
1499
|
"document": "1",
|