tccli 3.0.1198.1__py2.py3-none-any.whl → 3.0.1199.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/ccc/ccc_client.py +57 -4
- tccli/services/ccc/v20200210/api.json +188 -0
- tccli/services/ccc/v20200210/examples.json +8 -0
- tccli/services/clb/v20180317/api.json +19 -1
- tccli/services/cme/v20191029/api.json +18 -8
- tccli/services/cynosdb/cynosdb_client.py +0 -53
- tccli/services/cynosdb/v20190107/api.json +0 -92
- tccli/services/cynosdb/v20190107/examples.json +0 -8
- tccli/services/emr/v20190103/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +9 -0
- tccli/services/iecp/iecp_client.py +298 -1358
- tccli/services/iecp/v20210914/api.json +216 -2256
- tccli/services/iecp/v20210914/examples.json +0 -166
- tccli/services/ims/v20201229/api.json +9 -9
- tccli/services/ims/v20201229/examples.json +2 -2
- tccli/services/monitor/monitor_client.py +8 -114
- tccli/services/monitor/v20180724/api.json +0 -85
- tccli/services/monitor/v20180724/examples.json +0 -16
- tccli/services/ocr/v20181119/api.json +3 -3
- tccli/services/postgres/postgres_client.py +53 -0
- tccli/services/postgres/v20170312/api.json +191 -0
- tccli/services/postgres/v20170312/examples.json +16 -2
- tccli/services/rce/v20201103/api.json +17 -8
- tccli/services/tcss/v20201101/api.json +199 -3
- tccli/services/tcss/v20201101/examples.json +5 -5
- tccli/services/teo/v20220901/api.json +50 -0
- tccli/services/tke/v20180525/api.json +9 -9
- tccli/services/tke/v20220501/api.json +5 -5
- tccli/services/tse/v20201207/api.json +22 -0
- tccli/services/tsf/tsf_client.py +4 -57
- tccli/services/tsf/v20180326/api.json +0 -34
- tccli/services/tsf/v20180326/examples.json +0 -8
- tccli/services/vpc/v20170312/examples.json +6 -0
- tccli/services/wedata/v20210820/api.json +11 -0
- {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/RECORD +40 -40
- {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,13 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
-
"ApplyMarketComponent": [
|
4
|
-
{
|
5
|
-
"document": "从组件市场选中组件并添加到应用模板列表",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ApplyMarketComponent\n<公共请求参数>\n\n{\n \"ID\": 8367274\n}",
|
7
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\"\n }\n}",
|
8
|
-
"title": "使用组件市场中的组件"
|
9
|
-
}
|
10
|
-
],
|
11
3
|
"BuildMessageRoute": [
|
12
4
|
{
|
13
5
|
"document": "",
|
@@ -16,14 +8,6 @@
|
|
16
8
|
"title": "BuildMessageRoute"
|
17
9
|
}
|
18
10
|
],
|
19
|
-
"CreateApplicationVisualization": [
|
20
|
-
{
|
21
|
-
"document": "",
|
22
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateApplicationVisualization\n<公共请求参数>\n\n{\n \"BasicInfo\": {\n \"Name\": \"app\",\n \"Description\": \"test\"\n },\n \"BasicConfig\": {\n \"Name\": \"app\",\n \"Namespace\": \"Default\",\n \"WorkflowKind\": \"Deployment\"\n }\n}",
|
23
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"ApplicationId\": 1\n }\n}",
|
24
|
-
"title": "创建应用模板"
|
25
|
-
}
|
26
|
-
],
|
27
11
|
"CreateConfigMap": [
|
28
12
|
{
|
29
13
|
"document": "",
|
@@ -64,22 +48,6 @@
|
|
64
48
|
"title": "创建边缘单元NodeUnit模板"
|
65
49
|
}
|
66
50
|
],
|
67
|
-
"CreateEdgeUnitApplicationVisualization": [
|
68
|
-
{
|
69
|
-
"document": "",
|
70
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEdgeUnitApplicationVisualization\n<公共请求参数>\n\n{\n \"BasicInfo\": {\n \"Name\": \"app\",\n \"Description\": \"test\"\n },\n \"BasicConfig\": {\n \"Name\": \"app\",\n \"Namespace\": \"Default\",\n \"WorkflowKind\": \"Deployment\"\n },\n \"EdgeUnitId\": 1\n}",
|
71
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"ApplicationId\": 1\n }\n}",
|
72
|
-
"title": "CreateEdgeUnitApplicationVisualization"
|
73
|
-
}
|
74
|
-
],
|
75
|
-
"CreateEdgeUnitApplicationYaml": [
|
76
|
-
{
|
77
|
-
"document": "",
|
78
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEdgeUnitApplicationYaml\n<公共请求参数>\n\n{\n \"BasicInfo\": {\n \"Name\": \"app\",\n \"Description\": \"test\"\n },\n \"EdgeUnitId\": 1,\n \"Yaml\": \"\"\n}",
|
79
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"ApplicationId\": 1\n }\n}",
|
80
|
-
"title": "CreateEdgeUnitApplicationYaml"
|
81
|
-
}
|
82
|
-
],
|
83
51
|
"CreateEdgeUnitCloud": [
|
84
52
|
{
|
85
53
|
"document": "",
|
@@ -156,14 +124,6 @@
|
|
156
124
|
"title": "CreateUserToken"
|
157
125
|
}
|
158
126
|
],
|
159
|
-
"DeleteApplications": [
|
160
|
-
{
|
161
|
-
"document": "删除应用",
|
162
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteApplications\n<公共请求参数>\n\n{\n \"ApplicationIds\": [\n 123,\n 234\n ]\n}",
|
163
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\"\n }\n}",
|
164
|
-
"title": "test"
|
165
|
-
}
|
166
|
-
],
|
167
127
|
"DeleteConfigMap": [
|
168
128
|
{
|
169
129
|
"document": "",
|
@@ -196,14 +156,6 @@
|
|
196
156
|
"title": "批量删除边缘节点"
|
197
157
|
}
|
198
158
|
],
|
199
|
-
"DeleteEdgeUnitApplications": [
|
200
|
-
{
|
201
|
-
"document": "",
|
202
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteEdgeUnitApplications\n<公共请求参数>\n\n{\n \"ApplicationIDs\": [\n 1\n ],\n \"EdgeUnitID\": 1\n}",
|
203
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\"\n }\n}",
|
204
|
-
"title": "DeleteEdgeUnitApplications"
|
205
|
-
}
|
206
|
-
],
|
207
159
|
"DeleteEdgeUnitCloud": [
|
208
160
|
{
|
209
161
|
"document": "",
|
@@ -284,44 +236,6 @@
|
|
284
236
|
"title": "DeleteSecret"
|
285
237
|
}
|
286
238
|
],
|
287
|
-
"DescribeApplicationVisualization": [
|
288
|
-
{
|
289
|
-
"document": "可视化配置",
|
290
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeApplicationVisualization\n<公共请求参数>\n\n{\n \"ApplicationId\": 1\n}",
|
291
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"e85dcda2-a3cb-4bea-a6e3-e5250bc43baf\",\n \"BasicInfo\": {\n \"Name\": \"teset1213\",\n \"ManageUrl\": \"\",\n \"Description\": \"\",\n \"CreateTime\": \"2021-11-23 20:29:17\"\n },\n \"BasicConfig\": {\n \"Name\": \"teset1213\",\n \"Namespace\": \"default\",\n \"Labels\": [\n {\n \"Key\": \"qcloud-app\",\n \"Value\": \"teset1213\"\n },\n {\n \"Key\": \"k8s-app\",\n \"Value\": \"teset1213\"\n }\n ],\n \"WorkflowKind\": \"Deployment\",\n \"GridUniqKey\": \"\",\n \"NodeSelector\": null,\n \"EnableServiceLinks\": true,\n \"Replicas\": 1,\n \"AvailableReplicas\": null\n },\n \"Volumes\": [],\n \"InitContainers\": null,\n \"Containers\": [\n {\n \"Name\": \"test\",\n \"ImageName\": \"123\",\n \"ImageVersion\": \"test\",\n \"ImagePullPolicy\": \"IfNotPresent\",\n \"VolumeMounts\": null,\n \"CpuRequest\": \"0.25\",\n \"CpuLimit\": \"0.5\",\n \"GpuLimit\": \"0\",\n \"ResourceMapCloud\": null,\n \"MemoryRequest\": \"256\",\n \"MemoryLimit\": \"1024\",\n \"MemoryUnit\": \"MiB\",\n \"Envs\": null,\n \"WorkingDir\": \"\",\n \"Commands\": null,\n \"Args\": null,\n \"SecurityContext\": {\n \"Privilege\": false\n },\n \"ReadinessProbe\": null\n }\n ],\n \"Service\": null,\n \"Job\": null,\n \"CronJob\": null,\n \"RestartPolicy\": null,\n \"HorizontalPodAutoscaler\": null,\n \"ImagePullSecrets\": null\n }\n}",
|
292
|
-
"title": "test"
|
293
|
-
}
|
294
|
-
],
|
295
|
-
"DescribeApplicationYaml": [
|
296
|
-
{
|
297
|
-
"document": "示例",
|
298
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeApplicationYaml\n<公共请求参数>\n\n{\n \"ApplicationId\": 1\n}",
|
299
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"7df34382-cc91-4cef-b551-4a065eb70c0b\",\n \"Yaml\": \"YXBpVmVyc2lvbjogYXBwcy92MQpraW5kOiBEZXBsb3ltZW50Cm1ldGFkYXRhOgogIGNyZWF0aW9uVGltZXN0YW1wOiBudWxsCiAgbGFiZWxzOgogICAgazhzLWFwcDogdGVzZXQxMjEzCiAgICBxY2xvdWQtYXBwOiB0ZXNldDEyMTMKICBuYW1lOiB0ZXNldDEyMTMKICBuYW1lc3BhY2U6IGRlZmF1bHQKc3BlYzoKICByZXBsaWNhczogMQogIHNlbGVjdG9yOgogICAgbWF0Y2hMYWJlbHM6CiAgICAgIGs4cy1hcHA6IHRlc2V0MTIxMwogICAgICBxY2xvdWQtYXBwOiB0ZXNldDEyMTMKICBzdHJhdGVneToKICAgIHJvbGxpbmdVcGRhdGU6CiAgICAgIG1heFN1cmdlOiAyNSUKICAgICAgbWF4VW5hdmFpbGFibGU6IDI1JQogICAgdHlwZTogUm9sbGluZ1VwZGF0ZQogIHRlbXBsYXRlOgogICAgbWV0YWRhdGE6CiAgICAgIGNyZWF0aW9uVGltZXN0YW1wOiBudWxsCiAgICAgIGxhYmVsczoKICAgICAgICBrOHMtYXBwOiB0ZXNldDEyMTMKICAgICAgICBxY2xvdWQtYXBwOiB0ZXNldDEyMTMKICAgIHNwZWM6CiAgICAgIGNvbnRhaW5lcnM6CiAgICAgIC0gZW52OgogICAgICAgIC0gbmFtZTogTlZJRElBX1ZJU0lCTEVfREVWSUNFUwogICAgICAgIGltYWdlOiAxMjM6dGVzdAogICAgICAgIGltYWdlUHVsbFBvbGljeTogSWZOb3RQcmVzZW50CiAgICAgICAgbmFtZTogdGVzdAogICAgICAgIHJlc291cmNlczoKICAgICAgICAgIGxpbWl0czoKICAgICAgICAgICAgY3B1OiA1MDBtCiAgICAgICAgICAgIG1lbW9yeTogMUdpCiAgICAgICAgICByZXF1ZXN0czoKICAgICAgICAgICAgY3B1OiAyNTBtCiAgICAgICAgICAgIG1lbW9yeTogMjU2TWkKICAgICAgICBzZWN1cml0eUNvbnRleHQ6CiAgICAgICAgICBwcml2aWxlZ2VkOiBmYWxzZQpzdGF0dXM6IHt9CgoKLS0tCgoKCi0tLQoK\"\n }\n}",
|
300
|
-
"title": "test"
|
301
|
-
}
|
302
|
-
],
|
303
|
-
"DescribeApplicationYamlError": [
|
304
|
-
{
|
305
|
-
"document": "",
|
306
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeApplicationYamlError\n<公共请求参数>\n\n{\n \"Yaml\": \"\"\n}",
|
307
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"CheckPass\": true,\n \"ErrType\": 0,\n \"ErrInfo\": \"\"\n }\n}",
|
308
|
-
"title": "DescribeApplicationYamlError"
|
309
|
-
}
|
310
|
-
],
|
311
|
-
"DescribeApplications": [
|
312
|
-
{
|
313
|
-
"document": "",
|
314
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeApplications\n<公共请求参数>\n\n{\n \"NamePattern\": \"\",\n \"Limit\": \"0\",\n \"Offset\": \"0\"\n}",
|
315
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"35d6452e-32df-4ced-9095-25a4baaa009e\",\n \"TotalCount\": 2,\n \"ApplicationSet\": [\n {\n \"Id\": 100000,\n \"Name\": \"test\",\n \"Source\": 1,\n \"ManageUrl\": \"\",\n \"DistributeTime\": \"2021-10-26 14:38:41\",\n \"WorkloadKind\": \"Deployment\"\n },\n {\n \"Id\": 100001,\n \"Name\": \"test-garry\",\n \"Source\": 1,\n \"ManageUrl\": \"\",\n \"DistributeTime\": \"2021-10-26 14:42:12\",\n \"WorkloadKind\": \"StatefulSet\"\n }\n ]\n }\n}",
|
316
|
-
"title": "test"
|
317
|
-
},
|
318
|
-
{
|
319
|
-
"document": "",
|
320
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeApplications\n<公共请求参数>\n\n{\n \"NamePattern\": \"\",\n \"Limit\": \"10\",\n \"Offset\": \"0\"\n}",
|
321
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"43681fb3-2af9-4e4a-8f0d-04fbeaf87079\",\n \"TotalCount\": 1,\n \"ApplicationSet\": [\n {\n \"Id\": 100000,\n \"Name\": \"test\",\n \"Source\": 1,\n \"ManageUrl\": \"\",\n \"DistributeTime\": \"2021-10-26 14:38:41\",\n \"WorkloadKind\": \"Deployment\"\n }\n ]\n }\n}",
|
322
|
-
"title": "test2"
|
323
|
-
}
|
324
|
-
],
|
325
239
|
"DescribeConfigMap": [
|
326
240
|
{
|
327
241
|
"document": "",
|
@@ -434,62 +348,6 @@
|
|
434
348
|
"title": "查询预添加节点"
|
435
349
|
}
|
436
350
|
],
|
437
|
-
"DescribeEdgeUnitApplicationEvents": [
|
438
|
-
{
|
439
|
-
"document": "",
|
440
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeUnitApplicationEvents\n<公共请求参数>\n\n{\n \"ApplicationId\": 1,\n \"EdgeUnitId\": 1\n}",
|
441
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"EventSet\": []\n }\n}",
|
442
|
-
"title": "DescribeEdgeUnitApplicationEvents"
|
443
|
-
}
|
444
|
-
],
|
445
|
-
"DescribeEdgeUnitApplicationLogs": [
|
446
|
-
{
|
447
|
-
"document": "",
|
448
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeUnitApplicationLogs\n<公共请求参数>\n\n{\n \"ApplicationId\": 1,\n \"EdgeUnitId\": 1,\n \"Limit\": 10,\n \"PodName\": \"Pod\"\n}",
|
449
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"LogSet\": []\n }\n}",
|
450
|
-
"title": "DescribeEdgeUnitApplicationLogs"
|
451
|
-
}
|
452
|
-
],
|
453
|
-
"DescribeEdgeUnitApplicationPodContainers": [
|
454
|
-
{
|
455
|
-
"document": "",
|
456
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeUnitApplicationPodContainers\n<公共请求参数>\n\n{\n \"ApplicationId\": 1,\n \"EdgeUnitId\": 1,\n \"PodName\": \"Pod\"\n}",
|
457
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"ContainerSet\": []\n }\n}",
|
458
|
-
"title": "DescribeEdgeUnitApplicationPodContainers"
|
459
|
-
}
|
460
|
-
],
|
461
|
-
"DescribeEdgeUnitApplicationPods": [
|
462
|
-
{
|
463
|
-
"document": "",
|
464
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeUnitApplicationPods\n<公共请求参数>\n\n{\n \"ApplicationId\": 1,\n \"EdgeUnitId\": 1\n}",
|
465
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"PodSet\": []\n }\n}",
|
466
|
-
"title": "DescribeEdgeUnitApplicationPods"
|
467
|
-
}
|
468
|
-
],
|
469
|
-
"DescribeEdgeUnitApplicationVisualization": [
|
470
|
-
{
|
471
|
-
"document": "",
|
472
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeUnitApplicationVisualization\n<公共请求参数>\n\n{\n \"ApplicationId\": 1,\n \"EdgeUnitId\": 1\n}",
|
473
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"BasicInfo\": null,\n \"BasicConfig\": null,\n \"Volumes\": [],\n \"InitContainers\": [],\n \"Containers\": [],\n \"Service\": null,\n \"Job\": null,\n \"CronJob\": null,\n \"RestartPolicy\": null,\n \"HorizontalPodAutoscaler\": null,\n \"ImagePullSecrets\": []\n }\n}",
|
474
|
-
"title": "DescribeEdgeUnitApplicationVisualization"
|
475
|
-
}
|
476
|
-
],
|
477
|
-
"DescribeEdgeUnitApplicationYaml": [
|
478
|
-
{
|
479
|
-
"document": "",
|
480
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeUnitApplicationYaml\n<公共请求参数>\n\n{\n \"ApplicationId\": 1,\n \"EdgeUnitId\": 1\n}",
|
481
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"Yaml\": \"\"\n }\n}",
|
482
|
-
"title": "DescribeEdgeUnitApplicationYaml"
|
483
|
-
}
|
484
|
-
],
|
485
|
-
"DescribeEdgeUnitApplicationYamlError": [
|
486
|
-
{
|
487
|
-
"document": "",
|
488
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeUnitApplicationYamlError\n<公共请求参数>\n\n{\n \"Yaml\": \"\"\n}",
|
489
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\",\n \"CheckPass\": true,\n \"ErrType\": 0,\n \"ErrInfo\": \"\"\n }\n}",
|
490
|
-
"title": "DescribeEdgeUnitApplicationYamlError"
|
491
|
-
}
|
492
|
-
],
|
493
351
|
"DescribeEdgeUnitApplications": [
|
494
352
|
{
|
495
353
|
"document": "",
|
@@ -498,14 +356,6 @@
|
|
498
356
|
"title": "DescribeEdgeUnitApplications"
|
499
357
|
}
|
500
358
|
],
|
501
|
-
"DescribeEdgeUnitCloud": [
|
502
|
-
{
|
503
|
-
"document": "",
|
504
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeUnitCloud\n<公共请求参数>\n\n{\n \"EdgeUnitId\": \"5\"\n}",
|
505
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"61abe8f0-ef42-4432-ad55-6092baaec209\",\n \"Name\": \"test-11\",\n \"Description\": \"字符串\",\n \"CreateTime\": \"2021-10-09 15:49:37\",\n \"UpdateTime\": \"2021-10-09 15:49:37\",\n \"LiveTime\": \"2021-10-09 16:15:40\",\n \"MasterStatus\": \"Running\",\n \"K8sVersion\": \"1.16.7\",\n \"PodCIDR\": \"10.1.0.0/16\",\n \"ServiceCIDR\": \"10.2.0.0/16\",\n \"APIServerAddress\": \"11.38.56.131:11302\",\n \"APIServerExposeAddress\": \"211.159.144.178:443\",\n \"UID\": \"600000559632\",\n \"UnitID\": 5,\n \"Cluster\": \"cls-g6uuoeez\",\n \"Node\": {\n \"NotActive\": 0,\n \"Offline\": 0,\n \"Total\": 1,\n \"Abnormal\": 0,\n \"Online\": 1\n },\n \"Grid\": {\n \"NotActive\": 0,\n \"Offline\": 0,\n \"Total\": 0,\n \"Abnormal\": 0,\n \"Online\": 0\n },\n \"Workload\": {\n \"NotActive\": 1,\n \"Offline\": 1,\n \"Total\": 1,\n \"Abnormal\": 1,\n \"Online\": 1\n },\n \"SubDevice\": null\n }\n}",
|
506
|
-
"title": "获取集群详细实例"
|
507
|
-
}
|
508
|
-
],
|
509
359
|
"DescribeEdgeUnitDeployGrid": [
|
510
360
|
{
|
511
361
|
"document": "",
|
@@ -724,22 +574,6 @@
|
|
724
574
|
"title": "获取组件市场组件列表"
|
725
575
|
}
|
726
576
|
],
|
727
|
-
"ModifyApplicationBasicInfo": [
|
728
|
-
{
|
729
|
-
"document": "修改应用名称",
|
730
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyApplicationBasicInfo\n<公共请求参数>\n\n{\n \"ApplicationId\": 1000,\n \"BasicInfo\": {\n \"Name\": \"test\"\n }\n}",
|
731
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\"\n }\n}",
|
732
|
-
"title": "test"
|
733
|
-
}
|
734
|
-
],
|
735
|
-
"ModifyApplicationVisualization": [
|
736
|
-
{
|
737
|
-
"document": "",
|
738
|
-
"input": "POST / HTTP/1.1\nHost: iecp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyApplicationVisualization\n<公共请求参数>\n\n{\n \"BasicConfig\": {\n \"Name\": \"app\",\n \"Namespace\": \"Default\",\n \"WorkflowKind\": \"Deployment\"\n },\n \"ApplicationId\": 1\n}",
|
739
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5ebf13a2-f925-4ba7-adff-ddbc21d355e3\"\n }\n}",
|
740
|
-
"title": "ModifyEdgeUnitApplicationVisualization"
|
741
|
-
}
|
742
|
-
],
|
743
577
|
"ModifyConfigMap": [
|
744
578
|
{
|
745
579
|
"document": "",
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
10
|
"ImageModeration": {
|
11
|
-
"document": "本接口(Image Moderation, IM)用于提交图片文件进行同步智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通图片内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。\n### 接口使用说明:\n- 前往“[内容安全控制台-图片内容安全](https://console.cloud.tencent.com/cms)”开启使用图片内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000张图片**识别额度,有效期为15天。\n- 该接口为收费接口,计费方式敬请参见 [腾讯云图片内容安全定价](https://cloud.tencent.com/product/ims/pricing)。\n\n### 接口功能说明:\n- 支持对图片文件或链接进行检测,通过深度学习技术,识别可能令人反感、不安全或不适宜的违规图片内容;\n- 支持对GIF图/长图进行截帧或拆分检测;\n- 支持识别多种违规场景,包括:低俗、违法违规、色情、广告等场景;\n- 支持多种物体检测(实体、广告台标、二维码等)及图片中文本的OCR文本识别;\n- 支持根据不同的业务场景配置自定义的审核策略;\n- 支持用户自定义选择图片风险库,打击自定义识别类型的违规图片(目前仅支持黑名单配置);\n- 支持在审核图片内容时同时关联账号或设备信息,可识别违规风险账号或设备。\n\n### 接口调用说明:\n-
|
11
|
+
"document": "本接口(Image Moderation, IM)用于提交图片文件进行同步智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通图片内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。\n### 接口使用说明:\n- 前往“[内容安全控制台-图片内容安全](https://console.cloud.tencent.com/cms)”开启使用图片内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000张图片**识别额度,有效期为15天。\n- 该接口为收费接口,计费方式敬请参见 [腾讯云图片内容安全定价](https://cloud.tencent.com/product/ims/pricing)。\n\n### 接口功能说明:\n- 支持对图片文件或链接进行检测,通过深度学习技术,识别可能令人反感、不安全或不适宜的违规图片内容;\n- 支持对GIF图/长图进行截帧或拆分检测;\n- 支持识别多种违规场景,包括:低俗、违法违规、色情、广告等场景;\n- 支持多种物体检测(实体、广告台标、二维码等)及图片中文本的OCR文本识别;\n- 支持根据不同的业务场景配置自定义的审核策略;\n- 支持用户自定义选择图片风险库,打击自定义识别类型的违规图片(目前仅支持黑名单配置);\n- 支持在审核图片内容时同时关联账号或设备信息,可识别违规风险账号或设备。\n\n### 接口调用说明:\n- 图片文件大小限制:图片文件须大于256字节,Base64编码后的FileContent内容应小于10MB,FileURL的源图应小于30MB;\n- 图片默认尺寸支持:**长和宽 需>50分辨率且<10000分辨率,并且图片长宽比<90:1;**\n- 图片文件分辨率支持:建议**分辨率大于256x256**,否则可能会影响识别效果;\n- 图片文件支持格式(无备注默认只支持静态图):BMP、ICO、JPEG、JNG、PNG、TIFF、RAW、SVG、GIF(静、动)、WEBP(静、动)、HEIC(静、动),动图在处理时,默认最多抽取5帧图像,并且每隔5帧进行一次采样;\n- 图片文件链接支持的传输协议:HTTP、HTTPS;\n- 图片审核仅支持单次传输一条URL进行审核,支持多并发请求。默认并发为100 QPS,超过此限制将返回`RequestLimitExceeded`错误;\n- 若传入图片文件的访问链接时,为保障被检测图片的稳定性和可靠性,建议您使用腾讯云COS存储或者CDN缓存等。\n\n### 图片下载说明:\n- 下载时间限制:图片首次下载限制为3秒。如超过此时间,将重试一次,重试时间为3秒。如果重试仍超时,将返回 `ImageDownloadError`(下载超时);\n- 网络安全策略:由于网络安全策略,带有重定向的链接(如HTTP返回302状态码)可能导致下载失败。请尽量避免使用此类链接,以确保下载顺利进行,可能返回 `ResourceUnavailable.ImageDownloadError`;\n- 异步回源支持:目前不支持通过异步回源方式获取图片源。请确保使用直接链接,以避免下载失败。\n\n<div class=\"rno-api-explorer\" style=\"margin-bottom:20px\">\n <div class=\"rno-api-explorer-inner\">\n <div class=\"rno-api-explorer-hd\">\n <div class=\"rno-api-explorer-title\">\n 关于版本迭代的描述\n </div>\n </div>\n <div class=\"rno-api-explorer-body\">\n <div class=\"rno-api-explorer-cont\">\n <p>当前页面版本为图片内容安全2020版本,2020.11.3日前接入的图片内容安全接口为2019版本,在此时间前接入的用户可直接访问以下链接进行维护操作:<a href=\"https://cloud.tencent.com/document/product/1125/38206\" target=\"_blank\">图片内容安全-2019版本</a></p>\n <p>2020版本相对2019版本进行了升级,支持更灵活的多场景业务策略配置以及更丰富的识别回调信息,满足不同业务的识别需求,建议按照2020版本接入指引进行接口升级;同时,2019版本也会持续维护直至用户不再使用为止。</p>\n </div>\n </div>\n </div>\n</div>",
|
12
12
|
"input": "ImageModerationRequest",
|
13
13
|
"name": "图片同步检测",
|
14
14
|
"output": "ImageModerationResponse",
|
@@ -223,7 +223,7 @@
|
|
223
223
|
{
|
224
224
|
"disabled": false,
|
225
225
|
"document": "该字段表示策略的具体编号,用于接口调度,在内容安全控制台中可配置。若不传入Biztype参数(留空),则代表采用默认的识别策略;传入则会在审核时根据业务场景采取不同的审核策略。<br>备注:Biztype仅为数字、字母与下划线的组合,长度为3-32个字符;不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。",
|
226
|
-
"example": "
|
226
|
+
"example": "182600012300002017",
|
227
227
|
"member": "string",
|
228
228
|
"name": "BizType",
|
229
229
|
"required": false,
|
@@ -232,7 +232,7 @@
|
|
232
232
|
{
|
233
233
|
"disabled": false,
|
234
234
|
"document": "该字段表示您为待检测对象分配的数据ID,传入后可方便您对文件进行标识和管理。<br>取值:由英文字母(大小写均可)、数字及四个特殊符号(_,-,@,#)组成,**长度不超过64个字符**。",
|
235
|
-
"example": "
|
235
|
+
"example": "a61237dd-c2a0-43e7-a3da-d27022d39ba7",
|
236
236
|
"member": "string",
|
237
237
|
"name": "DataId",
|
238
238
|
"required": false,
|
@@ -240,7 +240,7 @@
|
|
240
240
|
},
|
241
241
|
{
|
242
242
|
"disabled": false,
|
243
|
-
"document": "该字段表示待检测图片文件内容的Base64
|
243
|
+
"document": "该字段表示待检测图片文件内容的Base64编码,由于云API对请求包体有大小限制,图片的**Base64编码内容大小不得超过10MB**。<br/>备注:**该字段与FileUrl必须选择输入其中一个**。<br />",
|
244
244
|
"example": "aHR0cDovL2lubmVycG9ybnNjcmVlbnNob3QtMTI1MjgxMzg1MC5jb3MuYXAtZ3Vh",
|
245
245
|
"member": "string",
|
246
246
|
"name": "FileContent",
|
@@ -249,8 +249,8 @@
|
|
249
249
|
},
|
250
250
|
{
|
251
251
|
"disabled": false,
|
252
|
-
"document": "
|
253
|
-
"example": "https://
|
252
|
+
"document": "该字段表示待检测图片文件的访问链接,URL源图**大小不超过30MB**。<br />备注:该字段与FileContent必须选择输入其中一个。 <br />",
|
253
|
+
"example": "https://cmstest-123.cos.ap-guangzhou.myqcloud.com/image.jpg",
|
254
254
|
"member": "string",
|
255
255
|
"name": "FileUrl",
|
256
256
|
"required": false,
|
@@ -259,7 +259,7 @@
|
|
259
259
|
{
|
260
260
|
"disabled": false,
|
261
261
|
"document": "**GIF检测专用**,用于表示GIF截帧频率(每隔多少张图片抽取一帧进行检测);默认值为0,此时只会检测GIF的第一帧或不进行切分处理。<br>备注:Interval与MaxFrames参数需要组合使用。例如,Interval=3, MaxFrames=400,则代表在检测GIF时,将每间隔2帧检测一次且最多检测400帧。",
|
262
|
-
"example": "
|
262
|
+
"example": "0",
|
263
263
|
"member": "int64",
|
264
264
|
"name": "Interval",
|
265
265
|
"required": false,
|
@@ -268,7 +268,7 @@
|
|
268
268
|
{
|
269
269
|
"disabled": false,
|
270
270
|
"document": "**GIF检测专用**,用于标识最大截帧数量;默认值为1,此时只会检测输入GIF的第一帧不进行切分处理(可能会造成处理超时)。<br>备注:Interval与MaxFrames参数需要组合使用。例如,Interval=3, MaxFrames=400,则代表在检测GIF时,将每间隔2帧检测一次且最多检测400帧。",
|
271
|
-
"example": "
|
271
|
+
"example": "5",
|
272
272
|
"member": "int64",
|
273
273
|
"name": "MaxFrames",
|
274
274
|
"required": false,
|
@@ -391,7 +391,7 @@
|
|
391
391
|
{
|
392
392
|
"disabled": false,
|
393
393
|
"document": "该字段用于返回检测对象对应请求参数中的BizType。",
|
394
|
-
"example": "
|
394
|
+
"example": "182600012300002017",
|
395
395
|
"member": "string",
|
396
396
|
"name": "BizType",
|
397
397
|
"output_required": true,
|
@@ -11,8 +11,8 @@
|
|
11
11
|
"ImageModeration": [
|
12
12
|
{
|
13
13
|
"document": "图片同步检测",
|
14
|
-
"input": "POST / HTTP/1.1\nHost: ims.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImageModeration\n<公共请求参数>\n\n{\n \"BizType\": \"
|
15
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"DataId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"BizType\": \"
|
14
|
+
"input": "POST / HTTP/1.1\nHost: ims.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImageModeration\n<公共请求参数>\n\n{\n \"BizType\": \"182600012300002017\",\n \"DataId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"FileUrl\": \"https://cmstest-123.cos.ap-guangzhou.myqcloud.com/image.jpg\"\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"DataId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"BizType\": \"182600012300002017\",\n \"Suggestion\": \"Block\",\n \"FileMD5\": \"\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"SexyBehavior\",\n \"Score\": 90,\n \"LabelResults\": [\n {\n \"Scene\": \"Porn\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"SexyBehavior\",\n \"Score\": 90,\n \"Details\": []\n }\n ],\n \"ObjectResults\": [\n {\n \"Scene\": \"QrCode\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Ad\",\n \"SubLabel\": \"\",\n \"Score\": 100,\n \"Names\": [\n \"QRCODE\"\n ],\n \"Details\": [\n {\n \"Id\": 0,\n \"Name\": \"QRCODE\",\n \"Value\": \"https://test.com/test\",\n \"ObjectId\": \"\",\n \"SubLabel\": \"QRCODE\",\n \"Score\": 100,\n \"Location\": {\n \"X\": 155.01746,\n \"Y\": 396.01746,\n \"Width\": 769.9824,\n \"Height\": 769.98254,\n \"Rotate\": 0\n }\n }\n ]\n }\n ],\n \"OcrResults\": [],\n \"LibResults\": [],\n \"RecognitionResults\": [],\n \"Extra\": \"\"\n }\n}",
|
16
16
|
"title": "图片同步检测"
|
17
17
|
}
|
18
18
|
]
|
@@ -1057,7 +1057,7 @@ def doDescribePrometheusClusterAgents(args, parsed_globals):
|
|
1057
1057
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1058
1058
|
|
1059
1059
|
|
1060
|
-
def
|
1060
|
+
def doDescribePrometheusZones(args, parsed_globals):
|
1061
1061
|
g_param = parse_global_arg(parsed_globals)
|
1062
1062
|
|
1063
1063
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1086,11 +1086,11 @@ def doCheckIsPrometheusNewUser(args, parsed_globals):
|
|
1086
1086
|
client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
1087
1087
|
client._sdkVersion += ("_CLI_" + __version__)
|
1088
1088
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1089
|
-
model = models.
|
1089
|
+
model = models.DescribePrometheusZonesRequest()
|
1090
1090
|
model.from_json_string(json.dumps(args))
|
1091
1091
|
start_time = time.time()
|
1092
1092
|
while True:
|
1093
|
-
rsp = client.
|
1093
|
+
rsp = client.DescribePrometheusZones(model)
|
1094
1094
|
result = rsp.to_json_string()
|
1095
1095
|
try:
|
1096
1096
|
json_obj = json.loads(result)
|
@@ -1317,58 +1317,6 @@ def doDescribeGrafanaConfig(args, parsed_globals):
|
|
1317
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1318
|
|
1319
1319
|
|
1320
|
-
def doModifyPrometheusConfig(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.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
-
model = models.ModifyPrometheusConfigRequest()
|
1350
|
-
model.from_json_string(json.dumps(args))
|
1351
|
-
start_time = time.time()
|
1352
|
-
while True:
|
1353
|
-
rsp = client.ModifyPrometheusConfig(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
|
-
|
1372
1320
|
def doModifyAlarmPolicyInfo(args, parsed_globals):
|
1373
1321
|
g_param = parse_global_arg(parsed_globals)
|
1374
1322
|
|
@@ -5737,58 +5685,6 @@ def doDescribePrometheusTempSync(args, parsed_globals):
|
|
5737
5685
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5738
5686
|
|
5739
5687
|
|
5740
|
-
def doDescribePrometheusZones(args, parsed_globals):
|
5741
|
-
g_param = parse_global_arg(parsed_globals)
|
5742
|
-
|
5743
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5744
|
-
cred = credential.CVMRoleCredential()
|
5745
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5746
|
-
cred = credential.STSAssumeRoleCredential(
|
5747
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5748
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5749
|
-
)
|
5750
|
-
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):
|
5751
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5752
|
-
else:
|
5753
|
-
cred = credential.Credential(
|
5754
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5755
|
-
)
|
5756
|
-
http_profile = HttpProfile(
|
5757
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5758
|
-
reqMethod="POST",
|
5759
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
5760
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5761
|
-
)
|
5762
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5763
|
-
if g_param[OptionsDefine.Language]:
|
5764
|
-
profile.language = g_param[OptionsDefine.Language]
|
5765
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5766
|
-
client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
5767
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
5768
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5769
|
-
model = models.DescribePrometheusZonesRequest()
|
5770
|
-
model.from_json_string(json.dumps(args))
|
5771
|
-
start_time = time.time()
|
5772
|
-
while True:
|
5773
|
-
rsp = client.DescribePrometheusZones(model)
|
5774
|
-
result = rsp.to_json_string()
|
5775
|
-
try:
|
5776
|
-
json_obj = json.loads(result)
|
5777
|
-
except TypeError as e:
|
5778
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5779
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5780
|
-
break
|
5781
|
-
cur_time = time.time()
|
5782
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5783
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5784
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5785
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5786
|
-
else:
|
5787
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5788
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5789
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5790
|
-
|
5791
|
-
|
5792
5688
|
def doDescribeAlarmMetrics(args, parsed_globals):
|
5793
5689
|
g_param = parse_global_arg(parsed_globals)
|
5794
5690
|
|
@@ -8077,7 +7973,7 @@ def doDescribeGrafanaIntegrations(args, parsed_globals):
|
|
8077
7973
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8078
7974
|
|
8079
7975
|
|
8080
|
-
def
|
7976
|
+
def doModifyPrometheusConfig(args, parsed_globals):
|
8081
7977
|
g_param = parse_global_arg(parsed_globals)
|
8082
7978
|
|
8083
7979
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -8106,11 +8002,11 @@ def doDescribePrometheusRecordRuleYaml(args, parsed_globals):
|
|
8106
8002
|
client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
8107
8003
|
client._sdkVersion += ("_CLI_" + __version__)
|
8108
8004
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8109
|
-
model = models.
|
8005
|
+
model = models.ModifyPrometheusConfigRequest()
|
8110
8006
|
model.from_json_string(json.dumps(args))
|
8111
8007
|
start_time = time.time()
|
8112
8008
|
while True:
|
8113
|
-
rsp = client.
|
8009
|
+
rsp = client.ModifyPrometheusConfig(model)
|
8114
8010
|
result = rsp.to_json_string()
|
8115
8011
|
try:
|
8116
8012
|
json_obj = json.loads(result)
|
@@ -8212,12 +8108,11 @@ ACTION_MAP = {
|
|
8212
8108
|
"DescribePrometheusRecordRules": doDescribePrometheusRecordRules,
|
8213
8109
|
"UpdateSSOAccount": doUpdateSSOAccount,
|
8214
8110
|
"DescribePrometheusClusterAgents": doDescribePrometheusClusterAgents,
|
8215
|
-
"
|
8111
|
+
"DescribePrometheusZones": doDescribePrometheusZones,
|
8216
8112
|
"DescribeGrafanaEnvironments": doDescribeGrafanaEnvironments,
|
8217
8113
|
"UpdateRecordingRule": doUpdateRecordingRule,
|
8218
8114
|
"DeleteGrafanaNotificationChannel": doDeleteGrafanaNotificationChannel,
|
8219
8115
|
"DescribeGrafanaConfig": doDescribeGrafanaConfig,
|
8220
|
-
"ModifyPrometheusConfig": doModifyPrometheusConfig,
|
8221
8116
|
"ModifyAlarmPolicyInfo": doModifyAlarmPolicyInfo,
|
8222
8117
|
"ModifyAlarmPolicyStatus": doModifyAlarmPolicyStatus,
|
8223
8118
|
"DeletePrometheusScrapeJobs": doDeletePrometheusScrapeJobs,
|
@@ -8302,7 +8197,6 @@ ACTION_MAP = {
|
|
8302
8197
|
"ModifyPolicyGroup": doModifyPolicyGroup,
|
8303
8198
|
"DescribeAccidentEventList": doDescribeAccidentEventList,
|
8304
8199
|
"DescribePrometheusTempSync": doDescribePrometheusTempSync,
|
8305
|
-
"DescribePrometheusZones": doDescribePrometheusZones,
|
8306
8200
|
"DescribeAlarmMetrics": doDescribeAlarmMetrics,
|
8307
8201
|
"CreatePrometheusClusterAgent": doCreatePrometheusClusterAgent,
|
8308
8202
|
"CreatePrometheusConfig": doCreatePrometheusConfig,
|
@@ -8347,7 +8241,7 @@ ACTION_MAP = {
|
|
8347
8241
|
"DescribePluginOverviews": doDescribePluginOverviews,
|
8348
8242
|
"DescribeClusterAgentCreatingProgress": doDescribeClusterAgentCreatingProgress,
|
8349
8243
|
"DescribeGrafanaIntegrations": doDescribeGrafanaIntegrations,
|
8350
|
-
"
|
8244
|
+
"ModifyPrometheusConfig": doModifyPrometheusConfig,
|
8351
8245
|
"DescribeAlarmPolicy": doDescribeAlarmPolicy,
|
8352
8246
|
|
8353
8247
|
}
|