tccli 3.0.1186.1__py2.py3-none-any.whl → 3.0.1188.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/cfw/cfw_client.py +0 -53
- tccli/services/cfw/v20190904/api.json +0 -24
- tccli/services/cfw/v20190904/examples.json +0 -8
- tccli/services/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +107 -0
- tccli/services/cvm/v20170312/examples.json +8 -0
- tccli/services/cwp/v20180228/api.json +1 -1
- tccli/services/dc/v20180410/api.json +19 -19
- tccli/services/dc/v20180410/examples.json +5 -5
- tccli/services/dcdb/v20180411/api.json +20 -2
- tccli/services/dlc/dlc_client.py +106 -0
- tccli/services/dlc/v20210125/api.json +87 -0
- tccli/services/dlc/v20210125/examples.json +16 -0
- tccli/services/dts/v20211206/api.json +1 -0
- tccli/services/emr/emr_client.py +277 -12
- tccli/services/emr/v20190103/api.json +650 -21
- tccli/services/emr/v20190103/examples.json +47 -7
- tccli/services/es/v20180416/api.json +101 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +176 -29
- tccli/services/ess/v20201111/examples.json +11 -3
- tccli/services/gme/v20180711/api.json +12 -12
- tccli/services/mariadb/v20170312/api.json +21 -3
- tccli/services/rce/v20201103/api.json +2 -2
- tccli/services/sms/v20190711/api.json +2 -2
- tccli/services/sms/v20210111/api.json +2 -2
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/trocket/v20230308/api.json +9 -0
- tccli/services/trtc/v20190722/api.json +11 -0
- tccli/services/tse/v20201207/api.json +18 -18
- tccli/services/vclm/v20240523/api.json +10 -10
- tccli/services/vclm/v20240523/examples.json +17 -5
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/vtc/v20240223/api.json +8 -8
- tccli/services/vtc/v20240223/examples.json +19 -7
- {tccli-3.0.1186.1.dist-info → tccli-3.0.1188.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1186.1.dist-info → tccli-3.0.1188.1.dist-info}/RECORD +41 -41
- {tccli-3.0.1186.1.dist-info → tccli-3.0.1188.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1186.1.dist-info → tccli-3.0.1188.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1186.1.dist-info → tccli-3.0.1188.1.dist-info}/license_files/LICENSE +0 -0
@@ -48,6 +48,14 @@
|
|
48
48
|
"title": "test"
|
49
49
|
}
|
50
50
|
],
|
51
|
+
"DeployYarnConf": [
|
52
|
+
{
|
53
|
+
"document": "",
|
54
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeployYarnConf\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-xx\"\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"FlowId\": 1,\n \"RequestId\": \"abc\"\n }\n}",
|
56
|
+
"title": "yarn资源调度-部署生效"
|
57
|
+
}
|
58
|
+
],
|
51
59
|
"DescribeAutoScaleGroupGlobalConf": [
|
52
60
|
{
|
53
61
|
"document": "",
|
@@ -179,11 +187,19 @@
|
|
179
187
|
"DescribeResourceSchedule": [
|
180
188
|
{
|
181
189
|
"document": "",
|
182
|
-
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeResourceSchedule\n<公共请求参数>\n\n{\n \"InstanceId\": \"
|
183
|
-
"output": "{\n \"Response\": {\n \"
|
190
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeResourceSchedule\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
|
191
|
+
"output": "{\n \"Response\": {\n \"OpenSwitch\": true,\n \"Scheduler\": \"abc\",\n \"FSInfo\": \"abc\",\n \"CSInfo\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
184
192
|
"title": "test"
|
185
193
|
}
|
186
194
|
],
|
195
|
+
"DescribeResourceScheduleDiffDetail": [
|
196
|
+
{
|
197
|
+
"document": "",
|
198
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeResourceScheduleDiffDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-xxx\",\n \"Scheduler\": \"fair\"\n}",
|
199
|
+
"output": "{\n \"Response\": {\n \"Details\": [\n {\n \"Count\": 1,\n \"Header\": [\n {\n \"Id\": \"Attribute\",\n \"Name\": \"属性\"\n },\n {\n \"Id\": \"InEffect\",\n \"Name\": \"当前生效值\"\n },\n {\n \"Id\": \"PendingEffectiveness\",\n \"Name\": \"待生效值\"\n },\n {\n \"Id\": \"Operation\",\n \"Name\": \"操作\"\n }\n ],\n \"Name\": \"全局配置\",\n \"Rows\": [\n {\n \"Attribute\": \"Scheduler\",\n \"InEffect\": \"fair\",\n \"Operation\": \"更新\",\n \"PendingEffectiveness\": \"capacity\"\n }\n ]\n },\n {\n \"Count\": 1,\n \"Header\": [\n {\n \"Id\": \"Attribute\",\n \"Name\": \"属性\"\n },\n {\n \"Id\": \"InEffect\",\n \"Name\": \"当前生效值\"\n },\n {\n \"Id\": \"PendingEffectiveness\",\n \"Name\": \"待生效值\"\n },\n {\n \"Id\": \"Operation\",\n \"Name\": \"操作\"\n }\n ],\n \"Name\": \"标签开关\",\n \"Rows\": [\n {\n \"Attribute\": \"LabelDir\",\n \"InEffect\": \"\",\n \"Operation\": \"更新\",\n \"PendingEffectiveness\": \"\"\n }\n ]\n }\n ],\n \"RequestId\": \"50ed72af-1cc9-4566-8080-3594994aea80\"\n }\n}",
|
200
|
+
"title": "YARN资源调度-变更详情"
|
201
|
+
}
|
202
|
+
],
|
187
203
|
"DescribeServiceNodeInfos": [
|
188
204
|
{
|
189
205
|
"document": "查询服务进程信息",
|
@@ -216,6 +232,14 @@
|
|
216
232
|
"title": "获取Yarn的Applications列表"
|
217
233
|
}
|
218
234
|
],
|
235
|
+
"DescribeYarnQueue": [
|
236
|
+
{
|
237
|
+
"document": "",
|
238
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeYarnQueue\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-xxx\",\n \"Scheduler\": \"capacity\"\n}",
|
239
|
+
"output": "{\n \"Response\": {\n \"Queue\": \"{\\\"name\\\":\\\"root\\\",\\\"myId\\\":\\\"root\\\",\\\"parentId\\\":\\\"root\\\",\\\"configs\\\":[{\\\"configName\\\":\\\"default\\\",\\\"labels\\\":[{\\\"labelName\\\":\\\"\\\\u003cDEFAULT_PARTITION\\\\u003e\\\",\\\"capacity\\\":null,\\\"maximum-capacity\\\":null,\\\"state\\\":0},{\\\"labelName\\\":\\\"test\\\",\\\"capacity\\\":null,\\\"maximum-capacity\\\":null,\\\"state\\\":0},{\\\"labelName\\\":\\\"test2\\\",\\\"capacity\\\":null,\\\"maximum-capacity\\\":null,\\\"state\\\":0}],\\\"minimum-user-limit-percent\\\":null,\\\"user-limit-factor\\\":null,\\\"maximum-applications\\\":null,\\\"maximum-am-resource-percent\\\":null,\\\"default-application-priority\\\":null}],\\\"state\\\":null,\\\"default-node-label-expression\\\":null,\\\"acl_submit_applications\\\":null,\\\"acl_administer_queue\\\":null,\\\"maximum-allocation-mb\\\":null,\\\"maximum-allocation-vcores\\\":null,\\\"isDefault\\\":null,\\\"isRoot\\\":true,\\\"queues\\\":[{\\\"name\\\":\\\"default\\\",\\\"myId\\\":\\\"root.default\\\",\\\"parentId\\\":\\\"root\\\",\\\"configs\\\":[{\\\"configName\\\":\\\"default\\\",\\\"labels\\\":[{\\\"labelName\\\":\\\"\\\\u003cDEFAULT_PARTITION\\\\u003e\\\",\\\"capacity\\\":50,\\\"maximum-capacity\\\":100,\\\"state\\\":0}],\\\"minimum-user-limit-percent\\\":null,\\\"user-limit-factor\\\":1,\\\"maximum-applications\\\":null,\\\"maximum-am-resource-percent\\\":null,\\\"default-application-priority\\\":null}],\\\"state\\\":null,\\\"default-node-label-expression\\\":null,\\\"acl_submit_applications\\\":null,\\\"acl_administer_queue\\\":null,\\\"maximum-allocation-mb\\\":null,\\\"maximum-allocation-vcores\\\":null,\\\"isDefault\\\":true,\\\"isRoot\\\":null,\\\"queues\\\":[]},{\\\"name\\\":\\\"q1\\\",\\\"myId\\\":\\\"root.q1\\\",\\\"parentId\\\":\\\"root\\\",\\\"configs\\\":[{\\\"configName\\\":\\\"default\\\",\\\"labels\\\":[{\\\"labelName\\\":\\\"\\\\u003cDEFAULT_PARTITION\\\\u003e\\\",\\\"capacity\\\":50,\\\"maximum-capacity\\\":100,\\\"state\\\":0},{\\\"labelName\\\":\\\"test\\\",\\\"capacity\\\":100,\\\"maximum-capacity\\\":100,\\\"state\\\":0}],\\\"minimum-user-limit-percent\\\":null,\\\"user-limit-factor\\\":null,\\\"maximum-applications\\\":null,\\\"maximum-am-resource-percent\\\":null,\\\"default-application-priority\\\":null}],\\\"state\\\":\\\"RUNNING\\\",\\\"default-node-label-expression\\\":null,\\\"acl_submit_applications\\\":{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"},\\\"acl_administer_queue\\\":{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"},\\\"maximum-allocation-mb\\\":null,\\\"maximum-allocation-vcores\\\":null,\\\"isDefault\\\":null,\\\"isRoot\\\":null,\\\"queues\\\":[]}]}\",\n \"Version\": \"v3\",\n \"RequestId\": \"abc\"\n }\n}",
|
240
|
+
"title": "获取资源调度中的队列信息"
|
241
|
+
}
|
242
|
+
],
|
219
243
|
"DescribeYarnScheduleHistory": [
|
220
244
|
{
|
221
245
|
"document": "",
|
@@ -295,8 +319,8 @@
|
|
295
319
|
"ModifyResourcePools": [
|
296
320
|
{
|
297
321
|
"document": "",
|
298
|
-
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyResourcePools\n<公共请求参数>\n\n{\n \"InstanceId\": \"
|
299
|
-
"output": "{\n \"Response\": {\n \"
|
322
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyResourcePools\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"Key\": \"abc\"\n}",
|
323
|
+
"output": "{\n \"Response\": {\n \"IsDraft\": true,\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
300
324
|
"title": "test"
|
301
325
|
}
|
302
326
|
],
|
@@ -304,15 +328,15 @@
|
|
304
328
|
{
|
305
329
|
"document": "",
|
306
330
|
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyResourceScheduleConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-buy439fq\",\n \"Key\": \"capacity\",\n \"Value\": \"{\\\"queueMappings\\\":[{\\\"mapping-type\\\":\\\"u\\\",\\\"name\\\":\\\"1331\\\",\\\"full-queue-name\\\":\\\"132\\\",\\\"special-name\\\":true,\\\"special-queue\\\":true}],\\\"queue\\\":{\\\"name\\\":\\\"root\\\",\\\"capacity\\\":100,\\\"maximum-capacity\\\":100,\\\"minimum-user-limit-percent\\\":0,\\\"user-limit-factor\\\":0,\\\"maximum-allocation-mb\\\":0,\\\"maximum-allocation-vcores\\\":0,\\\"state\\\":null,\\\"maximum-applications\\\":0,\\\"maximum-am-resource-percent\\\":0,\\\"acl_submit_applications\\\":null,\\\"acl_administer_queue\\\":null,\\\"queues\\\":[{\\\"name\\\":\\\"121\\\",\\\"capacity\\\":12,\\\"maximum-capacity\\\":12,\\\"minimum-user-limit-percent\\\":12,\\\"user-limit-factor\\\":12,\\\"maximum-allocation-mb\\\":12,\\\"maximum-allocation-vcores\\\":12,\\\"state\\\":\\\"RUNNING\\\",\\\"maximum-applications\\\":10000,\\\"maximum-am-resource-percent\\\":25,\\\"acl_submit_applications\\\":{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"},\\\"acl_administer_queue\\\":{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"},\\\"queues\\\":null},{\\\"name\\\":\\\"12\\\",\\\"capacity\\\":12,\\\"maximum-capacity\\\":12,\\\"minimum-user-limit-percent\\\":12,\\\"user-limit-factor\\\":12,\\\"maximum-allocation-mb\\\":12,\\\"maximum-allocation-vcores\\\":12,\\\"state\\\":\\\"RUNNING\\\",\\\"maximum-applications\\\":10000,\\\"maximum-am-resource-percent\\\":25,\\\"acl_submit_applications\\\":{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"},\\\"acl_administer_queue\\\":{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"},\\\"queues\\\":null},{\\\"name\\\":\\\"default\\\",\\\"capacity\\\":76,\\\"maximum-capacity\\\":100,\\\"minimum-user-limit-percent\\\":12,\\\"user-limit-factor\\\":1,\\\"maximum-allocation-mb\\\":12,\\\"maximum-allocation-vcores\\\":12,\\\"state\\\":\\\"RUNNING\\\",\\\"maximum-applications\\\":12,\\\"maximum-am-resource-percent\\\":12,\\\"acl_submit_applications\\\":{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"},\\\"acl_administer_queue\\\":{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"},\\\"queues\\\":[{\\\"name\\\":\\\"d1\\\",\\\"capacity\\\":100,\\\"maximum-capacity\\\":100,\\\"minimum-user-limit-percent\\\":null,\\\"user-limit-factor\\\":null,\\\"maximum-allocation-mb\\\":null,\\\"maximum-allocation-vcores\\\":null,\\\"state\\\":\\\"RUNNING\\\",\\\"maximum-applications\\\":10000,\\\"maximum-am-resource-percent\\\":25,\\\"acl_submit_applications\\\":{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"},\\\"acl_administer_queue\\\":{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"},\\\"queues\\\":null}]}]},\\\"queueMappingsOverride\\\":true}\"\n}",
|
307
|
-
"output": "{\n \"Response\": {\n \"
|
331
|
+
"output": "{\n \"Response\": {\n \"IsDraft\": true,\n \"ErrorMsg\": \"abc\",\n \"Data\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
308
332
|
"title": "修改yarn资源调度的资源配置"
|
309
333
|
}
|
310
334
|
],
|
311
335
|
"ModifyResourceScheduler": [
|
312
336
|
{
|
313
337
|
"document": "",
|
314
|
-
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyResourceScheduler\n<公共请求参数>\n\n{\n \"InstanceId\": \"
|
315
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
338
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyResourceScheduler\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"OldValue\": \"abc\",\n \"NewValue\": \"abc\"\n}",
|
339
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
316
340
|
"title": "test"
|
317
341
|
}
|
318
342
|
],
|
@@ -340,6 +364,22 @@
|
|
340
364
|
"title": "部署生效"
|
341
365
|
}
|
342
366
|
],
|
367
|
+
"ModifyYarnQueueV2": [
|
368
|
+
{
|
369
|
+
"document": "",
|
370
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyYarnQueueV2\n<公共请求参数>\n\n{\n \"ConfigModifyInfoList\": [\n {\n \"BasicParams\": {\n \"Items\": [\n {\n \"Key\": \"state\",\n \"Value\": \"RUNNING\"\n },\n {\n \"Key\": \"default-node-label-expression\",\n \"Value\": \"test\"\n },\n {\n \"Key\": \"acl_submit_applications\",\n \"Value\": \"{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"}\"\n },\n {\n \"Key\": \"acl_administer_queue\",\n \"Value\": \"{\\\"user\\\":\\\"*\\\",\\\"group\\\":\\\"*\\\"}\"\n },\n {\n \"Key\": \"maximum-allocation-mb\",\n \"Value\": \"1024\"\n },\n {\n \"Key\": \"maximum-allocation-vcores\",\n \"Value\": \"2\"\n }\n ]\n },\n \"ConfigSetParams\": [\n {\n \"BasicParams\": [\n {\n \"Key\": \"minimum-user-limit-percent\",\n \"Value\": \"1\"\n },\n {\n \"Key\": \"user-limit-factor\",\n \"Value\": \"1\"\n },\n {\n \"Key\": \"maximum-applications\",\n \"Value\": \"1000\"\n },\n {\n \"Key\": \"maximum-am-resource-percent\",\n \"Value\": \"0.005\"\n },\n {\n \"Key\": \"default-application-priority\",\n \"Value\": \"1\"\n }\n ],\n \"ConfigSet\": \"default\",\n \"LabelParams\": [\n {\n \"Items\": [\n {\n \"Key\": \"labelName\",\n \"Value\": \"<DEFAULT_PARTITION>\"\n },\n {\n \"Key\": \"capacity\",\n \"Value\": \"100\"\n },\n {\n \"Key\": \"maximum-capacity\",\n \"Value\": \"100\"\n }\n ]\n },\n {\n \"Items\": [\n {\n \"Key\": \"labelName\",\n \"Value\": \"test\"\n },\n {\n \"Key\": \"capacity\",\n \"Value\": \"100\"\n },\n {\n \"Key\": \"maximum-capacity\",\n \"Value\": \"100\"\n }\n ]\n }\n ]\n }\n ],\n \"MyId\": \"\",\n \"Name\": \"test3\",\n \"OpType\": 0,\n \"ParentId\": \"\"\n }\n ],\n \"InstanceId\": \"emr-324bjb6v\",\n \"Scheduler\": \"capacity\"\n}",
|
371
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5419075a-9601-44a9-b045-a88561990ac0\"\n }\n}",
|
372
|
+
"title": "修改资源调度中队列信息"
|
373
|
+
}
|
374
|
+
],
|
375
|
+
"ResetYarnConfig": [
|
376
|
+
{
|
377
|
+
"document": "取消修改的配置",
|
378
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetYarnConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-xxx\",\n \"Key\": \"fair\"\n}",
|
379
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
380
|
+
"title": "yarn资源调度-重置"
|
381
|
+
}
|
382
|
+
],
|
343
383
|
"RunJobFlow": [
|
344
384
|
{
|
345
385
|
"document": "",
|
@@ -3444,6 +3444,15 @@
|
|
3444
3444
|
"name": "DurationType",
|
3445
3445
|
"required": false,
|
3446
3446
|
"type": "int"
|
3447
|
+
},
|
3448
|
+
{
|
3449
|
+
"disabled": false,
|
3450
|
+
"document": "索引数据",
|
3451
|
+
"example": "[\"index-4y85drgw\"]",
|
3452
|
+
"member": "string",
|
3453
|
+
"name": "BatchIndexList",
|
3454
|
+
"required": false,
|
3455
|
+
"type": "list"
|
3447
3456
|
}
|
3448
3457
|
],
|
3449
3458
|
"type": "object"
|
@@ -3501,6 +3510,16 @@
|
|
3501
3510
|
"type": "int",
|
3502
3511
|
"value_allowed_null": false
|
3503
3512
|
},
|
3513
|
+
{
|
3514
|
+
"disabled": false,
|
3515
|
+
"document": "指标数据数据\n注意:此字段可能返回 null,表示取不到有效值。",
|
3516
|
+
"example": "无",
|
3517
|
+
"member": "MetricMapByIndexId",
|
3518
|
+
"name": "MetricMapList",
|
3519
|
+
"output_required": false,
|
3520
|
+
"type": "list",
|
3521
|
+
"value_allowed_null": true
|
3522
|
+
},
|
3504
3523
|
{
|
3505
3524
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3506
3525
|
"member": "string",
|
@@ -7347,6 +7366,62 @@
|
|
7347
7366
|
],
|
7348
7367
|
"usage": "out"
|
7349
7368
|
},
|
7369
|
+
"MetricAllData": {
|
7370
|
+
"document": "全部指标数据",
|
7371
|
+
"members": [
|
7372
|
+
{
|
7373
|
+
"disabled": false,
|
7374
|
+
"document": "索引流量",
|
7375
|
+
"example": "12.34454",
|
7376
|
+
"member": "float",
|
7377
|
+
"name": "IndexTraffic",
|
7378
|
+
"output_required": true,
|
7379
|
+
"type": "float",
|
7380
|
+
"value_allowed_null": false
|
7381
|
+
},
|
7382
|
+
{
|
7383
|
+
"disabled": false,
|
7384
|
+
"document": "存储大小",
|
7385
|
+
"example": "12.3432",
|
7386
|
+
"member": "float",
|
7387
|
+
"name": "Storage",
|
7388
|
+
"output_required": true,
|
7389
|
+
"type": "float",
|
7390
|
+
"value_allowed_null": false
|
7391
|
+
},
|
7392
|
+
{
|
7393
|
+
"disabled": false,
|
7394
|
+
"document": "读请求次数",
|
7395
|
+
"example": "21",
|
7396
|
+
"member": "int64",
|
7397
|
+
"name": "ReadReqTimes",
|
7398
|
+
"output_required": true,
|
7399
|
+
"type": "int",
|
7400
|
+
"value_allowed_null": false
|
7401
|
+
},
|
7402
|
+
{
|
7403
|
+
"disabled": false,
|
7404
|
+
"document": "写请求次数",
|
7405
|
+
"example": "32",
|
7406
|
+
"member": "int64",
|
7407
|
+
"name": "WriteReqTimes",
|
7408
|
+
"output_required": true,
|
7409
|
+
"type": "int",
|
7410
|
+
"value_allowed_null": false
|
7411
|
+
},
|
7412
|
+
{
|
7413
|
+
"disabled": false,
|
7414
|
+
"document": "文档数量",
|
7415
|
+
"example": "32",
|
7416
|
+
"member": "int64",
|
7417
|
+
"name": "DocCount",
|
7418
|
+
"output_required": true,
|
7419
|
+
"type": "int",
|
7420
|
+
"value_allowed_null": false
|
7421
|
+
}
|
7422
|
+
],
|
7423
|
+
"usage": "out"
|
7424
|
+
},
|
7350
7425
|
"MetricDetail": {
|
7351
7426
|
"document": "智能运维指标详情",
|
7352
7427
|
"members": [
|
@@ -7373,6 +7448,32 @@
|
|
7373
7448
|
],
|
7374
7449
|
"usage": "out"
|
7375
7450
|
},
|
7451
|
+
"MetricMapByIndexId": {
|
7452
|
+
"document": "指标数据map",
|
7453
|
+
"members": [
|
7454
|
+
{
|
7455
|
+
"disabled": false,
|
7456
|
+
"document": "实例id",
|
7457
|
+
"example": "无",
|
7458
|
+
"member": "string",
|
7459
|
+
"name": "IndexId",
|
7460
|
+
"output_required": true,
|
7461
|
+
"type": "string",
|
7462
|
+
"value_allowed_null": false
|
7463
|
+
},
|
7464
|
+
{
|
7465
|
+
"disabled": false,
|
7466
|
+
"document": "指标数据",
|
7467
|
+
"example": "无",
|
7468
|
+
"member": "MetricAllData",
|
7469
|
+
"name": "MetricAllData",
|
7470
|
+
"output_required": true,
|
7471
|
+
"type": "object",
|
7472
|
+
"value_allowed_null": false
|
7473
|
+
}
|
7474
|
+
],
|
7475
|
+
"usage": "out"
|
7476
|
+
},
|
7376
7477
|
"ModifyEsVipSecurityGroupRequest": {
|
7377
7478
|
"document": "ModifyEsVipSecurityGroup请求参数结构体",
|
7378
7479
|
"members": [
|
tccli/services/ess/ess_client.py
CHANGED
@@ -1317,6 +1317,58 @@ def doCreateUserAutoSignSealUrl(args, parsed_globals):
|
|
1317
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1318
|
|
1319
1319
|
|
1320
|
+
def doDescribeOrganizationAuthStatus(args, parsed_globals):
|
1321
|
+
g_param = parse_global_arg(parsed_globals)
|
1322
|
+
|
1323
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1324
|
+
cred = credential.CVMRoleCredential()
|
1325
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1326
|
+
cred = credential.STSAssumeRoleCredential(
|
1327
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1328
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1329
|
+
)
|
1330
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
1331
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1332
|
+
else:
|
1333
|
+
cred = credential.Credential(
|
1334
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1335
|
+
)
|
1336
|
+
http_profile = HttpProfile(
|
1337
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1338
|
+
reqMethod="POST",
|
1339
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1340
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1341
|
+
)
|
1342
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1343
|
+
if g_param[OptionsDefine.Language]:
|
1344
|
+
profile.language = g_param[OptionsDefine.Language]
|
1345
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1346
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
+
model = models.DescribeOrganizationAuthStatusRequest()
|
1350
|
+
model.from_json_string(json.dumps(args))
|
1351
|
+
start_time = time.time()
|
1352
|
+
while True:
|
1353
|
+
rsp = client.DescribeOrganizationAuthStatus(model)
|
1354
|
+
result = rsp.to_json_string()
|
1355
|
+
try:
|
1356
|
+
json_obj = json.loads(result)
|
1357
|
+
except TypeError as e:
|
1358
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1359
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1360
|
+
break
|
1361
|
+
cur_time = time.time()
|
1362
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1363
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1364
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1365
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1366
|
+
else:
|
1367
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1368
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1369
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
|
+
|
1371
|
+
|
1320
1372
|
def doRenewAutoSignLicense(args, parsed_globals):
|
1321
1373
|
g_param = parse_global_arg(parsed_globals)
|
1322
1374
|
|
@@ -4733,6 +4785,7 @@ ACTION_MAP = {
|
|
4733
4785
|
"DescribeFlowEvidenceReport": doDescribeFlowEvidenceReport,
|
4734
4786
|
"DeleteIntegrationEmployees": doDeleteIntegrationEmployees,
|
4735
4787
|
"CreateUserAutoSignSealUrl": doCreateUserAutoSignSealUrl,
|
4788
|
+
"DescribeOrganizationAuthStatus": doDescribeOrganizationAuthStatus,
|
4736
4789
|
"RenewAutoSignLicense": doRenewAutoSignLicense,
|
4737
4790
|
"VerifyPdf": doVerifyPdf,
|
4738
4791
|
"BindEmployeeUserIdWithClientOpenId": doBindEmployeeUserIdWithClientOpenId,
|