tccli 3.0.1214.1__py2.py3-none-any.whl → 3.0.1216.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/configure.py +46 -1
  3. tccli/services/__init__.py +0 -3
  4. tccli/services/ams/v20201229/examples.json +2 -2
  5. tccli/services/apm/v20210622/api.json +20 -0
  6. tccli/services/asr/v20190614/api.json +3 -3
  7. tccli/services/bi/v20220105/api.json +32 -4
  8. tccli/services/bi/v20220105/examples.json +1 -1
  9. tccli/services/billing/billing_client.py +53 -0
  10. tccli/services/billing/v20180709/api.json +304 -0
  11. tccli/services/billing/v20180709/examples.json +8 -0
  12. tccli/services/bsca/v20210811/api.json +222 -17
  13. tccli/services/bsca/v20210811/examples.json +4 -4
  14. tccli/services/ccc/ccc_client.py +53 -0
  15. tccli/services/ccc/v20200210/api.json +176 -18
  16. tccli/services/ccc/v20200210/examples.json +11 -3
  17. tccli/services/cdb/v20170320/api.json +22 -4
  18. tccli/services/cdb/v20170320/examples.json +1 -1
  19. tccli/services/cdn/v20180606/api.json +5 -3
  20. tccli/services/cdwdoris/v20211228/api.json +23 -2
  21. tccli/services/cfs/v20190719/api.json +3 -3
  22. tccli/services/cfw/v20190904/api.json +86 -52
  23. tccli/services/cfw/v20190904/examples.json +68 -56
  24. tccli/services/ciam/v20220331/api.json +316 -315
  25. tccli/services/ciam/v20220331/examples.json +49 -49
  26. tccli/services/ckafka/v20190819/api.json +1 -1
  27. tccli/services/cloudaudit/cloudaudit_client.py +30 -30
  28. tccli/services/cloudaudit/v20190319/api.json +215 -186
  29. tccli/services/cloudaudit/v20190319/examples.json +13 -13
  30. tccli/services/cls/v20201016/api.json +365 -66
  31. tccli/services/cls/v20201016/examples.json +9 -3
  32. tccli/services/csip/v20221121/api.json +4 -4
  33. tccli/services/cvm/v20170312/api.json +42 -0
  34. tccli/services/cwp/v20180228/api.json +865 -809
  35. tccli/services/cwp/v20180228/examples.json +98 -110
  36. tccli/services/cynosdb/v20190107/api.json +77 -29
  37. tccli/services/cynosdb/v20190107/examples.json +22 -22
  38. tccli/services/dasb/v20191018/api.json +77 -0
  39. tccli/services/dasb/v20191018/examples.json +5 -5
  40. tccli/services/dbbrain/v20191016/examples.json +1 -1
  41. tccli/services/dlc/v20210125/api.json +11 -0
  42. tccli/services/domain/v20180808/api.json +3 -3
  43. tccli/services/domain/v20180808/examples.json +3 -3
  44. tccli/services/eb/v20210416/api.json +15 -15
  45. tccli/services/eb/v20210416/examples.json +1 -1
  46. tccli/services/emr/v20190103/api.json +9 -0
  47. tccli/services/es/es_client.py +249 -37
  48. tccli/services/es/v20180416/api.json +521 -0
  49. tccli/services/es/v20180416/examples.json +32 -0
  50. tccli/services/ess/ess_client.py +53 -0
  51. tccli/services/ess/v20201111/api.json +155 -10
  52. tccli/services/ess/v20201111/examples.json +15 -1
  53. tccli/services/essbasic/essbasic_client.py +106 -0
  54. tccli/services/essbasic/v20210526/api.json +244 -13
  55. tccli/services/essbasic/v20210526/examples.json +22 -0
  56. tccli/services/gaap/v20180529/api.json +44 -26
  57. tccli/services/gaap/v20180529/examples.json +24 -30
  58. tccli/services/hunyuan/v20230901/examples.json +6 -0
  59. tccli/services/iotexplorer/v20190423/api.json +40 -0
  60. tccli/services/iss/v20230517/api.json +19 -0
  61. tccli/services/live/v20180801/api.json +35 -9
  62. tccli/services/mongodb/v20190725/api.json +6 -8
  63. tccli/services/mqtt/v20240516/api.json +2 -2
  64. tccli/services/mqtt/v20240516/examples.json +1 -1
  65. tccli/services/ocr/v20181119/api.json +2 -2
  66. tccli/services/organization/organization_client.py +352 -34
  67. tccli/services/organization/v20210331/api.json +451 -0
  68. tccli/services/organization/v20210331/examples.json +48 -0
  69. tccli/services/partners/partners_client.py +57 -4
  70. tccli/services/partners/v20180321/api.json +44 -0
  71. tccli/services/partners/v20180321/examples.json +8 -0
  72. tccli/services/region/v20220627/api.json +1 -1
  73. tccli/services/scf/scf_client.py +269 -4
  74. tccli/services/scf/v20180416/api.json +554 -0
  75. tccli/services/scf/v20180416/examples.json +46 -0
  76. tccli/services/ssl/v20191205/api.json +34 -5
  77. tccli/services/tat/v20201028/api.json +27 -25
  78. tccli/services/tat/v20201028/examples.json +4 -4
  79. tccli/services/tcss/v20201101/api.json +256 -14
  80. tccli/services/tcss/v20201101/examples.json +7 -7
  81. tccli/services/tdmq/v20200217/api.json +64 -63
  82. tccli/services/tdmq/v20200217/examples.json +2 -2
  83. tccli/services/tem/v20210701/api.json +144 -103
  84. tccli/services/tem/v20210701/examples.json +27 -27
  85. tccli/services/teo/teo_client.py +277 -12
  86. tccli/services/teo/v20220901/api.json +1023 -146
  87. tccli/services/teo/v20220901/examples.json +71 -1
  88. tccli/services/tke/tke_client.py +53 -0
  89. tccli/services/tke/v20180525/api.json +43 -0
  90. tccli/services/tke/v20180525/examples.json +8 -0
  91. tccli/services/tms/tms_client.py +4 -57
  92. tccli/services/tms/v20201229/api.json +0 -354
  93. tccli/services/tms/v20201229/examples.json +0 -8
  94. tccli/services/trtc/v20190722/api.json +221 -22
  95. tccli/services/vpc/v20170312/api.json +111 -34
  96. tccli/services/vpc/v20170312/examples.json +11 -3
  97. tccli/services/vpc/vpc_client.py +107 -54
  98. tccli/services/waf/v20180125/api.json +61 -0
  99. tccli/services/waf/v20180125/examples.json +8 -0
  100. tccli/services/waf/waf_client.py +53 -0
  101. tccli/services/wedata/v20210820/api.json +686 -0
  102. tccli/services/wedata/v20210820/examples.json +16 -0
  103. tccli/services/wedata/wedata_client.py +106 -0
  104. {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/METADATA +6 -2
  105. {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/RECORD +108 -112
  106. tccli/services/cr/__init__.py +0 -4
  107. tccli/services/cr/cr_client.py +0 -1626
  108. tccli/services/cr/v20180321/api.json +0 -2829
  109. tccli/services/cr/v20180321/examples.json +0 -235
  110. {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/WHEEL +0 -0
  111. {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/entry_points.txt +0 -0
  112. {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/license_files/LICENSE +0 -0
@@ -53,7 +53,7 @@
53
53
  "metadata": {
54
54
  "apiVersion": "2021-08-11",
55
55
  "api_brief": "介绍如何使用API对二进制软件成分分析进行操作,包括新建分析、查看分析列表、查看报告等。",
56
- "serviceNameCN": "二进制软件成分分析",
56
+ "serviceNameCN": "软件成分分析",
57
57
  "serviceShortName": "bsca"
58
58
  },
59
59
  "objects": {
@@ -274,17 +274,17 @@
274
274
  "example": "无",
275
275
  "member": "PURL",
276
276
  "name": "PURL",
277
- "required": true,
277
+ "output_required": true,
278
278
  "type": "object",
279
279
  "value_allowed_null": false
280
280
  },
281
281
  {
282
282
  "disabled": false,
283
283
  "document": "第三方组件的主页",
284
- "example": "http://example.com",
284
+ "example": "https://www.openssl.org",
285
285
  "member": "string",
286
286
  "name": "Homepage",
287
- "required": true,
287
+ "output_required": true,
288
288
  "type": "string",
289
289
  "value_allowed_null": false
290
290
  },
@@ -294,27 +294,27 @@
294
294
  "example": "OpenSSL is a toolkit for supporting cryptography.",
295
295
  "member": "string",
296
296
  "name": "Summary",
297
- "required": true,
297
+ "output_required": true,
298
298
  "type": "string",
299
299
  "value_allowed_null": false
300
300
  },
301
301
  {
302
302
  "disabled": false,
303
303
  "document": "第三方组件的别名列表\n注意:此字段可能返回 null,表示取不到有效值。",
304
- "example": "",
304
+ "example": "[\"gmock\", \"googlemock\", \"gmock-gtest-all\"]",
305
305
  "member": "string",
306
306
  "name": "NicknameList",
307
- "required": true,
307
+ "output_required": true,
308
308
  "type": "list",
309
309
  "value_allowed_null": true
310
310
  },
311
311
  {
312
312
  "disabled": false,
313
313
  "document": "第三方组件的代码位置列表\n注意:此字段可能返回 null,表示取不到有效值。",
314
- "example": "",
314
+ "example": "[\"https://github.com/google/googletest.git\",\"https://github.com/abseil/googletest.git\"]",
315
315
  "member": "string",
316
316
  "name": "CodeLocationList",
317
- "required": true,
317
+ "output_required": true,
318
318
  "type": "list",
319
319
  "value_allowed_null": true
320
320
  },
@@ -324,15 +324,69 @@
324
324
  "example": "apache-2.0",
325
325
  "member": "string",
326
326
  "name": "LicenseExpression",
327
- "required": true,
327
+ "output_required": true,
328
328
  "type": "string",
329
329
  "value_allowed_null": false
330
+ },
331
+ {
332
+ "disabled": false,
333
+ "document": "第三方组件的版本信息(如果匹配到版本)\n注意:此字段可能返回 null,表示取不到有效值。",
334
+ "example": "无",
335
+ "member": "ComponentVersionInfo",
336
+ "name": "VersionInfo",
337
+ "output_required": false,
338
+ "type": "object",
339
+ "value_allowed_null": true
340
+ },
341
+ {
342
+ "disabled": false,
343
+ "document": "第三方组件的最后更新时间\n注意:此字段可能返回 null,表示取不到有效值。",
344
+ "example": "2024-10-03T11:12:40Z",
345
+ "member": "string",
346
+ "name": "LastUpdateTime",
347
+ "output_required": false,
348
+ "type": "string",
349
+ "value_allowed_null": true
350
+ },
351
+ {
352
+ "disabled": false,
353
+ "document": "第三方组件的类型标签\n注意:此字段可能返回 null,表示取不到有效值。",
354
+ "example": "[\"hardware\"]",
355
+ "member": "string",
356
+ "name": "TagList",
357
+ "output_required": false,
358
+ "type": "list",
359
+ "value_allowed_null": true
330
360
  }
331
361
  ],
332
362
  "usage": "out"
333
363
  },
364
+ "ComponentTagFilter": {
365
+ "document": "筛选条件,同一个Tag不能同时出现在IncludeTags和ExcludeTags,可能的Tag包括:\"CopyrightUpdated\", \"LicenseUpdated\", \"ContainsVulnerability\"",
366
+ "members": [
367
+ {
368
+ "disabled": false,
369
+ "document": "包括的Tag\n",
370
+ "example": "[\"CopyrightUpdated\"]",
371
+ "member": "string",
372
+ "name": "IncludeTags",
373
+ "required": false,
374
+ "type": "list"
375
+ },
376
+ {
377
+ "disabled": false,
378
+ "document": "排除的Tag",
379
+ "example": "[\"LicenseUpdated\"]",
380
+ "member": "string",
381
+ "name": "ExcludeTags",
382
+ "required": false,
383
+ "type": "list"
384
+ }
385
+ ],
386
+ "usage": "in"
387
+ },
334
388
  "ComponentVersion": {
335
- "document": "描述组件的一条版本信息。",
389
+ "document": "描述一个组件版本。",
336
390
  "members": [
337
391
  {
338
392
  "disabled": false,
@@ -353,6 +407,52 @@
353
407
  "output_required": true,
354
408
  "type": "string",
355
409
  "value_allowed_null": true
410
+ },
411
+ {
412
+ "disabled": false,
413
+ "document": "组件的版本信息\n注意:此字段可能返回 null,表示取不到有效值。",
414
+ "example": "无",
415
+ "member": "ComponentVersionInfo",
416
+ "name": "VersionInfo",
417
+ "output_required": false,
418
+ "type": "object",
419
+ "value_allowed_null": true
420
+ }
421
+ ],
422
+ "usage": "out"
423
+ },
424
+ "ComponentVersionInfo": {
425
+ "document": "描述组件版本的详情,包含组件发布时间、Copyright列表、组件描述Tag。",
426
+ "members": [
427
+ {
428
+ "disabled": false,
429
+ "document": "版本发布时间\n注意:此字段可能返回 null,表示取不到有效值。",
430
+ "example": "2024-04-17 08:50:11.000000",
431
+ "member": "string",
432
+ "name": "PublishTime",
433
+ "output_required": false,
434
+ "type": "string",
435
+ "value_allowed_null": true
436
+ },
437
+ {
438
+ "disabled": false,
439
+ "document": "当前版本的所有copyright\n注意:此字段可能返回 null,表示取不到有效值。",
440
+ "example": "[\"Copyright (c) 1998-2018 The OpenSSL Project\", \"Copyright (c) 1995-1998 Eric Young (eay@cryptsoft.com)\", \"holder is Tim Hudson (tjh@cryptsoft.com)\" ]",
441
+ "member": "string",
442
+ "name": "CopyrightList",
443
+ "output_required": false,
444
+ "type": "list",
445
+ "value_allowed_null": true
446
+ },
447
+ {
448
+ "disabled": false,
449
+ "document": "版本标签\n注意:此字段可能返回 null,表示取不到有效值。",
450
+ "example": "[\"ContainsVulnerability\", \"LicenseUpdated\"]",
451
+ "member": "string",
452
+ "name": "TagList",
453
+ "output_required": false,
454
+ "type": "list",
455
+ "value_allowed_null": true
356
456
  }
357
457
  ],
358
458
  "usage": "out"
@@ -473,7 +573,7 @@
473
573
  "example": "无",
474
574
  "member": "Component",
475
575
  "name": "Component",
476
- "required": true,
576
+ "output_required": true,
477
577
  "type": "object",
478
578
  "value_allowed_null": false
479
579
  },
@@ -497,6 +597,51 @@
497
597
  "name": "PURL",
498
598
  "required": true,
499
599
  "type": "object"
600
+ },
601
+ {
602
+ "disabled": false,
603
+ "document": "页号",
604
+ "example": "1",
605
+ "member": "uint64",
606
+ "name": "PageNumber",
607
+ "required": false,
608
+ "type": "int"
609
+ },
610
+ {
611
+ "disabled": false,
612
+ "document": "页大小",
613
+ "example": "10",
614
+ "member": "uint64",
615
+ "name": "PageSize",
616
+ "required": false,
617
+ "type": "int"
618
+ },
619
+ {
620
+ "disabled": false,
621
+ "document": "排序方式,可以是\"ASC\"或\"DESC\",默认\"DESC\"",
622
+ "example": "ASC",
623
+ "member": "string",
624
+ "name": "Order",
625
+ "required": false,
626
+ "type": "string"
627
+ },
628
+ {
629
+ "disabled": false,
630
+ "document": "排序字段,可能的字段包括“Version”、\"PublishTime\"",
631
+ "example": "[\"PublishTime\",\"Version\"]",
632
+ "member": "string",
633
+ "name": "OrderBy",
634
+ "required": false,
635
+ "type": "list"
636
+ },
637
+ {
638
+ "disabled": false,
639
+ "document": "Tag筛选",
640
+ "example": "无",
641
+ "member": "ComponentTagFilter",
642
+ "name": "Filter",
643
+ "required": false,
644
+ "type": "object"
500
645
  }
501
646
  ],
502
647
  "type": "object"
@@ -560,6 +705,26 @@
560
705
  "type": "list",
561
706
  "value_allowed_null": true
562
707
  },
708
+ {
709
+ "disabled": false,
710
+ "document": "组件purl",
711
+ "example": "无",
712
+ "member": "PURL",
713
+ "name": "PURL",
714
+ "output_required": true,
715
+ "type": "object",
716
+ "value_allowed_null": false
717
+ },
718
+ {
719
+ "disabled": false,
720
+ "document": "推荐版本,当前版本中的所有漏洞都修复了的版本",
721
+ "example": "1.1.12",
722
+ "member": "string",
723
+ "name": "RecommendedVersion",
724
+ "output_required": false,
725
+ "type": "string",
726
+ "value_allowed_null": false
727
+ },
563
728
  {
564
729
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
565
730
  "member": "string",
@@ -1072,7 +1237,7 @@
1072
1237
  {
1073
1238
  "disabled": false,
1074
1239
  "document": "漏洞类别",
1075
- "example": "其他",
1240
+ "example": "反序列化",
1076
1241
  "member": "string",
1077
1242
  "name": "Category",
1078
1243
  "output_required": true,
@@ -1092,7 +1257,7 @@
1092
1257
  {
1093
1258
  "disabled": false,
1094
1259
  "document": "漏洞描述",
1095
- "example": "漏洞描述",
1260
+ "example": "ApacheLog4j是美国阿帕奇(Apache)基金会的一款基于Java的开源日志记录工具。ApacheLog4J存在输入验证错误漏洞.Log4j-2中存在JNDI注入漏洞,当程序将用户输入的数据进行日志记录时,即可触发此漏洞,成功利用此漏洞可以在目标服务器上执行任意代码。",
1096
1261
  "member": "string",
1097
1262
  "name": "Description",
1098
1263
  "output_required": true,
@@ -1112,7 +1277,7 @@
1112
1277
  {
1113
1278
  "disabled": false,
1114
1279
  "document": "漏洞信息参考列表",
1115
- "example": "",
1280
+ "example": "[\"https://logging.apache.org/log4j/2.x/security.html\", \"http://www.openwall.com/lists/oss-security/2021/12/10/1\"]",
1116
1281
  "member": "string",
1117
1282
  "name": "ReferenceList",
1118
1283
  "output_required": true,
@@ -1159,6 +1324,16 @@
1159
1324
  "type": "string",
1160
1325
  "value_allowed_null": false
1161
1326
  },
1327
+ {
1328
+ "disabled": false,
1329
+ "document": "漏洞更新时间",
1330
+ "example": "2019-09-11 01:15:00",
1331
+ "member": "string",
1332
+ "name": "UpdateTime",
1333
+ "output_required": true,
1334
+ "type": "string",
1335
+ "value_allowed_null": false
1336
+ },
1162
1337
  {
1163
1338
  "disabled": false,
1164
1339
  "document": "CWE编号",
@@ -1228,7 +1403,7 @@
1228
1403
  {
1229
1404
  "disabled": false,
1230
1405
  "document": "漏洞所属CNVD编号",
1231
- "example": "CNVD-XXX",
1406
+ "example": "CNVD-2021-100238",
1232
1407
  "member": "string",
1233
1408
  "name": "CNVDID",
1234
1409
  "output_required": true,
@@ -1238,7 +1413,7 @@
1238
1413
  {
1239
1414
  "disabled": false,
1240
1415
  "document": "漏洞所属CNNVD编号",
1241
- "example": "CNNVD-202012-579",
1416
+ "example": "CNNVD-202112-799",
1242
1417
  "member": "string",
1243
1418
  "name": "CNNVDID",
1244
1419
  "output_required": true,
@@ -1274,6 +1449,36 @@
1274
1449
  "output_required": true,
1275
1450
  "type": "string",
1276
1451
  "value_allowed_null": false
1452
+ },
1453
+ {
1454
+ "disabled": true,
1455
+ "document": "架构信息,如x86、ARM等,废弃,请使用ArchitectureList\n注意:此字段可能返回 null,表示取不到有效值。",
1456
+ "example": "[\"x86_64\"]",
1457
+ "member": "string",
1458
+ "name": "Architecture",
1459
+ "output_required": false,
1460
+ "type": "list",
1461
+ "value_allowed_null": true
1462
+ },
1463
+ {
1464
+ "disabled": false,
1465
+ "document": "架构信息,如x86、ARM等\n注意:此字段可能返回 null,表示取不到有效值。",
1466
+ "example": "[\"x86_64\"]",
1467
+ "member": "string",
1468
+ "name": "ArchitectureList",
1469
+ "output_required": false,
1470
+ "type": "list",
1471
+ "value_allowed_null": true
1472
+ },
1473
+ {
1474
+ "disabled": false,
1475
+ "document": "patch链接\n注意:此字段可能返回 null,表示取不到有效值。",
1476
+ "example": "[\"https://github.com/apache/logging-log4j2/commit/c77b3cb39312b83b053d23a2158b99ac7de44dd3\"]",
1477
+ "member": "string",
1478
+ "name": "PatchUrlList",
1479
+ "output_required": false,
1480
+ "type": "list",
1481
+ "value_allowed_null": true
1277
1482
  }
1278
1483
  ],
1279
1484
  "usage": "out"
@@ -4,7 +4,7 @@
4
4
  {
5
5
  "document": "",
6
6
  "input": "POST / HTTP/1.1\nHost: bsca.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKBComponent\n<公共请求参数>\n\n{\n \"PURL\": {\n \"Name\": \"openssl\"\n }\n}",
7
- "output": "{\n \"Response\": {\n \"Component\": {\n \"CodeLocationList\": null,\n \"Homepage\": \"https://www.openssl.org\",\n \"LicenseExpression\": \"openssl-ssleay\",\n \"NicknameList\": null,\n \"PURL\": {\n \"Name\": \"openssl\",\n \"Namespace\": \"\",\n \"Protocol\": \"generic\",\n \"Qualifiers\": null,\n \"Subpath\": \"\",\n \"Version\": \"\"\n },\n \"Summary\": \"OpenSSL is a toolkit for supporting cryptography. The openssl-static\\npackage contains static libraries needed for static linking of\\napplications which support various cryptographic algorithms and\\nprotocols.\"\n },\n \"RequestId\": \"56dabf5e-0887-4960-bf6f-595ea9a9a0d7\"\n }\n}",
7
+ "output": "{\n \"Response\": {\n \"Component\": {\n \"CodeLocationList\": [\n \"https://github.com/openssl/openssl.git\",\n \"https://android.googlesource.com/platform/external/openssl\"\n ],\n \"Homepage\": \"https://www.openssl.org\",\n \"LastUpdateTime\": \"2023-09-11 22:08:48.000000\",\n \"LicenseExpression\": \"openssl-ssleay\",\n \"NicknameList\": null,\n \"PURL\": {\n \"Name\": \"openssl\",\n \"Namespace\": \"\",\n \"Protocol\": \"generic\",\n \"Qualifiers\": [],\n \"Subpath\": \"\",\n \"Version\": \"1.0.0\"\n },\n \"Summary\": \"OpenSSL is a robust, commercial-grade, full-featured Open Source Toolkit for the Transport Layer Security (TLS) protocol formerly known as the Secure Sockets Layer (SSL) protocol. The protocol implementation is based on a full-strength general purpose cryptographic library, which can also be used stand-alone.\",\n \"TagList\": [\n \"network\"\n ],\n \"VersionInfo\": {\n \"CopyrightList\": [\n \"Copyright (c) 1998-2008 The OpenSSL Project\",\n \"Copyright (c) 1995-1998 Eric Young (eay@cryptsoft.com)\",\n \"holder is Tim Hudson (tjh@cryptsoft.com)\"\n ],\n \"PublishTime\": \"2015-01-22 09:46:52.000000\",\n \"TagList\": [\n \"copyright_updated\"\n ]\n }\n },\n \"RequestId\": \"deadc0de-3ab7-45dd-9def-6b3e087dd354\"\n }\n}",
8
8
  "title": "查询openssl组件信息"
9
9
  }
10
10
  ],
@@ -12,15 +12,15 @@
12
12
  {
13
13
  "document": "查询ristretto组件的版本列表",
14
14
  "input": "POST / HTTP/1.1\nHost: bsca.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKBComponentVersionList\n<公共请求参数>\n\n{\n \"PURL\": {\n \"Name\": \"ristretto\",\n \"Protocol\": \"golang\",\n \"Namespace\": \"\",\n \"Subpath\": \"\",\n \"Version\": \"\"\n }\n}",
15
- "output": "{\n \"Response\": {\n \"RequestId\": \"1df9b437-4e92-4ad5-b422-abeb45bbaf03\",\n \"VersionList\": [\n {\n \"LicenseExpression\": \"apache-2.0\",\n \"PURL\": {\n \"Name\": \"ristretto\",\n \"Namespace\": \"github.com/sergiub32\",\n \"Protocol\": \"golang\",\n \"Qualifiers\": [],\n \"Subpath\": \"\",\n \"Version\": \"v0.2.1\"\n }\n }\n ]\n }\n}",
15
+ "output": "{\n \"Response\": {\n \"VersionList\": [\n {\n \"LicenseExpression\": \"gpl-3.0\",\n \"PURL\": {\n \"Name\": \"xxl-job-core\",\n \"Namespace\": \"com.xuxueli\",\n \"Protocol\": \"maven\",\n \"Qualifiers\": [],\n \"Subpath\": \"\",\n \"Version\": \"2.4.1\"\n },\n \"VersionInfo\": {\n \"CopyrightList\": [],\n \"PublishTime\": \"2024-04-17 08:50:11.000000\",\n \"TagList\": [\n \"ContainsVulnerability\"\n ]\n }\n }\n ],\n \"RequestId\": \"101705d6-b972-4dbf-9d10-0b075d509d3d\"\n }\n}",
16
16
  "title": "查询知识库组件的版本列表"
17
17
  }
18
18
  ],
19
19
  "DescribeKBComponentVulnerability": [
20
20
  {
21
21
  "document": "",
22
- "input": "POST / HTTP/1.1\nHost: bsca.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKBComponentVulnerability\n<公共请求参数>\n\n{\n \"PURL\": {\n \"Version\": \"1.1.1\",\n \"Name\": \"openssl\"\n }\n}",
23
- "output": "{\n \"Response\": {\n \"VulnerabilityList\": [\n {\n \"Summary\": {\n \"CNNVDID\": \"CNNVD-201909-447\",\n \"CNVDID\": \"CNVD-2019-38485\",\n \"CVEID\": \"CVE-2019-1547\",\n \"IsSuggest\": false,\n \"Name\": \"OpenSSL 安全漏洞\",\n \"Severity\": \"Medium\",\n \"VulID\": \"pcmgr-124087\"\n },\n \"SummaryInComponent\": {\n \"AffectedComponent\": \"openssl\",\n \"AffectedVersion\": \"1.1.1\",\n \"CanBeFixed\": true,\n \"FixedVersion\": \">1.0.2s,>1.1.0k,>1.1.1c\",\n \"PURL\": {\n \"Name\": \"openssl\",\n \"Namespace\": \"\",\n \"Protocol\": \"\",\n \"Qualifiers\": [],\n \"Subpath\": \"\",\n \"Version\": \"1.1.1\"\n },\n \"RiskLevel\": \"Medium\"\n }\n }\n ],\n \"RequestId\": \"278a8e3b-f491-4396-b6b2-984a354ff5b0\"\n }\n}",
22
+ "input": "POST / HTTP/1.1\nHost: bsca.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKBComponentVulnerability\n<公共请求参数>\n\n{\n \"PURL\": {\n \"Name\": \"xxl-job-core\",\n \"Protocol\": \"maven\",\n \"Namespace\": \"com.xuxueli\",\n \"Version\": \"2.2.0\"\n }\n}",
23
+ "output": "{\n \"Response\": {\n \"PURL\": {\n \"Name\": \"com.xuxueli:xxl-job-core\",\n \"Namespace\": \"\",\n \"Protocol\": \"maven\",\n \"Qualifiers\": [],\n \"Subpath\": \"\",\n \"Version\": \"2.2.0\"\n },\n \"RecommendedVersion\": \"2.4.1\",\n \"VulnerabilityList\": [\n {\n \"Summary\": {\n \"ArchitectureList\": [],\n \"CNNVDID\": \"CNNVD-202408-1426\",\n \"CNVDID\": \"\",\n \"CVEID\": \"CVE-2024-42681\",\n \"IsSuggest\": true,\n \"Name\": \"XXL-JOB 安全漏洞\",\n \"PatchUrlList\": null,\n \"Severity\": \"High\",\n \"VulID\": \"pcmgr-513695\"\n },\n \"SummaryInComponent\": {\n \"AffectedComponent\": \"com.xuxueli:xxl-job-core\",\n \"AffectedVersion\": \"2.2.0\",\n \"CanBeFixed\": true,\n \"FixedVersion\": \">2.4.1\",\n \"PURL\": {\n \"Name\": \"com.xuxueli:xxl-job-core\",\n \"Namespace\": \"\",\n \"Protocol\": \"maven\",\n \"Qualifiers\": [],\n \"Subpath\": \"\",\n \"Version\": \"2.2.0\"\n },\n \"RiskLevel\": \"High\"\n }\n },\n {\n \"Summary\": {\n \"ArchitectureList\": [],\n \"CNNVDID\": \"CNNVD-202012-1604\",\n \"CNVDID\": \"CNVD-2021-44699\",\n \"CVEID\": \"CVE-2020-29204\",\n \"IsSuggest\": false,\n \"Name\": \"XXL-JOB跨站脚本漏洞(CVE-2020-29204)\",\n \"PatchUrlList\": null,\n \"Severity\": \"Medium\",\n \"VulID\": \"pcmgr-304614\"\n },\n \"SummaryInComponent\": {\n \"AffectedComponent\": \"com.xuxueli:xxl-job-core\",\n \"AffectedVersion\": \"2.2.0\",\n \"CanBeFixed\": true,\n \"FixedVersion\": \">2.2.0,2.3.0\",\n \"PURL\": {\n \"Name\": \"com.xuxueli:xxl-job-core\",\n \"Namespace\": \"\",\n \"Protocol\": \"maven\",\n \"Qualifiers\": [],\n \"Subpath\": \"\",\n \"Version\": \"2.2.0\"\n },\n \"RiskLevel\": \"Medium\"\n }\n },\n {\n \"Summary\": {\n \"ArchitectureList\": [],\n \"CNNVDID\": \"CNNVD-202209-2891\",\n \"CNVDID\": \"\",\n \"CVEID\": \"CVE-2022-40929\",\n \"IsSuggest\": true,\n \"Name\": \"XXL-JOB 命令注入漏洞\",\n \"PatchUrlList\": null,\n \"Severity\": \"Critical\",\n \"VulID\": \"pcmgr-368382\"\n },\n \"SummaryInComponent\": {\n \"AffectedComponent\": \"com.xuxueli:xxl-job-core\",\n \"AffectedVersion\": \"2.2.0\",\n \"CanBeFixed\": true,\n \"FixedVersion\": \">2.2.0\",\n \"PURL\": {\n \"Name\": \"com.xuxueli:xxl-job-core\",\n \"Namespace\": \"\",\n \"Protocol\": \"maven\",\n \"Qualifiers\": [],\n \"Subpath\": \"\",\n \"Version\": \"2.2.0\"\n },\n \"RiskLevel\": \"Critical\"\n }\n },\n {\n \"Summary\": {\n \"ArchitectureList\": [],\n \"CNNVDID\": \"\",\n \"CNVDID\": \"CNVD-2022-81229\",\n \"CVEID\": \"CVE-2022-43183\",\n \"IsSuggest\": true,\n \"Name\": \"XXL-JOB代码问题漏洞(CVE-2022-43183)\",\n \"PatchUrlList\": null,\n \"Severity\": \"High\",\n \"VulID\": \"pcmgr-378820\"\n },\n \"SummaryInComponent\": {\n \"AffectedComponent\": \"com.xuxueli:xxl-job-core\",\n \"AffectedVersion\": \"2.2.0\",\n \"CanBeFixed\": true,\n \"FixedVersion\": \">2.3.0,2.3.1\",\n \"PURL\": {\n \"Name\": \"com.xuxueli:xxl-job-core\",\n \"Namespace\": \"\",\n \"Protocol\": \"maven\",\n \"Qualifiers\": [],\n \"Subpath\": \"\",\n \"Version\": \"2.2.0\"\n },\n \"RiskLevel\": \"High\"\n }\n },\n {\n \"Summary\": {\n \"ArchitectureList\": [],\n \"CNNVDID\": \"CNNVD-202404-775\",\n \"CNVDID\": \"\",\n \"CVEID\": \"CVE-2024-3366\",\n \"IsSuggest\": false,\n \"Name\": \"XXL-JOB 注入漏洞(CVE-2024-3366)\",\n \"PatchUrlList\": null,\n \"Severity\": \"High\",\n \"VulID\": \"pcmgr-485156\"\n },\n \"SummaryInComponent\": {\n \"AffectedComponent\": \"com.xuxueli:xxl-job-core\",\n \"AffectedVersion\": \"2.2.0\",\n \"CanBeFixed\": true,\n \"FixedVersion\": \">2.4.0,2.4.1\",\n \"PURL\": {\n \"Name\": \"com.xuxueli:xxl-job-core\",\n \"Namespace\": \"\",\n \"Protocol\": \"maven\",\n \"Qualifiers\": [],\n \"Subpath\": \"\",\n \"Version\": \"2.2.0\"\n },\n \"RiskLevel\": \"High\"\n }\n }\n ],\n \"RequestId\": \"3eed4bda-8f2c-444f-bac8-d64555eb0e05\"\n }\n}",
24
24
  "title": "查询openssl 1.1.1的漏洞信息"
25
25
  }
26
26
  ],
@@ -225,6 +225,58 @@ def doCreateAICall(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
+ def doDescribeTelRecordAsr(args, parsed_globals):
229
+ g_param = parse_global_arg(parsed_globals)
230
+
231
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
232
+ cred = credential.CVMRoleCredential()
233
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
+ cred = credential.STSAssumeRoleCredential(
235
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
+ )
238
+ 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):
239
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
240
+ else:
241
+ cred = credential.Credential(
242
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
243
+ )
244
+ http_profile = HttpProfile(
245
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
246
+ reqMethod="POST",
247
+ endpoint=g_param[OptionsDefine.Endpoint],
248
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
249
+ )
250
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
251
+ if g_param[OptionsDefine.Language]:
252
+ profile.language = g_param[OptionsDefine.Language]
253
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
254
+ client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
255
+ client._sdkVersion += ("_CLI_" + __version__)
256
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
+ model = models.DescribeTelRecordAsrRequest()
258
+ model.from_json_string(json.dumps(args))
259
+ start_time = time.time()
260
+ while True:
261
+ rsp = client.DescribeTelRecordAsr(model)
262
+ result = rsp.to_json_string()
263
+ try:
264
+ json_obj = json.loads(result)
265
+ except TypeError as e:
266
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
267
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
+ break
269
+ cur_time = time.time()
270
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
+ else:
275
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
+
279
+
228
280
  def doModifyOwnNumberApply(args, parsed_globals):
229
281
  g_param = parse_global_arg(parsed_globals)
230
282
 
@@ -3204,6 +3256,7 @@ ACTION_MAP = {
3204
3256
  "DescribeExtensions": doDescribeExtensions,
3205
3257
  "DescribeAutoCalloutTasks": doDescribeAutoCalloutTasks,
3206
3258
  "CreateAICall": doCreateAICall,
3259
+ "DescribeTelRecordAsr": doDescribeTelRecordAsr,
3207
3260
  "ModifyOwnNumberApply": doModifyOwnNumberApply,
3208
3261
  "DescribePredictiveDialingCampaign": doDescribePredictiveDialingCampaign,
3209
3262
  "DescribePSTNActiveSessionList": doDescribePSTNActiveSessionList,