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.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +6 -0
- tccli/services/aiart/aiart_client.py +167 -61
- tccli/services/aiart/v20221229/api.json +253 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/ams/v20201229/api.json +46 -46
- tccli/services/ams/v20201229/examples.json +1 -1
- tccli/services/apm/v20210622/api.json +228 -0
- tccli/services/apm/v20210622/examples.json +1 -1
- tccli/services/batch/batch_client.py +53 -0
- tccli/services/batch/v20170312/api.json +127 -2
- tccli/services/batch/v20170312/examples.json +8 -0
- tccli/services/bh/v20230418/api.json +282 -1
- tccli/services/bh/v20230418/examples.json +3 -3
- tccli/services/bi/v20220105/api.json +9 -0
- tccli/services/ccc/ccc_client.py +61 -8
- tccli/services/ccc/v20200210/api.json +130 -0
- tccli/services/ccc/v20200210/examples.json +8 -0
- tccli/services/cdb/v20170320/api.json +103 -103
- tccli/services/cdb/v20170320/examples.json +5 -5
- tccli/services/cdwch/cdwch_client.py +53 -0
- tccli/services/cdwch/v20200915/api.json +410 -0
- tccli/services/cdwch/v20200915/examples.json +8 -0
- tccli/services/cdwdoris/v20211228/api.json +22 -2
- tccli/services/cfg/v20210820/api.json +72 -0
- tccli/services/ckafka/v20190819/api.json +21 -1
- tccli/services/csip/csip_client.py +326 -8
- tccli/services/csip/v20221121/api.json +2015 -335
- tccli/services/csip/v20221121/examples.json +65 -5
- tccli/services/cvm/v20170312/api.json +16 -5
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +61 -0
- tccli/services/emr/emr_client.py +167 -8
- tccli/services/emr/v20190103/api.json +831 -15
- tccli/services/emr/v20190103/examples.json +24 -0
- tccli/services/es/v20250101/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +57 -8
- tccli/services/essbasic/v20210526/api.json +23 -3
- tccli/services/gs/v20191118/api.json +41 -2
- tccli/services/gs/v20191118/examples.json +2 -2
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/igtm/__init__.py +4 -0
- tccli/services/igtm/igtm_client.py +1373 -0
- tccli/services/igtm/v20231024/api.json +3569 -0
- tccli/services/igtm/v20231024/examples.json +207 -0
- tccli/services/ims/v20201229/api.json +20 -28
- tccli/services/ioa/ioa_client.py +114 -8
- tccli/services/ioa/v20220601/api.json +218 -3
- tccli/services/ioa/v20220601/examples.json +16 -0
- tccli/services/iss/v20230517/api.json +11 -2
- tccli/services/kms/v20190118/api.json +4 -4
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/mps/v20190612/api.json +45 -7
- tccli/services/oceanus/v20190422/api.json +168 -8
- tccli/services/ocr/v20181119/api.json +127 -118
- tccli/services/partners/v20180321/api.json +1 -1
- tccli/services/redis/v20180412/api.json +9 -0
- tccli/services/securitylake/__init__.py +4 -0
- tccli/services/securitylake/securitylake_client.py +207 -0
- tccli/services/securitylake/v20240117/api.json +723 -0
- tccli/services/securitylake/v20240117/examples.json +13 -0
- tccli/services/tcbr/v20220217/api.json +70 -0
- tccli/services/tdmq/v20200217/api.json +263 -5
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +40 -30
- tccli/services/teo/v20220901/examples.json +19 -19
- tccli/services/tione/tione_client.py +57 -4
- tccli/services/tione/v20211111/api.json +283 -1
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +37 -28
- tccli/services/tms/v20201229/api.json +14 -21
- tccli/services/trocket/v20230308/api.json +81 -81
- tccli/services/trocket/v20230308/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +29 -0
- tccli/services/tsf/tsf_client.py +61 -8
- tccli/services/tsf/v20180326/api.json +3161 -2106
- tccli/services/tsf/v20180326/examples.json +8 -0
- tccli/services/vdb/v20230616/api.json +49 -0
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vm/v20210922/api.json +8 -8
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/waf/v20180125/api.json +52 -2
- tccli/services/wav/v20210129/api.json +10 -10
- tccli/services/wav/v20210129/examples.json +3 -3
- tccli/services/wedata/v20210820/api.json +11 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1345.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1345.1.dist-info}/RECORD +90 -82
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1345.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1345.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1345.1.dist-info}/license_files/LICENSE +0 -0
@@ -40,6 +40,20 @@
|
|
40
40
|
"title": "删除风险中心扫描任务"
|
41
41
|
}
|
42
42
|
],
|
43
|
+
"DescribeAccessKeyAsset": [
|
44
|
+
{
|
45
|
+
"document": "",
|
46
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccessKeyAsset\n<公共请求参数>\n\n{}",
|
47
|
+
"output": "{\n \"Response\": {\n \"Data\": [],\n \"Total\": 0,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
48
|
+
"title": "示例1"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"document": "",
|
52
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccessKeyAsset\n<公共请求参数>\n\n{\n \"Filter\": {\n \"Limit\": 1\n }\n}",
|
53
|
+
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"AccessKeyAlarmList\": [\n {\n \"Count\": 7,\n \"Type\": 0\n }\n ],\n \"AccessKeyRiskList\": [\n {\n \"Count\": 11,\n \"Type\": 0\n }\n ],\n \"Advice\": 1,\n \"AppID\": 1256299843,\n \"CheckStatus\": 0,\n \"CreateTime\": \"2024-09-24 19:21:38\",\n \"ID\": 10092,\n \"IPCount\": 1,\n \"LastAccessTime\": \"2025-03-12 20:05:59\",\n \"Name\": \"AKID***1\",\n \"Nickname\": \"飞快的云镜\",\n \"Remark\": \"iiiiii\",\n \"Status\": 1,\n \"SubNickname\": \"piperdev\",\n \"SubUin\": \"100000415991\",\n \"Type\": 1,\n \"Uin\": \"100004506473\"\n }\n ],\n \"RequestId\": \"2b6d0999-a614-41e3-92b8-984c80705275\",\n \"Total\": 37\n }\n}",
|
54
|
+
"title": "1"
|
55
|
+
}
|
56
|
+
],
|
43
57
|
"DescribeAlertList": [
|
44
58
|
{
|
45
59
|
"document": "",
|
@@ -48,6 +62,14 @@
|
|
48
62
|
"title": "告警中心全量告警示例"
|
49
63
|
}
|
50
64
|
],
|
65
|
+
"DescribeAssetProcessList": [
|
66
|
+
{
|
67
|
+
"document": "查询云边界分析-暴露路径下主机节点的进程列表",
|
68
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAssetProcessList\n<公共请求参数>\n\n{\n \"Provider\": \"tencent\"\n}",
|
69
|
+
"output": "{\n \"Response\": {\n \"AssetProcessList\": [\n {\n \"AppID\": 0,\n \"CloudAccountID\": \"\",\n \"CloudAccountName\": \"\",\n \"CmdLine\": \"/usr/sbin/NetworkManager\",\n \"InstanceID\": \"ins-x\",\n \"InstanceName\": \"opcloudos8_1\",\n \"Port\": \"\",\n \"PrivateIp\": \"\",\n \"ProcessID\": \"\",\n \"ProcessName\": \"NetworkManager\",\n \"PublicIp\": \"\"\n }\n ],\n \"RequestId\": \"a6981e0a-681b-4472-83aa-cddbd2c7cccb\",\n \"TotalCount\": 238\n }\n}",
|
70
|
+
"title": "查询云边界分析-暴露路径下主机节点的进程列表"
|
71
|
+
}
|
72
|
+
],
|
51
73
|
"DescribeAssetRiskList": [
|
52
74
|
{
|
53
75
|
"document": "",
|
@@ -96,6 +118,20 @@
|
|
96
118
|
"title": "获取cvm列表"
|
97
119
|
}
|
98
120
|
],
|
121
|
+
"DescribeCallRecord": [
|
122
|
+
{
|
123
|
+
"document": "",
|
124
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCallRecord\n<公共请求参数>\n\n{}",
|
125
|
+
"output": "{\n \"Response\": {\n \"Data\": [],\n \"Total\": 0,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
126
|
+
"title": "示例1"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"document": "",
|
130
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCallRecord\n<公共请求参数>\n\n{\n \"AccessKeyID\": 10058\n}",
|
131
|
+
"output": "{\n \"Response\": {\n \"Data\": [],\n \"RequestId\": \"cee100be-ec33-452c-b10e-320f6e72dc1b\",\n \"Total\": 0\n }\n}",
|
132
|
+
"title": "1"
|
133
|
+
}
|
134
|
+
],
|
99
135
|
"DescribeCheckViewRisks": [
|
100
136
|
{
|
101
137
|
"document": "",
|
@@ -149,7 +185,7 @@
|
|
149
185
|
"document": "",
|
150
186
|
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExposeAssetCategory\n<公共请求参数>\n\n{}",
|
151
187
|
"output": "{\n \"Response\": {\n \"ExposeAssetTypeList\": [\n {\n \"Provider\": \"tencent\",\n \"ProviderName\": \"腾讯云\",\n \"AssetType\": \"cvm_instance\",\n \"AssetTypeName\": \"云服务器\"\n }\n ],\n \"RequestId\": \"46fb51ad-b6d8-4c91-af47-8f4bc947a69c\"\n }\n}",
|
152
|
-
"title": "
|
188
|
+
"title": "云边界分析资产分类"
|
153
189
|
}
|
154
190
|
],
|
155
191
|
"DescribeExposePath": [
|
@@ -157,7 +193,7 @@
|
|
157
193
|
"document": "",
|
158
194
|
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExposePath\n<公共请求参数>\n\n{\n \"AssetId\": \"ins-isd76xs9\"\n}",
|
159
195
|
"output": "{\n \"Response\": {\n \"RequestId\": \"c93adc50-6598-4af6-afa4-51e09895451f\",\n \"Content\": \"\"\n }\n}",
|
160
|
-
"title": "
|
196
|
+
"title": "查询云边界分析路径节点"
|
161
197
|
}
|
162
198
|
],
|
163
199
|
"DescribeExposures": [
|
@@ -165,7 +201,7 @@
|
|
165
201
|
"document": "",
|
166
202
|
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExposures\n<公共请求参数>\n\n{}",
|
167
203
|
"output": "{\n \"Response\": {\n \"ExposeList\": [\n {\n \"AclList\": \"0.0.0.0/0\",\n \"AclType\": \"whitelist\",\n \"AssetId\": \"ins-bvxns9uy\",\n \"AssetType\": \"cvm_instance\",\n \"AssetTypeName\": \"云服务器\",\n \"CloudAccountId\": \"100010427547\",\n \"CloudAccountName\": \"安全攻防\",\n \"CreateTime\": \"2024-10-15T07:21:22Z\",\n \"DisplayRiskType\": \"非标端口\",\n \"DisplayStatus\": \"完全开放\",\n \"Domain\": \"\",\n \"HighRiskPortServiceCount\": 0,\n \"InstanceName\": \"tke_cls-5q9sj52q_worker21\",\n \"Ip\": \"175.178.22.29\",\n \"Port\": \"30000-32768\",\n \"PortServiceCount\": 0,\n \"Provider\": \"腾讯云\",\n \"RiskType\": \"no_standard_port\",\n \"RiskWebAppCount\": 0,\n \"Status\": \"open\",\n \"UpdateTime\": \"2025-01-14T02:31:55Z\",\n \"VulCount\": 0,\n \"WeakPasswordCount\": 0,\n \"WebAppCount\": 0,\n \"ScanTaskStatus\": \"running\",\n \"Uuid\": \"sadsds\",\n \"HasScan\": \"true\",\n \"AppId\": 12465129\n }\n ],\n \"RequestId\": \"0ce09587-eaba-4f70-ae9b-1a80b69ee21f\",\n \"TotalCount\": 102\n }\n}",
|
168
|
-
"title": "
|
204
|
+
"title": "云边界分析资产列表"
|
169
205
|
}
|
170
206
|
],
|
171
207
|
"DescribeGatewayAssets": [
|
@@ -176,6 +212,14 @@
|
|
176
212
|
"title": "示例"
|
177
213
|
}
|
178
214
|
],
|
215
|
+
"DescribeHighBaseLineRiskList": [
|
216
|
+
{
|
217
|
+
"document": "",
|
218
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeHighBaseLineRiskList\n<公共请求参数>\n\n{\n \"CloudAccountID\": \"100014592178\",\n \"Provider\": \"tencent\"\n}",
|
219
|
+
"output": "{\n \"Response\": {\n \"HighBaseLineRiskList\": [\n {\n \"AssetID\": \"ins-xxs13fd\",\n \"CloudAccountID\": \"123342644\",\n \"CreateTime\": \"2024-12-26 21:28:51\",\n \"FixAdvice\": \"\",\n \"InstanceName\": \"主机x安全中心(请勿删除)\",\n \"InstanceStatus\": \"active\",\n \"InstanceStatusName\": \"运行中\",\n \"RiskCategory\": \"4\",\n \"RiskCategoryName\": \"弱口令\",\n \"RiskDesc\": \"系统存在弱口令,可以轻易被猜解,黑客可以通过暴力破解等方式进行密码爆破,从而获取系统用户密码,进而获得系统权限,导致服务器上的文件和数据泄露或者被用作其他攻击用途。\",\n \"RiskLevel\": \"3\",\n \"RiskLevelName\": \"高危\",\n \"RiskName\": \"Linux系统弱口令检测\",\n \"RiskResult\": \"系统中存在弱口令: {\\\"testxxxx\\\": \\\"123******\\\"}\",\n \"UpdateTime\": \"2025-04-22 10:32:19\"\n }\n ],\n \"RequestId\": \"0a44ea12-dce32-46a13-8eb19-2ea7872bb96b\",\n \"TotalCount\": 1\n }\n}",
|
220
|
+
"title": "查询云边界分析-暴露路径下主机节点的高危基线风险列表"
|
221
|
+
}
|
222
|
+
],
|
179
223
|
"DescribeListenerList": [
|
180
224
|
{
|
181
225
|
"document": "示例1",
|
@@ -338,10 +382,10 @@
|
|
338
382
|
],
|
339
383
|
"DescribeScanStatistic": [
|
340
384
|
{
|
341
|
-
"document": "
|
385
|
+
"document": "查询云边界分析结果统计信息",
|
342
386
|
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeScanStatistic\n<公共请求参数>\n\n{}",
|
343
387
|
"output": "{\n \"Response\": {\n \"HighRiskPortServiceCount\": 3,\n \"PortServiceCount\": 3,\n \"PortServiceIncrement\": 0,\n \"RequestId\": \"45ca21d4-f373-4274-9295-5380abc74bed\",\n \"RiskWebAppCount\": 0,\n \"VulCount\": 0,\n \"WeakPasswordCount\": 1,\n \"WebAppCount\": 0,\n \"WebAppIncrement\": 0\n }\n}",
|
344
|
-
"title": "
|
388
|
+
"title": "查询云边界分析结果统计信息"
|
345
389
|
}
|
346
390
|
],
|
347
391
|
"DescribeScanTaskList": [
|
@@ -360,6 +404,14 @@
|
|
360
404
|
"title": "查询漏洞信息"
|
361
405
|
}
|
362
406
|
],
|
407
|
+
"DescribeSourceIPAsset": [
|
408
|
+
{
|
409
|
+
"document": "",
|
410
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSourceIPAsset\n<公共请求参数>\n\n{\n \"Filter\": {\n \"Limit\": 1\n }\n}",
|
411
|
+
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"AKInfo\": [\n {\n \"ID\": 10079,\n \"Name\": \"AKIDb********CxidW\",\n \"Remark\": \"\",\n \"User\": \"fengqqian\"\n },\n {\n \"ID\": 10086,\n \"Name\": \"AKIDuI*******FHvbH3\",\n \"Remark\": \"\",\n \"User\": \"cloudyue\"\n },\n {\n \"ID\": 10093,\n \"Name\": \"临时密钥\",\n \"Remark\": \"飞快的云镜-临时密钥\",\n \"User\": \"飞快的云镜\"\n }\n ],\n \"AccessKeyAlarmList\": [\n {\n \"Count\": 4,\n \"Type\": 0\n }\n ],\n \"ActionCount\": 145,\n \"AppID\": 1256299843,\n \"EventType\": 1,\n \"ID\": 10009,\n \"IPType\": 1,\n \"InstanceID\": \"\",\n \"InstanceName\": \"\",\n \"LastAccessTime\": \"2025-03-13 16:39:00\",\n \"Nickname\": \"飞快的云镜\",\n \"Region\": \"中国 广东省 广州市\",\n \"Remark\": \"\",\n \"SourceIP\": \"106.55.200.246\",\n \"Uin\": \"100004506473\"\n }\n ],\n \"RequestId\": \"e9780808-1e10-4a63-bd2b-dbd74264091a\",\n \"Total\": 124\n }\n}",
|
412
|
+
"title": "1"
|
413
|
+
}
|
414
|
+
],
|
363
415
|
"DescribeSubUserInfo": [
|
364
416
|
{
|
365
417
|
"document": "",
|
@@ -440,6 +492,14 @@
|
|
440
492
|
"title": "获取vpc列表"
|
441
493
|
}
|
442
494
|
],
|
495
|
+
"DescribeVulRiskList": [
|
496
|
+
{
|
497
|
+
"document": "",
|
498
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVulRiskList\n<公共请求参数>\n\n{\n \"CloudAccountID\": \"100010421111\",\n \"Provider\": \"tencent\"\n}",
|
499
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"8df95ddb-cc28-489d-a37d-422e0d93fe4b\",\n \"TotalCount\": 882,\n \"VulRiskList\": [\n {\n \"AssetID\": \"ins-xxxx\",\n \"CloudAccountID\": \"100010421111\",\n \"ContainerID\": \"\",\n \"CreateTime\": \"2025-05-15 01:18:44\",\n \"CveID\": \"CVE-2025-32911\",\n \"Description\": \"libsoup是GNOME项目的一款GNOME的HTTP客户端/服务器库。 libsoup存在安全漏洞,该漏洞源于函数soup_message_headers_get_content_disposition存在双重释放问题。\",\n \"Fix\": \"软件: libsoup2.4-1, 版本: 2.70.0-1\\n\\n修复命令\\nsudo apt-get -y install libsoup2.4-1 --only-upgrade\\n\",\n \"InstanceName\": \"测试平台\",\n \"InstanceStatus\": \"active\",\n \"UpdateTime\": \"2025-05-21 01:22:30\",\n \"VulCategory\": \"4\",\n \"VulCategoryName\": \"Linux软件漏洞\",\n \"VulLevel\": \"4\",\n \"VulLevelName\": \"严重\",\n \"VulName\": \"libsoup 安全漏洞(CVE-2025-32911)\",\n \"InstanceStatusName\": \"运行中\"\n }\n ]\n }\n}",
|
500
|
+
"title": "查询云边界分析-暴露路径下主机节点的漏洞列表"
|
501
|
+
}
|
502
|
+
],
|
443
503
|
"DescribeVulViewVulRiskList": [
|
444
504
|
{
|
445
505
|
"document": "获取漏洞视角的漏洞风险列表",
|
@@ -3098,7 +3098,7 @@
|
|
3098
3098
|
{
|
3099
3099
|
"disabled": false,
|
3100
3100
|
"document": "<li><strong>zone</strong></li>\n<p style=\"padding-left: 30px;\">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-1。</p><p style=\"padding-left: 30px;\">类型:String</p><p style=\"padding-left: 30px;\">必选:否</p><p style=\"padding-left: 30px;\">可选项:<a href=\"https://cloud.tencent.com/document/product/213/6091\">可用区列表</a></p>\n<li><strong>quota-type</strong></li>\n<p style=\"padding-left: 30px;\">按照【<strong>配额类型</strong>】进行过滤。配额类型形如:PostPaidQuotaSet。</p><p style=\"padding-left: 30px;\">类型:String</p><p style=\"padding-left: 30px;\">必选:否</p><p style=\"padding-left: 30px;\">可选项:</p><p style=\"padding-left: 30px;\">PostPaidQuotaSet: 后付费配额</p><p style=\"padding-left: 30px;\">PrePaidQuotaSet: 预付费配额</p><p style=\"padding-left: 30px;\">SpotPaidQuotaSet: 竞价配额</p><p style=\"padding-left: 30px;\">ImageQuotaSet: 镜像配额</p><p style=\"padding-left: 30px;\">DisasterRecoverGroupQuotaSet: 置放群组配额</p>",
|
3101
|
-
"example": "
|
3101
|
+
"example": "无",
|
3102
3102
|
"member": "Filter",
|
3103
3103
|
"name": "Filters",
|
3104
3104
|
"required": false,
|
@@ -3826,9 +3826,10 @@
|
|
3826
3826
|
{
|
3827
3827
|
"disabled": false,
|
3828
3828
|
"document": "实例机型组配置的列表信息",
|
3829
|
-
"example": "",
|
3829
|
+
"example": "无",
|
3830
3830
|
"member": "InstanceFamilyConfig",
|
3831
3831
|
"name": "InstanceFamilyConfigSet",
|
3832
|
+
"output_required": true,
|
3832
3833
|
"type": "list",
|
3833
3834
|
"value_allowed_null": false
|
3834
3835
|
},
|
@@ -4332,9 +4333,10 @@
|
|
4332
4333
|
{
|
4333
4334
|
"disabled": false,
|
4334
4335
|
"document": "网络计费类型配置。",
|
4335
|
-
"example": "",
|
4336
|
+
"example": "无",
|
4336
4337
|
"member": "InternetChargeTypeConfig",
|
4337
4338
|
"name": "InternetChargeTypeConfigSet",
|
4339
|
+
"output_required": true,
|
4338
4340
|
"type": "list",
|
4339
4341
|
"value_allowed_null": false
|
4340
4342
|
},
|
@@ -4617,7 +4619,7 @@
|
|
4617
4619
|
{
|
4618
4620
|
"disabled": false,
|
4619
4621
|
"document": "地域列表信息。",
|
4620
|
-
"example": "
|
4622
|
+
"example": "[ { \"Region\": \"ap-beijing\", \"RegionName\": \"华北地区(北京)\", \"RegionState\": \"AVAILABLE\" } ]",
|
4621
4623
|
"member": "RegionInfo",
|
4622
4624
|
"name": "RegionSet",
|
4623
4625
|
"output_required": true,
|
@@ -6023,7 +6025,7 @@
|
|
6023
6025
|
},
|
6024
6026
|
{
|
6025
6027
|
"disabled": false,
|
6026
|
-
"document": "镜像状态:\nCREATING-创建中\nNORMAL-正常\nCREATEFAILED-创建失败\
|
6028
|
+
"document": "镜像状态:\nCREATING-创建中\nNORMAL-正常\nCREATEFAILED-创建失败\nSYNCING-复制中\nIMPORTING-导入中\nIMPORTFAILED-导入失败",
|
6027
6029
|
"example": "NORMAL",
|
6028
6030
|
"member": "string",
|
6029
6031
|
"name": "ImageState",
|
@@ -11932,6 +11934,15 @@
|
|
11932
11934
|
"name": "DisableApiTermination",
|
11933
11935
|
"required": false,
|
11934
11936
|
"type": "bool"
|
11937
|
+
},
|
11938
|
+
{
|
11939
|
+
"disabled": false,
|
11940
|
+
"document": "实例是否开启巨型帧,取值范围:<br><li/> true:表示实例开启巨型帧,只有支持巨型帧的机型可设置为true。<br><li/>false:表示实例关闭巨型帧,只有支持巨型帧的机型可设置为false。<br> 支持巨型帧的实例规格: [实例规格](https://cloud.tencent.com/document/product/213/11518)",
|
11941
|
+
"example": "false",
|
11942
|
+
"member": "bool",
|
11943
|
+
"name": "EnableJumboFrame",
|
11944
|
+
"required": false,
|
11945
|
+
"type": "bool"
|
11935
11946
|
}
|
11936
11947
|
],
|
11937
11948
|
"type": "object"
|
@@ -263,7 +263,7 @@
|
|
263
263
|
"DescribeInstanceFamilyConfigs": [
|
264
264
|
{
|
265
265
|
"document": "查询广州地域的实例机型组信息。",
|
266
|
-
"input": "
|
266
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceFamilyInfos\n<公共请求参数>\n\n{}",
|
267
267
|
"output": "{\n \"Response\": {\n \"InstanceFamilyConfigSet\": [\n {\n \"InstanceFamilyName\": \"标准型S1\",\n \"InstanceFamily\": \"S1\"\n },\n {\n \"InstanceFamilyName\": \"网络优化型N1\",\n \"InstanceFamily\": \"N1\"\n },\n {\n \"InstanceFamilyName\": \"高IO型I1\",\n \"InstanceFamily\": \"I1\"\n },\n {\n \"InstanceFamilyName\": \"内存型M1\",\n \"InstanceFamily\": \"M1\"\n },\n {\n \"InstanceFamilyName\": \"标准型S2\",\n \"InstanceFamily\": \"S2\"\n },\n {\n \"InstanceFamilyName\": \"标准型SN2\",\n \"InstanceFamily\": \"SN2\"\n },\n {\n \"InstanceFamilyName\": \"高IO型I2\",\n \"InstanceFamily\": \"I2\"\n },\n {\n \"InstanceFamilyName\": \"内存型M2\",\n \"InstanceFamily\": \"M2\"\n },\n {\n \"InstanceFamilyName\": \"计算型C2\",\n \"InstanceFamily\": \"C2\"\n },\n {\n \"InstanceFamilyName\": \"计算型CN2\",\n \"InstanceFamily\": \"CN2\"\n },\n {\n \"InstanceFamilyName\": \"标准型S3\",\n \"InstanceFamily\": \"S3\"\n },\n {\n \"InstanceFamilyName\": \"计算型C3\",\n \"InstanceFamily\": \"C3\"\n },\n {\n \"InstanceFamilyName\": \"FPGA型FX2\",\n \"InstanceFamily\": \"FX2\"\n },\n {\n \"InstanceFamilyName\": \"GPU计算型GN2\",\n \"InstanceFamily\": \"GN2\"\n },\n {\n \"InstanceFamilyName\": \"GPU渲染型GA2\",\n \"InstanceFamily\": \"GA2\"\n },\n {\n \"InstanceFamilyName\": \"GPU计算型GN8\",\n \"InstanceFamily\": \"GN8\"\n },\n {\n \"InstanceFamilyName\": \"独享型\",\n \"InstanceFamily\": \"CDH\"\n },\n {\n \"InstanceFamilyName\": \"共享核\",\n \"InstanceFamily\": \"SHARED\"\n },\n {\n \"InstanceFamilyName\": \"特殊机型\",\n \"InstanceFamily\": \"SPECIAL\"\n },\n {\n \"InstanceFamilyName\": \"其他\",\n \"InstanceFamily\": \"OTHER\"\n }\n ],\n \"RequestId\": \"b061782b-934a-4e53-b1eb-d5f2fed8130e\"\n }\n}",
|
268
268
|
"title": "查询所支持的实例机型族信息"
|
269
269
|
}
|
@@ -5365,6 +5365,34 @@
|
|
5365
5365
|
],
|
5366
5366
|
"usage": "both"
|
5367
5367
|
},
|
5368
|
+
"CustomConfig": {
|
5369
|
+
"document": "自定义参数",
|
5370
|
+
"members": [
|
5371
|
+
{
|
5372
|
+
"disabled": false,
|
5373
|
+
"document": "自定义参数名",
|
5374
|
+
"example": "hive.iceberg-catalog-name",
|
5375
|
+
"member": "string",
|
5376
|
+
"name": "ConfigKey",
|
5377
|
+
"output_required": false,
|
5378
|
+
"required": false,
|
5379
|
+
"type": "string",
|
5380
|
+
"value_allowed_null": false
|
5381
|
+
},
|
5382
|
+
{
|
5383
|
+
"disabled": false,
|
5384
|
+
"document": "自定义参数值",
|
5385
|
+
"example": "prod_iceberg",
|
5386
|
+
"member": "string",
|
5387
|
+
"name": "ConfigValue",
|
5388
|
+
"output_required": false,
|
5389
|
+
"required": false,
|
5390
|
+
"type": "string",
|
5391
|
+
"value_allowed_null": false
|
5392
|
+
}
|
5393
|
+
],
|
5394
|
+
"usage": "both"
|
5395
|
+
},
|
5368
5396
|
"DLCCatalogAccess": {
|
5369
5397
|
"document": "DLC 数据目录访问权限",
|
5370
5398
|
"members": [
|
@@ -7773,6 +7801,28 @@
|
|
7773
7801
|
"required": false,
|
7774
7802
|
"type": "string",
|
7775
7803
|
"value_allowed_null": false
|
7804
|
+
},
|
7805
|
+
{
|
7806
|
+
"disabled": false,
|
7807
|
+
"document": "自定义参数",
|
7808
|
+
"example": "无",
|
7809
|
+
"member": "CustomConfig",
|
7810
|
+
"name": "CustomConfig",
|
7811
|
+
"output_required": false,
|
7812
|
+
"required": false,
|
7813
|
+
"type": "list",
|
7814
|
+
"value_allowed_null": false
|
7815
|
+
},
|
7816
|
+
{
|
7817
|
+
"disabled": false,
|
7818
|
+
"document": "是否允许回退",
|
7819
|
+
"example": "true",
|
7820
|
+
"member": "bool",
|
7821
|
+
"name": "AllowRollback",
|
7822
|
+
"output_required": false,
|
7823
|
+
"required": false,
|
7824
|
+
"type": "bool",
|
7825
|
+
"value_allowed_null": false
|
7776
7826
|
}
|
7777
7827
|
],
|
7778
7828
|
"usage": "both"
|
@@ -15479,6 +15529,17 @@
|
|
15479
15529
|
"required": false,
|
15480
15530
|
"type": "string",
|
15481
15531
|
"value_allowed_null": true
|
15532
|
+
},
|
15533
|
+
{
|
15534
|
+
"disabled": false,
|
15535
|
+
"document": "支持 eg",
|
15536
|
+
"example": "1",
|
15537
|
+
"member": "int64",
|
15538
|
+
"name": "EGSupport",
|
15539
|
+
"output_required": true,
|
15540
|
+
"required": false,
|
15541
|
+
"type": "int",
|
15542
|
+
"value_allowed_null": false
|
15482
15543
|
}
|
15483
15544
|
],
|
15484
15545
|
"usage": "both"
|
tccli/services/emr/emr_client.py
CHANGED
@@ -17,7 +17,7 @@ from tencentcloud.emr.v20190103 import models as models_v20190103
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
-
def
|
20
|
+
def doTerminateInstance(args, parsed_globals):
|
21
21
|
g_param = parse_global_arg(parsed_globals)
|
22
22
|
|
23
23
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -46,11 +46,11 @@ def doModifyUserManagerPwd(args, parsed_globals):
|
|
46
46
|
client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
|
47
47
|
client._sdkVersion += ("_CLI_" + __version__)
|
48
48
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
-
model = models.
|
49
|
+
model = models.TerminateInstanceRequest()
|
50
50
|
model.from_json_string(json.dumps(args))
|
51
51
|
start_time = time.time()
|
52
52
|
while True:
|
53
|
-
rsp = client.
|
53
|
+
rsp = client.TerminateInstance(model)
|
54
54
|
result = rsp.to_json_string()
|
55
55
|
try:
|
56
56
|
json_obj = json.loads(result)
|
@@ -277,7 +277,7 @@ def doDescribeCvmQuota(args, parsed_globals):
|
|
277
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
278
|
|
279
279
|
|
280
|
-
def
|
280
|
+
def doModifyUserManagerPwd(args, parsed_globals):
|
281
281
|
g_param = parse_global_arg(parsed_globals)
|
282
282
|
|
283
283
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -306,11 +306,11 @@ def doTerminateInstance(args, parsed_globals):
|
|
306
306
|
client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
|
307
307
|
client._sdkVersion += ("_CLI_" + __version__)
|
308
308
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
-
model = models.
|
309
|
+
model = models.ModifyUserManagerPwdRequest()
|
310
310
|
model.from_json_string(json.dumps(args))
|
311
311
|
start_time = time.time()
|
312
312
|
while True:
|
313
|
-
rsp = client.
|
313
|
+
rsp = client.ModifyUserManagerPwd(model)
|
314
314
|
result = rsp.to_json_string()
|
315
315
|
try:
|
316
316
|
json_obj = json.loads(result)
|
@@ -485,6 +485,58 @@ def doModifyYarnDeploy(args, parsed_globals):
|
|
485
485
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
486
|
|
487
487
|
|
488
|
+
def doDescribeNodeSpec(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.EmrClient(cred, g_param[OptionsDefine.Region], profile)
|
515
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
516
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
517
|
+
model = models.DescribeNodeSpecRequest()
|
518
|
+
model.from_json_string(json.dumps(args))
|
519
|
+
start_time = time.time()
|
520
|
+
while True:
|
521
|
+
rsp = client.DescribeNodeSpec(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 doDescribeKyuubiQueryInfo(args, parsed_globals):
|
489
541
|
g_param = parse_global_arg(parsed_globals)
|
490
542
|
|
@@ -1629,6 +1681,58 @@ def doDeleteUserManagerUserList(args, parsed_globals):
|
|
1629
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
1682
|
|
1631
1683
|
|
1684
|
+
def doConvertPreToPostCluster(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.EmrClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1712
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
+
model = models.ConvertPreToPostClusterRequest()
|
1714
|
+
model.from_json_string(json.dumps(args))
|
1715
|
+
start_time = time.time()
|
1716
|
+
while True:
|
1717
|
+
rsp = client.ConvertPreToPostCluster(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
|
+
|
1632
1736
|
def doTerminateSLInstance(args, parsed_globals):
|
1633
1737
|
g_param = parse_global_arg(parsed_globals)
|
1634
1738
|
|
@@ -3397,6 +3501,58 @@ def doDescribeAutoScaleGroupGlobalConf(args, parsed_globals):
|
|
3397
3501
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3398
3502
|
|
3399
3503
|
|
3504
|
+
def doDescribeServiceConfGroupInfos(args, parsed_globals):
|
3505
|
+
g_param = parse_global_arg(parsed_globals)
|
3506
|
+
|
3507
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3508
|
+
cred = credential.CVMRoleCredential()
|
3509
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3510
|
+
cred = credential.STSAssumeRoleCredential(
|
3511
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3512
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3513
|
+
)
|
3514
|
+
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):
|
3515
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3516
|
+
else:
|
3517
|
+
cred = credential.Credential(
|
3518
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3519
|
+
)
|
3520
|
+
http_profile = HttpProfile(
|
3521
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3522
|
+
reqMethod="POST",
|
3523
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3524
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3525
|
+
)
|
3526
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3527
|
+
if g_param[OptionsDefine.Language]:
|
3528
|
+
profile.language = g_param[OptionsDefine.Language]
|
3529
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3530
|
+
client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
|
3531
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3532
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3533
|
+
model = models.DescribeServiceConfGroupInfosRequest()
|
3534
|
+
model.from_json_string(json.dumps(args))
|
3535
|
+
start_time = time.time()
|
3536
|
+
while True:
|
3537
|
+
rsp = client.DescribeServiceConfGroupInfos(model)
|
3538
|
+
result = rsp.to_json_string()
|
3539
|
+
try:
|
3540
|
+
json_obj = json.loads(result)
|
3541
|
+
except TypeError as e:
|
3542
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3543
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3544
|
+
break
|
3545
|
+
cur_time = time.time()
|
3546
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3547
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3548
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3549
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3550
|
+
else:
|
3551
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3552
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3553
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
|
+
|
3555
|
+
|
3400
3556
|
def doDescribeInspectionTaskResult(args, parsed_globals):
|
3401
3557
|
g_param = parse_global_arg(parsed_globals)
|
3402
3558
|
|
@@ -4500,15 +4656,16 @@ MODELS_MAP = {
|
|
4500
4656
|
}
|
4501
4657
|
|
4502
4658
|
ACTION_MAP = {
|
4503
|
-
"
|
4659
|
+
"TerminateInstance": doTerminateInstance,
|
4504
4660
|
"CreateCluster": doCreateCluster,
|
4505
4661
|
"ModifyYarnQueueV2": doModifyYarnQueueV2,
|
4506
4662
|
"DeployYarnConf": doDeployYarnConf,
|
4507
4663
|
"DescribeCvmQuota": doDescribeCvmQuota,
|
4508
|
-
"
|
4664
|
+
"ModifyUserManagerPwd": doModifyUserManagerPwd,
|
4509
4665
|
"DescribeHBaseTableOverview": doDescribeHBaseTableOverview,
|
4510
4666
|
"DescribeServiceNodeInfos": doDescribeServiceNodeInfos,
|
4511
4667
|
"ModifyYarnDeploy": doModifyYarnDeploy,
|
4668
|
+
"DescribeNodeSpec": doDescribeNodeSpec,
|
4512
4669
|
"DescribeKyuubiQueryInfo": doDescribeKyuubiQueryInfo,
|
4513
4670
|
"DeleteAutoScaleStrategy": doDeleteAutoScaleStrategy,
|
4514
4671
|
"ScaleOutCluster": doScaleOutCluster,
|
@@ -4531,6 +4688,7 @@ ACTION_MAP = {
|
|
4531
4688
|
"DescribeNodeResourceConfigFast": doDescribeNodeResourceConfigFast,
|
4532
4689
|
"DescribeDAGInfo": doDescribeDAGInfo,
|
4533
4690
|
"DeleteUserManagerUserList": doDeleteUserManagerUserList,
|
4691
|
+
"ConvertPreToPostCluster": doConvertPreToPostCluster,
|
4534
4692
|
"TerminateSLInstance": doTerminateSLInstance,
|
4535
4693
|
"ModifyPodNum": doModifyPodNum,
|
4536
4694
|
"CreateSLInstance": doCreateSLInstance,
|
@@ -4565,6 +4723,7 @@ ACTION_MAP = {
|
|
4565
4723
|
"ModifyGlobalConfig": doModifyGlobalConfig,
|
4566
4724
|
"DescribeAutoScaleStrategies": doDescribeAutoScaleStrategies,
|
4567
4725
|
"DescribeAutoScaleGroupGlobalConf": doDescribeAutoScaleGroupGlobalConf,
|
4726
|
+
"DescribeServiceConfGroupInfos": doDescribeServiceConfGroupInfos,
|
4568
4727
|
"DescribeInspectionTaskResult": doDescribeInspectionTaskResult,
|
4569
4728
|
"DescribeYarnApplications": doDescribeYarnApplications,
|
4570
4729
|
"DescribeUsersForUserManager": doDescribeUsersForUserManager,
|