tccli 3.0.1327.1__py2.py3-none-any.whl → 3.0.1329.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/apm/v20210622/api.json +10 -1
- tccli/services/apm/v20210622/examples.json +2 -2
- tccli/services/bh/v20230418/api.json +9 -0
- tccli/services/cbs/v20170312/api.json +15 -15
- tccli/services/ccc/v20200210/api.json +36 -0
- tccli/services/cdb/v20170320/api.json +21 -3
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/cdwch/v20200915/api.json +3 -3
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +1 -1
- tccli/services/chc/chc_client.py +53 -0
- tccli/services/chc/v20230418/api.json +62 -0
- tccli/services/chc/v20230418/examples.json +8 -0
- tccli/services/cvm/v20170312/api.json +2 -2
- tccli/services/cwp/v20180228/api.json +92 -1
- tccli/services/dbbrain/v20210527/api.json +4 -4
- tccli/services/dcdb/v20180411/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +3 -3
- tccli/services/emr/v20190103/api.json +175 -10
- tccli/services/ess/ess_client.py +126 -20
- tccli/services/ess/v20201111/api.json +136 -2
- tccli/services/ess/v20201111/examples.json +22 -0
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/gs/gs_client.py +729 -146
- tccli/services/gs/v20191118/api.json +758 -29
- tccli/services/gs/v20191118/examples.json +88 -0
- tccli/services/hai/hai_client.py +53 -0
- tccli/services/hai/v20230812/api.json +62 -0
- tccli/services/hai/v20230812/examples.json +8 -0
- tccli/services/ioa/ioa_client.py +53 -0
- tccli/services/ioa/v20220601/api.json +263 -0
- tccli/services/ioa/v20220601/examples.json +8 -0
- tccli/services/iotexplorer/v20190423/api.json +57 -6
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/lke/v20231130/api.json +315 -4
- tccli/services/lke/v20231130/examples.json +4 -4
- tccli/services/mariadb/v20170312/api.json +10 -10
- tccli/services/ocr/v20181119/api.json +76 -11
- tccli/services/partners/v20180321/api.json +7 -7
- tccli/services/sqlserver/v20180328/api.json +29 -2
- tccli/services/ssl/v20191205/api.json +79 -0
- tccli/services/ssl/v20191205/examples.json +6 -6
- tccli/services/tcss/v20201101/api.json +58 -3
- tccli/services/tcss/v20201101/examples.json +2 -2
- tccli/services/tem/tem_client.py +53 -0
- tccli/services/tem/v20210701/api.json +107 -0
- tccli/services/tem/v20210701/examples.json +8 -0
- tccli/services/teo/v20220901/api.json +807 -74
- tccli/services/teo/v20220901/examples.json +2 -2
- tccli/services/tke/tke_client.py +53 -0
- tccli/services/tke/v20220501/api.json +61 -0
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/trtc/trtc_client.py +216 -4
- tccli/services/trtc/v20190722/api.json +431 -2
- tccli/services/trtc/v20190722/examples.json +32 -0
- tccli/services/vclm/v20240523/api.json +173 -0
- tccli/services/vclm/v20240523/examples.json +16 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vm/v20210922/api.json +16 -20
- tccli/services/vod/v20180717/api.json +13 -11
- tccli/services/vod/v20180717/examples.json +4 -4
- tccli/services/vpc/v20170312/api.json +10 -1
- tccli/services/waf/v20180125/api.json +2 -2
- tccli/services/wedata/v20210820/api.json +952 -0
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1327.1.dist-info → tccli-3.0.1329.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1327.1.dist-info → tccli-3.0.1329.1.dist-info}/RECORD +73 -73
- {tccli-3.0.1327.1.dist-info → tccli-3.0.1329.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1327.1.dist-info → tccli-3.0.1329.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1327.1.dist-info → tccli-3.0.1329.1.dist-info}/license_files/LICENSE +0 -0
@@ -8,6 +8,14 @@
|
|
8
8
|
"title": "示例"
|
9
9
|
}
|
10
10
|
],
|
11
|
+
"CleanAndroidInstancesAppData": [
|
12
|
+
{
|
13
|
+
"document": "",
|
14
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CleanAndroidInstancesAppData\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-251006279-ea99wkeEIID\",\n \"cai-251006279-ea99NQV3Qw7\"\n ],\n \"PackageName\": \"com.tencent.abc\"\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"16152a6a-d031-4506-8eba-466e6a286c01\"\n }\n}",
|
16
|
+
"title": "示例"
|
17
|
+
}
|
18
|
+
],
|
11
19
|
"ConnectAndroidInstance": [
|
12
20
|
{
|
13
21
|
"document": "连接安卓实例",
|
@@ -198,6 +206,22 @@
|
|
198
206
|
"title": "查询安卓实例"
|
199
207
|
}
|
200
208
|
],
|
209
|
+
"DescribeAndroidInstancesAppBlacklist": [
|
210
|
+
{
|
211
|
+
"document": "",
|
212
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAndroidInstancesAppBlacklist\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-wsczvffa\"\n ]\n}",
|
213
|
+
"output": "{\n \"Response\": {\n \"AppBlacklistSet\": [\n {\n \"AndroidInstanceId\": \"cai-asgrsda\",\n \"AppBlacklist\": [\n \"com-acc\"\n ]\n }\n ],\n \"RequestId\": \"ef4d4555-cddc-4c42-b0ac-528bdb7a94e5\"\n }\n}",
|
214
|
+
"title": "查询安卓实例黑名单示例"
|
215
|
+
}
|
216
|
+
],
|
217
|
+
"DescribeAndroidInstancesByApps": [
|
218
|
+
{
|
219
|
+
"document": "",
|
220
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAndroidInstancesByApps\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 100,\n \"AndroidAppIds\": [\n \"apk-abcd1234\"\n ]\n}",
|
221
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6f7b34a3-0c00-4fac-b6f0-08d47ac3e736\",\n \"TotalCount\": 1,\n \"AndroidInstances\": [\n {\n \"AndroidInstanceId\": \"cai-abcd1234\",\n \"AndroidInstanceRegion\": \"ap-guagnzhou\",\n \"State\": \"NORMAL\",\n \"AndroidInstanceType\": \"A6\"\n }\n ]\n }\n}",
|
222
|
+
"title": "查询安装指定应用的安卓实例"
|
223
|
+
}
|
224
|
+
],
|
201
225
|
"DescribeInstancesCount": [
|
202
226
|
{
|
203
227
|
"document": "查询手游运行数",
|
@@ -214,6 +238,14 @@
|
|
214
238
|
"title": "DestroyAndroidInstances 示例"
|
215
239
|
}
|
216
240
|
],
|
241
|
+
"DisableAndroidInstancesApp": [
|
242
|
+
{
|
243
|
+
"document": "",
|
244
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DisableAndroidInstancesApp\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-251006279-ea99wkeEIID\",\n \"cai-251006279-ea99NQV3Qw7\"\n ],\n \"PackageName\": \"com.tencent.abc\"\n}",
|
245
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"16152a6a-d031-4506-8eba-466e6a286c01\"\n }\n}",
|
246
|
+
"title": "示例"
|
247
|
+
}
|
248
|
+
],
|
217
249
|
"DistributeFileToAndroidInstances": [
|
218
250
|
{
|
219
251
|
"document": "示例",
|
@@ -222,6 +254,22 @@
|
|
222
254
|
"title": "示例"
|
223
255
|
}
|
224
256
|
],
|
257
|
+
"DistributePhotoToAndroidInstances": [
|
258
|
+
{
|
259
|
+
"document": "示例",
|
260
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DistributePhotoToAndroidInstances\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-251006279-ea99wkeEIID\",\n \"cai-251006279-ea99QMMwk3A\"\n ],\n \"PhotoURL\": \"https://test.cos.ap-nanjing.myqcloud.com/tmp/wallpaper.jpg\"\n}",
|
261
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"385f8b9c-4c2a-4d9f-8fcd-c06e8a606fe8\",\n \"TaskSet\": [\n {\n \"AndroidInstanceId\": \"cai-251006279-ea99wkeEIID\",\n \"TaskId\": \"8ab16ee3-ea89-48ab-9aaf-18871420d567\"\n },\n {\n \"AndroidInstanceId\": \"cai-251006279-ea99QMMwk3A\",\n \"TaskId\": \"4f9bd67c-6f03-46d5-86c8-19393ab9a375\"\n }\n ]\n }\n}",
|
262
|
+
"title": "示例"
|
263
|
+
}
|
264
|
+
],
|
265
|
+
"EnableAndroidInstancesApp": [
|
266
|
+
{
|
267
|
+
"document": "",
|
268
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableAndroidInstancesApp\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-251006279-ea99wkeEIID\",\n \"cai-251006279-ea99NQV3Qw7\"\n ],\n \"PackageName\": \"com.tencent.abc\"\n}",
|
269
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"16152a6a-d031-4506-8eba-466e6a286c01\"\n }\n}",
|
270
|
+
"title": "示例"
|
271
|
+
}
|
272
|
+
],
|
225
273
|
"ExecuteCommandOnAndroidInstances": [
|
226
274
|
{
|
227
275
|
"document": "",
|
@@ -238,6 +286,14 @@
|
|
238
286
|
"title": "示例"
|
239
287
|
}
|
240
288
|
],
|
289
|
+
"ImportAndroidInstanceImage": [
|
290
|
+
{
|
291
|
+
"document": "示例",
|
292
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImportAndroidInstanceImage\n<公共请求参数>\n\n{\n \"Name\": \"test002\",\n \"URL\": \"https://test.image.com/image\",\n \"MD5\": \"bdeec8964a3dcba91413ca04b488dc75\"\n}",
|
293
|
+
"output": "{\n \"Response\": {\n \"AndroidInstanceImageId\": \"image-gffuj047\",\n \"RequestId\": \"d8eb14a0-ef6e-464c-a367-4093bc4e3b10\"\n }\n}",
|
294
|
+
"title": "示例"
|
295
|
+
}
|
296
|
+
],
|
241
297
|
"InstallAndroidInstancesApp": [
|
242
298
|
{
|
243
299
|
"document": "安装安卓实例应用",
|
@@ -286,6 +342,14 @@
|
|
286
342
|
"title": "ModifyAndroidInstanceResolution 示例"
|
287
343
|
}
|
288
344
|
],
|
345
|
+
"ModifyAndroidInstancesAppBlacklist": [
|
346
|
+
{
|
347
|
+
"document": "",
|
348
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAndroidInstancesAppBlacklist\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-xxx\"\n ],\n \"Operation\": \"ADD\",\n \"AppList\": [\n \"com.acc\"\n ]\n}",
|
349
|
+
"output": "{\n \"Response\": {\n \"TaskSet\": [\n {\n \"TaskId\": \"ef4d4555-cddc-4c42-b0ac-528bdb7a94e5\"\n }\n ],\n \"RequestId\": \"ef4d4555-cddc-4c42-b0ac-528bdb7a94e5\"\n }\n}",
|
350
|
+
"title": "修改安卓实例应用黑名单示例"
|
351
|
+
}
|
352
|
+
],
|
289
353
|
"ModifyAndroidInstancesInformation": [
|
290
354
|
{
|
291
355
|
"document": "",
|
@@ -318,6 +382,14 @@
|
|
318
382
|
"title": "示例"
|
319
383
|
}
|
320
384
|
],
|
385
|
+
"ModifyAndroidInstancesResources": [
|
386
|
+
{
|
387
|
+
"document": "",
|
388
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAndroidInstancesResources\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-251006279-ea99wkeEIID\",\n \"cai-251006279-ea99NQV3Qw7\"\n ],\n \"MemoryQuota\": 100\n}",
|
389
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"16152a6a-d031-4506-8eba-466e6a286c01\"\n }\n}",
|
390
|
+
"title": "示例"
|
391
|
+
}
|
392
|
+
],
|
321
393
|
"ModifyAndroidInstancesUserId": [
|
322
394
|
{
|
323
395
|
"document": "示例",
|
@@ -374,6 +446,22 @@
|
|
374
446
|
"title": "SaveGameArchive示例"
|
375
447
|
}
|
376
448
|
],
|
449
|
+
"SetAndroidInstancesBGAppKeepAlive": [
|
450
|
+
{
|
451
|
+
"document": "",
|
452
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetAndroidInstancesBGAppKeepAlive\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-251006279-ea99wkeEIID\",\n \"cai-251006279-ea99NQV3Qw7\"\n ],\n \"PackageNames\": [\n \"com.tencent.abc\"\n ],\n \"Operation\": \"ADD\"\n}",
|
453
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"16152a6a-d031-4506-8eba-466e6a286c01\"\n }\n}",
|
454
|
+
"title": "示例"
|
455
|
+
}
|
456
|
+
],
|
457
|
+
"SetAndroidInstancesFGAppKeepAlive": [
|
458
|
+
{
|
459
|
+
"document": "",
|
460
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetAndroidInstancesFGAppKeepAlive\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-251006279-ea99wkeEIID\",\n \"cai-251006279-ea99NQV3Qw7\"\n ],\n \"PackageName\": \"com.tencent.abc\",\n \"Operation\": \"ENABLE\"\n}",
|
461
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"16152a6a-d031-4506-8eba-466e6a286c01\"\n }\n}",
|
462
|
+
"title": "示例"
|
463
|
+
}
|
464
|
+
],
|
377
465
|
"StartAndroidInstances": [
|
378
466
|
{
|
379
467
|
"document": "示例",
|
tccli/services/hai/hai_client.py
CHANGED
@@ -485,6 +485,58 @@ def doCreateMuskPrompt(args, parsed_globals):
|
|
485
485
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
486
|
|
487
487
|
|
488
|
+
def doResetInstancesPassword(args, parsed_globals):
|
489
|
+
g_param = parse_global_arg(parsed_globals)
|
490
|
+
|
491
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
492
|
+
cred = credential.CVMRoleCredential()
|
493
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
494
|
+
cred = credential.STSAssumeRoleCredential(
|
495
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
496
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
497
|
+
)
|
498
|
+
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):
|
499
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
500
|
+
else:
|
501
|
+
cred = credential.Credential(
|
502
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
503
|
+
)
|
504
|
+
http_profile = HttpProfile(
|
505
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
506
|
+
reqMethod="POST",
|
507
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
508
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
509
|
+
)
|
510
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
511
|
+
if g_param[OptionsDefine.Language]:
|
512
|
+
profile.language = g_param[OptionsDefine.Language]
|
513
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
514
|
+
client = mod.HaiClient(cred, g_param[OptionsDefine.Region], profile)
|
515
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
516
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
517
|
+
model = models.ResetInstancesPasswordRequest()
|
518
|
+
model.from_json_string(json.dumps(args))
|
519
|
+
start_time = time.time()
|
520
|
+
while True:
|
521
|
+
rsp = client.ResetInstancesPassword(model)
|
522
|
+
result = rsp.to_json_string()
|
523
|
+
try:
|
524
|
+
json_obj = json.loads(result)
|
525
|
+
except TypeError as e:
|
526
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
527
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
528
|
+
break
|
529
|
+
cur_time = time.time()
|
530
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
531
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
532
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
533
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
534
|
+
else:
|
535
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
536
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
537
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
|
+
|
539
|
+
|
488
540
|
def doDescribeInstanceNetworkStatus(args, parsed_globals):
|
489
541
|
g_param = parse_global_arg(parsed_globals)
|
490
542
|
|
@@ -765,6 +817,7 @@ ACTION_MAP = {
|
|
765
817
|
"DescribeRegions": doDescribeRegions,
|
766
818
|
"StartInstance": doStartInstance,
|
767
819
|
"CreateMuskPrompt": doCreateMuskPrompt,
|
820
|
+
"ResetInstancesPassword": doResetInstancesPassword,
|
768
821
|
"DescribeInstanceNetworkStatus": doDescribeInstanceNetworkStatus,
|
769
822
|
"DescribeServiceLoginSettings": doDescribeServiceLoginSettings,
|
770
823
|
"InquirePriceRunInstances": doInquirePriceRunInstances,
|
@@ -70,6 +70,13 @@
|
|
70
70
|
"output": "InquirePriceRunInstancesResponse",
|
71
71
|
"status": "online"
|
72
72
|
},
|
73
|
+
"ResetInstancesPassword": {
|
74
|
+
"document": "本接口 (ResetInstancesPassword) 用于重置实例的用户密码。",
|
75
|
+
"input": "ResetInstancesPasswordRequest",
|
76
|
+
"name": "重置实例的用户密码",
|
77
|
+
"output": "ResetInstancesPasswordResponse",
|
78
|
+
"status": "online"
|
79
|
+
},
|
73
80
|
"RunInstances": {
|
74
81
|
"document": "本接口 (RunInstances) 用于创建一个或多个指定配置的实例。",
|
75
82
|
"input": "RunInstancesRequest",
|
@@ -1497,6 +1504,61 @@
|
|
1497
1504
|
],
|
1498
1505
|
"usage": "out"
|
1499
1506
|
},
|
1507
|
+
"ResetInstancesPasswordRequest": {
|
1508
|
+
"document": "ResetInstancesPassword请求参数结构体",
|
1509
|
+
"members": [
|
1510
|
+
{
|
1511
|
+
"disabled": false,
|
1512
|
+
"document": "实例ID列表",
|
1513
|
+
"example": "['hai-2dfajzo4q']\t",
|
1514
|
+
"member": "string",
|
1515
|
+
"name": "InstanceIds",
|
1516
|
+
"required": true,
|
1517
|
+
"type": "list"
|
1518
|
+
},
|
1519
|
+
{
|
1520
|
+
"disabled": false,
|
1521
|
+
"document": "实例密码必须8-30位,推荐使用12位以上密码,不能以“/”开头,至少包含以下字符中的三种不同字符,字符种类:<br><li>小写字母:[a-z]</li><br><li>大写字母:[A-Z]</li><br><li>数字:0-9</li><br><li>特殊字符: ()\\`\\~!@#$%^&\\*-+=\\_|{}[]:;'<>,.?/</li>",
|
1522
|
+
"example": "test@11111.",
|
1523
|
+
"member": "string",
|
1524
|
+
"name": "Password",
|
1525
|
+
"required": true,
|
1526
|
+
"type": "string"
|
1527
|
+
},
|
1528
|
+
{
|
1529
|
+
"disabled": false,
|
1530
|
+
"document": "默认为False,True代表只验证接口连通性",
|
1531
|
+
"example": "False",
|
1532
|
+
"member": "bool",
|
1533
|
+
"name": "DryRun",
|
1534
|
+
"required": false,
|
1535
|
+
"type": "bool"
|
1536
|
+
}
|
1537
|
+
],
|
1538
|
+
"type": "object"
|
1539
|
+
},
|
1540
|
+
"ResetInstancesPasswordResponse": {
|
1541
|
+
"document": "ResetInstancesPassword返回参数结构体",
|
1542
|
+
"members": [
|
1543
|
+
{
|
1544
|
+
"disabled": false,
|
1545
|
+
"document": "task任务id",
|
1546
|
+
"example": "23898659",
|
1547
|
+
"member": "uint64",
|
1548
|
+
"name": "TaskId",
|
1549
|
+
"output_required": false,
|
1550
|
+
"type": "int",
|
1551
|
+
"value_allowed_null": false
|
1552
|
+
},
|
1553
|
+
{
|
1554
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1555
|
+
"member": "string",
|
1556
|
+
"name": "RequestId",
|
1557
|
+
"type": "string"
|
1558
|
+
}
|
1559
|
+
],
|
1560
|
+
"type": "object"
|
1561
|
+
},
|
1500
1562
|
"RunInstancesRequest": {
|
1501
1563
|
"document": "RunInstances请求参数结构体",
|
1502
1564
|
"members": [
|
@@ -80,6 +80,14 @@
|
|
80
80
|
"title": "发货询价"
|
81
81
|
}
|
82
82
|
],
|
83
|
+
"ResetInstancesPassword": [
|
84
|
+
{
|
85
|
+
"document": "实例重置密码",
|
86
|
+
"input": "POST / HTTP/1.1\nHost: hai.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetInstancesPassword\n<公共请求参数>\n\n{\n \"InstanceIds\": [\n \"hai-xxxx\"\n ],\n \"DryRun\": false,\n \"Password\": \"test#123456\"\n}",
|
87
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e188f45e-e2db-4c30-81e0-2e7a3dfa7754\",\n \"TaskId\": 232559186\n }\n}",
|
88
|
+
"title": "实例重置密码"
|
89
|
+
}
|
90
|
+
],
|
83
91
|
"RunInstances": [
|
84
92
|
{
|
85
93
|
"document": "创建hai实例",
|
tccli/services/ioa/ioa_client.py
CHANGED
@@ -329,6 +329,58 @@ def doDescribeSoftCensusListByDevice(args, parsed_globals):
|
|
329
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
330
|
|
331
331
|
|
332
|
+
def doDescribeDeviceHardwareInfoList(args, parsed_globals):
|
333
|
+
g_param = parse_global_arg(parsed_globals)
|
334
|
+
|
335
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
336
|
+
cred = credential.CVMRoleCredential()
|
337
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
338
|
+
cred = credential.STSAssumeRoleCredential(
|
339
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
340
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
341
|
+
)
|
342
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
343
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
344
|
+
else:
|
345
|
+
cred = credential.Credential(
|
346
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
347
|
+
)
|
348
|
+
http_profile = HttpProfile(
|
349
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
350
|
+
reqMethod="POST",
|
351
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
352
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
353
|
+
)
|
354
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
355
|
+
if g_param[OptionsDefine.Language]:
|
356
|
+
profile.language = g_param[OptionsDefine.Language]
|
357
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
358
|
+
client = mod.IoaClient(cred, g_param[OptionsDefine.Region], profile)
|
359
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
360
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
361
|
+
model = models.DescribeDeviceHardwareInfoListRequest()
|
362
|
+
model.from_json_string(json.dumps(args))
|
363
|
+
start_time = time.time()
|
364
|
+
while True:
|
365
|
+
rsp = client.DescribeDeviceHardwareInfoList(model)
|
366
|
+
result = rsp.to_json_string()
|
367
|
+
try:
|
368
|
+
json_obj = json.loads(result)
|
369
|
+
except TypeError as e:
|
370
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
371
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
372
|
+
break
|
373
|
+
cur_time = time.time()
|
374
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
375
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
376
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
377
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
378
|
+
else:
|
379
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
380
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
381
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
382
|
+
|
383
|
+
|
332
384
|
def doDescribeRootAccountGroup(args, parsed_globals):
|
333
385
|
g_param = parse_global_arg(parsed_globals)
|
334
386
|
|
@@ -502,6 +554,7 @@ ACTION_MAP = {
|
|
502
554
|
"DescribeDevices": doDescribeDevices,
|
503
555
|
"CreateDLPFileDetectionTask": doCreateDLPFileDetectionTask,
|
504
556
|
"DescribeSoftCensusListByDevice": doDescribeSoftCensusListByDevice,
|
557
|
+
"DescribeDeviceHardwareInfoList": doDescribeDeviceHardwareInfoList,
|
505
558
|
"DescribeRootAccountGroup": doDescribeRootAccountGroup,
|
506
559
|
"DescribeDLPFileDetectResult": doDescribeDLPFileDetectResult,
|
507
560
|
"DescribeAccountGroups": doDescribeAccountGroups,
|
@@ -35,6 +35,13 @@
|
|
35
35
|
"output": "DescribeDLPFileDetectResultResponse",
|
36
36
|
"status": "online"
|
37
37
|
},
|
38
|
+
"DescribeDeviceHardwareInfoList": {
|
39
|
+
"document": "查询满足条件的查询终端硬件信息列表,私有化调用path为:/capi/Assets/Device/DescribeDeviceHardwareInfoList",
|
40
|
+
"input": "DescribeDeviceHardwareInfoListRequest",
|
41
|
+
"name": "查询终端硬件信息列表",
|
42
|
+
"output": "DescribeDeviceHardwareInfoListResponse",
|
43
|
+
"status": "online"
|
44
|
+
},
|
38
45
|
"DescribeDevices": {
|
39
46
|
"document": "查询满足条件的终端数据详情,私有化调用path为:/capi/Assets/Device/DescribeDevices",
|
40
47
|
"input": "DescribeDevicesRequest",
|
@@ -810,6 +817,262 @@
|
|
810
817
|
],
|
811
818
|
"type": "object"
|
812
819
|
},
|
820
|
+
"DescribeDeviceHardwareInfoItem": {
|
821
|
+
"document": "终端硬件信息列表Item数据",
|
822
|
+
"members": [
|
823
|
+
{
|
824
|
+
"disabled": false,
|
825
|
+
"document": "设备ID",
|
826
|
+
"example": "1",
|
827
|
+
"member": "int64",
|
828
|
+
"name": "Id",
|
829
|
+
"output_required": true,
|
830
|
+
"type": "int",
|
831
|
+
"value_allowed_null": false
|
832
|
+
},
|
833
|
+
{
|
834
|
+
"disabled": false,
|
835
|
+
"document": "设备唯一标识符",
|
836
|
+
"example": "10527BB0BE025F40B5E8A7D00B5E13E268243DBB",
|
837
|
+
"member": "string",
|
838
|
+
"name": "Mid",
|
839
|
+
"output_required": true,
|
840
|
+
"type": "string",
|
841
|
+
"value_allowed_null": false
|
842
|
+
},
|
843
|
+
{
|
844
|
+
"disabled": false,
|
845
|
+
"document": "OS平台 0 Windows 1 Linux 2 macOS 4 Android 5 iOS",
|
846
|
+
"example": "0",
|
847
|
+
"member": "int64",
|
848
|
+
"name": "OsType",
|
849
|
+
"output_required": false,
|
850
|
+
"type": "int",
|
851
|
+
"value_allowed_null": false
|
852
|
+
},
|
853
|
+
{
|
854
|
+
"disabled": false,
|
855
|
+
"document": "终端名",
|
856
|
+
"example": "MAGICTONG-PC4",
|
857
|
+
"member": "string",
|
858
|
+
"name": "Name",
|
859
|
+
"output_required": false,
|
860
|
+
"type": "string",
|
861
|
+
"value_allowed_null": false
|
862
|
+
},
|
863
|
+
{
|
864
|
+
"disabled": false,
|
865
|
+
"document": "终端用户名",
|
866
|
+
"example": "magic",
|
867
|
+
"member": "string",
|
868
|
+
"name": "UserName",
|
869
|
+
"output_required": false,
|
870
|
+
"type": "string",
|
871
|
+
"value_allowed_null": false
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"disabled": false,
|
875
|
+
"document": "授权状态( 4未授权 5已授权)",
|
876
|
+
"example": "5",
|
877
|
+
"member": "int64",
|
878
|
+
"name": "Status",
|
879
|
+
"output_required": false,
|
880
|
+
"type": "int",
|
881
|
+
"value_allowed_null": false
|
882
|
+
},
|
883
|
+
{
|
884
|
+
"disabled": false,
|
885
|
+
"document": "设备所属分组ID",
|
886
|
+
"example": "1578",
|
887
|
+
"member": "int64",
|
888
|
+
"name": "GroupId",
|
889
|
+
"output_required": false,
|
890
|
+
"type": "int",
|
891
|
+
"value_allowed_null": false
|
892
|
+
},
|
893
|
+
{
|
894
|
+
"disabled": false,
|
895
|
+
"document": "设备所属分组名",
|
896
|
+
"example": "未分组终端",
|
897
|
+
"member": "string",
|
898
|
+
"name": "GroupName",
|
899
|
+
"output_required": false,
|
900
|
+
"type": "string",
|
901
|
+
"value_allowed_null": false
|
902
|
+
},
|
903
|
+
{
|
904
|
+
"disabled": false,
|
905
|
+
"document": "设备所属分组路径",
|
906
|
+
"example": "全网终端.未分组终端",
|
907
|
+
"member": "string",
|
908
|
+
"name": "GroupNamePath",
|
909
|
+
"output_required": false,
|
910
|
+
"type": "string",
|
911
|
+
"value_allowed_null": false
|
912
|
+
},
|
913
|
+
{
|
914
|
+
"disabled": false,
|
915
|
+
"document": "最近登录账户的姓名",
|
916
|
+
"example": "张三",
|
917
|
+
"member": "string",
|
918
|
+
"name": "AccountName",
|
919
|
+
"output_required": false,
|
920
|
+
"type": "string",
|
921
|
+
"value_allowed_null": false
|
922
|
+
},
|
923
|
+
{
|
924
|
+
"disabled": false,
|
925
|
+
"document": "出口IP",
|
926
|
+
"example": "113.108.77.50",
|
927
|
+
"member": "string",
|
928
|
+
"name": "Ip",
|
929
|
+
"output_required": false,
|
930
|
+
"type": "string",
|
931
|
+
"value_allowed_null": false
|
932
|
+
},
|
933
|
+
{
|
934
|
+
"disabled": false,
|
935
|
+
"document": "MAC地址",
|
936
|
+
"example": "00:0C:29:DD:00:06",
|
937
|
+
"member": "string",
|
938
|
+
"name": "MacAddr",
|
939
|
+
"output_required": false,
|
940
|
+
"type": "string",
|
941
|
+
"value_allowed_null": false
|
942
|
+
},
|
943
|
+
{
|
944
|
+
"disabled": false,
|
945
|
+
"document": "CPU品牌型号",
|
946
|
+
"example": "Intel(R) Core(TM) i7-10700 CPU @ 2.90GH",
|
947
|
+
"member": "string",
|
948
|
+
"name": "Cpu",
|
949
|
+
"output_required": false,
|
950
|
+
"type": "string",
|
951
|
+
"value_allowed_null": false
|
952
|
+
},
|
953
|
+
{
|
954
|
+
"disabled": false,
|
955
|
+
"document": "内存信息",
|
956
|
+
"example": "4 GB",
|
957
|
+
"member": "string",
|
958
|
+
"name": "Memory",
|
959
|
+
"output_required": false,
|
960
|
+
"type": "string",
|
961
|
+
"value_allowed_null": false
|
962
|
+
},
|
963
|
+
{
|
964
|
+
"disabled": false,
|
965
|
+
"document": "硬盘信息",
|
966
|
+
"example": "VMware, VMware Virtual S SCSI Disk Device 1 GB",
|
967
|
+
"member": "string",
|
968
|
+
"name": "HardDiskSize",
|
969
|
+
"output_required": false,
|
970
|
+
"type": "string",
|
971
|
+
"value_allowed_null": false
|
972
|
+
},
|
973
|
+
{
|
974
|
+
"disabled": false,
|
975
|
+
"document": "显示器品牌型号",
|
976
|
+
"example": "Parallels Vu",
|
977
|
+
"member": "string",
|
978
|
+
"name": "Monitor",
|
979
|
+
"output_required": false,
|
980
|
+
"type": "string",
|
981
|
+
"value_allowed_null": false
|
982
|
+
}
|
983
|
+
],
|
984
|
+
"usage": "out"
|
985
|
+
},
|
986
|
+
"DescribeDeviceHardwareInfoListRequest": {
|
987
|
+
"document": "DescribeDeviceHardwareInfoList请求参数结构体",
|
988
|
+
"members": [
|
989
|
+
{
|
990
|
+
"disabled": false,
|
991
|
+
"document": "【必填】设备分组id(需要和OsType匹配),下面是私有化场景下默认id:id-名称-操作系统1\t全网终端\tWin2\t未分组终端\tWin30000000\t服务器\tWin40000101\t全网终端\tLinux40000102\t未分组终端\tLinux40000103\t服务器\tLinux40000201\t全网终端\tmacOS40000202\t未分组终端\tmacOS40000203\t服务器\tmacOS40000401\t全网终端\tAndroid40000402\t未分组终端\tAndroid40000501\t全网终端\tiOS40000502\t未分组终端\tiOSSaaS需要调用分组接口DescribeDeviceChildGroups获取对应分组id",
|
992
|
+
"example": "93",
|
993
|
+
"member": "int64",
|
994
|
+
"name": "GroupId",
|
995
|
+
"required": true,
|
996
|
+
"type": "int"
|
997
|
+
},
|
998
|
+
{
|
999
|
+
"disabled": false,
|
1000
|
+
"document": "【必填】操作系统类型(0: win,1:linux,2: mac,4:android,5:ios 默认值0),需要和GroupId或者GroupIds匹配",
|
1001
|
+
"example": "0",
|
1002
|
+
"member": "int64",
|
1003
|
+
"name": "OsType",
|
1004
|
+
"required": true,
|
1005
|
+
"type": "int"
|
1006
|
+
},
|
1007
|
+
{
|
1008
|
+
"disabled": false,
|
1009
|
+
"document": "管理域实例ID,用于CAM管理域权限分配。若企业未进行管理域的划分,可直接传入根域\"1\",此时表示针对当前企业的全部设备和账号进行接口CRUD,具体CRUD的影响范围限制于相应接口的入参。",
|
1010
|
+
"example": "1",
|
1011
|
+
"member": "string",
|
1012
|
+
"name": "DomainInstanceId",
|
1013
|
+
"required": false,
|
1014
|
+
"type": "string"
|
1015
|
+
},
|
1016
|
+
{
|
1017
|
+
"disabled": false,
|
1018
|
+
"document": "过滤条件参数(字段含义请参考接口返回值) - Name, 类型String,支持操作:【eq,like,ilike】,支持排序 - UserName, 类型String,支持操作:【eq,like,ilike】,支持排序 - IoaUserName,类型String,支持操作:【eq,like,ilike】,支持排序 - MacAddr, 类型String,支持操作:【eq,like,ilike】,支持排序 - Ip, 类型String,支持操作:【eq,like,ilike】,支持排序 ,支持排序分页参数- PageNum 从1开始,小于等于0时使用默认参数- PageSize 最大值5000,最好不超过100",
|
1019
|
+
"example": "\"Condition\":{\"Filters\":[],\"Sort\":{\"Field\":\"Id\",\"Order\":\"desc\"},\"PageSize\":10,\"PageNum\":1}",
|
1020
|
+
"member": "Condition",
|
1021
|
+
"name": "Condition",
|
1022
|
+
"required": false,
|
1023
|
+
"type": "object"
|
1024
|
+
}
|
1025
|
+
],
|
1026
|
+
"type": "object"
|
1027
|
+
},
|
1028
|
+
"DescribeDeviceHardwareInfoListResponse": {
|
1029
|
+
"document": "DescribeDeviceHardwareInfoList返回参数结构体",
|
1030
|
+
"members": [
|
1031
|
+
{
|
1032
|
+
"disabled": false,
|
1033
|
+
"document": "分页的data数据",
|
1034
|
+
"example": "无",
|
1035
|
+
"member": "DescribeDeviceHardwareInfoListRspData",
|
1036
|
+
"name": "Data",
|
1037
|
+
"output_required": true,
|
1038
|
+
"type": "object",
|
1039
|
+
"value_allowed_null": false
|
1040
|
+
},
|
1041
|
+
{
|
1042
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1043
|
+
"member": "string",
|
1044
|
+
"name": "RequestId",
|
1045
|
+
"type": "string"
|
1046
|
+
}
|
1047
|
+
],
|
1048
|
+
"type": "object"
|
1049
|
+
},
|
1050
|
+
"DescribeDeviceHardwareInfoListRspData": {
|
1051
|
+
"document": "终端硬件信息列表响应详情",
|
1052
|
+
"members": [
|
1053
|
+
{
|
1054
|
+
"disabled": false,
|
1055
|
+
"document": "分页数据",
|
1056
|
+
"example": "无",
|
1057
|
+
"member": "Paging",
|
1058
|
+
"name": "Page",
|
1059
|
+
"output_required": true,
|
1060
|
+
"type": "object",
|
1061
|
+
"value_allowed_null": false
|
1062
|
+
},
|
1063
|
+
{
|
1064
|
+
"disabled": false,
|
1065
|
+
"document": "终端硬件信息数据数组",
|
1066
|
+
"example": "无",
|
1067
|
+
"member": "DescribeDeviceHardwareInfoItem",
|
1068
|
+
"name": "Items",
|
1069
|
+
"output_required": true,
|
1070
|
+
"type": "list",
|
1071
|
+
"value_allowed_null": false
|
1072
|
+
}
|
1073
|
+
],
|
1074
|
+
"usage": "out"
|
1075
|
+
},
|
813
1076
|
"DescribeDevicesPageRsp": {
|
814
1077
|
"document": "分页的data数据",
|
815
1078
|
"members": [
|