tccli 3.0.1343.1__py2.py3-none-any.whl → 3.0.1345.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.
Files changed (90) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +6 -0
  3. tccli/services/aiart/aiart_client.py +167 -61
  4. tccli/services/aiart/v20221229/api.json +253 -0
  5. tccli/services/aiart/v20221229/examples.json +16 -0
  6. tccli/services/ams/v20201229/api.json +46 -46
  7. tccli/services/ams/v20201229/examples.json +1 -1
  8. tccli/services/apm/v20210622/api.json +228 -0
  9. tccli/services/apm/v20210622/examples.json +1 -1
  10. tccli/services/batch/batch_client.py +53 -0
  11. tccli/services/batch/v20170312/api.json +127 -2
  12. tccli/services/batch/v20170312/examples.json +8 -0
  13. tccli/services/bh/v20230418/api.json +282 -1
  14. tccli/services/bh/v20230418/examples.json +3 -3
  15. tccli/services/bi/v20220105/api.json +9 -0
  16. tccli/services/ccc/ccc_client.py +61 -8
  17. tccli/services/ccc/v20200210/api.json +130 -0
  18. tccli/services/ccc/v20200210/examples.json +8 -0
  19. tccli/services/cdb/v20170320/api.json +103 -103
  20. tccli/services/cdb/v20170320/examples.json +5 -5
  21. tccli/services/cdwch/cdwch_client.py +53 -0
  22. tccli/services/cdwch/v20200915/api.json +410 -0
  23. tccli/services/cdwch/v20200915/examples.json +8 -0
  24. tccli/services/cdwdoris/v20211228/api.json +22 -2
  25. tccli/services/cfg/v20210820/api.json +72 -0
  26. tccli/services/ckafka/v20190819/api.json +21 -1
  27. tccli/services/csip/csip_client.py +326 -8
  28. tccli/services/csip/v20221121/api.json +2015 -335
  29. tccli/services/csip/v20221121/examples.json +65 -5
  30. tccli/services/cvm/v20170312/api.json +16 -5
  31. tccli/services/cvm/v20170312/examples.json +1 -1
  32. tccli/services/dlc/v20210125/api.json +61 -0
  33. tccli/services/emr/emr_client.py +167 -8
  34. tccli/services/emr/v20190103/api.json +831 -15
  35. tccli/services/emr/v20190103/examples.json +24 -0
  36. tccli/services/es/v20250101/examples.json +2 -2
  37. tccli/services/ess/v20201111/api.json +57 -8
  38. tccli/services/essbasic/v20210526/api.json +23 -3
  39. tccli/services/gs/v20191118/api.json +41 -2
  40. tccli/services/gs/v20191118/examples.json +2 -2
  41. tccli/services/hunyuan/v20230901/api.json +1 -1
  42. tccli/services/igtm/__init__.py +4 -0
  43. tccli/services/igtm/igtm_client.py +1373 -0
  44. tccli/services/igtm/v20231024/api.json +3569 -0
  45. tccli/services/igtm/v20231024/examples.json +207 -0
  46. tccli/services/ims/v20201229/api.json +20 -28
  47. tccli/services/ioa/ioa_client.py +114 -8
  48. tccli/services/ioa/v20220601/api.json +218 -3
  49. tccli/services/ioa/v20220601/examples.json +16 -0
  50. tccli/services/iss/v20230517/api.json +11 -2
  51. tccli/services/kms/v20190118/api.json +4 -4
  52. tccli/services/lighthouse/v20200324/api.json +1 -1
  53. tccli/services/mps/v20190612/api.json +45 -7
  54. tccli/services/oceanus/v20190422/api.json +168 -8
  55. tccli/services/ocr/v20181119/api.json +127 -118
  56. tccli/services/partners/v20180321/api.json +1 -1
  57. tccli/services/redis/v20180412/api.json +9 -0
  58. tccli/services/securitylake/__init__.py +4 -0
  59. tccli/services/securitylake/securitylake_client.py +207 -0
  60. tccli/services/securitylake/v20240117/api.json +723 -0
  61. tccli/services/securitylake/v20240117/examples.json +13 -0
  62. tccli/services/tcbr/v20220217/api.json +70 -0
  63. tccli/services/tdmq/v20200217/api.json +263 -5
  64. tccli/services/tdmq/v20200217/examples.json +1 -1
  65. tccli/services/teo/v20220901/api.json +40 -30
  66. tccli/services/teo/v20220901/examples.json +19 -19
  67. tccli/services/tione/tione_client.py +57 -4
  68. tccli/services/tione/v20211111/api.json +283 -1
  69. tccli/services/tione/v20211111/examples.json +8 -0
  70. tccli/services/tke/v20180525/api.json +37 -28
  71. tccli/services/tms/v20201229/api.json +14 -21
  72. tccli/services/trocket/v20230308/api.json +81 -81
  73. tccli/services/trocket/v20230308/examples.json +1 -1
  74. tccli/services/trtc/v20190722/api.json +29 -0
  75. tccli/services/tsf/tsf_client.py +61 -8
  76. tccli/services/tsf/v20180326/api.json +3161 -2106
  77. tccli/services/tsf/v20180326/examples.json +8 -0
  78. tccli/services/vdb/v20230616/api.json +49 -0
  79. tccli/services/vdb/v20230616/examples.json +1 -1
  80. tccli/services/vm/v20210922/api.json +8 -8
  81. tccli/services/vpc/v20170312/api.json +1 -1
  82. tccli/services/waf/v20180125/api.json +52 -2
  83. tccli/services/wav/v20210129/api.json +10 -10
  84. tccli/services/wav/v20210129/examples.json +3 -3
  85. tccli/services/wedata/v20210820/api.json +11 -0
  86. {tccli-3.0.1343.1.dist-info → tccli-3.0.1345.1.dist-info}/METADATA +2 -2
  87. {tccli-3.0.1343.1.dist-info → tccli-3.0.1345.1.dist-info}/RECORD +90 -82
  88. {tccli-3.0.1343.1.dist-info → tccli-3.0.1345.1.dist-info}/WHEEL +0 -0
  89. {tccli-3.0.1343.1.dist-info → tccli-3.0.1345.1.dist-info}/entry_points.txt +0 -0
  90. {tccli-3.0.1343.1.dist-info → tccli-3.0.1345.1.dist-info}/license_files/LICENSE +0 -0
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "document": "查看审核任务列表",
38
38
  "input": "POST / HTTP/1.1\nHost: ams.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTasks\n<公共请求参数>\n\n{\n \"Filter\": {\n \"Type\": \"AUDIO\"\n }\n}",
39
- "output": "{\n \"Response\": {\n \"Total\": \"382\",\n \"Data\": [\n {\n \"DataId\": \"317xxx867800\",\n \"TaskId\": \"w-audio-xxxxx_ouZOdcjYeN\",\n \"Status\": \"FINISH\",\n \"Name\": \"test\",\n \"BizType\": \"audit_txxxxx_xmly\",\n \"Type\": \"AUDIO\",\n \"Suggestion\": \"Review\",\n \"MediaInfo\": {\n \"Codecs\": \"\",\n \"Duration\": 177,\n \"Width\": 0,\n \"Height\": 0,\n \"Thumbnail\": \"\"\n },\n \"Labels\": [\n {\n \"Label\": \"Abuse\",\n \"Suggestion\": \"Review\",\n \"Score\": 86,\n \"SubLabel\": \"Uncivilized\"\n }\n ],\n \"InputInfo\": {\n \"Type\": \"URL\",\n \"Url\": \"https://xxxx.com\",\n \"BucketInfo\": null\n },\n \"CreatedAt\": \"2024-10-23T08:41:07.947Z\",\n \"UpdatedAt\": \"2024-10-23T08:41:53.739Z\"\n }\n ],\n \"PageToken\": \".Zxi2o_ouxxxxjYeN\",\n \"RequestId\": \"8172167d-8755-43d8-a7ce-76f3103059ac\"\n }\n}",
39
+ "output": "{\n \"Response\": {\n \"Total\": \"382\",\n \"Data\": [\n {\n \"DataId\": \"317xxx867800\",\n \"TaskId\": \"w-audio-xxxxx_ouZOdcjYeN\",\n \"Status\": \"FINISH\",\n \"Name\": \"测试视频\",\n \"BizType\": \"audit_txxxxx_xmly\",\n \"Type\": \"AUDIO\",\n \"Suggestion\": \"Review\",\n \"MediaInfo\": {\n \"Codecs\": \"\",\n \"Duration\": 177,\n \"Width\": 0,\n \"Height\": 0,\n \"Thumbnail\": \"\"\n },\n \"Labels\": [\n {\n \"Label\": \"Abuse\",\n \"Suggestion\": \"Review\",\n \"Score\": 86,\n \"SubLabel\": \"Uncivilized\"\n }\n ],\n \"InputInfo\": {\n \"Type\": \"URL\",\n \"Url\": \"https://xxxx.com\",\n \"BucketInfo\": null\n },\n \"CreatedAt\": \"2024-10-23T08:41:07.947Z\",\n \"UpdatedAt\": \"2024-10-23T08:41:53.739Z\"\n }\n ],\n \"PageToken\": \".Zxi2o_ouxxxxjYeN\",\n \"RequestId\": \"8172167d-8755-43d8-a7ce-76f3103059ac\"\n }\n}",
40
40
  "title": "查看审核任务列表"
41
41
  }
42
42
  ]
@@ -920,6 +920,126 @@
920
920
  "type": "string",
921
921
  "value_allowed_null": false
922
922
  },
923
+ {
924
+ "disabled": false,
925
+ "document": "是否开启删除任意文件检测(0-关闭,1-开启)",
926
+ "example": "0",
927
+ "member": "int64",
928
+ "name": "IsDeleteAnyFileAnalysis",
929
+ "output_required": true,
930
+ "type": "int",
931
+ "value_allowed_null": false
932
+ },
933
+ {
934
+ "disabled": false,
935
+ "document": "是否开启读取任意文件检测(0-关闭,1-开启)",
936
+ "example": "0",
937
+ "member": "int64",
938
+ "name": "IsReadAnyFileAnalysis",
939
+ "output_required": true,
940
+ "type": "int",
941
+ "value_allowed_null": false
942
+ },
943
+ {
944
+ "disabled": false,
945
+ "document": "是否开启上传任意文件检测(0-关闭,1-开启)",
946
+ "example": "0",
947
+ "member": "int64",
948
+ "name": "IsUploadAnyFileAnalysis",
949
+ "output_required": true,
950
+ "type": "int",
951
+ "value_allowed_null": false
952
+ },
953
+ {
954
+ "disabled": false,
955
+ "document": "是否开启包含任意文件检测(0-关闭,1-开启)",
956
+ "example": "0",
957
+ "member": "int64",
958
+ "name": "IsIncludeAnyFileAnalysis",
959
+ "output_required": true,
960
+ "type": "int",
961
+ "value_allowed_null": false
962
+ },
963
+ {
964
+ "disabled": false,
965
+ "document": "是否开启目录遍历检测(0-关闭,1-开启)",
966
+ "example": "0",
967
+ "member": "int64",
968
+ "name": "IsDirectoryTraversalAnalysis",
969
+ "output_required": true,
970
+ "type": "int",
971
+ "value_allowed_null": false
972
+ },
973
+ {
974
+ "disabled": false,
975
+ "document": "是否开启模板引擎注入检测(0-关闭,1-开启)",
976
+ "example": "0",
977
+ "member": "int64",
978
+ "name": "IsTemplateEngineInjectionAnalysis",
979
+ "output_required": true,
980
+ "type": "int",
981
+ "value_allowed_null": false
982
+ },
983
+ {
984
+ "disabled": false,
985
+ "document": "是否开启脚本引擎注入检测(0-关闭,1-开启)",
986
+ "example": "0",
987
+ "member": "int64",
988
+ "name": "IsScriptEngineInjectionAnalysis",
989
+ "output_required": true,
990
+ "type": "int",
991
+ "value_allowed_null": false
992
+ },
993
+ {
994
+ "disabled": false,
995
+ "document": "是否开启表达式注入检测(0-关闭,1-开启)",
996
+ "example": "0",
997
+ "member": "int64",
998
+ "name": "IsExpressionInjectionAnalysis",
999
+ "output_required": true,
1000
+ "type": "int",
1001
+ "value_allowed_null": false
1002
+ },
1003
+ {
1004
+ "disabled": false,
1005
+ "document": "是否开启JNDI注入检测(0-关闭,1-开启)",
1006
+ "example": "0",
1007
+ "member": "int64",
1008
+ "name": "IsJNDIInjectionAnalysis",
1009
+ "output_required": true,
1010
+ "type": "int",
1011
+ "value_allowed_null": false
1012
+ },
1013
+ {
1014
+ "disabled": false,
1015
+ "document": "是否开启JNI注入检测(0-关闭,1-开启)",
1016
+ "example": "0",
1017
+ "member": "int64",
1018
+ "name": "IsJNIInjectionAnalysis",
1019
+ "output_required": true,
1020
+ "type": "int",
1021
+ "value_allowed_null": false
1022
+ },
1023
+ {
1024
+ "disabled": false,
1025
+ "document": "是否开启Webshell后门检测(0-关闭,1-开启)",
1026
+ "example": "0",
1027
+ "member": "int64",
1028
+ "name": "IsWebshellBackdoorAnalysis",
1029
+ "output_required": true,
1030
+ "type": "int",
1031
+ "value_allowed_null": false
1032
+ },
1033
+ {
1034
+ "disabled": false,
1035
+ "document": "是否开启反序列化检测(0-关闭,1-开启)",
1036
+ "example": "0",
1037
+ "member": "int64",
1038
+ "name": "IsDeserializationAnalysis",
1039
+ "output_required": true,
1040
+ "type": "int",
1041
+ "value_allowed_null": false
1042
+ },
923
1043
  {
924
1044
  "disabled": false,
925
1045
  "document": "业务系统鉴权 token",
@@ -2492,6 +2612,114 @@
2492
2612
  "name": "LogTraceIdKey",
2493
2613
  "required": false,
2494
2614
  "type": "string"
2615
+ },
2616
+ {
2617
+ "disabled": false,
2618
+ "document": "是否开启删除任意文件检测(0-关闭,1-开启)",
2619
+ "example": "0",
2620
+ "member": "int64",
2621
+ "name": "IsDeleteAnyFileAnalysis",
2622
+ "required": false,
2623
+ "type": "int"
2624
+ },
2625
+ {
2626
+ "disabled": false,
2627
+ "document": "是否开启读取任意文件检测(0-关闭,1-开启)",
2628
+ "example": "0",
2629
+ "member": "int64",
2630
+ "name": "IsReadAnyFileAnalysis",
2631
+ "required": false,
2632
+ "type": "int"
2633
+ },
2634
+ {
2635
+ "disabled": false,
2636
+ "document": "是否开启上传任意文件检测(0-关闭,1-开启)",
2637
+ "example": "0",
2638
+ "member": "int64",
2639
+ "name": "IsUploadAnyFileAnalysis",
2640
+ "required": false,
2641
+ "type": "int"
2642
+ },
2643
+ {
2644
+ "disabled": false,
2645
+ "document": "是否开启包含任意文件检测(0-关闭,1-开启)",
2646
+ "example": "0",
2647
+ "member": "int64",
2648
+ "name": "IsIncludeAnyFileAnalysis",
2649
+ "required": false,
2650
+ "type": "int"
2651
+ },
2652
+ {
2653
+ "disabled": false,
2654
+ "document": "是否开启目录遍历检测(0-关闭,1-开启)",
2655
+ "example": "0",
2656
+ "member": "int64",
2657
+ "name": "IsDirectoryTraversalAnalysis",
2658
+ "required": false,
2659
+ "type": "int"
2660
+ },
2661
+ {
2662
+ "disabled": false,
2663
+ "document": "是否开启模板引擎注入检测(0-关闭,1-开启)",
2664
+ "example": "0",
2665
+ "member": "int64",
2666
+ "name": "IsTemplateEngineInjectionAnalysis",
2667
+ "required": false,
2668
+ "type": "int"
2669
+ },
2670
+ {
2671
+ "disabled": false,
2672
+ "document": "是否开启脚本引擎注入检测(0-关闭,1-开启)",
2673
+ "example": "0",
2674
+ "member": "int64",
2675
+ "name": "IsScriptEngineInjectionAnalysis",
2676
+ "required": false,
2677
+ "type": "int"
2678
+ },
2679
+ {
2680
+ "disabled": false,
2681
+ "document": "是否开启表达式注入检测(0-关闭,1-开启)",
2682
+ "example": "0",
2683
+ "member": "int64",
2684
+ "name": "IsExpressionInjectionAnalysis",
2685
+ "required": false,
2686
+ "type": "int"
2687
+ },
2688
+ {
2689
+ "disabled": false,
2690
+ "document": "是否开启JNDI注入检测(0-关闭,1-开启)",
2691
+ "example": "0",
2692
+ "member": "int64",
2693
+ "name": "IsJNDIInjectionAnalysis",
2694
+ "required": false,
2695
+ "type": "int"
2696
+ },
2697
+ {
2698
+ "disabled": false,
2699
+ "document": "是否开启JNI注入检测(0-关闭,1-开启)",
2700
+ "example": "0",
2701
+ "member": "int64",
2702
+ "name": "IsJNIInjectionAnalysis",
2703
+ "required": false,
2704
+ "type": "int"
2705
+ },
2706
+ {
2707
+ "disabled": false,
2708
+ "document": "是否开启Webshell后门检测(0-关闭,1-开启)",
2709
+ "example": "0",
2710
+ "member": "int64",
2711
+ "name": "IsWebshellBackdoorAnalysis",
2712
+ "required": false,
2713
+ "type": "int"
2714
+ },
2715
+ {
2716
+ "disabled": false,
2717
+ "document": "是否开启反序列化检测(0-关闭,1-开启)",
2718
+ "example": "0",
2719
+ "member": "int64",
2720
+ "name": "IsDeserializationAnalysis",
2721
+ "required": false,
2722
+ "type": "int"
2495
2723
  }
2496
2724
  ],
2497
2725
  "type": "object"
@@ -28,7 +28,7 @@
28
28
  {
29
29
  "document": "获取 APM 业务系统列表",
30
30
  "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeApmInstances\n<公共请求参数>\n\n{\n \"Tags\": [\n {\n \"Key\": \"appId\",\n \"Value\": \"251005942\"\n }\n ]\n}",
31
- "output": "{\n \"Response\": {\n \"Instances\": [\n {\n \"AmountOfUsedStorage\": 100,\n \"AppId\": 251005942,\n \"BillingInstance\": 0,\n \"ClientCount\": 0,\n \"CountOfReportSpanPerDay\": 0,\n \"CreateUin\": \"1500000686\",\n \"CustomShowTags\": [],\n \"DashboardTopicID\": \"\",\n \"DefaultTSF\": 0,\n \"Description\": \"\",\n \"ErrRateThreshold\": 5,\n \"ErrorSample\": 1,\n \"Free\": 2,\n \"InstanceId\": \"apm-u6HNYVXhz\",\n \"IsInstrumentationVulnerabilityScan\": 1,\n \"IsMemoryHijackingAnalysis\": 1,\n \"IsRelatedDashboard\": 0,\n \"IsRelatedLog\": 0,\n \"IsRemoteCommandExecutionAnalysis\": 1,\n \"IsSqlInjectionAnalysis\": 1,\n \"LogIndexType\": 0,\n \"LogRegion\": \"\",\n \"LogSet\": \"\",\n \"LogSource\": \"\",\n \"LogTopicID\": \"\",\n \"LogTraceIdKey\": \"\",\n \"MetricDuration\": 3,\n \"Name\": \"test1\",\n \"PayMode\": 0,\n \"PayModeEffective\": true,\n \"Region\": \"ap-guangzhou\",\n \"ResponseDurationWarningThreshold\": 500,\n \"SampleRate\": 100,\n \"ServiceCount\": 0,\n \"SlowRequestSavedThreshold\": 500,\n \"SpanDailyCounters\": 0,\n \"Status\": 1,\n \"StopReason\": 0,\n \"Tags\": [\n {\n \"Key\": \"负责人\",\n \"Value\": \"archerkang\"\n },\n {\n \"Key\": \"运营产品\",\n \"Value\": \"云监控产品\"\n },\n {\n \"Key\": \"运营部门\",\n \"Value\": \"/../../../../../../../../../../../../../../../../../../../../etc/./////.////.///.//./passwd\"\n }\n ],\n \"TotalCount\": 0,\n \"TraceDuration\": 7\n }\n ],\n \"RequestId\": \"1afaff9e-88c9-4949-9c84-fd5eae88a88a\"\n }\n}",
31
+ "output": "{\n \"Response\": {\n \"Instances\": [\n {\n \"AmountOfUsedStorage\": 100,\n \"AppId\": 251005942,\n \"BillingInstance\": 0,\n \"ClientCount\": 0,\n \"CountOfReportSpanPerDay\": 0,\n \"CreateUin\": \"1500000686\",\n \"CustomShowTags\": [],\n \"DashboardTopicID\": \"\",\n \"DefaultTSF\": 0,\n \"Description\": \"\",\n \"ErrRateThreshold\": 5,\n \"ErrorSample\": 1,\n \"Free\": 2,\n \"InstanceId\": \"apm-u6HNYVXhz\",\n \"IsDeleteAnyFileAnalysis\": 1,\n \"IsDeserializationAnalysis\": 1,\n \"IsDirectoryTraversalAnalysis\": 1,\n \"IsExpressionInjectionAnalysis\": 1,\n \"IsIncludeAnyFileAnalysis\": 1,\n \"IsInstrumentationVulnerabilityScan\": 1,\n \"IsJNDIInjectionAnalysis\": 1,\n \"IsJNIInjectionAnalysis\": 1,\n \"IsMemoryHijackingAnalysis\": 1,\n \"IsReadAnyFileAnalysis\": 1,\n \"IsRelatedDashboard\": 0,\n \"IsRelatedLog\": 0,\n \"IsRemoteCommandExecutionAnalysis\": 1,\n \"IsScriptEngineInjectionAnalysis\": 1,\n \"IsSqlInjectionAnalysis\": 1,\n \"IsTemplateEngineInjectionAnalysis\": 1,\n \"IsUploadAnyFileAnalysis\": 1,\n \"IsWebshellBackdoorAnalysis\": 1,\n \"LogIndexType\": 0,\n \"LogRegion\": \"\",\n \"LogSet\": \"\",\n \"LogSource\": \"\",\n \"LogTopicID\": \"\",\n \"LogTraceIdKey\": \"\",\n \"MetricDuration\": 3,\n \"Name\": \"test1\",\n \"PayMode\": 0,\n \"PayModeEffective\": true,\n \"Region\": \"ap-guangzhou\",\n \"ResponseDurationWarningThreshold\": 500,\n \"SampleRate\": 100,\n \"ServiceCount\": 0,\n \"SlowRequestSavedThreshold\": 500,\n \"SpanDailyCounters\": 0,\n \"Status\": 1,\n \"StopReason\": 0,\n \"Tags\": [\n {\n \"Key\": \"负责人\",\n \"Value\": \"archerkang\"\n },\n {\n \"Key\": \"运营产品\",\n \"Value\": \"云监控产品\"\n },\n {\n \"Key\": \"运营部门\",\n \"Value\": \"/../../../../../../../../../../../../../../../../../../../../etc/./////.////.///.//./passwd\"\n }\n ],\n \"TotalCount\": 0,\n \"TraceDuration\": 7\n }\n ],\n \"RequestId\": \"1afaff9e-88c9-4949-9c84-fd5eae88a88a\"\n }\n}",
32
32
  "title": "获取 APM 业务系统列表"
33
33
  }
34
34
  ],
@@ -17,6 +17,58 @@ from tencentcloud.batch.v20170312 import models as models_v20170312
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
+ def doDescribeJobMonitorData(args, parsed_globals):
21
+ g_param = parse_global_arg(parsed_globals)
22
+
23
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
+ cred = credential.CVMRoleCredential()
25
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
+ cred = credential.STSAssumeRoleCredential(
27
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
+ )
30
+ 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):
31
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
+ else:
33
+ cred = credential.Credential(
34
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
+ )
36
+ http_profile = HttpProfile(
37
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
+ reqMethod="POST",
39
+ endpoint=g_param[OptionsDefine.Endpoint],
40
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
+ )
42
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
+ if g_param[OptionsDefine.Language]:
44
+ profile.language = g_param[OptionsDefine.Language]
45
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
+ client = mod.BatchClient(cred, g_param[OptionsDefine.Region], profile)
47
+ client._sdkVersion += ("_CLI_" + __version__)
48
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
+ model = models.DescribeJobMonitorDataRequest()
50
+ model.from_json_string(json.dumps(args))
51
+ start_time = time.time()
52
+ while True:
53
+ rsp = client.DescribeJobMonitorData(model)
54
+ result = rsp.to_json_string()
55
+ try:
56
+ json_obj = json.loads(result)
57
+ except TypeError as e:
58
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
59
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
+ break
61
+ cur_time = time.time()
62
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
+ else:
67
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
+
71
+
20
72
  def doDescribeCvmZoneInstanceConfigInfos(args, parsed_globals):
21
73
  g_param = parse_global_arg(parsed_globals)
22
74
 
@@ -1536,6 +1588,7 @@ MODELS_MAP = {
1536
1588
  }
1537
1589
 
1538
1590
  ACTION_MAP = {
1591
+ "DescribeJobMonitorData": doDescribeJobMonitorData,
1539
1592
  "DescribeCvmZoneInstanceConfigInfos": doDescribeCvmZoneInstanceConfigInfos,
1540
1593
  "CreateTaskTemplate": doCreateTaskTemplate,
1541
1594
  "TerminateComputeNode": doTerminateComputeNode,
@@ -105,6 +105,13 @@
105
105
  "output": "DescribeJobResponse",
106
106
  "status": "online"
107
107
  },
108
+ "DescribeJobMonitorData": {
109
+ "document": "查询作业任务实例的资源使用监控信息。当前只支持查询弹性节点任务并且Job未删除;暂不支持计算环境类任务;该接口只支持查询作业实例时间范围之内的资源使用情况。",
110
+ "input": "DescribeJobMonitorDataRequest",
111
+ "name": "查询作业任务实例的资源监控信息",
112
+ "output": "DescribeJobMonitorDataResponse",
113
+ "status": "online"
114
+ },
108
115
  "DescribeJobSubmitInfo": {
109
116
  "document": "用于查询指定作业的提交信息,其返回内容包括 JobId 和 SubmitJob 接口中作为输入参数的作业提交信息",
110
117
  "input": "DescribeJobSubmitInfoRequest",
@@ -1254,6 +1261,32 @@
1254
1261
  ],
1255
1262
  "usage": "both"
1256
1263
  },
1264
+ "DataPointView": {
1265
+ "document": "监控采集的数据。",
1266
+ "members": [
1267
+ {
1268
+ "disabled": false,
1269
+ "document": "监控数据采集的时间\n",
1270
+ "example": "[1749696420, 1749696430]",
1271
+ "member": "int64",
1272
+ "name": "Timestamps",
1273
+ "output_required": true,
1274
+ "type": "list",
1275
+ "value_allowed_null": false
1276
+ },
1277
+ {
1278
+ "disabled": false,
1279
+ "document": "监控指标数据; 如果涉及到多个实例的监控数据的间隙时间,取值会为null\n",
1280
+ "example": "[0.1, 0.2]",
1281
+ "member": "float",
1282
+ "name": "Values",
1283
+ "output_required": true,
1284
+ "type": "list",
1285
+ "value_allowed_null": false
1286
+ }
1287
+ ],
1288
+ "usage": "out"
1289
+ },
1257
1290
  "DeleteComputeEnvRequest": {
1258
1291
  "document": "DeleteComputeEnv请求参数结构体",
1259
1292
  "members": [
@@ -1970,6 +2003,98 @@
1970
2003
  ],
1971
2004
  "type": "object"
1972
2005
  },
2006
+ "DescribeJobMonitorDataRequest": {
2007
+ "document": "DescribeJobMonitorData请求参数结构体",
2008
+ "members": [
2009
+ {
2010
+ "disabled": false,
2011
+ "document": "作业ID;JobId详见[作业列表](https://cloud.tencent.com/document/product/599/15909)",
2012
+ "example": "job-97zcl3wt",
2013
+ "member": "string",
2014
+ "name": "JobId",
2015
+ "required": true,
2016
+ "type": "string"
2017
+ },
2018
+ {
2019
+ "disabled": false,
2020
+ "document": "作业的Task名称,详见[作业详情](https://cloud.tencent.com/document/product/599/15904)。",
2021
+ "example": "demo-1",
2022
+ "member": "string",
2023
+ "name": "TaskName",
2024
+ "required": true,
2025
+ "type": "string"
2026
+ },
2027
+ {
2028
+ "disabled": false,
2029
+ "document": "作业任务实例的序号,详见[任务详情](https://cloud.tencent.com/document/product/599/15905)",
2030
+ "example": "0",
2031
+ "member": "int64",
2032
+ "name": "TaskInstanceIndex",
2033
+ "required": true,
2034
+ "type": "int"
2035
+ },
2036
+ {
2037
+ "disabled": false,
2038
+ "document": "支持查询的指标;当前支持查询的任务指标;\n\n- CpuUsage:cpu利用率,单位:%\n- MemUsage:内存利用率,单位:%\n- LanOuttraffic:内网出带宽,单位:Bytes/s\n- LanIntraffic:内网入带宽,单位:Bytes/s",
2039
+ "example": "CpuUsage",
2040
+ "member": "string",
2041
+ "name": "MetricName",
2042
+ "required": true,
2043
+ "type": "string"
2044
+ },
2045
+ {
2046
+ "disabled": false,
2047
+ "document": "查询任务实例的起始时间;如果未传入查询起始时间或传入的时间小于任务实例的创建时间(任务实例创建时间详见[任务详情](https://cloud.tencent.com/document/product/599/15905)),会自动将查询时间调整到任务实例的创建时间。传入时间格式只支持零时区格式。",
2048
+ "example": "2025-06-11T21:12:50Z",
2049
+ "member": "datetime_iso",
2050
+ "name": "StartTime",
2051
+ "required": false,
2052
+ "type": "string"
2053
+ },
2054
+ {
2055
+ "disabled": false,
2056
+ "document": "查询任务实例的终止时间;如果未传入查询终止时间或传入的时间大于任务实例的终止时间(任务实例终止时间详见[任务详情](https://cloud.tencent.com/document/product/599/15905)),并且任务实例已经结束,会自动将查询终止时间调整到任务实例的终止时间;如果任务实例未结束,会自动将查询终止时间调整到当前时间。传入时间格式只支持零时区格式。",
2057
+ "example": "2025-06-11T22:12:50Z",
2058
+ "member": "datetime_iso",
2059
+ "name": "EndTime",
2060
+ "required": false,
2061
+ "type": "string"
2062
+ }
2063
+ ],
2064
+ "type": "object"
2065
+ },
2066
+ "DescribeJobMonitorDataResponse": {
2067
+ "document": "DescribeJobMonitorData返回参数结构体",
2068
+ "members": [
2069
+ {
2070
+ "disabled": false,
2071
+ "document": "监控数据粒度,单位:秒;时间粒度随着查询的时间范围变化,查询时间范围越小,时间粒度越小。",
2072
+ "example": "10",
2073
+ "member": "int64",
2074
+ "name": "Period",
2075
+ "output_required": true,
2076
+ "type": "int",
2077
+ "value_allowed_null": false
2078
+ },
2079
+ {
2080
+ "disabled": false,
2081
+ "document": "监控采集的数据。时间戳和对应的值一一对应;如果查询的任务重试,采集时间段涉及多个实例的话,某些时间段内的值为null, 表示对应时间点没有实例存在,也不存在对应的监控数据;相邻监控时间段之间的空值数量最多为10。",
2082
+ "example": "无",
2083
+ "member": "DataPointView",
2084
+ "name": "DataPoints",
2085
+ "output_required": true,
2086
+ "type": "object",
2087
+ "value_allowed_null": false
2088
+ },
2089
+ {
2090
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2091
+ "member": "string",
2092
+ "name": "RequestId",
2093
+ "type": "string"
2094
+ }
2095
+ ],
2096
+ "type": "object"
2097
+ },
1973
2098
  "DescribeJobRequest": {
1974
2099
  "document": "DescribeJob请求参数结构体",
1975
2100
  "members": [
@@ -4390,7 +4515,7 @@
4390
4515
  {
4391
4516
  "disabled": false,
4392
4517
  "document": "源端路径",
4393
- "example": "cos://kelvin-test-125176278734.cos.ap-nanjing.myqcloud.com/batch_test/",
4518
+ "example": "/home/output/",
4394
4519
  "member": "string",
4395
4520
  "name": "SourcePath",
4396
4521
  "output_required": true,
@@ -4401,7 +4526,7 @@
4401
4526
  {
4402
4527
  "disabled": false,
4403
4528
  "document": "目的端路径",
4404
- "example": "/home/output/",
4529
+ "example": "cos://kelvin-test-125176278734.cos.ap-nanjing.myqcloud.com/batch_test/",
4405
4530
  "member": "string",
4406
4531
  "name": "DestinationPath",
4407
4532
  "output_required": true,
@@ -120,6 +120,14 @@
120
120
  "title": "查询作业详细信息"
121
121
  }
122
122
  ],
123
+ "DescribeJobMonitorData": [
124
+ {
125
+ "document": "",
126
+ "input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<公共请求参数>\n\n{\n \"JobId\": \"job-1jj9noyr\",\n \"TaskName\": \"demo-1\",\n \"TaskInstanceIndex\": 0,\n \"MetricName\": \"CpuUsage\"\n}",
127
+ "output": "{\n \"Response\": {\n \"RequestId\": \"a66adf73-110f-49b4-a173-c68c952d4428\",\n \"Period\": 60,\n \"DataPoints\": {\n \"Timestamps\": [\n 1749696420,\n 1749696430,\n 1749696440\n ],\n \"Values\": [\n 0.1,\n 0.2,\n 0.3\n ]\n }\n }\n}",
128
+ "title": "查询作业实例的资源使用监控信息"
129
+ }
130
+ ],
123
131
  "DescribeJobSubmitInfo": [
124
132
  {
125
133
  "document": "",