tccli 3.0.1348.1__py2.py3-none-any.whl → 3.0.1350.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/__init__.py +0 -76
- tccli/services/ai3d/v20250513/api.json +1 -1
- tccli/services/aiart/v20221229/api.json +2 -2
- tccli/services/autoscaling/v20180419/api.json +11 -0
- tccli/services/batch/v20170312/api.json +44 -0
- tccli/services/cdb/v20170320/api.json +8 -8
- tccli/services/cdb/v20170320/examples.json +1 -1
- tccli/services/cdn/v20180606/api.json +5 -5
- tccli/services/cdwch/v20200915/api.json +11 -1
- tccli/services/cdwdoris/v20211228/api.json +145 -7
- tccli/services/cfg/v20210820/api.json +20 -0
- tccli/services/cfs/v20190719/api.json +10 -10
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +272 -0
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/ckafka/ckafka_client.py +0 -53
- tccli/services/ckafka/v20190819/api.json +0 -215
- tccli/services/ckafka/v20190819/examples.json +0 -8
- tccli/services/csip/csip_client.py +833 -144
- tccli/services/csip/v20221121/api.json +3304 -1436
- tccli/services/csip/v20221121/examples.json +105 -7
- tccli/services/ctem/v20231128/api.json +20 -0
- tccli/services/cvm/v20170312/api.json +3 -3
- tccli/services/cwp/v20180228/api.json +9 -0
- tccli/services/cwp/v20180228/examples.json +6 -0
- tccli/services/dts/v20211206/api.json +21 -1
- tccli/services/emr/v20190103/api.json +219 -4
- tccli/services/es/v20250101/api.json +22 -0
- tccli/services/ess/v20201111/api.json +10 -1
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/faceid/v20180301/api.json +3 -3
- tccli/services/gs/v20191118/api.json +38 -0
- tccli/services/igtm/igtm_client.py +159 -0
- tccli/services/igtm/v20231024/api.json +577 -0
- tccli/services/igtm/v20231024/examples.json +24 -0
- tccli/services/iotexplorer/v20190423/api.json +3 -3
- tccli/services/lcic/lcic_client.py +53 -0
- tccli/services/lcic/v20220817/api.json +53 -0
- tccli/services/lcic/v20220817/examples.json +8 -0
- tccli/services/live/live_client.py +224 -65
- tccli/services/live/v20180801/api.json +275 -1
- tccli/services/live/v20180801/examples.json +25 -1
- tccli/services/lke/v20231130/api.json +248 -2
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/mrs/v20200910/api.json +10 -0
- tccli/services/nlp/nlp_client.py +4 -322
- tccli/services/nlp/v20190408/api.json +0 -459
- tccli/services/nlp/v20190408/examples.json +0 -48
- tccli/services/ocr/v20181119/api.json +60 -5
- tccli/services/omics/v20221128/api.json +41 -3
- tccli/services/redis/v20180412/api.json +6 -6
- tccli/services/redis/v20180412/examples.json +1 -1
- tccli/services/ses/v20201002/api.json +100 -5
- tccli/services/tcb/v20180608/api.json +1 -1
- tccli/services/tcb/v20180608/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +19 -0
- tccli/services/teo/teo_client.py +281 -16
- tccli/services/teo/v20220901/api.json +611 -6
- tccli/services/teo/v20220901/examples.json +48 -2
- tccli/services/tione/v20211111/api.json +16 -0
- tccli/services/tke/tke_client.py +57 -4
- tccli/services/tke/v20180525/api.json +24 -24
- tccli/services/tke/v20220501/api.json +52 -0
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tmt/v20180321/api.json +4 -4
- tccli/services/tsf/v20180326/api.json +4 -4
- tccli/services/vclm/v20240523/api.json +2 -2
- tccli/services/vod/v20180717/api.json +5 -5
- tccli/services/vod/v20180717/examples.json +9 -9
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/vrs/v20200824/api.json +1 -1
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1350.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1350.1.dist-info}/RECORD +78 -180
- tccli/services/cis/__init__.py +0 -4
- tccli/services/cis/cis_client.py +0 -525
- tccli/services/cis/v20180408/api.json +0 -737
- tccli/services/cis/v20180408/examples.json +0 -93
- tccli/services/dataintegration/__init__.py +0 -4
- tccli/services/dataintegration/dataintegration_client.py +0 -207
- tccli/services/dataintegration/v20220613/api.json +0 -87
- tccli/services/dataintegration/v20220613/examples.json +0 -13
- tccli/services/dtf/__init__.py +0 -4
- tccli/services/dtf/dtf_client.py +0 -207
- tccli/services/dtf/v20200506/api.json +0 -274
- tccli/services/dtf/v20200506/examples.json +0 -13
- tccli/services/gpm/__init__.py +0 -4
- tccli/services/gpm/gpm_client.py +0 -1108
- tccli/services/gpm/v20200820/api.json +0 -1959
- tccli/services/gpm/v20200820/examples.json +0 -149
- tccli/services/gse/__init__.py +0 -4
- tccli/services/gse/gse_client.py +0 -4076
- tccli/services/gse/v20191112/api.json +0 -7095
- tccli/services/gse/v20191112/examples.json +0 -615
- tccli/services/iecp/__init__.py +0 -4
- tccli/services/iecp/iecp_client.py +0 -4500
- tccli/services/iecp/v20210914/api.json +0 -9770
- tccli/services/iecp/v20210914/examples.json +0 -691
- tccli/services/iir/__init__.py +0 -4
- tccli/services/iir/iir_client.py +0 -207
- tccli/services/iir/v20200417/api.json +0 -204
- tccli/services/iir/v20200417/examples.json +0 -13
- tccli/services/iottid/__init__.py +0 -4
- tccli/services/iottid/iottid_client.py +0 -631
- tccli/services/iottid/v20190411/api.json +0 -553
- tccli/services/iottid/v20190411/examples.json +0 -95
- tccli/services/mgobe/__init__.py +0 -4
- tccli/services/mgobe/mgobe_client.py +0 -530
- tccli/services/mgobe/v20190929/api.json +0 -52
- tccli/services/mgobe/v20190929/examples.json +0 -13
- tccli/services/mgobe/v20201014/api.json +0 -671
- tccli/services/mgobe/v20201014/examples.json +0 -61
- tccli/services/mvj/__init__.py +0 -4
- tccli/services/mvj/mvj_client.py +0 -207
- tccli/services/mvj/v20190926/api.json +0 -123
- tccli/services/mvj/v20190926/examples.json +0 -19
- tccli/services/pds/__init__.py +0 -4
- tccli/services/pds/pds_client.py +0 -260
- tccli/services/pds/v20210701/api.json +0 -193
- tccli/services/pds/v20210701/examples.json +0 -21
- tccli/services/smpn/__init__.py +0 -4
- tccli/services/smpn/smpn_client.py +0 -260
- tccli/services/smpn/v20190822/api.json +0 -191
- tccli/services/smpn/v20190822/examples.json +0 -21
- tccli/services/solar/__init__.py +0 -4
- tccli/services/solar/solar_client.py +0 -1055
- tccli/services/solar/v20181011/api.json +0 -1760
- tccli/services/solar/v20181011/examples.json +0 -125
- tccli/services/tan/__init__.py +0 -4
- tccli/services/tan/tan_client.py +0 -207
- tccli/services/tan/v20220420/api.json +0 -65
- tccli/services/tan/v20220420/examples.json +0 -19
- tccli/services/tav/__init__.py +0 -4
- tccli/services/tav/tav_client.py +0 -366
- tccli/services/tav/v20190118/api.json +0 -262
- tccli/services/tav/v20190118/examples.json +0 -37
- tccli/services/tbm/__init__.py +0 -4
- tccli/services/tbm/tbm_client.py +0 -631
- tccli/services/tbm/v20180129/api.json +0 -1037
- tccli/services/tbm/v20180129/examples.json +0 -77
- tccli/services/tcex/__init__.py +0 -4
- tccli/services/tcex/tcex_client.py +0 -260
- tccli/services/tcex/v20200727/api.json +0 -158
- tccli/services/tcex/v20200727/examples.json +0 -21
- tccli/services/tci/__init__.py +0 -4
- tccli/services/tci/tci_client.py +0 -2327
- tccli/services/tci/v20190318/api.json +0 -4958
- tccli/services/tci/v20190318/examples.json +0 -333
- tccli/services/tic/__init__.py +0 -4
- tccli/services/tic/tic_client.py +0 -843
- tccli/services/tic/v20201117/api.json +0 -1067
- tccli/services/tic/v20201117/examples.json +0 -121
- tccli/services/ticm/__init__.py +0 -4
- tccli/services/ticm/ticm_client.py +0 -313
- tccli/services/ticm/v20181127/api.json +0 -1391
- tccli/services/ticm/v20181127/examples.json +0 -53
- tccli/services/tics/__init__.py +0 -4
- tccli/services/tics/tics_client.py +0 -366
- tccli/services/tics/v20181115/api.json +0 -694
- tccli/services/tics/v20181115/examples.json +0 -37
- tccli/services/tiems/__init__.py +0 -4
- tccli/services/tiems/tiems_client.py +0 -1479
- tccli/services/tiems/v20190416/api.json +0 -3144
- tccli/services/tiems/v20190416/examples.json +0 -217
- tccli/services/trdp/__init__.py +0 -4
- tccli/services/trdp/trdp_client.py +0 -207
- tccli/services/trdp/v20220726/api.json +0 -843
- tccli/services/trdp/v20220726/examples.json +0 -13
- tccli/services/ump/__init__.py +0 -4
- tccli/services/ump/ump_client.py +0 -1055
- tccli/services/ump/v20200918/api.json +0 -2168
- tccli/services/ump/v20200918/examples.json +0 -141
- tccli/services/youmall/__init__.py +0 -4
- tccli/services/youmall/v20180228/api.json +0 -3572
- tccli/services/youmall/v20180228/examples.json +0 -313
- tccli/services/youmall/youmall_client.py +0 -1797
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1350.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1350.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1350.1.dist-info}/license_files/LICENSE +0 -0
@@ -69,6 +69,58 @@ def doDescribeUebaRule(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
+
def doDescribeExposures(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.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
+
model = models.DescribeExposuresRequest()
|
102
|
+
model.from_json_string(json.dumps(args))
|
103
|
+
start_time = time.time()
|
104
|
+
while True:
|
105
|
+
rsp = client.DescribeExposures(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 doDeleteDomainAndIp(args, parsed_globals):
|
73
125
|
g_param = parse_global_arg(parsed_globals)
|
74
126
|
|
@@ -121,6 +173,58 @@ def doDeleteDomainAndIp(args, parsed_globals):
|
|
121
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
174
|
|
123
175
|
|
176
|
+
def doCreateAccessKeySyncTask(args, parsed_globals):
|
177
|
+
g_param = parse_global_arg(parsed_globals)
|
178
|
+
|
179
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
180
|
+
cred = credential.CVMRoleCredential()
|
181
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
182
|
+
cred = credential.STSAssumeRoleCredential(
|
183
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
184
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
185
|
+
)
|
186
|
+
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):
|
187
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
188
|
+
else:
|
189
|
+
cred = credential.Credential(
|
190
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
191
|
+
)
|
192
|
+
http_profile = HttpProfile(
|
193
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
194
|
+
reqMethod="POST",
|
195
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
196
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
197
|
+
)
|
198
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
199
|
+
if g_param[OptionsDefine.Language]:
|
200
|
+
profile.language = g_param[OptionsDefine.Language]
|
201
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
202
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
203
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
204
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
+
model = models.CreateAccessKeySyncTaskRequest()
|
206
|
+
model.from_json_string(json.dumps(args))
|
207
|
+
start_time = time.time()
|
208
|
+
while True:
|
209
|
+
rsp = client.CreateAccessKeySyncTask(model)
|
210
|
+
result = rsp.to_json_string()
|
211
|
+
try:
|
212
|
+
json_obj = json.loads(result)
|
213
|
+
except TypeError as e:
|
214
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
215
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
216
|
+
break
|
217
|
+
cur_time = time.time()
|
218
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
219
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
220
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
221
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
222
|
+
else:
|
223
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
224
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
225
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
|
+
|
227
|
+
|
124
228
|
def doDescribeRiskRuleDetail(args, parsed_globals):
|
125
229
|
g_param = parse_global_arg(parsed_globals)
|
126
230
|
|
@@ -277,6 +381,58 @@ def doDescribeNICAssets(args, parsed_globals):
|
|
277
381
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
382
|
|
279
383
|
|
384
|
+
def doDescribeAbnormalCallRecord(args, parsed_globals):
|
385
|
+
g_param = parse_global_arg(parsed_globals)
|
386
|
+
|
387
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
388
|
+
cred = credential.CVMRoleCredential()
|
389
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
390
|
+
cred = credential.STSAssumeRoleCredential(
|
391
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
392
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
393
|
+
)
|
394
|
+
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):
|
395
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
396
|
+
else:
|
397
|
+
cred = credential.Credential(
|
398
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
399
|
+
)
|
400
|
+
http_profile = HttpProfile(
|
401
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
402
|
+
reqMethod="POST",
|
403
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
404
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
405
|
+
)
|
406
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
407
|
+
if g_param[OptionsDefine.Language]:
|
408
|
+
profile.language = g_param[OptionsDefine.Language]
|
409
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
410
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
411
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
412
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
413
|
+
model = models.DescribeAbnormalCallRecordRequest()
|
414
|
+
model.from_json_string(json.dumps(args))
|
415
|
+
start_time = time.time()
|
416
|
+
while True:
|
417
|
+
rsp = client.DescribeAbnormalCallRecord(model)
|
418
|
+
result = rsp.to_json_string()
|
419
|
+
try:
|
420
|
+
json_obj = json.loads(result)
|
421
|
+
except TypeError as e:
|
422
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
423
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
424
|
+
break
|
425
|
+
cur_time = time.time()
|
426
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
427
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
428
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
429
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
430
|
+
else:
|
431
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
432
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
433
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
434
|
+
|
435
|
+
|
280
436
|
def doDescribeRiskCenterVULViewVULRiskList(args, parsed_globals):
|
281
437
|
g_param = parse_global_arg(parsed_globals)
|
282
438
|
|
@@ -589,6 +745,58 @@ def doDescribeOtherCloudAssets(args, parsed_globals):
|
|
589
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
590
746
|
|
591
747
|
|
748
|
+
def doDescribeAccessKeyUserList(args, parsed_globals):
|
749
|
+
g_param = parse_global_arg(parsed_globals)
|
750
|
+
|
751
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
752
|
+
cred = credential.CVMRoleCredential()
|
753
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
754
|
+
cred = credential.STSAssumeRoleCredential(
|
755
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
756
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
757
|
+
)
|
758
|
+
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):
|
759
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
760
|
+
else:
|
761
|
+
cred = credential.Credential(
|
762
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
763
|
+
)
|
764
|
+
http_profile = HttpProfile(
|
765
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
766
|
+
reqMethod="POST",
|
767
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
768
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
769
|
+
)
|
770
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
771
|
+
if g_param[OptionsDefine.Language]:
|
772
|
+
profile.language = g_param[OptionsDefine.Language]
|
773
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
774
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
775
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
776
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
777
|
+
model = models.DescribeAccessKeyUserListRequest()
|
778
|
+
model.from_json_string(json.dumps(args))
|
779
|
+
start_time = time.time()
|
780
|
+
while True:
|
781
|
+
rsp = client.DescribeAccessKeyUserList(model)
|
782
|
+
result = rsp.to_json_string()
|
783
|
+
try:
|
784
|
+
json_obj = json.loads(result)
|
785
|
+
except TypeError as e:
|
786
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
787
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
788
|
+
break
|
789
|
+
cur_time = time.time()
|
790
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
791
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
792
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
793
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
794
|
+
else:
|
795
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
796
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
797
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
|
+
|
799
|
+
|
592
800
|
def doDescribeListenerList(args, parsed_globals):
|
593
801
|
g_param = parse_global_arg(parsed_globals)
|
594
802
|
|
@@ -641,7 +849,7 @@ def doDescribeListenerList(args, parsed_globals):
|
|
641
849
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
850
|
|
643
851
|
|
644
|
-
def
|
852
|
+
def doDescribeAccessKeyUserDetail(args, parsed_globals):
|
645
853
|
g_param = parse_global_arg(parsed_globals)
|
646
854
|
|
647
855
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -670,11 +878,11 @@ def doDescribeOrganizationUserInfo(args, parsed_globals):
|
|
670
878
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
671
879
|
client._sdkVersion += ("_CLI_" + __version__)
|
672
880
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
-
model = models.
|
881
|
+
model = models.DescribeAccessKeyUserDetailRequest()
|
674
882
|
model.from_json_string(json.dumps(args))
|
675
883
|
start_time = time.time()
|
676
884
|
while True:
|
677
|
-
rsp = client.
|
885
|
+
rsp = client.DescribeAccessKeyUserDetail(model)
|
678
886
|
result = rsp.to_json_string()
|
679
887
|
try:
|
680
888
|
json_obj = json.loads(result)
|
@@ -1090,7 +1298,475 @@ def doDescribeCVMAssets(args, parsed_globals):
|
|
1090
1298
|
model.from_json_string(json.dumps(args))
|
1091
1299
|
start_time = time.time()
|
1092
1300
|
while True:
|
1093
|
-
rsp = client.DescribeCVMAssets(model)
|
1301
|
+
rsp = client.DescribeCVMAssets(model)
|
1302
|
+
result = rsp.to_json_string()
|
1303
|
+
try:
|
1304
|
+
json_obj = json.loads(result)
|
1305
|
+
except TypeError as e:
|
1306
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1307
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1308
|
+
break
|
1309
|
+
cur_time = time.time()
|
1310
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1311
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1312
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1313
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1314
|
+
else:
|
1315
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1316
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1317
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
|
+
|
1319
|
+
|
1320
|
+
def doModifyRiskCenterScanTask(args, parsed_globals):
|
1321
|
+
g_param = parse_global_arg(parsed_globals)
|
1322
|
+
|
1323
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1324
|
+
cred = credential.CVMRoleCredential()
|
1325
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1326
|
+
cred = credential.STSAssumeRoleCredential(
|
1327
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1328
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1329
|
+
)
|
1330
|
+
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):
|
1331
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1332
|
+
else:
|
1333
|
+
cred = credential.Credential(
|
1334
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1335
|
+
)
|
1336
|
+
http_profile = HttpProfile(
|
1337
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1338
|
+
reqMethod="POST",
|
1339
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1340
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1341
|
+
)
|
1342
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1343
|
+
if g_param[OptionsDefine.Language]:
|
1344
|
+
profile.language = g_param[OptionsDefine.Language]
|
1345
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1346
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
+
model = models.ModifyRiskCenterScanTaskRequest()
|
1350
|
+
model.from_json_string(json.dumps(args))
|
1351
|
+
start_time = time.time()
|
1352
|
+
while True:
|
1353
|
+
rsp = client.ModifyRiskCenterScanTask(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 doDescribeOrganizationInfo(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('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1381
|
+
)
|
1382
|
+
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):
|
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.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1400
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
+
model = models.DescribeOrganizationInfoRequest()
|
1402
|
+
model.from_json_string(json.dumps(args))
|
1403
|
+
start_time = time.time()
|
1404
|
+
while True:
|
1405
|
+
rsp = client.DescribeOrganizationInfo(model)
|
1406
|
+
result = rsp.to_json_string()
|
1407
|
+
try:
|
1408
|
+
json_obj = json.loads(result)
|
1409
|
+
except TypeError as e:
|
1410
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1411
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1412
|
+
break
|
1413
|
+
cur_time = time.time()
|
1414
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1415
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1416
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1417
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1418
|
+
else:
|
1419
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1420
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1421
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
|
+
|
1423
|
+
|
1424
|
+
def doDescribeCallRecord(args, parsed_globals):
|
1425
|
+
g_param = parse_global_arg(parsed_globals)
|
1426
|
+
|
1427
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1428
|
+
cred = credential.CVMRoleCredential()
|
1429
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1430
|
+
cred = credential.STSAssumeRoleCredential(
|
1431
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1432
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1433
|
+
)
|
1434
|
+
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):
|
1435
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1436
|
+
else:
|
1437
|
+
cred = credential.Credential(
|
1438
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1439
|
+
)
|
1440
|
+
http_profile = HttpProfile(
|
1441
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1442
|
+
reqMethod="POST",
|
1443
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1444
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1445
|
+
)
|
1446
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1447
|
+
if g_param[OptionsDefine.Language]:
|
1448
|
+
profile.language = g_param[OptionsDefine.Language]
|
1449
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1450
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1452
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
+
model = models.DescribeCallRecordRequest()
|
1454
|
+
model.from_json_string(json.dumps(args))
|
1455
|
+
start_time = time.time()
|
1456
|
+
while True:
|
1457
|
+
rsp = client.DescribeCallRecord(model)
|
1458
|
+
result = rsp.to_json_string()
|
1459
|
+
try:
|
1460
|
+
json_obj = json.loads(result)
|
1461
|
+
except TypeError as e:
|
1462
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1463
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1464
|
+
break
|
1465
|
+
cur_time = time.time()
|
1466
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1467
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1468
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1469
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1470
|
+
else:
|
1471
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1472
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1473
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
|
+
|
1475
|
+
|
1476
|
+
def doDescribeVULRiskDetail(args, parsed_globals):
|
1477
|
+
g_param = parse_global_arg(parsed_globals)
|
1478
|
+
|
1479
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1480
|
+
cred = credential.CVMRoleCredential()
|
1481
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1482
|
+
cred = credential.STSAssumeRoleCredential(
|
1483
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1484
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1485
|
+
)
|
1486
|
+
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):
|
1487
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1488
|
+
else:
|
1489
|
+
cred = credential.Credential(
|
1490
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1491
|
+
)
|
1492
|
+
http_profile = HttpProfile(
|
1493
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1494
|
+
reqMethod="POST",
|
1495
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1496
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1497
|
+
)
|
1498
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1499
|
+
if g_param[OptionsDefine.Language]:
|
1500
|
+
profile.language = g_param[OptionsDefine.Language]
|
1501
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1502
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1504
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
+
model = models.DescribeVULRiskDetailRequest()
|
1506
|
+
model.from_json_string(json.dumps(args))
|
1507
|
+
start_time = time.time()
|
1508
|
+
while True:
|
1509
|
+
rsp = client.DescribeVULRiskDetail(model)
|
1510
|
+
result = rsp.to_json_string()
|
1511
|
+
try:
|
1512
|
+
json_obj = json.loads(result)
|
1513
|
+
except TypeError as e:
|
1514
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1515
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1516
|
+
break
|
1517
|
+
cur_time = time.time()
|
1518
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1519
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1520
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1521
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1522
|
+
else:
|
1523
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1524
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1525
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
|
+
|
1527
|
+
|
1528
|
+
def doDescribeCheckViewRisks(args, parsed_globals):
|
1529
|
+
g_param = parse_global_arg(parsed_globals)
|
1530
|
+
|
1531
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1532
|
+
cred = credential.CVMRoleCredential()
|
1533
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1534
|
+
cred = credential.STSAssumeRoleCredential(
|
1535
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1536
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1537
|
+
)
|
1538
|
+
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):
|
1539
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1540
|
+
else:
|
1541
|
+
cred = credential.Credential(
|
1542
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1543
|
+
)
|
1544
|
+
http_profile = HttpProfile(
|
1545
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1546
|
+
reqMethod="POST",
|
1547
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1548
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1549
|
+
)
|
1550
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1551
|
+
if g_param[OptionsDefine.Language]:
|
1552
|
+
profile.language = g_param[OptionsDefine.Language]
|
1553
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1554
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1555
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1556
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1557
|
+
model = models.DescribeCheckViewRisksRequest()
|
1558
|
+
model.from_json_string(json.dumps(args))
|
1559
|
+
start_time = time.time()
|
1560
|
+
while True:
|
1561
|
+
rsp = client.DescribeCheckViewRisks(model)
|
1562
|
+
result = rsp.to_json_string()
|
1563
|
+
try:
|
1564
|
+
json_obj = json.loads(result)
|
1565
|
+
except TypeError as e:
|
1566
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1567
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1568
|
+
break
|
1569
|
+
cur_time = time.time()
|
1570
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1571
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1572
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1573
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1574
|
+
else:
|
1575
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1576
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1577
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
|
+
|
1579
|
+
|
1580
|
+
def doDescribeRiskCenterWebsiteRiskList(args, parsed_globals):
|
1581
|
+
g_param = parse_global_arg(parsed_globals)
|
1582
|
+
|
1583
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1584
|
+
cred = credential.CVMRoleCredential()
|
1585
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1586
|
+
cred = credential.STSAssumeRoleCredential(
|
1587
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1588
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1589
|
+
)
|
1590
|
+
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):
|
1591
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1592
|
+
else:
|
1593
|
+
cred = credential.Credential(
|
1594
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1595
|
+
)
|
1596
|
+
http_profile = HttpProfile(
|
1597
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1598
|
+
reqMethod="POST",
|
1599
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1600
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1601
|
+
)
|
1602
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1603
|
+
if g_param[OptionsDefine.Language]:
|
1604
|
+
profile.language = g_param[OptionsDefine.Language]
|
1605
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1606
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1607
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1608
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1609
|
+
model = models.DescribeRiskCenterWebsiteRiskListRequest()
|
1610
|
+
model.from_json_string(json.dumps(args))
|
1611
|
+
start_time = time.time()
|
1612
|
+
while True:
|
1613
|
+
rsp = client.DescribeRiskCenterWebsiteRiskList(model)
|
1614
|
+
result = rsp.to_json_string()
|
1615
|
+
try:
|
1616
|
+
json_obj = json.loads(result)
|
1617
|
+
except TypeError as e:
|
1618
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1619
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1620
|
+
break
|
1621
|
+
cur_time = time.time()
|
1622
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1623
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1624
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1625
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1626
|
+
else:
|
1627
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1628
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1629
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
|
+
|
1631
|
+
|
1632
|
+
def doDescribeCFWAssetStatistics(args, parsed_globals):
|
1633
|
+
g_param = parse_global_arg(parsed_globals)
|
1634
|
+
|
1635
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1636
|
+
cred = credential.CVMRoleCredential()
|
1637
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1638
|
+
cred = credential.STSAssumeRoleCredential(
|
1639
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1640
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1641
|
+
)
|
1642
|
+
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):
|
1643
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1644
|
+
else:
|
1645
|
+
cred = credential.Credential(
|
1646
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1647
|
+
)
|
1648
|
+
http_profile = HttpProfile(
|
1649
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1650
|
+
reqMethod="POST",
|
1651
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1652
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1653
|
+
)
|
1654
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1655
|
+
if g_param[OptionsDefine.Language]:
|
1656
|
+
profile.language = g_param[OptionsDefine.Language]
|
1657
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1658
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1659
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1660
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1661
|
+
model = models.DescribeCFWAssetStatisticsRequest()
|
1662
|
+
model.from_json_string(json.dumps(args))
|
1663
|
+
start_time = time.time()
|
1664
|
+
while True:
|
1665
|
+
rsp = client.DescribeCFWAssetStatistics(model)
|
1666
|
+
result = rsp.to_json_string()
|
1667
|
+
try:
|
1668
|
+
json_obj = json.loads(result)
|
1669
|
+
except TypeError as e:
|
1670
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1671
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1672
|
+
break
|
1673
|
+
cur_time = time.time()
|
1674
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1675
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1676
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1677
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1678
|
+
else:
|
1679
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1680
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1681
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
|
+
|
1683
|
+
|
1684
|
+
def doStopRiskCenterTask(args, parsed_globals):
|
1685
|
+
g_param = parse_global_arg(parsed_globals)
|
1686
|
+
|
1687
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1688
|
+
cred = credential.CVMRoleCredential()
|
1689
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1690
|
+
cred = credential.STSAssumeRoleCredential(
|
1691
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1692
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1693
|
+
)
|
1694
|
+
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):
|
1695
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1696
|
+
else:
|
1697
|
+
cred = credential.Credential(
|
1698
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1699
|
+
)
|
1700
|
+
http_profile = HttpProfile(
|
1701
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1702
|
+
reqMethod="POST",
|
1703
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1704
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1705
|
+
)
|
1706
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1707
|
+
if g_param[OptionsDefine.Language]:
|
1708
|
+
profile.language = g_param[OptionsDefine.Language]
|
1709
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1710
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1712
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
+
model = models.StopRiskCenterTaskRequest()
|
1714
|
+
model.from_json_string(json.dumps(args))
|
1715
|
+
start_time = time.time()
|
1716
|
+
while True:
|
1717
|
+
rsp = client.StopRiskCenterTask(model)
|
1718
|
+
result = rsp.to_json_string()
|
1719
|
+
try:
|
1720
|
+
json_obj = json.loads(result)
|
1721
|
+
except TypeError as e:
|
1722
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1723
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1724
|
+
break
|
1725
|
+
cur_time = time.time()
|
1726
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1727
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1728
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1729
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1730
|
+
else:
|
1731
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1732
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1733
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
|
+
|
1735
|
+
|
1736
|
+
def doDescribeVulRiskList(args, parsed_globals):
|
1737
|
+
g_param = parse_global_arg(parsed_globals)
|
1738
|
+
|
1739
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1740
|
+
cred = credential.CVMRoleCredential()
|
1741
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1742
|
+
cred = credential.STSAssumeRoleCredential(
|
1743
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1744
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1745
|
+
)
|
1746
|
+
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):
|
1747
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1748
|
+
else:
|
1749
|
+
cred = credential.Credential(
|
1750
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1751
|
+
)
|
1752
|
+
http_profile = HttpProfile(
|
1753
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1754
|
+
reqMethod="POST",
|
1755
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1756
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1757
|
+
)
|
1758
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1759
|
+
if g_param[OptionsDefine.Language]:
|
1760
|
+
profile.language = g_param[OptionsDefine.Language]
|
1761
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1762
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1764
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
+
model = models.DescribeVulRiskListRequest()
|
1766
|
+
model.from_json_string(json.dumps(args))
|
1767
|
+
start_time = time.time()
|
1768
|
+
while True:
|
1769
|
+
rsp = client.DescribeVulRiskList(model)
|
1094
1770
|
result = rsp.to_json_string()
|
1095
1771
|
try:
|
1096
1772
|
json_obj = json.loads(result)
|
@@ -1109,7 +1785,7 @@ def doDescribeCVMAssets(args, parsed_globals):
|
|
1109
1785
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1110
1786
|
|
1111
1787
|
|
1112
|
-
def
|
1788
|
+
def doDescribeAssetProcessList(args, parsed_globals):
|
1113
1789
|
g_param = parse_global_arg(parsed_globals)
|
1114
1790
|
|
1115
1791
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1138,11 +1814,11 @@ def doModifyRiskCenterScanTask(args, parsed_globals):
|
|
1138
1814
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1139
1815
|
client._sdkVersion += ("_CLI_" + __version__)
|
1140
1816
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1141
|
-
model = models.
|
1817
|
+
model = models.DescribeAssetProcessListRequest()
|
1142
1818
|
model.from_json_string(json.dumps(args))
|
1143
1819
|
start_time = time.time()
|
1144
1820
|
while True:
|
1145
|
-
rsp = client.
|
1821
|
+
rsp = client.DescribeAssetProcessList(model)
|
1146
1822
|
result = rsp.to_json_string()
|
1147
1823
|
try:
|
1148
1824
|
json_obj = json.loads(result)
|
@@ -1161,7 +1837,7 @@ def doModifyRiskCenterScanTask(args, parsed_globals):
|
|
1161
1837
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1162
1838
|
|
1163
1839
|
|
1164
|
-
def
|
1840
|
+
def doModifyUebaRuleSwitch(args, parsed_globals):
|
1165
1841
|
g_param = parse_global_arg(parsed_globals)
|
1166
1842
|
|
1167
1843
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1190,11 +1866,11 @@ def doDescribeCFWAssetStatistics(args, parsed_globals):
|
|
1190
1866
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1191
1867
|
client._sdkVersion += ("_CLI_" + __version__)
|
1192
1868
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1193
|
-
model = models.
|
1869
|
+
model = models.ModifyUebaRuleSwitchRequest()
|
1194
1870
|
model.from_json_string(json.dumps(args))
|
1195
1871
|
start_time = time.time()
|
1196
1872
|
while True:
|
1197
|
-
rsp = client.
|
1873
|
+
rsp = client.ModifyUebaRuleSwitch(model)
|
1198
1874
|
result = rsp.to_json_string()
|
1199
1875
|
try:
|
1200
1876
|
json_obj = json.loads(result)
|
@@ -1213,7 +1889,7 @@ def doDescribeCFWAssetStatistics(args, parsed_globals):
|
|
1213
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
1890
|
|
1215
1891
|
|
1216
|
-
def
|
1892
|
+
def doDescribeRiskRules(args, parsed_globals):
|
1217
1893
|
g_param = parse_global_arg(parsed_globals)
|
1218
1894
|
|
1219
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1242,11 +1918,11 @@ def doDescribeCallRecord(args, parsed_globals):
|
|
1242
1918
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1243
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1244
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1245
|
-
model = models.
|
1921
|
+
model = models.DescribeRiskRulesRequest()
|
1246
1922
|
model.from_json_string(json.dumps(args))
|
1247
1923
|
start_time = time.time()
|
1248
1924
|
while True:
|
1249
|
-
rsp = client.
|
1925
|
+
rsp = client.DescribeRiskRules(model)
|
1250
1926
|
result = rsp.to_json_string()
|
1251
1927
|
try:
|
1252
1928
|
json_obj = json.loads(result)
|
@@ -1265,7 +1941,7 @@ def doDescribeCallRecord(args, parsed_globals):
|
|
1265
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
1942
|
|
1267
1943
|
|
1268
|
-
def
|
1944
|
+
def doDescribeExposePath(args, parsed_globals):
|
1269
1945
|
g_param = parse_global_arg(parsed_globals)
|
1270
1946
|
|
1271
1947
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1294,11 +1970,11 @@ def doDescribeVULRiskDetail(args, parsed_globals):
|
|
1294
1970
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1295
1971
|
client._sdkVersion += ("_CLI_" + __version__)
|
1296
1972
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1297
|
-
model = models.
|
1973
|
+
model = models.DescribeExposePathRequest()
|
1298
1974
|
model.from_json_string(json.dumps(args))
|
1299
1975
|
start_time = time.time()
|
1300
1976
|
while True:
|
1301
|
-
rsp = client.
|
1977
|
+
rsp = client.DescribeExposePath(model)
|
1302
1978
|
result = rsp.to_json_string()
|
1303
1979
|
try:
|
1304
1980
|
json_obj = json.loads(result)
|
@@ -1317,7 +1993,7 @@ def doDescribeVULRiskDetail(args, parsed_globals):
|
|
1317
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1994
|
|
1319
1995
|
|
1320
|
-
def
|
1996
|
+
def doDescribeGatewayAssets(args, parsed_globals):
|
1321
1997
|
g_param = parse_global_arg(parsed_globals)
|
1322
1998
|
|
1323
1999
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1346,11 +2022,11 @@ def doDescribeCheckViewRisks(args, parsed_globals):
|
|
1346
2022
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
2023
|
client._sdkVersion += ("_CLI_" + __version__)
|
1348
2024
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
-
model = models.
|
2025
|
+
model = models.DescribeGatewayAssetsRequest()
|
1350
2026
|
model.from_json_string(json.dumps(args))
|
1351
2027
|
start_time = time.time()
|
1352
2028
|
while True:
|
1353
|
-
rsp = client.
|
2029
|
+
rsp = client.DescribeGatewayAssets(model)
|
1354
2030
|
result = rsp.to_json_string()
|
1355
2031
|
try:
|
1356
2032
|
json_obj = json.loads(result)
|
@@ -1369,7 +2045,7 @@ def doDescribeCheckViewRisks(args, parsed_globals):
|
|
1369
2045
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
2046
|
|
1371
2047
|
|
1372
|
-
def
|
2048
|
+
def doDescribeAssetRiskList(args, parsed_globals):
|
1373
2049
|
g_param = parse_global_arg(parsed_globals)
|
1374
2050
|
|
1375
2051
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1398,11 +2074,11 @@ def doDescribeRiskCenterWebsiteRiskList(args, parsed_globals):
|
|
1398
2074
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
2075
|
client._sdkVersion += ("_CLI_" + __version__)
|
1400
2076
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
-
model = models.
|
2077
|
+
model = models.DescribeAssetRiskListRequest()
|
1402
2078
|
model.from_json_string(json.dumps(args))
|
1403
2079
|
start_time = time.time()
|
1404
2080
|
while True:
|
1405
|
-
rsp = client.
|
2081
|
+
rsp = client.DescribeAssetRiskList(model)
|
1406
2082
|
result = rsp.to_json_string()
|
1407
2083
|
try:
|
1408
2084
|
json_obj = json.loads(result)
|
@@ -1421,7 +2097,7 @@ def doDescribeRiskCenterWebsiteRiskList(args, parsed_globals):
|
|
1421
2097
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
2098
|
|
1423
2099
|
|
1424
|
-
def
|
2100
|
+
def doDescribeCSIPRiskStatistics(args, parsed_globals):
|
1425
2101
|
g_param = parse_global_arg(parsed_globals)
|
1426
2102
|
|
1427
2103
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1450,11 +2126,11 @@ def doDescribeOrganizationInfo(args, parsed_globals):
|
|
1450
2126
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
2127
|
client._sdkVersion += ("_CLI_" + __version__)
|
1452
2128
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
-
model = models.
|
2129
|
+
model = models.DescribeCSIPRiskStatisticsRequest()
|
1454
2130
|
model.from_json_string(json.dumps(args))
|
1455
2131
|
start_time = time.time()
|
1456
2132
|
while True:
|
1457
|
-
rsp = client.
|
2133
|
+
rsp = client.DescribeCSIPRiskStatistics(model)
|
1458
2134
|
result = rsp.to_json_string()
|
1459
2135
|
try:
|
1460
2136
|
json_obj = json.loads(result)
|
@@ -1473,7 +2149,7 @@ def doDescribeOrganizationInfo(args, parsed_globals):
|
|
1473
2149
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
2150
|
|
1475
2151
|
|
1476
|
-
def
|
2152
|
+
def doDescribeTopAttackInfo(args, parsed_globals):
|
1477
2153
|
g_param = parse_global_arg(parsed_globals)
|
1478
2154
|
|
1479
2155
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1502,11 +2178,11 @@ def doStopRiskCenterTask(args, parsed_globals):
|
|
1502
2178
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
2179
|
client._sdkVersion += ("_CLI_" + __version__)
|
1504
2180
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
-
model = models.
|
2181
|
+
model = models.DescribeTopAttackInfoRequest()
|
1506
2182
|
model.from_json_string(json.dumps(args))
|
1507
2183
|
start_time = time.time()
|
1508
2184
|
while True:
|
1509
|
-
rsp = client.
|
2185
|
+
rsp = client.DescribeTopAttackInfo(model)
|
1510
2186
|
result = rsp.to_json_string()
|
1511
2187
|
try:
|
1512
2188
|
json_obj = json.loads(result)
|
@@ -1525,7 +2201,7 @@ def doStopRiskCenterTask(args, parsed_globals):
|
|
1525
2201
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
2202
|
|
1527
2203
|
|
1528
|
-
def
|
2204
|
+
def doDescribeSearchBugInfo(args, parsed_globals):
|
1529
2205
|
g_param = parse_global_arg(parsed_globals)
|
1530
2206
|
|
1531
2207
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1554,11 +2230,11 @@ def doDescribeVulRiskList(args, parsed_globals):
|
|
1554
2230
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1555
2231
|
client._sdkVersion += ("_CLI_" + __version__)
|
1556
2232
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1557
|
-
model = models.
|
2233
|
+
model = models.DescribeSearchBugInfoRequest()
|
1558
2234
|
model.from_json_string(json.dumps(args))
|
1559
2235
|
start_time = time.time()
|
1560
2236
|
while True:
|
1561
|
-
rsp = client.
|
2237
|
+
rsp = client.DescribeSearchBugInfo(model)
|
1562
2238
|
result = rsp.to_json_string()
|
1563
2239
|
try:
|
1564
2240
|
json_obj = json.loads(result)
|
@@ -1577,7 +2253,7 @@ def doDescribeVulRiskList(args, parsed_globals):
|
|
1577
2253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
2254
|
|
1579
2255
|
|
1580
|
-
def
|
2256
|
+
def doDescribeRiskCenterAssetViewWeakPasswordRiskList(args, parsed_globals):
|
1581
2257
|
g_param = parse_global_arg(parsed_globals)
|
1582
2258
|
|
1583
2259
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1606,11 +2282,11 @@ def doDescribeAssetProcessList(args, parsed_globals):
|
|
1606
2282
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1607
2283
|
client._sdkVersion += ("_CLI_" + __version__)
|
1608
2284
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1609
|
-
model = models.
|
2285
|
+
model = models.DescribeRiskCenterAssetViewWeakPasswordRiskListRequest()
|
1610
2286
|
model.from_json_string(json.dumps(args))
|
1611
2287
|
start_time = time.time()
|
1612
2288
|
while True:
|
1613
|
-
rsp = client.
|
2289
|
+
rsp = client.DescribeRiskCenterAssetViewWeakPasswordRiskList(model)
|
1614
2290
|
result = rsp.to_json_string()
|
1615
2291
|
try:
|
1616
2292
|
json_obj = json.loads(result)
|
@@ -1629,7 +2305,7 @@ def doDescribeAssetProcessList(args, parsed_globals):
|
|
1629
2305
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
2306
|
|
1631
2307
|
|
1632
|
-
def
|
2308
|
+
def doDescribeAccessKeyAlarm(args, parsed_globals):
|
1633
2309
|
g_param = parse_global_arg(parsed_globals)
|
1634
2310
|
|
1635
2311
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1658,11 +2334,11 @@ def doModifyUebaRuleSwitch(args, parsed_globals):
|
|
1658
2334
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1659
2335
|
client._sdkVersion += ("_CLI_" + __version__)
|
1660
2336
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1661
|
-
model = models.
|
2337
|
+
model = models.DescribeAccessKeyAlarmRequest()
|
1662
2338
|
model.from_json_string(json.dumps(args))
|
1663
2339
|
start_time = time.time()
|
1664
2340
|
while True:
|
1665
|
-
rsp = client.
|
2341
|
+
rsp = client.DescribeAccessKeyAlarm(model)
|
1666
2342
|
result = rsp.to_json_string()
|
1667
2343
|
try:
|
1668
2344
|
json_obj = json.loads(result)
|
@@ -1681,7 +2357,7 @@ def doModifyUebaRuleSwitch(args, parsed_globals):
|
|
1681
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
2358
|
|
1683
2359
|
|
1684
|
-
def
|
2360
|
+
def doDescribeRiskCallRecord(args, parsed_globals):
|
1685
2361
|
g_param = parse_global_arg(parsed_globals)
|
1686
2362
|
|
1687
2363
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1710,11 +2386,11 @@ def doDescribeRiskRules(args, parsed_globals):
|
|
1710
2386
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
2387
|
client._sdkVersion += ("_CLI_" + __version__)
|
1712
2388
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
-
model = models.
|
2389
|
+
model = models.DescribeRiskCallRecordRequest()
|
1714
2390
|
model.from_json_string(json.dumps(args))
|
1715
2391
|
start_time = time.time()
|
1716
2392
|
while True:
|
1717
|
-
rsp = client.
|
2393
|
+
rsp = client.DescribeRiskCallRecord(model)
|
1718
2394
|
result = rsp.to_json_string()
|
1719
2395
|
try:
|
1720
2396
|
json_obj = json.loads(result)
|
@@ -1733,7 +2409,7 @@ def doDescribeRiskRules(args, parsed_globals):
|
|
1733
2409
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
2410
|
|
1735
2411
|
|
1736
|
-
def
|
2412
|
+
def doDescribeVulViewVulRiskList(args, parsed_globals):
|
1737
2413
|
g_param = parse_global_arg(parsed_globals)
|
1738
2414
|
|
1739
2415
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1762,11 +2438,11 @@ def doDescribeExposePath(args, parsed_globals):
|
|
1762
2438
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
2439
|
client._sdkVersion += ("_CLI_" + __version__)
|
1764
2440
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
-
model = models.
|
2441
|
+
model = models.DescribeVulViewVulRiskListRequest()
|
1766
2442
|
model.from_json_string(json.dumps(args))
|
1767
2443
|
start_time = time.time()
|
1768
2444
|
while True:
|
1769
|
-
rsp = client.
|
2445
|
+
rsp = client.DescribeVulViewVulRiskList(model)
|
1770
2446
|
result = rsp.to_json_string()
|
1771
2447
|
try:
|
1772
2448
|
json_obj = json.loads(result)
|
@@ -1785,7 +2461,7 @@ def doDescribeExposePath(args, parsed_globals):
|
|
1785
2461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
2462
|
|
1787
2463
|
|
1788
|
-
def
|
2464
|
+
def doDescribeSubnetAssets(args, parsed_globals):
|
1789
2465
|
g_param = parse_global_arg(parsed_globals)
|
1790
2466
|
|
1791
2467
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1814,11 +2490,11 @@ def doDescribeGatewayAssets(args, parsed_globals):
|
|
1814
2490
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
2491
|
client._sdkVersion += ("_CLI_" + __version__)
|
1816
2492
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
-
model = models.
|
2493
|
+
model = models.DescribeSubnetAssetsRequest()
|
1818
2494
|
model.from_json_string(json.dumps(args))
|
1819
2495
|
start_time = time.time()
|
1820
2496
|
while True:
|
1821
|
-
rsp = client.
|
2497
|
+
rsp = client.DescribeSubnetAssets(model)
|
1822
2498
|
result = rsp.to_json_string()
|
1823
2499
|
try:
|
1824
2500
|
json_obj = json.loads(result)
|
@@ -1837,7 +2513,7 @@ def doDescribeGatewayAssets(args, parsed_globals):
|
|
1837
2513
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
2514
|
|
1839
2515
|
|
1840
|
-
def
|
2516
|
+
def doDescribeHighBaseLineRiskList(args, parsed_globals):
|
1841
2517
|
g_param = parse_global_arg(parsed_globals)
|
1842
2518
|
|
1843
2519
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +2542,11 @@ def doDescribeAssetRiskList(args, parsed_globals):
|
|
1866
2542
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
2543
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
2544
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
2545
|
+
model = models.DescribeHighBaseLineRiskListRequest()
|
1870
2546
|
model.from_json_string(json.dumps(args))
|
1871
2547
|
start_time = time.time()
|
1872
2548
|
while True:
|
1873
|
-
rsp = client.
|
2549
|
+
rsp = client.DescribeHighBaseLineRiskList(model)
|
1874
2550
|
result = rsp.to_json_string()
|
1875
2551
|
try:
|
1876
2552
|
json_obj = json.loads(result)
|
@@ -1889,7 +2565,7 @@ def doDescribeAssetRiskList(args, parsed_globals):
|
|
1889
2565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
2566
|
|
1891
2567
|
|
1892
|
-
def
|
2568
|
+
def doDescribeScanReportList(args, parsed_globals):
|
1893
2569
|
g_param = parse_global_arg(parsed_globals)
|
1894
2570
|
|
1895
2571
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1918,11 +2594,11 @@ def doDescribeCSIPRiskStatistics(args, parsed_globals):
|
|
1918
2594
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
2595
|
client._sdkVersion += ("_CLI_" + __version__)
|
1920
2596
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
-
model = models.
|
2597
|
+
model = models.DescribeScanReportListRequest()
|
1922
2598
|
model.from_json_string(json.dumps(args))
|
1923
2599
|
start_time = time.time()
|
1924
2600
|
while True:
|
1925
|
-
rsp = client.
|
2601
|
+
rsp = client.DescribeScanReportList(model)
|
1926
2602
|
result = rsp.to_json_string()
|
1927
2603
|
try:
|
1928
2604
|
json_obj = json.loads(result)
|
@@ -1941,7 +2617,7 @@ def doDescribeCSIPRiskStatistics(args, parsed_globals):
|
|
1941
2617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1942
2618
|
|
1943
2619
|
|
1944
|
-
def
|
2620
|
+
def doCreateDomainAndIp(args, parsed_globals):
|
1945
2621
|
g_param = parse_global_arg(parsed_globals)
|
1946
2622
|
|
1947
2623
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1970,11 +2646,11 @@ def doDescribeSearchBugInfo(args, parsed_globals):
|
|
1970
2646
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1971
2647
|
client._sdkVersion += ("_CLI_" + __version__)
|
1972
2648
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1973
|
-
model = models.
|
2649
|
+
model = models.CreateDomainAndIpRequest()
|
1974
2650
|
model.from_json_string(json.dumps(args))
|
1975
2651
|
start_time = time.time()
|
1976
2652
|
while True:
|
1977
|
-
rsp = client.
|
2653
|
+
rsp = client.CreateDomainAndIp(model)
|
1978
2654
|
result = rsp.to_json_string()
|
1979
2655
|
try:
|
1980
2656
|
json_obj = json.loads(result)
|
@@ -1993,7 +2669,7 @@ def doDescribeSearchBugInfo(args, parsed_globals):
|
|
1993
2669
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
2670
|
|
1995
2671
|
|
1996
|
-
def
|
2672
|
+
def doDescribeAlertList(args, parsed_globals):
|
1997
2673
|
g_param = parse_global_arg(parsed_globals)
|
1998
2674
|
|
1999
2675
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2022,11 +2698,11 @@ def doDescribeRiskCenterAssetViewWeakPasswordRiskList(args, parsed_globals):
|
|
2022
2698
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2023
2699
|
client._sdkVersion += ("_CLI_" + __version__)
|
2024
2700
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2025
|
-
model = models.
|
2701
|
+
model = models.DescribeAlertListRequest()
|
2026
2702
|
model.from_json_string(json.dumps(args))
|
2027
2703
|
start_time = time.time()
|
2028
2704
|
while True:
|
2029
|
-
rsp = client.
|
2705
|
+
rsp = client.DescribeAlertList(model)
|
2030
2706
|
result = rsp.to_json_string()
|
2031
2707
|
try:
|
2032
2708
|
json_obj = json.loads(result)
|
@@ -2045,7 +2721,7 @@ def doDescribeRiskCenterAssetViewWeakPasswordRiskList(args, parsed_globals):
|
|
2045
2721
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2046
2722
|
|
2047
2723
|
|
2048
|
-
def
|
2724
|
+
def doDescribeScanTaskList(args, parsed_globals):
|
2049
2725
|
g_param = parse_global_arg(parsed_globals)
|
2050
2726
|
|
2051
2727
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2074,11 +2750,11 @@ def doDescribeVulViewVulRiskList(args, parsed_globals):
|
|
2074
2750
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2075
2751
|
client._sdkVersion += ("_CLI_" + __version__)
|
2076
2752
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2077
|
-
model = models.
|
2753
|
+
model = models.DescribeScanTaskListRequest()
|
2078
2754
|
model.from_json_string(json.dumps(args))
|
2079
2755
|
start_time = time.time()
|
2080
2756
|
while True:
|
2081
|
-
rsp = client.
|
2757
|
+
rsp = client.DescribeScanTaskList(model)
|
2082
2758
|
result = rsp.to_json_string()
|
2083
2759
|
try:
|
2084
2760
|
json_obj = json.loads(result)
|
@@ -2097,7 +2773,7 @@ def doDescribeVulViewVulRiskList(args, parsed_globals):
|
|
2097
2773
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2098
2774
|
|
2099
2775
|
|
2100
|
-
def
|
2776
|
+
def doUpdateAccessKeyAlarmStatus(args, parsed_globals):
|
2101
2777
|
g_param = parse_global_arg(parsed_globals)
|
2102
2778
|
|
2103
2779
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2126,11 +2802,11 @@ def doDescribeHighBaseLineRiskList(args, parsed_globals):
|
|
2126
2802
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2127
2803
|
client._sdkVersion += ("_CLI_" + __version__)
|
2128
2804
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2129
|
-
model = models.
|
2805
|
+
model = models.UpdateAccessKeyAlarmStatusRequest()
|
2130
2806
|
model.from_json_string(json.dumps(args))
|
2131
2807
|
start_time = time.time()
|
2132
2808
|
while True:
|
2133
|
-
rsp = client.
|
2809
|
+
rsp = client.UpdateAccessKeyAlarmStatus(model)
|
2134
2810
|
result = rsp.to_json_string()
|
2135
2811
|
try:
|
2136
2812
|
json_obj = json.loads(result)
|
@@ -2149,7 +2825,7 @@ def doDescribeHighBaseLineRiskList(args, parsed_globals):
|
|
2149
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2150
2826
|
|
2151
2827
|
|
2152
|
-
def
|
2828
|
+
def doUpdateAlertStatusList(args, parsed_globals):
|
2153
2829
|
g_param = parse_global_arg(parsed_globals)
|
2154
2830
|
|
2155
2831
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2178,11 +2854,11 @@ def doDescribeScanReportList(args, parsed_globals):
|
|
2178
2854
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2179
2855
|
client._sdkVersion += ("_CLI_" + __version__)
|
2180
2856
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2181
|
-
model = models.
|
2857
|
+
model = models.UpdateAlertStatusListRequest()
|
2182
2858
|
model.from_json_string(json.dumps(args))
|
2183
2859
|
start_time = time.time()
|
2184
2860
|
while True:
|
2185
|
-
rsp = client.
|
2861
|
+
rsp = client.UpdateAlertStatusList(model)
|
2186
2862
|
result = rsp.to_json_string()
|
2187
2863
|
try:
|
2188
2864
|
json_obj = json.loads(result)
|
@@ -2201,7 +2877,7 @@ def doDescribeScanReportList(args, parsed_globals):
|
|
2201
2877
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2878
|
|
2203
2879
|
|
2204
|
-
def
|
2880
|
+
def doDescribeScanStatistic(args, parsed_globals):
|
2205
2881
|
g_param = parse_global_arg(parsed_globals)
|
2206
2882
|
|
2207
2883
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2230,11 +2906,11 @@ def doDescribeSubUserInfo(args, parsed_globals):
|
|
2230
2906
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
2907
|
client._sdkVersion += ("_CLI_" + __version__)
|
2232
2908
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
-
model = models.
|
2909
|
+
model = models.DescribeScanStatisticRequest()
|
2234
2910
|
model.from_json_string(json.dumps(args))
|
2235
2911
|
start_time = time.time()
|
2236
2912
|
while True:
|
2237
|
-
rsp = client.
|
2913
|
+
rsp = client.DescribeScanStatistic(model)
|
2238
2914
|
result = rsp.to_json_string()
|
2239
2915
|
try:
|
2240
2916
|
json_obj = json.loads(result)
|
@@ -2253,7 +2929,7 @@ def doDescribeSubUserInfo(args, parsed_globals):
|
|
2253
2929
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
2930
|
|
2255
2931
|
|
2256
|
-
def
|
2932
|
+
def doDescribeExposeAssetCategory(args, parsed_globals):
|
2257
2933
|
g_param = parse_global_arg(parsed_globals)
|
2258
2934
|
|
2259
2935
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2282,11 +2958,11 @@ def doDescribeAlertList(args, parsed_globals):
|
|
2282
2958
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2283
2959
|
client._sdkVersion += ("_CLI_" + __version__)
|
2284
2960
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2285
|
-
model = models.
|
2961
|
+
model = models.DescribeExposeAssetCategoryRequest()
|
2286
2962
|
model.from_json_string(json.dumps(args))
|
2287
2963
|
start_time = time.time()
|
2288
2964
|
while True:
|
2289
|
-
rsp = client.
|
2965
|
+
rsp = client.DescribeExposeAssetCategory(model)
|
2290
2966
|
result = rsp.to_json_string()
|
2291
2967
|
try:
|
2292
2968
|
json_obj = json.loads(result)
|
@@ -2305,7 +2981,7 @@ def doDescribeAlertList(args, parsed_globals):
|
|
2305
2981
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2306
2982
|
|
2307
2983
|
|
2308
|
-
def
|
2984
|
+
def doDescribeRiskDetailList(args, parsed_globals):
|
2309
2985
|
g_param = parse_global_arg(parsed_globals)
|
2310
2986
|
|
2311
2987
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2334,11 +3010,11 @@ def doModifyRiskCenterRiskStatus(args, parsed_globals):
|
|
2334
3010
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2335
3011
|
client._sdkVersion += ("_CLI_" + __version__)
|
2336
3012
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2337
|
-
model = models.
|
3013
|
+
model = models.DescribeRiskDetailListRequest()
|
2338
3014
|
model.from_json_string(json.dumps(args))
|
2339
3015
|
start_time = time.time()
|
2340
3016
|
while True:
|
2341
|
-
rsp = client.
|
3017
|
+
rsp = client.DescribeRiskDetailList(model)
|
2342
3018
|
result = rsp.to_json_string()
|
2343
3019
|
try:
|
2344
3020
|
json_obj = json.loads(result)
|
@@ -2357,7 +3033,7 @@ def doModifyRiskCenterRiskStatus(args, parsed_globals):
|
|
2357
3033
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2358
3034
|
|
2359
3035
|
|
2360
|
-
def
|
3036
|
+
def doDescribeSourceIPAsset(args, parsed_globals):
|
2361
3037
|
g_param = parse_global_arg(parsed_globals)
|
2362
3038
|
|
2363
3039
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2386,11 +3062,11 @@ def doUpdateAlertStatusList(args, parsed_globals):
|
|
2386
3062
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2387
3063
|
client._sdkVersion += ("_CLI_" + __version__)
|
2388
3064
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2389
|
-
model = models.
|
3065
|
+
model = models.DescribeSourceIPAssetRequest()
|
2390
3066
|
model.from_json_string(json.dumps(args))
|
2391
3067
|
start_time = time.time()
|
2392
3068
|
while True:
|
2393
|
-
rsp = client.
|
3069
|
+
rsp = client.DescribeSourceIPAsset(model)
|
2394
3070
|
result = rsp.to_json_string()
|
2395
3071
|
try:
|
2396
3072
|
json_obj = json.loads(result)
|
@@ -2409,7 +3085,7 @@ def doUpdateAlertStatusList(args, parsed_globals):
|
|
2409
3085
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2410
3086
|
|
2411
3087
|
|
2412
|
-
def
|
3088
|
+
def doCreateRiskCenterScanTask(args, parsed_globals):
|
2413
3089
|
g_param = parse_global_arg(parsed_globals)
|
2414
3090
|
|
2415
3091
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2438,11 +3114,11 @@ def doDescribeScanStatistic(args, parsed_globals):
|
|
2438
3114
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2439
3115
|
client._sdkVersion += ("_CLI_" + __version__)
|
2440
3116
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2441
|
-
model = models.
|
3117
|
+
model = models.CreateRiskCenterScanTaskRequest()
|
2442
3118
|
model.from_json_string(json.dumps(args))
|
2443
3119
|
start_time = time.time()
|
2444
3120
|
while True:
|
2445
|
-
rsp = client.
|
3121
|
+
rsp = client.CreateRiskCenterScanTask(model)
|
2446
3122
|
result = rsp.to_json_string()
|
2447
3123
|
try:
|
2448
3124
|
json_obj = json.loads(result)
|
@@ -2461,7 +3137,7 @@ def doDescribeScanStatistic(args, parsed_globals):
|
|
2461
3137
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2462
3138
|
|
2463
3139
|
|
2464
|
-
def
|
3140
|
+
def doDescribeRiskCenterPortViewPortRiskList(args, parsed_globals):
|
2465
3141
|
g_param = parse_global_arg(parsed_globals)
|
2466
3142
|
|
2467
3143
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2490,11 +3166,11 @@ def doDescribeExposeAssetCategory(args, parsed_globals):
|
|
2490
3166
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2491
3167
|
client._sdkVersion += ("_CLI_" + __version__)
|
2492
3168
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2493
|
-
model = models.
|
3169
|
+
model = models.DescribeRiskCenterPortViewPortRiskListRequest()
|
2494
3170
|
model.from_json_string(json.dumps(args))
|
2495
3171
|
start_time = time.time()
|
2496
3172
|
while True:
|
2497
|
-
rsp = client.
|
3173
|
+
rsp = client.DescribeRiskCenterPortViewPortRiskList(model)
|
2498
3174
|
result = rsp.to_json_string()
|
2499
3175
|
try:
|
2500
3176
|
json_obj = json.loads(result)
|
@@ -2513,7 +3189,7 @@ def doDescribeExposeAssetCategory(args, parsed_globals):
|
|
2513
3189
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2514
3190
|
|
2515
3191
|
|
2516
|
-
def
|
3192
|
+
def doDescribeSubUserInfo(args, parsed_globals):
|
2517
3193
|
g_param = parse_global_arg(parsed_globals)
|
2518
3194
|
|
2519
3195
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2542,11 +3218,11 @@ def doDescribeScanTaskList(args, parsed_globals):
|
|
2542
3218
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2543
3219
|
client._sdkVersion += ("_CLI_" + __version__)
|
2544
3220
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2545
|
-
model = models.
|
3221
|
+
model = models.DescribeSubUserInfoRequest()
|
2546
3222
|
model.from_json_string(json.dumps(args))
|
2547
3223
|
start_time = time.time()
|
2548
3224
|
while True:
|
2549
|
-
rsp = client.
|
3225
|
+
rsp = client.DescribeSubUserInfo(model)
|
2550
3226
|
result = rsp.to_json_string()
|
2551
3227
|
try:
|
2552
3228
|
json_obj = json.loads(result)
|
@@ -2565,7 +3241,7 @@ def doDescribeScanTaskList(args, parsed_globals):
|
|
2565
3241
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2566
3242
|
|
2567
3243
|
|
2568
|
-
def
|
3244
|
+
def doDescribeRiskCenterAssetViewPortRiskList(args, parsed_globals):
|
2569
3245
|
g_param = parse_global_arg(parsed_globals)
|
2570
3246
|
|
2571
3247
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2594,11 +3270,11 @@ def doDescribeSourceIPAsset(args, parsed_globals):
|
|
2594
3270
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2595
3271
|
client._sdkVersion += ("_CLI_" + __version__)
|
2596
3272
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2597
|
-
model = models.
|
3273
|
+
model = models.DescribeRiskCenterAssetViewPortRiskListRequest()
|
2598
3274
|
model.from_json_string(json.dumps(args))
|
2599
3275
|
start_time = time.time()
|
2600
3276
|
while True:
|
2601
|
-
rsp = client.
|
3277
|
+
rsp = client.DescribeRiskCenterAssetViewPortRiskList(model)
|
2602
3278
|
result = rsp.to_json_string()
|
2603
3279
|
try:
|
2604
3280
|
json_obj = json.loads(result)
|
@@ -2617,7 +3293,7 @@ def doDescribeSourceIPAsset(args, parsed_globals):
|
|
2617
3293
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
3294
|
|
2619
3295
|
|
2620
|
-
def
|
3296
|
+
def doDescribeVULRiskAdvanceCFGList(args, parsed_globals):
|
2621
3297
|
g_param = parse_global_arg(parsed_globals)
|
2622
3298
|
|
2623
3299
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2646,11 +3322,11 @@ def doCreateRiskCenterScanTask(args, parsed_globals):
|
|
2646
3322
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2647
3323
|
client._sdkVersion += ("_CLI_" + __version__)
|
2648
3324
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2649
|
-
model = models.
|
3325
|
+
model = models.DescribeVULRiskAdvanceCFGListRequest()
|
2650
3326
|
model.from_json_string(json.dumps(args))
|
2651
3327
|
start_time = time.time()
|
2652
3328
|
while True:
|
2653
|
-
rsp = client.
|
3329
|
+
rsp = client.DescribeVULRiskAdvanceCFGList(model)
|
2654
3330
|
result = rsp.to_json_string()
|
2655
3331
|
try:
|
2656
3332
|
json_obj = json.loads(result)
|
@@ -2669,7 +3345,7 @@ def doCreateRiskCenterScanTask(args, parsed_globals):
|
|
2669
3345
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2670
3346
|
|
2671
3347
|
|
2672
|
-
def
|
3348
|
+
def doDescribeUserCallRecord(args, parsed_globals):
|
2673
3349
|
g_param = parse_global_arg(parsed_globals)
|
2674
3350
|
|
2675
3351
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2698,11 +3374,11 @@ def doDescribeRiskCenterPortViewPortRiskList(args, parsed_globals):
|
|
2698
3374
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2699
3375
|
client._sdkVersion += ("_CLI_" + __version__)
|
2700
3376
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2701
|
-
model = models.
|
3377
|
+
model = models.DescribeUserCallRecordRequest()
|
2702
3378
|
model.from_json_string(json.dumps(args))
|
2703
3379
|
start_time = time.time()
|
2704
3380
|
while True:
|
2705
|
-
rsp = client.
|
3381
|
+
rsp = client.DescribeUserCallRecord(model)
|
2706
3382
|
result = rsp.to_json_string()
|
2707
3383
|
try:
|
2708
3384
|
json_obj = json.loads(result)
|
@@ -2721,7 +3397,7 @@ def doDescribeRiskCenterPortViewPortRiskList(args, parsed_globals):
|
|
2721
3397
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2722
3398
|
|
2723
3399
|
|
2724
|
-
def
|
3400
|
+
def doDescribeOrganizationUserInfo(args, parsed_globals):
|
2725
3401
|
g_param = parse_global_arg(parsed_globals)
|
2726
3402
|
|
2727
3403
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2750,11 +3426,11 @@ def doDescribeRiskCenterAssetViewPortRiskList(args, parsed_globals):
|
|
2750
3426
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2751
3427
|
client._sdkVersion += ("_CLI_" + __version__)
|
2752
3428
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2753
|
-
model = models.
|
3429
|
+
model = models.DescribeOrganizationUserInfoRequest()
|
2754
3430
|
model.from_json_string(json.dumps(args))
|
2755
3431
|
start_time = time.time()
|
2756
3432
|
while True:
|
2757
|
-
rsp = client.
|
3433
|
+
rsp = client.DescribeOrganizationUserInfo(model)
|
2758
3434
|
result = rsp.to_json_string()
|
2759
3435
|
try:
|
2760
3436
|
json_obj = json.loads(result)
|
@@ -2773,7 +3449,7 @@ def doDescribeRiskCenterAssetViewPortRiskList(args, parsed_globals):
|
|
2773
3449
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
3450
|
|
2775
3451
|
|
2776
|
-
def
|
3452
|
+
def doModifyRiskCenterRiskStatus(args, parsed_globals):
|
2777
3453
|
g_param = parse_global_arg(parsed_globals)
|
2778
3454
|
|
2779
3455
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2802,11 +3478,11 @@ def doDescribeVULRiskAdvanceCFGList(args, parsed_globals):
|
|
2802
3478
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2803
3479
|
client._sdkVersion += ("_CLI_" + __version__)
|
2804
3480
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2805
|
-
model = models.
|
3481
|
+
model = models.ModifyRiskCenterRiskStatusRequest()
|
2806
3482
|
model.from_json_string(json.dumps(args))
|
2807
3483
|
start_time = time.time()
|
2808
3484
|
while True:
|
2809
|
-
rsp = client.
|
3485
|
+
rsp = client.ModifyRiskCenterRiskStatus(model)
|
2810
3486
|
result = rsp.to_json_string()
|
2811
3487
|
try:
|
2812
3488
|
json_obj = json.loads(result)
|
@@ -2825,7 +3501,7 @@ def doDescribeVULRiskAdvanceCFGList(args, parsed_globals):
|
|
2825
3501
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
3502
|
|
2827
3503
|
|
2828
|
-
def
|
3504
|
+
def doModifyOrganizationAccountStatus(args, parsed_globals):
|
2829
3505
|
g_param = parse_global_arg(parsed_globals)
|
2830
3506
|
|
2831
3507
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2854,11 +3530,11 @@ def doDescribeExposures(args, parsed_globals):
|
|
2854
3530
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2855
3531
|
client._sdkVersion += ("_CLI_" + __version__)
|
2856
3532
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2857
|
-
model = models.
|
3533
|
+
model = models.ModifyOrganizationAccountStatusRequest()
|
2858
3534
|
model.from_json_string(json.dumps(args))
|
2859
3535
|
start_time = time.time()
|
2860
3536
|
while True:
|
2861
|
-
rsp = client.
|
3537
|
+
rsp = client.ModifyOrganizationAccountStatus(model)
|
2862
3538
|
result = rsp.to_json_string()
|
2863
3539
|
try:
|
2864
3540
|
json_obj = json.loads(result)
|
@@ -2877,7 +3553,7 @@ def doDescribeExposures(args, parsed_globals):
|
|
2877
3553
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
3554
|
|
2879
3555
|
|
2880
|
-
def
|
3556
|
+
def doDescribeAccessKeyAlarmDetail(args, parsed_globals):
|
2881
3557
|
g_param = parse_global_arg(parsed_globals)
|
2882
3558
|
|
2883
3559
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2906,11 +3582,11 @@ def doDescribeRiskDetailList(args, parsed_globals):
|
|
2906
3582
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
3583
|
client._sdkVersion += ("_CLI_" + __version__)
|
2908
3584
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
-
model = models.
|
3585
|
+
model = models.DescribeAccessKeyAlarmDetailRequest()
|
2910
3586
|
model.from_json_string(json.dumps(args))
|
2911
3587
|
start_time = time.time()
|
2912
3588
|
while True:
|
2913
|
-
rsp = client.
|
3589
|
+
rsp = client.DescribeAccessKeyAlarmDetail(model)
|
2914
3590
|
result = rsp.to_json_string()
|
2915
3591
|
try:
|
2916
3592
|
json_obj = json.loads(result)
|
@@ -2929,7 +3605,7 @@ def doDescribeRiskDetailList(args, parsed_globals):
|
|
2929
3605
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
3606
|
|
2931
3607
|
|
2932
|
-
def
|
3608
|
+
def doDescribeRiskCenterCFGViewCFGRiskList(args, parsed_globals):
|
2933
3609
|
g_param = parse_global_arg(parsed_globals)
|
2934
3610
|
|
2935
3611
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2958,11 +3634,11 @@ def doCreateDomainAndIp(args, parsed_globals):
|
|
2958
3634
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2959
3635
|
client._sdkVersion += ("_CLI_" + __version__)
|
2960
3636
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2961
|
-
model = models.
|
3637
|
+
model = models.DescribeRiskCenterCFGViewCFGRiskListRequest()
|
2962
3638
|
model.from_json_string(json.dumps(args))
|
2963
3639
|
start_time = time.time()
|
2964
3640
|
while True:
|
2965
|
-
rsp = client.
|
3641
|
+
rsp = client.DescribeRiskCenterCFGViewCFGRiskList(model)
|
2966
3642
|
result = rsp.to_json_string()
|
2967
3643
|
try:
|
2968
3644
|
json_obj = json.loads(result)
|
@@ -2981,7 +3657,7 @@ def doCreateDomainAndIp(args, parsed_globals):
|
|
2981
3657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2982
3658
|
|
2983
3659
|
|
2984
|
-
def
|
3660
|
+
def doUpdateAccessKeyRemark(args, parsed_globals):
|
2985
3661
|
g_param = parse_global_arg(parsed_globals)
|
2986
3662
|
|
2987
3663
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3010,11 +3686,11 @@ def doModifyOrganizationAccountStatus(args, parsed_globals):
|
|
3010
3686
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
3011
3687
|
client._sdkVersion += ("_CLI_" + __version__)
|
3012
3688
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3013
|
-
model = models.
|
3689
|
+
model = models.UpdateAccessKeyRemarkRequest()
|
3014
3690
|
model.from_json_string(json.dumps(args))
|
3015
3691
|
start_time = time.time()
|
3016
3692
|
while True:
|
3017
|
-
rsp = client.
|
3693
|
+
rsp = client.UpdateAccessKeyRemark(model)
|
3018
3694
|
result = rsp.to_json_string()
|
3019
3695
|
try:
|
3020
3696
|
json_obj = json.loads(result)
|
@@ -3033,7 +3709,7 @@ def doModifyOrganizationAccountStatus(args, parsed_globals):
|
|
3033
3709
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3034
3710
|
|
3035
3711
|
|
3036
|
-
def
|
3712
|
+
def doDescribeClusterAssets(args, parsed_globals):
|
3037
3713
|
g_param = parse_global_arg(parsed_globals)
|
3038
3714
|
|
3039
3715
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3062,11 +3738,11 @@ def doDescribeSubnetAssets(args, parsed_globals):
|
|
3062
3738
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
3063
3739
|
client._sdkVersion += ("_CLI_" + __version__)
|
3064
3740
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3065
|
-
model = models.
|
3741
|
+
model = models.DescribeClusterAssetsRequest()
|
3066
3742
|
model.from_json_string(json.dumps(args))
|
3067
3743
|
start_time = time.time()
|
3068
3744
|
while True:
|
3069
|
-
rsp = client.
|
3745
|
+
rsp = client.DescribeClusterAssets(model)
|
3070
3746
|
result = rsp.to_json_string()
|
3071
3747
|
try:
|
3072
3748
|
json_obj = json.loads(result)
|
@@ -3085,7 +3761,7 @@ def doDescribeSubnetAssets(args, parsed_globals):
|
|
3085
3761
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3086
3762
|
|
3087
3763
|
|
3088
|
-
def
|
3764
|
+
def doCreateAccessKeyCheckTask(args, parsed_globals):
|
3089
3765
|
g_param = parse_global_arg(parsed_globals)
|
3090
3766
|
|
3091
3767
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3114,11 +3790,11 @@ def doDescribeRiskCenterCFGViewCFGRiskList(args, parsed_globals):
|
|
3114
3790
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
3115
3791
|
client._sdkVersion += ("_CLI_" + __version__)
|
3116
3792
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3117
|
-
model = models.
|
3793
|
+
model = models.CreateAccessKeyCheckTaskRequest()
|
3118
3794
|
model.from_json_string(json.dumps(args))
|
3119
3795
|
start_time = time.time()
|
3120
3796
|
while True:
|
3121
|
-
rsp = client.
|
3797
|
+
rsp = client.CreateAccessKeyCheckTask(model)
|
3122
3798
|
result = rsp.to_json_string()
|
3123
3799
|
try:
|
3124
3800
|
json_obj = json.loads(result)
|
@@ -3137,7 +3813,7 @@ def doDescribeRiskCenterCFGViewCFGRiskList(args, parsed_globals):
|
|
3137
3813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3138
3814
|
|
3139
3815
|
|
3140
|
-
def
|
3816
|
+
def doDescribeTaskLogURL(args, parsed_globals):
|
3141
3817
|
g_param = parse_global_arg(parsed_globals)
|
3142
3818
|
|
3143
3819
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3166,11 +3842,11 @@ def doDescribeTopAttackInfo(args, parsed_globals):
|
|
3166
3842
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
3167
3843
|
client._sdkVersion += ("_CLI_" + __version__)
|
3168
3844
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3169
|
-
model = models.
|
3845
|
+
model = models.DescribeTaskLogURLRequest()
|
3170
3846
|
model.from_json_string(json.dumps(args))
|
3171
3847
|
start_time = time.time()
|
3172
3848
|
while True:
|
3173
|
-
rsp = client.
|
3849
|
+
rsp = client.DescribeTaskLogURL(model)
|
3174
3850
|
result = rsp.to_json_string()
|
3175
3851
|
try:
|
3176
3852
|
json_obj = json.loads(result)
|
@@ -3189,7 +3865,7 @@ def doDescribeTopAttackInfo(args, parsed_globals):
|
|
3189
3865
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3190
3866
|
|
3191
3867
|
|
3192
|
-
def
|
3868
|
+
def doDescribeRepositoryImageAssets(args, parsed_globals):
|
3193
3869
|
g_param = parse_global_arg(parsed_globals)
|
3194
3870
|
|
3195
3871
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3218,11 +3894,11 @@ def doDescribeClusterAssets(args, parsed_globals):
|
|
3218
3894
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
3219
3895
|
client._sdkVersion += ("_CLI_" + __version__)
|
3220
3896
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3221
|
-
model = models.
|
3897
|
+
model = models.DescribeRepositoryImageAssetsRequest()
|
3222
3898
|
model.from_json_string(json.dumps(args))
|
3223
3899
|
start_time = time.time()
|
3224
3900
|
while True:
|
3225
|
-
rsp = client.
|
3901
|
+
rsp = client.DescribeRepositoryImageAssets(model)
|
3226
3902
|
result = rsp.to_json_string()
|
3227
3903
|
try:
|
3228
3904
|
json_obj = json.loads(result)
|
@@ -3241,7 +3917,7 @@ def doDescribeClusterAssets(args, parsed_globals):
|
|
3241
3917
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3242
3918
|
|
3243
3919
|
|
3244
|
-
def
|
3920
|
+
def doDescribeAccessKeyRisk(args, parsed_globals):
|
3245
3921
|
g_param = parse_global_arg(parsed_globals)
|
3246
3922
|
|
3247
3923
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3270,11 +3946,11 @@ def doDescribeTaskLogURL(args, parsed_globals):
|
|
3270
3946
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
3271
3947
|
client._sdkVersion += ("_CLI_" + __version__)
|
3272
3948
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3273
|
-
model = models.
|
3949
|
+
model = models.DescribeAccessKeyRiskRequest()
|
3274
3950
|
model.from_json_string(json.dumps(args))
|
3275
3951
|
start_time = time.time()
|
3276
3952
|
while True:
|
3277
|
-
rsp = client.
|
3953
|
+
rsp = client.DescribeAccessKeyRisk(model)
|
3278
3954
|
result = rsp.to_json_string()
|
3279
3955
|
try:
|
3280
3956
|
json_obj = json.loads(result)
|
@@ -3293,7 +3969,7 @@ def doDescribeTaskLogURL(args, parsed_globals):
|
|
3293
3969
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3294
3970
|
|
3295
3971
|
|
3296
|
-
def
|
3972
|
+
def doDescribeAccessKeyRiskDetail(args, parsed_globals):
|
3297
3973
|
g_param = parse_global_arg(parsed_globals)
|
3298
3974
|
|
3299
3975
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3322,11 +3998,11 @@ def doDescribeRepositoryImageAssets(args, parsed_globals):
|
|
3322
3998
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
3323
3999
|
client._sdkVersion += ("_CLI_" + __version__)
|
3324
4000
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3325
|
-
model = models.
|
4001
|
+
model = models.DescribeAccessKeyRiskDetailRequest()
|
3326
4002
|
model.from_json_string(json.dumps(args))
|
3327
4003
|
start_time = time.time()
|
3328
4004
|
while True:
|
3329
|
-
rsp = client.
|
4005
|
+
rsp = client.DescribeAccessKeyRiskDetail(model)
|
3330
4006
|
result = rsp.to_json_string()
|
3331
4007
|
try:
|
3332
4008
|
json_obj = json.loads(result)
|
@@ -3565,18 +4241,22 @@ MODELS_MAP = {
|
|
3565
4241
|
|
3566
4242
|
ACTION_MAP = {
|
3567
4243
|
"DescribeUebaRule": doDescribeUebaRule,
|
4244
|
+
"DescribeExposures": doDescribeExposures,
|
3568
4245
|
"DeleteDomainAndIp": doDeleteDomainAndIp,
|
4246
|
+
"CreateAccessKeySyncTask": doCreateAccessKeySyncTask,
|
3569
4247
|
"DescribeRiskRuleDetail": doDescribeRiskRuleDetail,
|
3570
4248
|
"DescribeDbAssetInfo": doDescribeDbAssetInfo,
|
3571
4249
|
"DescribeNICAssets": doDescribeNICAssets,
|
4250
|
+
"DescribeAbnormalCallRecord": doDescribeAbnormalCallRecord,
|
3572
4251
|
"DescribeRiskCenterVULViewVULRiskList": doDescribeRiskCenterVULViewVULRiskList,
|
3573
4252
|
"DescribeDomainAssets": doDescribeDomainAssets,
|
3574
4253
|
"DescribePublicIpAssets": doDescribePublicIpAssets,
|
3575
4254
|
"AddNewBindRoleUser": doAddNewBindRoleUser,
|
3576
4255
|
"DescribeVULList": doDescribeVULList,
|
3577
4256
|
"DescribeOtherCloudAssets": doDescribeOtherCloudAssets,
|
4257
|
+
"DescribeAccessKeyUserList": doDescribeAccessKeyUserList,
|
3578
4258
|
"DescribeListenerList": doDescribeListenerList,
|
3579
|
-
"
|
4259
|
+
"DescribeAccessKeyUserDetail": doDescribeAccessKeyUserDetail,
|
3580
4260
|
"DeleteRiskScanTask": doDeleteRiskScanTask,
|
3581
4261
|
"DescribeTaskLogList": doDescribeTaskLogList,
|
3582
4262
|
"DescribeRiskCenterAssetViewVULRiskList": doDescribeRiskCenterAssetViewVULRiskList,
|
@@ -3586,12 +4266,12 @@ ACTION_MAP = {
|
|
3586
4266
|
"DescribeRiskCenterServerRiskList": doDescribeRiskCenterServerRiskList,
|
3587
4267
|
"DescribeCVMAssets": doDescribeCVMAssets,
|
3588
4268
|
"ModifyRiskCenterScanTask": doModifyRiskCenterScanTask,
|
3589
|
-
"
|
4269
|
+
"DescribeOrganizationInfo": doDescribeOrganizationInfo,
|
3590
4270
|
"DescribeCallRecord": doDescribeCallRecord,
|
3591
4271
|
"DescribeVULRiskDetail": doDescribeVULRiskDetail,
|
3592
4272
|
"DescribeCheckViewRisks": doDescribeCheckViewRisks,
|
3593
4273
|
"DescribeRiskCenterWebsiteRiskList": doDescribeRiskCenterWebsiteRiskList,
|
3594
|
-
"
|
4274
|
+
"DescribeCFWAssetStatistics": doDescribeCFWAssetStatistics,
|
3595
4275
|
"StopRiskCenterTask": doStopRiskCenterTask,
|
3596
4276
|
"DescribeVulRiskList": doDescribeVulRiskList,
|
3597
4277
|
"DescribeAssetProcessList": doDescribeAssetProcessList,
|
@@ -3601,33 +4281,42 @@ ACTION_MAP = {
|
|
3601
4281
|
"DescribeGatewayAssets": doDescribeGatewayAssets,
|
3602
4282
|
"DescribeAssetRiskList": doDescribeAssetRiskList,
|
3603
4283
|
"DescribeCSIPRiskStatistics": doDescribeCSIPRiskStatistics,
|
4284
|
+
"DescribeTopAttackInfo": doDescribeTopAttackInfo,
|
3604
4285
|
"DescribeSearchBugInfo": doDescribeSearchBugInfo,
|
3605
4286
|
"DescribeRiskCenterAssetViewWeakPasswordRiskList": doDescribeRiskCenterAssetViewWeakPasswordRiskList,
|
4287
|
+
"DescribeAccessKeyAlarm": doDescribeAccessKeyAlarm,
|
4288
|
+
"DescribeRiskCallRecord": doDescribeRiskCallRecord,
|
3606
4289
|
"DescribeVulViewVulRiskList": doDescribeVulViewVulRiskList,
|
4290
|
+
"DescribeSubnetAssets": doDescribeSubnetAssets,
|
3607
4291
|
"DescribeHighBaseLineRiskList": doDescribeHighBaseLineRiskList,
|
3608
4292
|
"DescribeScanReportList": doDescribeScanReportList,
|
3609
|
-
"
|
4293
|
+
"CreateDomainAndIp": doCreateDomainAndIp,
|
3610
4294
|
"DescribeAlertList": doDescribeAlertList,
|
3611
|
-
"
|
4295
|
+
"DescribeScanTaskList": doDescribeScanTaskList,
|
4296
|
+
"UpdateAccessKeyAlarmStatus": doUpdateAccessKeyAlarmStatus,
|
3612
4297
|
"UpdateAlertStatusList": doUpdateAlertStatusList,
|
3613
4298
|
"DescribeScanStatistic": doDescribeScanStatistic,
|
3614
4299
|
"DescribeExposeAssetCategory": doDescribeExposeAssetCategory,
|
3615
|
-
"
|
4300
|
+
"DescribeRiskDetailList": doDescribeRiskDetailList,
|
3616
4301
|
"DescribeSourceIPAsset": doDescribeSourceIPAsset,
|
3617
4302
|
"CreateRiskCenterScanTask": doCreateRiskCenterScanTask,
|
3618
4303
|
"DescribeRiskCenterPortViewPortRiskList": doDescribeRiskCenterPortViewPortRiskList,
|
4304
|
+
"DescribeSubUserInfo": doDescribeSubUserInfo,
|
3619
4305
|
"DescribeRiskCenterAssetViewPortRiskList": doDescribeRiskCenterAssetViewPortRiskList,
|
3620
4306
|
"DescribeVULRiskAdvanceCFGList": doDescribeVULRiskAdvanceCFGList,
|
3621
|
-
"
|
3622
|
-
"
|
3623
|
-
"
|
4307
|
+
"DescribeUserCallRecord": doDescribeUserCallRecord,
|
4308
|
+
"DescribeOrganizationUserInfo": doDescribeOrganizationUserInfo,
|
4309
|
+
"ModifyRiskCenterRiskStatus": doModifyRiskCenterRiskStatus,
|
3624
4310
|
"ModifyOrganizationAccountStatus": doModifyOrganizationAccountStatus,
|
3625
|
-
"
|
4311
|
+
"DescribeAccessKeyAlarmDetail": doDescribeAccessKeyAlarmDetail,
|
3626
4312
|
"DescribeRiskCenterCFGViewCFGRiskList": doDescribeRiskCenterCFGViewCFGRiskList,
|
3627
|
-
"
|
4313
|
+
"UpdateAccessKeyRemark": doUpdateAccessKeyRemark,
|
3628
4314
|
"DescribeClusterAssets": doDescribeClusterAssets,
|
4315
|
+
"CreateAccessKeyCheckTask": doCreateAccessKeyCheckTask,
|
3629
4316
|
"DescribeTaskLogURL": doDescribeTaskLogURL,
|
3630
4317
|
"DescribeRepositoryImageAssets": doDescribeRepositoryImageAssets,
|
4318
|
+
"DescribeAccessKeyRisk": doDescribeAccessKeyRisk,
|
4319
|
+
"DescribeAccessKeyRiskDetail": doDescribeAccessKeyRiskDetail,
|
3631
4320
|
"DescribeAccessKeyAsset": doDescribeAccessKeyAsset,
|
3632
4321
|
"DescribeAssetViewVulRiskList": doDescribeAssetViewVulRiskList,
|
3633
4322
|
"DescribeDbAssets": doDescribeDbAssets,
|