tccli 3.0.1367.1__py2.py3-none-any.whl → 3.0.1369.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 +34 -1
- tccli/services/batch/v20170312/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +6 -6
- tccli/services/cdb/v20170320/examples.json +1 -1
- tccli/services/cdn/v20180606/api.json +6 -1
- tccli/services/cdwch/v20200915/api.json +16 -7
- tccli/services/cfg/v20210820/api.json +9 -0
- tccli/services/clb/v20180317/api.json +11 -11
- tccli/services/cls/v20201016/api.json +20 -18
- tccli/services/cls/v20201016/examples.json +7 -7
- tccli/services/csip/csip_client.py +53 -0
- tccli/services/csip/v20221121/api.json +333 -3
- tccli/services/csip/v20221121/examples.json +8 -0
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/emr/v20190103/examples.json +1 -1
- tccli/services/es/v20180416/api.json +132 -3
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +4 -4
- tccli/services/iai/v20180301/api.json +1 -1
- tccli/services/iai/v20200303/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/mps/v20190612/api.json +15 -5
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/omics/v20221128/api.json +105 -6
- tccli/services/sqlserver/v20180328/api.json +20 -0
- tccli/services/ssl/v20191205/api.json +40 -0
- tccli/services/ssl/v20191205/examples.json +1 -1
- tccli/services/sts/v20180813/api.json +1 -1
- tccli/services/tdmq/v20200217/api.json +74 -5
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +85 -2
- tccli/services/thpc/thpc_client.py +330 -12
- tccli/services/thpc/v20230321/api.json +718 -0
- tccli/services/thpc/v20230321/examples.json +48 -0
- tccli/services/trocket/v20230308/api.json +49 -9
- tccli/services/trocket/v20230308/examples.json +1 -1
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vdb/v20230616/api.json +12 -3
- tccli/services/vod/v20180717/api.json +5 -5
- tccli/services/vrs/v20200824/api.json +1 -1
- tccli/services/wedata/v20210820/api.json +12 -12
- {tccli-3.0.1367.1.dist-info → tccli-3.0.1369.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1367.1.dist-info → tccli-3.0.1369.1.dist-info}/RECORD +48 -48
- {tccli-3.0.1367.1.dist-info → tccli-3.0.1369.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1367.1.dist-info → tccli-3.0.1369.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1367.1.dist-info → tccli-3.0.1369.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1369.1'
|
@@ -2035,7 +2035,7 @@
|
|
2035
2035
|
},
|
2036
2036
|
{
|
2037
2037
|
"disabled": false,
|
2038
|
-
"document": "支持查询的指标;当前支持查询的任务指标;\n\n- CpuUsage:cpu利用率,单位:%\n- MemUsage:内存利用率,单位:%\n- LanOuttraffic:内网出带宽,单位:Bytes/s\n- LanIntraffic:内网入带宽,单位:Bytes/s",
|
2038
|
+
"document": "支持查询的指标;当前支持查询的任务指标;\n\n- CpuUsage:cpu利用率,单位:%\n- MemUsage:内存利用率,单位:%\n- LanOuttraffic:内网出带宽,单位:Bytes/s\n- LanIntraffic:内网入带宽,单位:Bytes/s\n- MaxDiskUsage:所有磁盘中的使用率最高的磁盘使用率,单位:%\n- TargetDiskUsage:指定磁盘的使用率,单位:%;配合Dimensions参数使用",
|
2039
2039
|
"example": "CpuUsage",
|
2040
2040
|
"member": "string",
|
2041
2041
|
"name": "MetricName",
|
@@ -2059,6 +2059,15 @@
|
|
2059
2059
|
"name": "EndTime",
|
2060
2060
|
"required": false,
|
2061
2061
|
"type": "string"
|
2062
|
+
},
|
2063
|
+
{
|
2064
|
+
"disabled": false,
|
2065
|
+
"document": "查询指标的扩展参数;当前只支持TargetDiskUsage;\n\n- TargetDiskUsage\n -支持的查询维度diskname, 维度值为磁盘挂载名,例如vdb;如果不传此参数,默认查询vdb磁盘的使用率。\n 样例:[{\"Name\":\"diskname\", \"Value\":\"vdb\"}]",
|
2066
|
+
"example": "无",
|
2067
|
+
"member": "Dimension",
|
2068
|
+
"name": "Dimensions",
|
2069
|
+
"required": false,
|
2070
|
+
"type": "list"
|
2062
2071
|
}
|
2063
2072
|
],
|
2064
2073
|
"type": "object"
|
@@ -2769,6 +2778,30 @@
|
|
2769
2778
|
],
|
2770
2779
|
"type": "object"
|
2771
2780
|
},
|
2781
|
+
"Dimension": {
|
2782
|
+
"document": "Job资源监控查询维度",
|
2783
|
+
"members": [
|
2784
|
+
{
|
2785
|
+
"disabled": false,
|
2786
|
+
"document": "查询指标的维度名称",
|
2787
|
+
"example": "diskname",
|
2788
|
+
"member": "string",
|
2789
|
+
"name": "Name",
|
2790
|
+
"required": true,
|
2791
|
+
"type": "string"
|
2792
|
+
},
|
2793
|
+
{
|
2794
|
+
"disabled": false,
|
2795
|
+
"document": "查询指标的维度值",
|
2796
|
+
"example": "vdb",
|
2797
|
+
"member": "string",
|
2798
|
+
"name": "Value",
|
2799
|
+
"required": true,
|
2800
|
+
"type": "string"
|
2801
|
+
}
|
2802
|
+
],
|
2803
|
+
"usage": "in"
|
2804
|
+
},
|
2772
2805
|
"Docker": {
|
2773
2806
|
"document": "Docker容器信息",
|
2774
2807
|
"members": [
|
@@ -123,7 +123,7 @@
|
|
123
123
|
"DescribeJobMonitorData": [
|
124
124
|
{
|
125
125
|
"document": "",
|
126
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
126
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeJobMonitorData\n<公共请求参数>\n\n{\n \"JobId\": \"job-1jj9noyr\",\n \"TaskName\": \"demo-1\",\n \"TaskInstanceIndex\": 0,\n \"MetricName\": \"CpuUsage\"\n}",
|
127
127
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a66adf73-110f-49b4-a173-c68c952d4428\",\n \"Period\": 60,\n \"DataPoints\": {\n \"Timestamps\": [\n 1749696420,\n 1749696430,\n 1749696440\n ],\n \"Values\": [\n 0.1,\n 0.2,\n 0.3\n ]\n }\n }\n}",
|
128
128
|
"title": "查询作业实例的资源使用监控信息"
|
129
129
|
}
|
@@ -16316,7 +16316,7 @@
|
|
16316
16316
|
{
|
16317
16317
|
"disabled": false,
|
16318
16318
|
"document": "自动备份方式,仅支持:physical - 物理冷备",
|
16319
|
-
"example": "
|
16319
|
+
"example": "physical",
|
16320
16320
|
"member": "string",
|
16321
16321
|
"name": "BackupMethod",
|
16322
16322
|
"required": false,
|
@@ -16334,7 +16334,7 @@
|
|
16334
16334
|
{
|
16335
16335
|
"disabled": false,
|
16336
16336
|
"document": "备份时间窗,比如要设置每周二和周日 10:00-14:00之间备份,该参数如下:{\"Monday\": \"\", \"Tuesday\": \"10:00-14:00\", \"Wednesday\": \"\", \"Thursday\": \"\", \"Friday\": \"\", \"Saturday\": \"\", \"Sunday\": \"10:00-14:00\"} (注:可以设置一周的某几天备份,但是每天的备份时间需要设置为相同的时间段。 如果设置了该字段,将忽略StartTime字段的设置)",
|
16337
|
-
"example": "
|
16337
|
+
"example": "无",
|
16338
16338
|
"member": "CommonTimeWindow",
|
16339
16339
|
"name": "BackupTimeWindow",
|
16340
16340
|
"required": false,
|
@@ -17127,7 +17127,7 @@
|
|
17127
17127
|
{
|
17128
17128
|
"disabled": false,
|
17129
17129
|
"document": "要修改的参数列表。每一个元素是 Name 和 CurrentValue 的组合。Name 是参数名,CurrentValue 是要修改成的值。",
|
17130
|
-
"example": "
|
17130
|
+
"example": "无",
|
17131
17131
|
"member": "Parameter",
|
17132
17132
|
"name": "ParamList",
|
17133
17133
|
"required": false,
|
@@ -17135,7 +17135,7 @@
|
|
17135
17135
|
},
|
17136
17136
|
{
|
17137
17137
|
"disabled": false,
|
17138
|
-
"document": "模板 ID,ParamList 和 TemplateId 必须至少传其中之一。可通过 [
|
17138
|
+
"document": "模板 ID,ParamList 和 TemplateId 必须至少传其中之一。可通过 [DescribeParamTemplates](https://cloud.tencent.com/document/api/236/32659) 接口获取。",
|
17139
17139
|
"example": "99",
|
17140
17140
|
"member": "int64",
|
17141
17141
|
"name": "TemplateId",
|
@@ -17380,7 +17380,7 @@
|
|
17380
17380
|
"members": [
|
17381
17381
|
{
|
17382
17382
|
"disabled": false,
|
17383
|
-
"document": "模板 ID。可通过 [
|
17383
|
+
"document": "模板 ID。可通过 [DescribeParamTemplates](https://cloud.tencent.com/document/api/236/32659) 接口获取。",
|
17384
17384
|
"example": "11231",
|
17385
17385
|
"member": "int64",
|
17386
17386
|
"name": "TemplateId",
|
@@ -17408,7 +17408,7 @@
|
|
17408
17408
|
{
|
17409
17409
|
"disabled": false,
|
17410
17410
|
"document": "参数列表。",
|
17411
|
-
"example": "
|
17411
|
+
"example": "无",
|
17412
17412
|
"member": "Parameter",
|
17413
17413
|
"name": "ParamList",
|
17414
17414
|
"required": false,
|
@@ -1041,7 +1041,7 @@
|
|
1041
1041
|
"ModifyBackupConfig": [
|
1042
1042
|
{
|
1043
1043
|
"document": "修改数据库备份配置",
|
1044
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-c1nl9rpv\",\n \"ExpireDays\": 10,\n \"BinlogExpireDays\": 8,\n \"BackupMethod\": \"
|
1044
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-c1nl9rpv\",\n \"ExpireDays\": 10,\n \"BinlogExpireDays\": 8,\n \"BackupMethod\": \"physical\",\n \"StartTime\": \"02:00-06:00\"\n}",
|
1045
1045
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\"\n }\n}",
|
1046
1046
|
"title": "修改数据库备份配置"
|
1047
1047
|
}
|
@@ -13810,9 +13810,10 @@
|
|
13810
13810
|
{
|
13811
13811
|
"disabled": false,
|
13812
13812
|
"document": "重定向状态码,301 | 302",
|
13813
|
-
"example": "
|
13813
|
+
"example": "302",
|
13814
13814
|
"member": "int64",
|
13815
13815
|
"name": "RedirectStatusCode",
|
13816
|
+
"output_required": true,
|
13816
13817
|
"required": true,
|
13817
13818
|
"type": "int",
|
13818
13819
|
"value_allowed_null": false
|
@@ -13823,6 +13824,7 @@
|
|
13823
13824
|
"example": "no",
|
13824
13825
|
"member": "string",
|
13825
13826
|
"name": "Pattern",
|
13827
|
+
"output_required": true,
|
13826
13828
|
"required": true,
|
13827
13829
|
"type": "string",
|
13828
13830
|
"value_allowed_null": false
|
@@ -13833,6 +13835,7 @@
|
|
13833
13835
|
"example": "no",
|
13834
13836
|
"member": "string",
|
13835
13837
|
"name": "RedirectUrl",
|
13838
|
+
"output_required": true,
|
13836
13839
|
"required": true,
|
13837
13840
|
"type": "string",
|
13838
13841
|
"value_allowed_null": false
|
@@ -13843,6 +13846,7 @@
|
|
13843
13846
|
"example": "no",
|
13844
13847
|
"member": "string",
|
13845
13848
|
"name": "RedirectHost",
|
13849
|
+
"output_required": true,
|
13846
13850
|
"required": false,
|
13847
13851
|
"type": "string",
|
13848
13852
|
"value_allowed_null": true
|
@@ -13853,6 +13857,7 @@
|
|
13853
13857
|
"example": "false",
|
13854
13858
|
"member": "bool",
|
13855
13859
|
"name": "FullMatch",
|
13860
|
+
"output_required": true,
|
13856
13861
|
"required": false,
|
13857
13862
|
"type": "bool",
|
13858
13863
|
"value_allowed_null": true
|
@@ -1145,7 +1145,7 @@
|
|
1145
1145
|
{
|
1146
1146
|
"disabled": false,
|
1147
1147
|
"document": "计费方式",
|
1148
|
-
"example": "
|
1148
|
+
"example": "无",
|
1149
1149
|
"member": "Charge",
|
1150
1150
|
"name": "ChargeProperties",
|
1151
1151
|
"required": true,
|
@@ -1163,7 +1163,7 @@
|
|
1163
1163
|
{
|
1164
1164
|
"disabled": false,
|
1165
1165
|
"document": "数据节点\nSpecName从DescribeSpec接口中返回的DataSpec.Name获取",
|
1166
|
-
"example": "
|
1166
|
+
"example": "无",
|
1167
1167
|
"member": "NodeSpec",
|
1168
1168
|
"name": "DataSpec",
|
1169
1169
|
"required": true,
|
@@ -1172,7 +1172,7 @@
|
|
1172
1172
|
{
|
1173
1173
|
"disabled": true,
|
1174
1174
|
"document": "标签列表(废弃)",
|
1175
|
-
"example": "
|
1175
|
+
"example": "无",
|
1176
1176
|
"member": "Tag",
|
1177
1177
|
"name": "Tags",
|
1178
1178
|
"required": false,
|
@@ -1216,8 +1216,8 @@
|
|
1216
1216
|
},
|
1217
1217
|
{
|
1218
1218
|
"disabled": false,
|
1219
|
-
"document": "ZK
|
1220
|
-
"example": "
|
1219
|
+
"document": "ZK节点SpecName从DescribeSpec接口中返回的CommonSpec结构体的Name(ZK节点)获取",
|
1220
|
+
"example": "无",
|
1221
1221
|
"member": "NodeSpec",
|
1222
1222
|
"name": "CommonSpec",
|
1223
1223
|
"required": false,
|
@@ -1234,12 +1234,21 @@
|
|
1234
1234
|
},
|
1235
1235
|
{
|
1236
1236
|
"disabled": false,
|
1237
|
-
"document": "
|
1238
|
-
"example": "
|
1237
|
+
"document": "副可用区信息",
|
1238
|
+
"example": "无",
|
1239
1239
|
"member": "SecondaryZoneInfo",
|
1240
1240
|
"name": "SecondaryZoneInfo",
|
1241
1241
|
"required": false,
|
1242
1242
|
"type": "list"
|
1243
|
+
},
|
1244
|
+
{
|
1245
|
+
"disabled": false,
|
1246
|
+
"document": "default账号登陆实例的密码。8-16个字符,至少包含大写字母、小写字母、数字和特殊字符!@#%^*中的三种,第一个字符不能为特殊字符",
|
1247
|
+
"example": "Test@579",
|
1248
|
+
"member": "string",
|
1249
|
+
"name": "CkDefaultUserPwd",
|
1250
|
+
"required": false,
|
1251
|
+
"type": "string"
|
1243
1252
|
}
|
1244
1253
|
],
|
1245
1254
|
"type": "object"
|
@@ -595,6 +595,15 @@
|
|
595
595
|
"name": "TaskPauseDuration",
|
596
596
|
"required": false,
|
597
597
|
"type": "int"
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"disabled": false,
|
601
|
+
"document": "标签列表",
|
602
|
+
"example": "无",
|
603
|
+
"member": "TagWithCreate",
|
604
|
+
"name": "TaskTags",
|
605
|
+
"required": false,
|
606
|
+
"type": "list"
|
598
607
|
}
|
599
608
|
],
|
600
609
|
"type": "object"
|
@@ -2886,7 +2886,7 @@
|
|
2886
2886
|
{
|
2887
2887
|
"disabled": false,
|
2888
2888
|
"document": "健康检查相关参数,此参数仅适用于TCP/UDP/TCP_SSL/QUIC监听器。",
|
2889
|
-
"example": "
|
2889
|
+
"example": "无",
|
2890
2890
|
"member": "HealthCheck",
|
2891
2891
|
"name": "HealthCheck",
|
2892
2892
|
"required": false,
|
@@ -2895,7 +2895,7 @@
|
|
2895
2895
|
{
|
2896
2896
|
"disabled": false,
|
2897
2897
|
"document": "证书相关信息。参数限制如下:\n<li>此参数仅适用于TCP_SSL监听器和未开启SNI特性的HTTPS监听器。</li>\n<li>创建TCP_SSL监听器和未开启SNI特性的HTTPS监听器时,此参数和参数MultiCertInfo至少需要传一个, 但不能同时传入。</li>",
|
2898
|
-
"example": "
|
2898
|
+
"example": "无",
|
2899
2899
|
"member": "CertificateInput",
|
2900
2900
|
"name": "Certificate",
|
2901
2901
|
"required": false,
|
@@ -2912,7 +2912,7 @@
|
|
2912
2912
|
},
|
2913
2913
|
{
|
2914
2914
|
"disabled": false,
|
2915
|
-
"document": "监听器转发的方式。可选值:WRR(按权重轮询)、LEAST_CONN
|
2915
|
+
"document": "监听器转发的方式。可选值:WRR(按权重轮询)、LEAST_CONN(按最小连接数)\n默认为 WRR。此参数仅适用于TCP/UDP/TCP_SSL/QUIC监听器。",
|
2916
2916
|
"example": "WRR",
|
2917
2917
|
"member": "string",
|
2918
2918
|
"name": "Scheduler",
|
@@ -2967,7 +2967,7 @@
|
|
2967
2967
|
{
|
2968
2968
|
"disabled": false,
|
2969
2969
|
"document": "解绑后端目标时,是否发RST给两端(客户端和服务器),此参数仅适用于TCP监听器。",
|
2970
|
-
"example": "
|
2970
|
+
"example": "false",
|
2971
2971
|
"member": "bool",
|
2972
2972
|
"name": "DeregisterTargetRst",
|
2973
2973
|
"required": false,
|
@@ -2976,7 +2976,7 @@
|
|
2976
2976
|
{
|
2977
2977
|
"disabled": false,
|
2978
2978
|
"document": "证书信息,支持同时传入不同算法类型的多本服务端证书,参数限制如下:\n<li>此参数仅适用于TCP_SSL监听器和未开启SNI特性的HTTPS监听器。</li>\n<li>创建TCP_SSL监听器和未开启SNI特性的HTTPS监听器时,此参数和参数Certificate至少需要传一个, 但不能同时传入。</li>",
|
2979
|
-
"example": "
|
2979
|
+
"example": "无",
|
2980
2980
|
"member": "MultiCertInfo",
|
2981
2981
|
"name": "MultiCertInfo",
|
2982
2982
|
"required": false,
|
@@ -2985,7 +2985,7 @@
|
|
2985
2985
|
{
|
2986
2986
|
"disabled": false,
|
2987
2987
|
"document": "监听器最大连接数,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。基础网络实例不支持该参数。",
|
2988
|
-
"example": "
|
2988
|
+
"example": "1000",
|
2989
2989
|
"member": "int64",
|
2990
2990
|
"name": "MaxConn",
|
2991
2991
|
"required": false,
|
@@ -2994,7 +2994,7 @@
|
|
2994
2994
|
{
|
2995
2995
|
"disabled": false,
|
2996
2996
|
"document": "监听器最大新增连接数,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。基础网络实例不支持该参数。",
|
2997
|
-
"example": "
|
2997
|
+
"example": "1000",
|
2998
2998
|
"member": "int64",
|
2999
2999
|
"name": "MaxCps",
|
3000
3000
|
"required": false,
|
@@ -3012,7 +3012,7 @@
|
|
3012
3012
|
{
|
3013
3013
|
"disabled": false,
|
3014
3014
|
"document": "TCP_SSL和QUIC是否支持PP",
|
3015
|
-
"example": "
|
3015
|
+
"example": "false",
|
3016
3016
|
"member": "bool",
|
3017
3017
|
"name": "ProxyProtocol",
|
3018
3018
|
"required": false,
|
@@ -3021,7 +3021,7 @@
|
|
3021
3021
|
{
|
3022
3022
|
"disabled": false,
|
3023
3023
|
"document": "是否开启SNAT,True(开启)、False(关闭)。\n默认为关闭。",
|
3024
|
-
"example": "
|
3024
|
+
"example": "false",
|
3025
3025
|
"member": "bool",
|
3026
3026
|
"name": "SnatEnable",
|
3027
3027
|
"required": false,
|
@@ -3039,7 +3039,7 @@
|
|
3039
3039
|
{
|
3040
3040
|
"disabled": false,
|
3041
3041
|
"document": "内网http监听器开启h2c开关,True(开启)、False(关闭)。\n默认为关闭。",
|
3042
|
-
"example": "
|
3042
|
+
"example": "false",
|
3043
3043
|
"member": "bool",
|
3044
3044
|
"name": "H2cSwitch",
|
3045
3045
|
"required": false,
|
@@ -3048,7 +3048,7 @@
|
|
3048
3048
|
{
|
3049
3049
|
"disabled": false,
|
3050
3050
|
"document": "TCP_SSL监听器支持关闭SSL后仍然支持混绑,此参数为关闭开关。True(关闭)、False(开启).\n默认为关闭。",
|
3051
|
-
"example": "
|
3051
|
+
"example": "false",
|
3052
3052
|
"member": "bool",
|
3053
3053
|
"name": "SslCloseSwitch",
|
3054
3054
|
"required": false,
|
@@ -4917,8 +4917,8 @@
|
|
4917
4917
|
"members": [
|
4918
4918
|
{
|
4919
4919
|
"disabled": false,
|
4920
|
-
"document": "日志主题
|
4921
|
-
"example": "
|
4920
|
+
"document": "日志主题Id。\n- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。",
|
4921
|
+
"example": "75f531f6-3644-45e5-8717-af1dc294cc93",
|
4922
4922
|
"member": "string",
|
4923
4923
|
"name": "TopicId",
|
4924
4924
|
"required": true,
|
@@ -5107,8 +5107,8 @@
|
|
5107
5107
|
"members": [
|
5108
5108
|
{
|
5109
5109
|
"disabled": false,
|
5110
|
-
"document": "
|
5111
|
-
"example": "
|
5110
|
+
"document": "日志集名字。\n\n- 最大支持255个字符。不支持`|`字符。",
|
5111
|
+
"example": "业务流日志集",
|
5112
5112
|
"member": "string",
|
5113
5113
|
"name": "LogsetName",
|
5114
5114
|
"required": true,
|
@@ -5126,7 +5126,7 @@
|
|
5126
5126
|
{
|
5127
5127
|
"disabled": false,
|
5128
5128
|
"document": "日志集ID,格式为:用户自定义部分-用户appid,用户自定义部分仅支持小写字母、数字和-,且不能以-开头和结尾,长度为3至40字符,尾部需要使用-拼接用户appid",
|
5129
|
-
"example": "user-
|
5129
|
+
"example": "user-diy-1254139626",
|
5130
5130
|
"member": "string",
|
5131
5131
|
"name": "LogsetId",
|
5132
5132
|
"required": false,
|
@@ -6825,8 +6825,8 @@
|
|
6825
6825
|
"members": [
|
6826
6826
|
{
|
6827
6827
|
"disabled": false,
|
6828
|
-
"document": "日志主题
|
6829
|
-
"example": "
|
6828
|
+
"document": "日志主题Id。\n- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。",
|
6829
|
+
"example": "75f531f6-3644-45e5-8717-af1dc294cc93",
|
6830
6830
|
"member": "string",
|
6831
6831
|
"name": "TopicId",
|
6832
6832
|
"required": true,
|
@@ -6888,7 +6888,7 @@
|
|
6888
6888
|
"members": [
|
6889
6889
|
{
|
6890
6890
|
"disabled": false,
|
6891
|
-
"document": "日志集
|
6891
|
+
"document": "日志集Id。通过 [获取日志集列表](https://cloud.tencent.com/document/product/614/58624)获取日志集Id。",
|
6892
6892
|
"example": "eb6eafd9-1656-4d60-b3c2-0a5bf91c9b0d",
|
6893
6893
|
"member": "string",
|
6894
6894
|
"name": "LogsetId",
|
@@ -8104,8 +8104,8 @@
|
|
8104
8104
|
"members": [
|
8105
8105
|
{
|
8106
8106
|
"disabled": false,
|
8107
|
-
"document": "日志主题
|
8108
|
-
"example": "
|
8107
|
+
"document": "日志主题Id。\n- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。",
|
8108
|
+
"example": "75f531f6-3644-45e5-8717-af1dc294cc93",
|
8109
8109
|
"member": "string",
|
8110
8110
|
"name": "TopicId",
|
8111
8111
|
"required": true,
|
@@ -8119,7 +8119,7 @@
|
|
8119
8119
|
"members": [
|
8120
8120
|
{
|
8121
8121
|
"disabled": false,
|
8122
|
-
"document": "日志主题
|
8122
|
+
"document": "日志主题Id",
|
8123
8123
|
"example": "826f8b26-b054-4a0d-8c8e-f3d609f5e0ea",
|
8124
8124
|
"member": "string",
|
8125
8125
|
"name": "TopicId",
|
@@ -8129,7 +8129,7 @@
|
|
8129
8129
|
},
|
8130
8130
|
{
|
8131
8131
|
"disabled": false,
|
8132
|
-
"document": "
|
8132
|
+
"document": "索引状态。true:开启状态,false:关闭状态\n开启后可对日志进行检索分析,将产生索引流量、索引存储及相应费用。[费用详情](https://cloud.tencent.com/document/product/614/45802#.E8.AE.A1.E8.B4.B9.E9.A1.B9)",
|
8133
8133
|
"example": "true",
|
8134
8134
|
"member": "bool",
|
8135
8135
|
"name": "Status",
|
@@ -8149,7 +8149,7 @@
|
|
8149
8149
|
},
|
8150
8150
|
{
|
8151
8151
|
"disabled": false,
|
8152
|
-
"document": "
|
8152
|
+
"document": "索引修改时间,初始值为索引创建时间。格式 `YYYY-MM-DD HH:MM:SS`",
|
8153
8153
|
"example": "2021-01-13 21:00:08 ",
|
8154
8154
|
"member": "string",
|
8155
8155
|
"name": "ModifyTime",
|
@@ -8554,7 +8554,7 @@
|
|
8554
8554
|
"members": [
|
8555
8555
|
{
|
8556
8556
|
"disabled": false,
|
8557
|
-
"document": "logsetName\n- 按照【日志集名称】进行过滤。\n- 类型:String\n- 必选:否\n
|
8557
|
+
"document": "logsetName\n- 按照【日志集名称】进行过滤。\n- 类型:String\n- 必选:否\n- 通过 [获取日志集列表](https://cloud.tencent.com/document/product/614/58624)获取日志集名称。\nlogsetId\n- 按照【日志集ID】进行过滤。\n- 类型:String\n- 必选:否\n- 通过 [获取日志集列表](https://cloud.tencent.com/document/product/614/58624)获取日志集Id。\n\ntagKey\n- 按照【标签键】进行过滤。\n- 类型:String\n- 必选:否\n\ntag:tagKey\n- 按照【标签键值对】进行过滤。tagKey使用具体的标签键进行替换。\n- 类型:String\n- 必选:否\n\n每次请求的Filters的上限为10,Filter.Values的上限为5。",
|
8558
8558
|
"example": "无",
|
8559
8559
|
"member": "Filter",
|
8560
8560
|
"name": "Filters",
|
@@ -8591,6 +8591,7 @@
|
|
8591
8591
|
"example": "1",
|
8592
8592
|
"member": "int64",
|
8593
8593
|
"name": "TotalCount",
|
8594
|
+
"output_required": true,
|
8594
8595
|
"type": "int",
|
8595
8596
|
"value_allowed_null": false
|
8596
8597
|
},
|
@@ -8600,6 +8601,7 @@
|
|
8600
8601
|
"example": "无",
|
8601
8602
|
"member": "LogsetInfo",
|
8602
8603
|
"name": "Logsets",
|
8604
|
+
"output_required": true,
|
8603
8605
|
"type": "list",
|
8604
8606
|
"value_allowed_null": false
|
8605
8607
|
},
|
@@ -11086,7 +11088,7 @@
|
|
11086
11088
|
},
|
11087
11089
|
{
|
11088
11090
|
"disabled": false,
|
11089
|
-
"document": "
|
11091
|
+
"document": "创建时间。格式 `YYYY-MM-DD HH:MM:SS`",
|
11090
11092
|
"example": "2021-04-01 08:00:00",
|
11091
11093
|
"member": "string",
|
11092
11094
|
"name": "CreateTime",
|
@@ -12844,7 +12846,7 @@
|
|
12844
12846
|
"members": [
|
12845
12847
|
{
|
12846
12848
|
"disabled": false,
|
12847
|
-
"document": "日志集
|
12849
|
+
"document": "日志集Id。通过 [获取日志集列表](https://cloud.tencent.com/document/product/614/58624)获取日志集Id。",
|
12848
12850
|
"example": "dc01b74a-49e4-11eb-b378-0242ac130002",
|
12849
12851
|
"member": "string",
|
12850
12852
|
"name": "LogsetId",
|
@@ -12853,8 +12855,8 @@
|
|
12853
12855
|
},
|
12854
12856
|
{
|
12855
12857
|
"disabled": false,
|
12856
|
-
"document": "
|
12857
|
-
"example": "
|
12858
|
+
"document": "日志集名字。- 最大支持255个字符。不支持`|`字符。",
|
12859
|
+
"example": "业务流日志集",
|
12858
12860
|
"member": "string",
|
12859
12861
|
"name": "LogsetName",
|
12860
12862
|
"required": false,
|
@@ -171,8 +171,8 @@
|
|
171
171
|
"CreateIndex": [
|
172
172
|
{
|
173
173
|
"document": "",
|
174
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateIndex\n<公共请求参数>\n\n{\n \"TopicId\": \"
|
175
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
174
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateIndex\n<公共请求参数>\n\n{\n \"TopicId\": \"75f531f6-3644-45e5-8717-af1dc294cc93\",\n \"Status\": true,\n \"Rule\": {\n \"FullText\": {\n \"CaseSensitive\": true,\n \"Tokenizer\": \"@&?|#()='\\\",;:<>[]{}/ \\n\\t\\r\\\\\"\n },\n \"KeyValue\": {\n \"CaseSensitive\": true,\n \"KeyValues\": [\n {\n \"Key\": \"age\",\n \"Value\": {\n \"Type\": \"long\",\n \"Tokenizer\": \"\",\n \"SqlFlag\": false\n }\n }\n ]\n },\n \"Tag\": {\n \"CaseSensitive\": true,\n \"KeyValues\": [\n {\n \"Key\": \"tag\",\n \"Value\": {\n \"Type\": \"text\",\n \"Tokenizer\": \"@&?|#()='\\\",;:<>[]{}/ \\n\\t\\r\\\\\",\n \"SqlFlag\": false\n }\n }\n ]\n }\n }\n}",
|
175
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"8d3c9e9e-0c2f-4d9a-bb17-71e4f42f89fd\"\n }\n}",
|
176
176
|
"title": "创建索引"
|
177
177
|
}
|
178
178
|
],
|
@@ -187,7 +187,7 @@
|
|
187
187
|
"CreateLogset": [
|
188
188
|
{
|
189
189
|
"document": "创建日志集",
|
190
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLogset\n<公共请求参数>\n\n{\n \"LogsetName\": \"
|
190
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLogset\n<公共请求参数>\n\n{\n \"LogsetName\": \"业务流日志集\",\n \"Tags\": [\n {\n \"Key\": \"test-tag\",\n \"Value\": \"test-value\"\n }\n ]\n}",
|
191
191
|
"output": "{\n \"Response\": {\n \"LogsetId\": \"dc01b74a-49e4-11eb-b378-0242ac130002\",\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
192
192
|
"title": "创建日志集"
|
193
193
|
}
|
@@ -347,7 +347,7 @@
|
|
347
347
|
"DeleteIndex": [
|
348
348
|
{
|
349
349
|
"document": "",
|
350
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteIndex\n<公共请求参数>\n\n{\n \"TopicId\": \"
|
350
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteIndex\n<公共请求参数>\n\n{\n \"TopicId\": \"75f531f6-3644-45e5-8717-af1dc294cc93\"\n}",
|
351
351
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
352
352
|
"title": "删除索引配置"
|
353
353
|
}
|
@@ -553,8 +553,8 @@
|
|
553
553
|
"DescribeIndex": [
|
554
554
|
{
|
555
555
|
"document": "",
|
556
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeIndex\n<公共请求参数>\n\n{\n \"TopicId\": \"
|
557
|
-
"output": "{\n \"Response\": {\n \"TopicId\": \"
|
556
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeIndex\n<公共请求参数>\n\n{\n \"TopicId\": \"75f531f6-3644-45e5-8717-af1dc294cc93\"\n}",
|
557
|
+
"output": "{\n \"Response\": {\n \"TopicId\": \"75f531f6-3644-45e5-8717-af1dc294cc93\",\n \"Status\": false,\n \"Rule\": {\n \"FullText\": {\n \"CaseSensitive\": true,\n \"Tokenizer\": \"@&?|#()='\\\",;:<>[]{}/ \\n\\t\\r\\\\\",\n \"ContainZH\": false\n },\n \"KeyValue\": {\n \"CaseSensitive\": true,\n \"KeyValues\": [\n {\n \"Key\": \"age\",\n \"Value\": {\n \"Type\": \"long\",\n \"Tokenizer\": \"\",\n \"SqlFlag\": false,\n \"ContainZH\": false,\n \"Alias\": \"\"\n }\n }\n ]\n },\n \"Tag\": {\n \"CaseSensitive\": true,\n \"KeyValues\": [\n {\n \"Key\": \"tag\",\n \"Value\": {\n \"Type\": \"text\",\n \"Tokenizer\": \"@&?|#()='\\\",;:<>[]{}/ \\n\\t\\r\\\\\",\n \"SqlFlag\": false,\n \"ContainZH\": false,\n \"Alias\": \"\"\n }\n }\n ]\n },\n \"DynamicIndex\": {\n \"Status\": false\n }\n },\n \"ModifyTime\": \"2025-08-04 15:09:10\",\n \"RequestId\": \"9cdcca5e-9d2b-41c1-8b69-6de7034e70ee\",\n \"IncludeInternalFields\": true,\n \"MetadataFlag\": 0\n }\n}",
|
558
558
|
"title": "获取索引信息"
|
559
559
|
}
|
560
560
|
],
|
@@ -821,7 +821,7 @@
|
|
821
821
|
"ModifyLogset": [
|
822
822
|
{
|
823
823
|
"document": "",
|
824
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyLogset\n<公共请求参数>\n\n{\n \"LogsetId\": \"dc01b74a-49e4-11eb-b378-0242ac130002\",\n \"LogsetName\": \"
|
824
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyLogset\n<公共请求参数>\n\n{\n \"LogsetId\": \"dc01b74a-49e4-11eb-b378-0242ac130002\",\n \"LogsetName\": \"业务流日志集\"\n}",
|
825
825
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
826
826
|
"title": "修改日志集名称"
|
827
827
|
}
|
@@ -953,6 +953,58 @@ def doDeleteRiskScanTask(args, parsed_globals):
|
|
953
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
954
|
|
955
955
|
|
956
|
+
def doDescribeConfigCheckRules(args, parsed_globals):
|
957
|
+
g_param = parse_global_arg(parsed_globals)
|
958
|
+
|
959
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
960
|
+
cred = credential.CVMRoleCredential()
|
961
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
962
|
+
cred = credential.STSAssumeRoleCredential(
|
963
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
964
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
965
|
+
)
|
966
|
+
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):
|
967
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
968
|
+
else:
|
969
|
+
cred = credential.Credential(
|
970
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
971
|
+
)
|
972
|
+
http_profile = HttpProfile(
|
973
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
974
|
+
reqMethod="POST",
|
975
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
976
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
977
|
+
)
|
978
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
979
|
+
if g_param[OptionsDefine.Language]:
|
980
|
+
profile.language = g_param[OptionsDefine.Language]
|
981
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
982
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
983
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
984
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
985
|
+
model = models.DescribeConfigCheckRulesRequest()
|
986
|
+
model.from_json_string(json.dumps(args))
|
987
|
+
start_time = time.time()
|
988
|
+
while True:
|
989
|
+
rsp = client.DescribeConfigCheckRules(model)
|
990
|
+
result = rsp.to_json_string()
|
991
|
+
try:
|
992
|
+
json_obj = json.loads(result)
|
993
|
+
except TypeError as e:
|
994
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
995
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
996
|
+
break
|
997
|
+
cur_time = time.time()
|
998
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
999
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1000
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1001
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1002
|
+
else:
|
1003
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1004
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1005
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1006
|
+
|
1007
|
+
|
956
1008
|
def doDescribeTaskLogList(args, parsed_globals):
|
957
1009
|
g_param = parse_global_arg(parsed_globals)
|
958
1010
|
|
@@ -4258,6 +4310,7 @@ ACTION_MAP = {
|
|
4258
4310
|
"DescribeListenerList": doDescribeListenerList,
|
4259
4311
|
"DescribeAccessKeyUserDetail": doDescribeAccessKeyUserDetail,
|
4260
4312
|
"DeleteRiskScanTask": doDeleteRiskScanTask,
|
4313
|
+
"DescribeConfigCheckRules": doDescribeConfigCheckRules,
|
4261
4314
|
"DescribeTaskLogList": doDescribeTaskLogList,
|
4262
4315
|
"DescribeRiskCenterAssetViewVULRiskList": doDescribeRiskCenterAssetViewVULRiskList,
|
4263
4316
|
"DescribeClusterPodAssets": doDescribeClusterPodAssets,
|