tccli 3.0.1321.1__py2.py3-none-any.whl → 3.0.1323.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/batch/v20170312/api.json +18 -18
- tccli/services/bh/v20230418/api.json +203 -0
- tccli/services/bi/v20220105/api.json +69 -1
- tccli/services/cam/v20190116/api.json +18 -18
- tccli/services/cbs/v20170312/api.json +5 -5
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +506 -1
- tccli/services/cdb/v20170320/examples.json +8 -0
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +10 -1
- tccli/services/cfw/v20190904/api.json +6 -6
- tccli/services/cfw/v20190904/examples.json +1 -1
- tccli/services/cloudapp/v20220530/api.json +10 -0
- tccli/services/cvm/v20170312/api.json +2 -2
- tccli/services/cynosdb/v20190107/api.json +148 -4
- tccli/services/dlc/v20210125/api.json +11 -9
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +218 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/goosefs/v20220519/api.json +4 -4
- tccli/services/gs/v20191118/api.json +10 -0
- tccli/services/gs/v20191118/examples.json +1 -1
- tccli/services/keewidb/v20220308/api.json +6 -4
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +2 -2
- tccli/services/lkeap/v20240522/api.json +2 -2
- tccli/services/lkeap/v20240522/examples.json +2 -2
- tccli/services/mps/v20190612/api.json +27 -0
- tccli/services/oceanus/v20190422/api.json +425 -13
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/ses/ses_client.py +53 -0
- tccli/services/ses/v20201002/api.json +102 -0
- tccli/services/ses/v20201002/examples.json +8 -0
- tccli/services/sms/v20210111/api.json +1 -1
- tccli/services/ssl/v20191205/api.json +10 -0
- tccli/services/tag/v20180813/api.json +26 -26
- tccli/services/teo/v20220901/examples.json +3 -3
- tccli/services/tione/v20211111/api.json +43 -1
- tccli/services/trabbit/v20230418/api.json +20 -0
- tccli/services/trabbit/v20230418/examples.json +1 -1
- tccli/services/tse/v20201207/api.json +2 -2
- tccli/services/tsf/v20180326/api.json +12 -1
- tccli/services/vpc/v20170312/api.json +62 -4
- tccli/services/vpc/v20170312/examples.json +28 -0
- tccli/services/vpc/vpc_client.py +122 -16
- tccli/services/wedata/v20210820/api.json +110 -6
- tccli/services/wedata/v20210820/examples.json +3 -3
- {tccli-3.0.1321.1.dist-info → tccli-3.0.1323.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1321.1.dist-info → tccli-3.0.1323.1.dist-info}/RECORD +55 -55
- {tccli-3.0.1321.1.dist-info → tccli-3.0.1323.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1321.1.dist-info → tccli-3.0.1323.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1321.1.dist-info → tccli-3.0.1323.1.dist-info}/license_files/LICENSE +0 -0
@@ -2014,13 +2014,22 @@
|
|
2014
2014
|
"type": "int"
|
2015
2015
|
},
|
2016
2016
|
{
|
2017
|
-
"disabled":
|
2017
|
+
"disabled": true,
|
2018
2018
|
"document": "缓存盘大小",
|
2019
2019
|
"example": "200",
|
2020
2020
|
"member": "string",
|
2021
2021
|
"name": "CacheDiskSize",
|
2022
2022
|
"required": false,
|
2023
2023
|
"type": "string"
|
2024
|
+
},
|
2025
|
+
{
|
2026
|
+
"disabled": false,
|
2027
|
+
"document": "缓存盘大小",
|
2028
|
+
"example": "200",
|
2029
|
+
"member": "int64",
|
2030
|
+
"name": "CacheDataDiskSize",
|
2031
|
+
"required": false,
|
2032
|
+
"type": "int"
|
2024
2033
|
}
|
2025
2034
|
],
|
2026
2035
|
"type": "object"
|
@@ -9707,7 +9707,7 @@
|
|
9707
9707
|
{
|
9708
9708
|
"disabled": false,
|
9709
9709
|
"document": "日志主题ID",
|
9710
|
-
"example": "
|
9710
|
+
"example": "cfw_netflow_border",
|
9711
9711
|
"member": "string",
|
9712
9712
|
"name": "TopicId",
|
9713
9713
|
"output_required": false,
|
@@ -12760,7 +12760,7 @@
|
|
12760
12760
|
{
|
12761
12761
|
"disabled": false,
|
12762
12762
|
"document": "日志主题ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
12763
|
-
"example": "
|
12763
|
+
"example": "cfw_netflow_border",
|
12764
12764
|
"member": "string",
|
12765
12765
|
"name": "TopicId",
|
12766
12766
|
"output_required": false,
|
@@ -12796,7 +12796,7 @@
|
|
12796
12796
|
{
|
12797
12797
|
"disabled": false,
|
12798
12798
|
"document": "日志主题ID",
|
12799
|
-
"example": "
|
12799
|
+
"example": "cfw_netflow_border",
|
12800
12800
|
"member": "string",
|
12801
12801
|
"name": "TopicId",
|
12802
12802
|
"output_required": true,
|
@@ -12850,7 +12850,7 @@
|
|
12850
12850
|
{
|
12851
12851
|
"disabled": false,
|
12852
12852
|
"document": "检索分析语句,最大长度为12KB\n语句由 <a href=\"https://cloud.tencent.com/document/product/614/47044\" target=\"_blank\">[检索条件]</a> | <a href=\"https://cloud.tencent.com/document/product/614/44061\" target=\"_blank\">[SQL语句]</a>构成,无需对日志进行统计分析时,可省略其中的管道符<code> | </code>及SQL语句\n使用*或空字符串可查询所有日志",
|
12853
|
-
"example": "
|
12853
|
+
"example": "protocol:HTTP",
|
12854
12854
|
"member": "string",
|
12855
12855
|
"name": "Query",
|
12856
12856
|
"required": true,
|
@@ -12867,8 +12867,8 @@
|
|
12867
12867
|
},
|
12868
12868
|
{
|
12869
12869
|
"disabled": false,
|
12870
|
-
"document": "- 要检索分析的日志主题ID,仅能指定一个日志主题。\n- 如需同时检索多个日志主题,请使用Topics参数。\n- TopicId 和 Topics
|
12871
|
-
"example": "
|
12870
|
+
"document": "- 要检索分析的日志主题ID,仅能指定一个日志主题。\n- 如需同时检索多个日志主题,请使用Topics参数。\n- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。\n各日志主题ID如下\n访问控制-互联网边界 cfw_rule_acl\n访问控制-NAT边界 cfw_rule_nat_acl\n访问控制-VPC边界 cfw_rule_vpc_acl\n访问控制-DNS开关 cfw_rule_dns_acl\n入侵防御 cfw_rule_threatinfo\n全流量检测与响应日志-流量分析 cfw_netflow_nta\n全流量检测与响应日志-流量告警 cfw_rule_ndr_threatinfo\n零信任运维-数据库登录 cfw_operate_db\n零信任运维-服务器访问 operate_remote_om\n零信任运维-Web服务访问 operate_web_access\n零信任运维-行为审计 remoteom_commands\n流量日志-互联网边界 cfw_netflow_border\n流量日志-NAT边界 cfw_netflow_nat\n流量日志-VPC边界 cfw_netflow_vpc\n流量日志-DNS开关 cfw_netflow_dns\n流量日志-内网流量 cfw_netflow_fl\n操作日志 operate_log_all",
|
12871
|
+
"example": "cfw_netflow_border",
|
12872
12872
|
"member": "string",
|
12873
12873
|
"name": "TopicId",
|
12874
12874
|
"required": false,
|
@@ -924,7 +924,7 @@
|
|
924
924
|
{
|
925
925
|
"document": "查询http响应状态码(http_code)为200的日志",
|
926
926
|
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SearchLog\n<公共请求参数>\n\n{\n \"TopicId\": \"601c2a87-ca8e-49c9-xxxx-27286a970db5\",\n \"From\": 1679901909686,\n \"To\": 1679902809686,\n \"Query\": \"http_code:\\\"200\\\"\",\n \"Limit\": 1,\n \"Sort\": \"desc\",\n \"UseNewAnalysis\": true,\n \"SyntaxRule\": 1\n}",
|
927
|
-
"output": "{\n \"Response\": {\n \"Context\": \"Y29udGV4dC0zZDVmZGI2NC1jNDZkLTQ2NzktYWM2OC1jYzg2NjUxYmVlMWExNjc5OTAyODEwNDM0\",\n \"ListOver\": false,\n \"Analysis\": false,\n \"ColNames\": [],\n \"Columns\":
|
927
|
+
"output": "{\n \"Response\": {\n \"Context\": \"Y29udGV4dC0zZDVmZGI2NC1jNDZkLTQ2NzktYWM2OC1jYzg2NjUxYmVlMWExNjc5OTAyODEwNDM0\",\n \"ListOver\": false,\n \"Analysis\": false,\n \"ColNames\": [],\n \"Columns\": [],\n \"Results\": [\n {\n \"Time\": 1679902806070,\n \"TopicId\": \"601c2a87-ca8e-49c9-xxxx-27286a970db5\",\n \"TopicName\": \"CDN Demo访问日志日志主题_10000100xxxx\",\n \"Source\": \"\",\n \"FileName\": \"\",\n \"HostName\": \"\",\n \"PkgId\": \"\",\n \"PkgLogId\": \"\",\n \"LogJson\": \"{\\\"referer\\\":\\\"http://qwunsag.2022.qq.com/prizes?activity_code=AVGCHaQFX02Eb\\\",\\\"method\\\":\\\"GET\\\",\\\"isp\\\":\\\"中国联通\\\",\\\"remote_port\\\":\\\"45088\\\",\\\"ua\\\":\\\"Mozilla/5.0 (Linux; Android 9; INE-AL00 Build/HUAWEIINE-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.99 XWEB/3211 MMWEBSDK/20210601 Mobile Safari/537.36 MMWEBID/6389 MicroMessenger/8.0.11.1980(0x28000B5B) Process/toolsmp WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64\\\",\\\"uuid\\\":\\\"acf1010c853f4a24bb3e92cc34e283e2\\\",\\\"version\\\":\\\"1\\\",\\\"file_size\\\":\\\"186358\\\",\\\"url\\\":\\\"/loxtxt/979884858.png\\\",\\\"request_range\\\":\\\"-\\\",\\\"rsp_size\\\":\\\"186830\\\",\\\"hit\\\":\\\"hit\\\",\\\"request_time\\\":\\\"2808\\\",\\\"http_code\\\":\\\"200\\\",\\\"param\\\":\\\"-\\\",\\\"sys_address\\\":\\\"9.130.154.208\\\",\\\"proto\\\":\\\"HTTPS\\\",\\\"host\\\":\\\"test.2022.cls.cn\\\",\\\"sys_datasource\\\":\\\"cq.3.4.v1.2.17\\\",\\\"client_ip\\\":\\\"116.116.247.167\\\",\\\"time\\\":\\\"1679902806070\\\",\\\"app_id\\\":\\\"1302700768\\\",\\\"prov\\\":\\\"内蒙古自治区\\\",\\\"timestamp\\\":\\\"2023-03-27T15:40:06+08:00\\\"}\",\n \"RawLog\": \"\",\n \"IndexStatus\": \"\"\n }\n ],\n \"AnalysisResults\": [],\n \"AnalysisRecords\": [],\n \"RequestId\": \"79f593e5-1374-4463-xxxx-c49d0b3c5290\",\n \"SamplingRate\": 0\n }\n}",
|
928
928
|
"title": "查询日志"
|
929
929
|
}
|
930
930
|
],
|
@@ -187,6 +187,16 @@
|
|
187
187
|
"output_required": true,
|
188
188
|
"type": "string",
|
189
189
|
"value_allowed_null": false
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"disabled": false,
|
193
|
+
"document": "授权的层级:Master 主授权;Child 子授权/增强型授权",
|
194
|
+
"example": "Master",
|
195
|
+
"member": "string",
|
196
|
+
"name": "LicenseLevel",
|
197
|
+
"output_required": false,
|
198
|
+
"type": "string",
|
199
|
+
"value_allowed_null": false
|
190
200
|
}
|
191
201
|
],
|
192
202
|
"usage": "out"
|
@@ -12394,14 +12394,14 @@
|
|
12394
12394
|
},
|
12395
12395
|
{
|
12396
12396
|
"disabled": false,
|
12397
|
-
"document": "所属的独享集群ID
|
12397
|
+
"document": "所属的独享集群ID。\n注意:此字段可能返回 null,表示取不到有效值。",
|
12398
12398
|
"example": "cdc-xxxxxx",
|
12399
12399
|
"member": "string",
|
12400
12400
|
"name": "CdcId",
|
12401
12401
|
"output_required": false,
|
12402
12402
|
"required": false,
|
12403
12403
|
"type": "string",
|
12404
|
-
"value_allowed_null":
|
12404
|
+
"value_allowed_null": true
|
12405
12405
|
},
|
12406
12406
|
{
|
12407
12407
|
"disabled": false,
|
@@ -3020,6 +3020,16 @@
|
|
3020
3020
|
"output_required": false,
|
3021
3021
|
"type": "object",
|
3022
3022
|
"value_allowed_null": false
|
3023
|
+
},
|
3024
|
+
{
|
3025
|
+
"disabled": false,
|
3026
|
+
"document": "全球数据库网络任务",
|
3027
|
+
"example": "无",
|
3028
|
+
"member": "GdnTaskInfo",
|
3029
|
+
"name": "GdnTaskInfo",
|
3030
|
+
"output_required": false,
|
3031
|
+
"type": "object",
|
3032
|
+
"value_allowed_null": false
|
3023
3033
|
}
|
3024
3034
|
],
|
3025
3035
|
"usage": "out"
|
@@ -6382,6 +6392,36 @@
|
|
6382
6392
|
"output_required": false,
|
6383
6393
|
"type": "string",
|
6384
6394
|
"value_allowed_null": false
|
6395
|
+
},
|
6396
|
+
{
|
6397
|
+
"disabled": false,
|
6398
|
+
"document": "二级存储使用量,单位:G",
|
6399
|
+
"example": "100",
|
6400
|
+
"member": "int64",
|
6401
|
+
"name": "UsedArchiveStorage",
|
6402
|
+
"output_required": false,
|
6403
|
+
"type": "int",
|
6404
|
+
"value_allowed_null": false
|
6405
|
+
},
|
6406
|
+
{
|
6407
|
+
"disabled": false,
|
6408
|
+
"document": "归档状态,枚举值<li>normal:正常</li><li>archiving:归档中</li><li>resuming:恢复中</li><li>archived :已归档</li>",
|
6409
|
+
"example": "normal",
|
6410
|
+
"member": "string",
|
6411
|
+
"name": "ArchiveStatus",
|
6412
|
+
"output_required": false,
|
6413
|
+
"type": "string",
|
6414
|
+
"value_allowed_null": false
|
6415
|
+
},
|
6416
|
+
{
|
6417
|
+
"disabled": false,
|
6418
|
+
"document": "归档进度,百分比。",
|
6419
|
+
"example": "64",
|
6420
|
+
"member": "int64",
|
6421
|
+
"name": "ArchiveProgress",
|
6422
|
+
"output_required": false,
|
6423
|
+
"type": "int",
|
6424
|
+
"value_allowed_null": false
|
6385
6425
|
}
|
6386
6426
|
],
|
6387
6427
|
"usage": "out"
|
@@ -12358,6 +12398,16 @@
|
|
12358
12398
|
"type": "string",
|
12359
12399
|
"value_allowed_null": false
|
12360
12400
|
},
|
12401
|
+
{
|
12402
|
+
"disabled": false,
|
12403
|
+
"document": "是否开启归档,可选范围<li>yes</li><li>no</li>默认值:yes",
|
12404
|
+
"example": "yes",
|
12405
|
+
"member": "string",
|
12406
|
+
"name": "AutoArchive",
|
12407
|
+
"output_required": false,
|
12408
|
+
"type": "string",
|
12409
|
+
"value_allowed_null": false
|
12410
|
+
},
|
12361
12411
|
{
|
12362
12412
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
12363
12413
|
"member": "string",
|
@@ -13108,6 +13158,82 @@
|
|
13108
13158
|
],
|
13109
13159
|
"type": "object"
|
13110
13160
|
},
|
13161
|
+
"GdnTaskInfo": {
|
13162
|
+
"document": "全球数据库任务信息",
|
13163
|
+
"members": [
|
13164
|
+
{
|
13165
|
+
"disabled": false,
|
13166
|
+
"document": "全球数据库唯一标识",
|
13167
|
+
"example": "cynosdbmysql-gdn-byo4q0th",
|
13168
|
+
"member": "string",
|
13169
|
+
"name": "GdnId",
|
13170
|
+
"output_required": false,
|
13171
|
+
"type": "string",
|
13172
|
+
"value_allowed_null": false
|
13173
|
+
},
|
13174
|
+
{
|
13175
|
+
"disabled": false,
|
13176
|
+
"document": "全球数据库唯一别名",
|
13177
|
+
"example": "gdnname",
|
13178
|
+
"member": "string",
|
13179
|
+
"name": "GdnName",
|
13180
|
+
"output_required": false,
|
13181
|
+
"type": "string",
|
13182
|
+
"value_allowed_null": false
|
13183
|
+
},
|
13184
|
+
{
|
13185
|
+
"disabled": false,
|
13186
|
+
"document": "主集群ID",
|
13187
|
+
"example": "cynosdbmysql-byo4q0t2",
|
13188
|
+
"member": "string",
|
13189
|
+
"name": "PrimaryClusterId",
|
13190
|
+
"output_required": false,
|
13191
|
+
"type": "string",
|
13192
|
+
"value_allowed_null": false
|
13193
|
+
},
|
13194
|
+
{
|
13195
|
+
"disabled": false,
|
13196
|
+
"document": "主集群所在地域",
|
13197
|
+
"example": "ap-chengdu",
|
13198
|
+
"member": "string",
|
13199
|
+
"name": "PrimaryClusterRegion",
|
13200
|
+
"output_required": false,
|
13201
|
+
"type": "string",
|
13202
|
+
"value_allowed_null": false
|
13203
|
+
},
|
13204
|
+
{
|
13205
|
+
"disabled": false,
|
13206
|
+
"document": "从集群所在地域",
|
13207
|
+
"example": "ap-guangzhou",
|
13208
|
+
"member": "string",
|
13209
|
+
"name": "StandbyClusterRegion",
|
13210
|
+
"output_required": false,
|
13211
|
+
"type": "string",
|
13212
|
+
"value_allowed_null": false
|
13213
|
+
},
|
13214
|
+
{
|
13215
|
+
"disabled": false,
|
13216
|
+
"document": "从集群ID",
|
13217
|
+
"example": "cynosdbmysql-byo4q0t2",
|
13218
|
+
"member": "string",
|
13219
|
+
"name": "StandbyClusterId",
|
13220
|
+
"output_required": false,
|
13221
|
+
"type": "string",
|
13222
|
+
"value_allowed_null": false
|
13223
|
+
},
|
13224
|
+
{
|
13225
|
+
"disabled": false,
|
13226
|
+
"document": "从集群别名",
|
13227
|
+
"example": "standbycluster",
|
13228
|
+
"member": "string",
|
13229
|
+
"name": "StandbyClusterName",
|
13230
|
+
"output_required": false,
|
13231
|
+
"type": "string",
|
13232
|
+
"value_allowed_null": false
|
13233
|
+
}
|
13234
|
+
],
|
13235
|
+
"usage": "out"
|
13236
|
+
},
|
13111
13237
|
"GrantAccountPrivilegesRequest": {
|
13112
13238
|
"document": "GrantAccountPrivileges请求参数结构体",
|
13113
13239
|
"members": [
|
@@ -16499,6 +16625,15 @@
|
|
16499
16625
|
"name": "MaxRoCount",
|
16500
16626
|
"required": false,
|
16501
16627
|
"type": "int"
|
16628
|
+
},
|
16629
|
+
{
|
16630
|
+
"disabled": false,
|
16631
|
+
"document": "是否开启归档,可选范围<li>yes</li><li>no</li>默认值:yes",
|
16632
|
+
"example": "yes",
|
16633
|
+
"member": "string",
|
16634
|
+
"name": "AutoArchive",
|
16635
|
+
"required": false,
|
16636
|
+
"type": "string"
|
16502
16637
|
}
|
16503
16638
|
],
|
16504
16639
|
"type": "object"
|
@@ -18481,7 +18616,7 @@
|
|
18481
18616
|
"members": [
|
18482
18617
|
{
|
18483
18618
|
"disabled": false,
|
18484
|
-
"document": "
|
18619
|
+
"document": "数据库代理组节点个数。该参数不再建议使用,建议使用ProxyZones",
|
18485
18620
|
"example": "cynosdbmysql-xxxxxxx",
|
18486
18621
|
"member": "int64",
|
18487
18622
|
"name": "ProxyCount",
|
@@ -18508,7 +18643,7 @@
|
|
18508
18643
|
},
|
18509
18644
|
{
|
18510
18645
|
"disabled": false,
|
18511
|
-
"document": "
|
18646
|
+
"document": "连接池类型:SessionConnectionPool(会话级别连接池 )",
|
18512
18647
|
"example": "SessionConnectionPool",
|
18513
18648
|
"member": "string",
|
18514
18649
|
"name": "ConnectionPoolType",
|
@@ -18526,7 +18661,7 @@
|
|
18526
18661
|
},
|
18527
18662
|
{
|
18528
18663
|
"disabled": false,
|
18529
|
-
"document": "
|
18664
|
+
"document": "连接池阈值:单位(秒)",
|
18530
18665
|
"example": "0",
|
18531
18666
|
"member": "int64",
|
18532
18667
|
"name": "ConnectionPoolTimeOut",
|
@@ -18536,7 +18671,7 @@
|
|
18536
18671
|
{
|
18537
18672
|
"disabled": false,
|
18538
18673
|
"document": "描述说明",
|
18539
|
-
"example": "
|
18674
|
+
"example": "只读代理",
|
18540
18675
|
"member": "string",
|
18541
18676
|
"name": "Description",
|
18542
18677
|
"required": false,
|
@@ -20498,6 +20633,15 @@
|
|
20498
20633
|
"name": "ProjectId",
|
20499
20634
|
"required": false,
|
20500
20635
|
"type": "int"
|
20636
|
+
},
|
20637
|
+
{
|
20638
|
+
"disabled": false,
|
20639
|
+
"document": "是否开启归档,可选范围<li>yes</li><li>no</li>默认值:yes",
|
20640
|
+
"example": "yes",
|
20641
|
+
"member": "string",
|
20642
|
+
"name": "AutoArchive",
|
20643
|
+
"required": false,
|
20644
|
+
"type": "string"
|
20501
20645
|
}
|
20502
20646
|
],
|
20503
20647
|
"type": "object"
|
@@ -13888,20 +13888,22 @@
|
|
13888
13888
|
"members": [
|
13889
13889
|
{
|
13890
13890
|
"disabled": false,
|
13891
|
-
"document": "
|
13891
|
+
"document": "kafka实例Id",
|
13892
13892
|
"example": "***",
|
13893
13893
|
"member": "string",
|
13894
13894
|
"name": "InstanceId",
|
13895
|
+
"output_required": true,
|
13895
13896
|
"required": true,
|
13896
13897
|
"type": "string",
|
13897
13898
|
"value_allowed_null": false
|
13898
13899
|
},
|
13899
13900
|
{
|
13900
13901
|
"disabled": false,
|
13901
|
-
"document": "
|
13902
|
+
"document": "kafka数据源的网络信息",
|
13902
13903
|
"example": "{\"VpcId\":\"vpc-***\",\"VpcCidrBlock\":\"10.0.0.0/16\",\"SubnetId\":\"subn",
|
13903
13904
|
"member": "DatasourceConnectionLocation",
|
13904
13905
|
"name": "Location",
|
13906
|
+
"output_required": true,
|
13905
13907
|
"required": true,
|
13906
13908
|
"type": "object",
|
13907
13909
|
"value_allowed_null": false
|
@@ -16223,7 +16225,7 @@
|
|
16223
16225
|
"members": [
|
16224
16226
|
{
|
16225
16227
|
"disabled": false,
|
16226
|
-
"document": "
|
16228
|
+
"document": "需要授权的数据库名,填 * 代表当前Catalog下所有数据库。当授权类型为管理员级别时,只允许填 “*”,当授权类型为数据连接级别时只允许填空,其他类型下可以任意指定数据库。",
|
16227
16229
|
"example": "test_database",
|
16228
16230
|
"member": "string",
|
16229
16231
|
"name": "Database",
|
@@ -16234,7 +16236,7 @@
|
|
16234
16236
|
},
|
16235
16237
|
{
|
16236
16238
|
"disabled": false,
|
16237
|
-
"document": "
|
16239
|
+
"document": "需要授权的数据源名称,管理员级别下只支持填 * (代表该级别全部资源);数据源级别和数据库级别鉴权的情况下,只支持填COSDataCatalog或者*;在数据表级别鉴权下可以填写用户自定义数据源。不填情况下默认为DataLakeCatalog。注意:如果是对用户自定义数据源进行鉴权,DLC能够管理的权限是用户接入数据源的时候提供的账户的子集。",
|
16238
16240
|
"example": "DataLakeCatalog",
|
16239
16241
|
"member": "string",
|
16240
16242
|
"name": "Catalog",
|
@@ -16245,7 +16247,7 @@
|
|
16245
16247
|
},
|
16246
16248
|
{
|
16247
16249
|
"disabled": false,
|
16248
|
-
"document": "
|
16250
|
+
"document": "需要授权的表名,填 * 代表当前Database下所有表。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别、数据库级别时只允许填空,其他类型下可以任意指定数据表。",
|
16249
16251
|
"example": "test_table",
|
16250
16252
|
"member": "string",
|
16251
16253
|
"name": "Table",
|
@@ -16278,7 +16280,7 @@
|
|
16278
16280
|
},
|
16279
16281
|
{
|
16280
16282
|
"disabled": false,
|
16281
|
-
"document": "
|
16283
|
+
"document": "需要授权的函数名,填 * 代表当前Catalog下所有函数。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别时只允许填空,其他类型下可以任意指定函数。\n注意:此字段可能返回 null,表示取不到有效值。",
|
16282
16284
|
"example": "fun1",
|
16283
16285
|
"member": "string",
|
16284
16286
|
"name": "Function",
|
@@ -16289,7 +16291,7 @@
|
|
16289
16291
|
},
|
16290
16292
|
{
|
16291
16293
|
"disabled": false,
|
16292
|
-
"document": "
|
16294
|
+
"document": "需要授权的视图,填 * 代表当前Database下所有视图。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别、数据库级别时只允许填空,其他类型下可以任意指定视图。\n注意:此字段可能返回 null,表示取不到有效值。",
|
16293
16295
|
"example": "view1",
|
16294
16296
|
"member": "string",
|
16295
16297
|
"name": "View",
|
@@ -16300,7 +16302,7 @@
|
|
16300
16302
|
},
|
16301
16303
|
{
|
16302
16304
|
"disabled": false,
|
16303
|
-
"document": "
|
16305
|
+
"document": "需要授权的列,填 * 代表当前所有列。当授权类型为管理员级别时,只允许填“*”\n注意:此字段可能返回 null,表示取不到有效值。",
|
16304
16306
|
"example": "column1",
|
16305
16307
|
"member": "string",
|
16306
16308
|
"name": "Column",
|
@@ -16311,7 +16313,7 @@
|
|
16311
16313
|
},
|
16312
16314
|
{
|
16313
16315
|
"disabled": false,
|
16314
|
-
"document": "
|
16316
|
+
"document": "需要授权的数据引擎,填 * 代表当前所有引擎。当授权类型为管理员级别时,只允许填“*”\n注意:此字段可能返回 null,表示取不到有效值。",
|
16315
16317
|
"example": "dataEngine1",
|
16316
16318
|
"member": "string",
|
16317
16319
|
"name": "DataEngine",
|
tccli/services/emr/emr_client.py
CHANGED
@@ -3813,6 +3813,58 @@ def doDescribeInstancesList(args, parsed_globals):
|
|
3813
3813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
3814
|
|
3815
3815
|
|
3816
|
+
def doDescribeGroupsSTD(args, parsed_globals):
|
3817
|
+
g_param = parse_global_arg(parsed_globals)
|
3818
|
+
|
3819
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3820
|
+
cred = credential.CVMRoleCredential()
|
3821
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3822
|
+
cred = credential.STSAssumeRoleCredential(
|
3823
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3824
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3825
|
+
)
|
3826
|
+
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):
|
3827
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3828
|
+
else:
|
3829
|
+
cred = credential.Credential(
|
3830
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3831
|
+
)
|
3832
|
+
http_profile = HttpProfile(
|
3833
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3834
|
+
reqMethod="POST",
|
3835
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3836
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3837
|
+
)
|
3838
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3839
|
+
if g_param[OptionsDefine.Language]:
|
3840
|
+
profile.language = g_param[OptionsDefine.Language]
|
3841
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3842
|
+
client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3844
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
+
model = models.DescribeGroupsSTDRequest()
|
3846
|
+
model.from_json_string(json.dumps(args))
|
3847
|
+
start_time = time.time()
|
3848
|
+
while True:
|
3849
|
+
rsp = client.DescribeGroupsSTD(model)
|
3850
|
+
result = rsp.to_json_string()
|
3851
|
+
try:
|
3852
|
+
json_obj = json.loads(result)
|
3853
|
+
except TypeError as e:
|
3854
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3855
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3856
|
+
break
|
3857
|
+
cur_time = time.time()
|
3858
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3859
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3860
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3861
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3862
|
+
else:
|
3863
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3864
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3865
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
|
+
|
3867
|
+
|
3816
3868
|
def doDeleteGroupsSTD(args, parsed_globals):
|
3817
3869
|
g_param = parse_global_arg(parsed_globals)
|
3818
3870
|
|
@@ -4469,6 +4521,7 @@ ACTION_MAP = {
|
|
4469
4521
|
"DescribeClusterNodes": doDescribeClusterNodes,
|
4470
4522
|
"DescribeYarnScheduleHistory": doDescribeYarnScheduleHistory,
|
4471
4523
|
"DescribeInstancesList": doDescribeInstancesList,
|
4524
|
+
"DescribeGroupsSTD": doDescribeGroupsSTD,
|
4472
4525
|
"DeleteGroupsSTD": doDeleteGroupsSTD,
|
4473
4526
|
"ModifyResourcePools": doModifyResourcePools,
|
4474
4527
|
"DescribeInsightList": doDescribeInsightList,
|