tccli 3.0.1206.1__py2.py3-none-any.whl → 3.0.1208.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/advisor/v20200721/api.json +1 -1
- tccli/services/cbs/v20170312/api.json +5 -5
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/cdwch/v20200915/api.json +20 -0
- tccli/services/clb/v20180317/api.json +6 -6
- tccli/services/cls/v20201016/api.json +50 -0
- tccli/services/cls/v20201016/examples.json +7 -7
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +84 -2
- tccli/services/cynosdb/v20190107/examples.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +273 -0
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/dsgc/v20190723/api.json +150 -22
- tccli/services/dsgc/v20190723/examples.json +4 -4
- tccli/services/emr/v20190103/api.json +1 -1
- tccli/services/ess/v20201111/api.json +84 -26
- tccli/services/ess/v20201111/examples.json +2 -2
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +95 -2
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/ioa/v20220601/api.json +18 -1
- tccli/services/iotexplorer/iotexplorer_client.py +106 -0
- tccli/services/iotexplorer/v20190423/api.json +198 -0
- tccli/services/iotexplorer/v20190423/examples.json +22 -0
- tccli/services/lke/v20231130/api.json +1 -1
- tccli/services/mongodb/v20190725/api.json +1 -1
- tccli/services/mps/mps_client.py +220 -8
- tccli/services/mps/v20190612/api.json +627 -11
- tccli/services/mps/v20190612/examples.json +40 -2
- tccli/services/oceanus/oceanus_client.py +53 -0
- tccli/services/oceanus/v20190422/api.json +88 -0
- tccli/services/oceanus/v20190422/examples.json +8 -0
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +75 -8
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/tcss/v20201101/api.json +10 -10
- tccli/services/tke/tke_client.py +4 -57
- tccli/services/tke/v20180525/api.json +0 -72
- tccli/services/tke/v20180525/examples.json +0 -8
- tccli/services/tms/v20201229/api.json +17 -17
- tccli/services/trtc/v20190722/api.json +24 -6
- tccli/services/vod/v20180717/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +23 -14
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +655 -1
- tccli/services/waf/v20180125/examples.json +22 -0
- tccli/services/waf/waf_client.py +114 -8
- {tccli-3.0.1206.1.dist-info → tccli-3.0.1208.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1206.1.dist-info → tccli-3.0.1208.1.dist-info}/RECORD +55 -55
- {tccli-3.0.1206.1.dist-info → tccli-3.0.1208.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1206.1.dist-info → tccli-3.0.1208.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1206.1.dist-info → tccli-3.0.1208.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1208.1'
|
@@ -3018,12 +3018,12 @@
|
|
3018
3018
|
"usage": "out"
|
3019
3019
|
},
|
3020
3020
|
"Filter": {
|
3021
|
-
"document": "
|
3021
|
+
"document": "过滤条件",
|
3022
3022
|
"members": [
|
3023
3023
|
{
|
3024
3024
|
"disabled": false,
|
3025
|
-
"document": "
|
3026
|
-
"example": "
|
3025
|
+
"document": "过滤键的名称",
|
3026
|
+
"example": "无",
|
3027
3027
|
"member": "string",
|
3028
3028
|
"name": "Name",
|
3029
3029
|
"required": true,
|
@@ -3031,8 +3031,8 @@
|
|
3031
3031
|
},
|
3032
3032
|
{
|
3033
3033
|
"disabled": false,
|
3034
|
-
"document": "
|
3035
|
-
"example": "
|
3034
|
+
"document": "一个或者多个过滤值",
|
3035
|
+
"example": "无",
|
3036
3036
|
"member": "string",
|
3037
3037
|
"name": "Values",
|
3038
3038
|
"required": true,
|
@@ -2728,6 +2728,26 @@
|
|
2728
2728
|
"output_required": false,
|
2729
2729
|
"type": "object",
|
2730
2730
|
"value_allowed_null": true
|
2731
|
+
},
|
2732
|
+
{
|
2733
|
+
"disabled": false,
|
2734
|
+
"document": "安全组白名单\n注意:此字段可能返回 null,表示取不到有效值。",
|
2735
|
+
"example": "true",
|
2736
|
+
"member": "bool",
|
2737
|
+
"name": "IsWhiteSGs",
|
2738
|
+
"output_required": false,
|
2739
|
+
"type": "bool",
|
2740
|
+
"value_allowed_null": true
|
2741
|
+
},
|
2742
|
+
{
|
2743
|
+
"disabled": false,
|
2744
|
+
"document": "绑定的安全组\n注意:此字段可能返回 null,表示取不到有效值。",
|
2745
|
+
"example": "无",
|
2746
|
+
"member": "string",
|
2747
|
+
"name": "BindSGs",
|
2748
|
+
"output_required": false,
|
2749
|
+
"type": "list",
|
2750
|
+
"value_allowed_null": true
|
2731
2751
|
}
|
2732
2752
|
],
|
2733
2753
|
"usage": "out"
|
@@ -10683,7 +10683,7 @@
|
|
10683
10683
|
"members": [
|
10684
10684
|
{
|
10685
10685
|
"disabled": false,
|
10686
|
-
"document": "
|
10686
|
+
"document": "操作类型。\n- ADD:添加\n- DELETE:删除\n- UPDATE:修改\n- BIND:绑定\n- UNBIND:解绑",
|
10687
10687
|
"example": "ADD",
|
10688
10688
|
"member": "string",
|
10689
10689
|
"name": "OperationType",
|
@@ -10692,7 +10692,7 @@
|
|
10692
10692
|
},
|
10693
10693
|
{
|
10694
10694
|
"disabled": false,
|
10695
|
-
"document": "
|
10695
|
+
"document": "个性化配置ID。除了创建个性化配置外,必传此字段,如:pz-1234abcd",
|
10696
10696
|
"example": "pz-n651fsue",
|
10697
10697
|
"member": "string",
|
10698
10698
|
"name": "UconfigId",
|
@@ -10701,7 +10701,7 @@
|
|
10701
10701
|
},
|
10702
10702
|
{
|
10703
10703
|
"disabled": false,
|
10704
|
-
"document": "
|
10704
|
+
"document": "个性化配置内容。创建个性化配置或修改个性化配置的内容时,必传此字段",
|
10705
10705
|
"example": "client_max_body_size 222M;",
|
10706
10706
|
"member": "string",
|
10707
10707
|
"name": "ConfigContent",
|
@@ -10710,7 +10710,7 @@
|
|
10710
10710
|
},
|
10711
10711
|
{
|
10712
10712
|
"disabled": false,
|
10713
|
-
"document": "
|
10713
|
+
"document": "个性化配置名称。创建个性化配置或修改个性化配置的名字时,必传此字段",
|
10714
10714
|
"example": "config_test",
|
10715
10715
|
"member": "string",
|
10716
10716
|
"name": "ConfigName",
|
@@ -10719,7 +10719,7 @@
|
|
10719
10719
|
},
|
10720
10720
|
{
|
10721
10721
|
"disabled": false,
|
10722
|
-
"document": "
|
10722
|
+
"document": "负载均衡实例ID。绑定解绑时,必传此字段",
|
10723
10723
|
"example": "[lb-55rh44i6]",
|
10724
10724
|
"member": "string",
|
10725
10725
|
"name": "LoadBalancerIds",
|
@@ -10738,7 +10738,7 @@
|
|
10738
10738
|
"example": "pz-1234abcd",
|
10739
10739
|
"member": "string",
|
10740
10740
|
"name": "ConfigId",
|
10741
|
-
"
|
10741
|
+
"output_required": true,
|
10742
10742
|
"type": "string",
|
10743
10743
|
"value_allowed_null": false
|
10744
10744
|
},
|
@@ -751,6 +751,45 @@
|
|
751
751
|
],
|
752
752
|
"type": "object"
|
753
753
|
},
|
754
|
+
"AdvanceFilterRuleInfo": {
|
755
|
+
"document": "高级过滤规则",
|
756
|
+
"members": [
|
757
|
+
{
|
758
|
+
"disabled": false,
|
759
|
+
"document": "过滤字段\n注意:此字段可能返回 null,表示取不到有效值。",
|
760
|
+
"example": "无",
|
761
|
+
"member": "string",
|
762
|
+
"name": "Key",
|
763
|
+
"output_required": false,
|
764
|
+
"required": true,
|
765
|
+
"type": "string",
|
766
|
+
"value_allowed_null": true
|
767
|
+
},
|
768
|
+
{
|
769
|
+
"disabled": false,
|
770
|
+
"document": "过滤规则,0:等于,1:字段存在,2:字段不存在\n注意:此字段可能返回 null,表示取不到有效值。",
|
771
|
+
"example": "无",
|
772
|
+
"member": "uint64",
|
773
|
+
"name": "Rule",
|
774
|
+
"output_required": false,
|
775
|
+
"required": true,
|
776
|
+
"type": "int",
|
777
|
+
"value_allowed_null": true
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"disabled": false,
|
781
|
+
"document": "过滤值\n注意:此字段可能返回 null,表示取不到有效值。",
|
782
|
+
"example": "无",
|
783
|
+
"member": "string",
|
784
|
+
"name": "Value",
|
785
|
+
"output_required": false,
|
786
|
+
"required": false,
|
787
|
+
"type": "string",
|
788
|
+
"value_allowed_null": true
|
789
|
+
}
|
790
|
+
],
|
791
|
+
"usage": "both"
|
792
|
+
},
|
754
793
|
"AlarmAnalysisConfig": {
|
755
794
|
"document": "告警多维分析一些配置信息",
|
756
795
|
"members": [
|
@@ -8672,6 +8711,17 @@
|
|
8672
8711
|
"required": false,
|
8673
8712
|
"type": "list",
|
8674
8713
|
"value_allowed_null": false
|
8714
|
+
},
|
8715
|
+
{
|
8716
|
+
"disabled": false,
|
8717
|
+
"document": "日志过滤规则列表(新版)。\n注意:\n- 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。\n- 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。\n注意:此字段可能返回 null,表示取不到有效值。",
|
8718
|
+
"example": "无",
|
8719
|
+
"member": "AdvanceFilterRuleInfo",
|
8720
|
+
"name": "AdvanceFilterRules",
|
8721
|
+
"output_required": false,
|
8722
|
+
"required": false,
|
8723
|
+
"type": "list",
|
8724
|
+
"value_allowed_null": true
|
8675
8725
|
}
|
8676
8726
|
],
|
8677
8727
|
"usage": "both"
|
@@ -67,25 +67,25 @@
|
|
67
67
|
"CreateConfig": [
|
68
68
|
{
|
69
69
|
"document": "FilterKeyRegex:Loglistener日志过滤规则列表(旧版),需要过滤日志的key,及其对应的regex。\n 注意:2.9.3及以上版本LogListener ,建议使用AdvanceFilterRules配置日志过滤规则。\n",
|
70
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"test2.8.8\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [],\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [\n {\n \"Key\": \"__CONTENT__\",\n \"Regex\": \"400|500\"\n }\n ],\n \"Backtracking\": 0,\n \"MetadataType\": 0,\n \"MetaTags\": [\n {\n \"Key\": \"\",\n \"Value\": \"\"\n }\n ],\n \"PathRegex\": \"\"\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":0}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
70
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"test2.8.8\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [],\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [\n {\n \"Key\": \"__CONTENT__\",\n \"Regex\": \"400|500\"\n }\n ],\n \"Backtracking\": 0,\n \"MetadataType\": 0,\n \"MetaTags\": [\n {\n \"Key\": \"\",\n \"Value\": \"\"\n }\n ],\n \"PathRegex\": \"\",\n \"AdvanceFilterRules\": []\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":0}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
71
71
|
"output": "{\n \"Response\": {\n \"ConfigId\": \"a2c6342c-270a-4468-86cf-92625e468888\",\n \"RequestId\": \"a21b16c1-4da9-45a1-a612-59e5757384f3\"\n }\n}",
|
72
72
|
"title": "创建单行全文"
|
73
73
|
},
|
74
74
|
{
|
75
75
|
"document": "创建组合解析配置",
|
76
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"my-test\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [],\n \"LogType\": \"user_define_log\",\n \"UserDefineRule\": \"{\\\"processors\\\":[{\\\"type\\\":\\\"processor_split_delimiter\\\",\\\"detail\\\":{\\\"Delimiter\\\":\\\",\\\",\\\"ExtractKeys\\\":[\\\"time\\\",\\\"msg1\\\",\\\"msg2\\\"]},\\\"processors\\\":[{\\\"type\\\":\\\"processor_timeformat\\\",\\\"detail\\\":{\\\"KeepSource\\\":true,\\\"TimeFormat\\\":\\\"%s\\\",\\\"SourceKey\\\":\\\"time\\\"}},{\\\"type\\\":\\\"processor_split_delimiter\\\",\\\"detail\\\":{\\\"KeepSource\\\":false,\\\"Delimiter\\\":\\\"|\\\",\\\"SourceKey\\\":\\\"msg1\\\",\\\"ExtractKeys\\\":[\\\"submsg1\\\",\\\"submsg2\\\",\\\"submsg3\\\"]},\\\"processors\\\":[]},{\\\"type\\\":\\\"processor_split_key_value\\\",\\\"detail\\\":{\\\"KeepSource\\\":false,\\\"Delimiter\\\":\\\":\\\",\\\"SourceKey\\\":\\\"msg2\\\"}}]}]}\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [],\n \"UnMatchUpLoadSwitch\": true,\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\"\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
76
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"my-test\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [],\n \"LogType\": \"user_define_log\",\n \"UserDefineRule\": \"{\\\"processors\\\":[{\\\"type\\\":\\\"processor_split_delimiter\\\",\\\"detail\\\":{\\\"Delimiter\\\":\\\",\\\",\\\"ExtractKeys\\\":[\\\"time\\\",\\\"msg1\\\",\\\"msg2\\\"]},\\\"processors\\\":[{\\\"type\\\":\\\"processor_timeformat\\\",\\\"detail\\\":{\\\"KeepSource\\\":true,\\\"TimeFormat\\\":\\\"%s\\\",\\\"SourceKey\\\":\\\"time\\\"}},{\\\"type\\\":\\\"processor_split_delimiter\\\",\\\"detail\\\":{\\\"KeepSource\\\":false,\\\"Delimiter\\\":\\\"|\\\",\\\"SourceKey\\\":\\\"msg1\\\",\\\"ExtractKeys\\\":[\\\"submsg1\\\",\\\"submsg2\\\",\\\"submsg3\\\"]},\\\"processors\\\":[]},{\\\"type\\\":\\\"processor_split_key_value\\\",\\\"detail\\\":{\\\"KeepSource\\\":false,\\\"Delimiter\\\":\\\":\\\",\\\"SourceKey\\\":\\\"msg2\\\"}}]}]}\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [],\n \"UnMatchUpLoadSwitch\": true,\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\",\n \"AdvanceFilterRules\": []\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
77
77
|
"output": "{\n \"Response\": {\n \"ConfigId\": \"d72dae22-084c-4d20-a81b-f42e25c88888\",\n \"RequestId\": \"c708e9af-231e-4a94-a888-3ab24e5fbd97\"\n }\n}",
|
78
78
|
"title": "创建组合解析配置"
|
79
79
|
},
|
80
80
|
{
|
81
81
|
"document": "创建采集规则配置",
|
82
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"my-test-minimalist_log\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"File\",\n \"Value\": \"/data/log/mryx/my.log\"\n }\n ],\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [],\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n },\n {\n \"Key\": \"wd\",\n \"Value\": \"shop\"\n }\n ],\n \"PathRegex\": \"\"\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentMaxDepth\\\":10}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
82
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"my-test-minimalist_log\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"File\",\n \"Value\": \"/data/log/mryx/my.log\"\n }\n ],\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [],\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n },\n {\n \"Key\": \"wd\",\n \"Value\": \"shop\"\n }\n ],\n \"PathRegex\": \"\",\n \"AdvanceFilterRules\": [\n {\n \"Key\": \"__CONTENT__\",\n \"Rule\": 0,\n \"Value\": \"400|500\"\n }\n ]\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentMaxDepth\\\":10}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
83
83
|
"output": "{\n \"Response\": {\n \"ConfigId\": \"b5a78efe-984c-47e2-99a8-52dbd1388888\",\n \"RequestId\": \"037a6def-51d4-449b-a894-7cd2410bfae1\"\n }\n}",
|
84
84
|
"title": "创建采集规则配置"
|
85
85
|
},
|
86
86
|
{
|
87
87
|
"document": "",
|
88
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"单行完全正则-文件日志\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"File\",\n \"Value\": \"/data/log/my.log\"\n }\n ],\n \"LogType\": \"fullregex_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"BeginRegex\": \"\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\"[^\\\"]+([^,]+),\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\*\\\\*/\\\\w+\\\\.\\\\w+\\\",\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\w+\\\\.\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\\w+\\\\.\\\\d+\\\\.\\\\d+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\d+\\\\|\\\\d+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\[\\\\]\\\\},\\\"\\\\w+\\\":\\\"\\\\{\\\\\\\\\\\"\\\\w+\\\\\\\\\\\":\\\\d+\\\\}\\\",\\\"\\\\w+\\\"[^\\\"]+([^\\\\}]+).*\",\n \"LogRegex\": \"\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\"[^\\\"]+([^,]+),\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\*\\\\*/\\\\w+\\\\.\\\\w+\\\",\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\w+\\\\.\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\\w+\\\\.\\\\d+\\\\.\\\\d+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\d+\\\\|\\\\d+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\[\\\\]\\\\},\\\"\\\\w+\\\":\\\"\\\\{\\\\\\\\\\\"\\\\w+\\\\\\\\\\\":\\\\d+\\\\}\\\",\\\"\\\\w+\\\"[^\\\"]+([^\\\\}]+).*\",\n \"Keys\": [\n \"Version\",\n \"ConfigId\"\n ],\n \"TimeKey\": \"log_time\",\n \"TimeFormat\": \"%Y-%m-%d %H:%M:%S.%f\",\n \"FilterKeyRegex\": [\n {\n \"Key\": \"key1\",\n \"Regex\": \"value1\"\n },\n {\n \"Key\": \"key2\",\n \"Regex\": \"velue2\"\n }\n ],\n \"UnMatchUpLoadSwitch\": true,\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"Backtracking\": 10,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\"\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentMaxDepth\\\":10,\\\"ClsAgentFileTimeout\\\":3600}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
88
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"单行完全正则-文件日志\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"File\",\n \"Value\": \"/data/log/my.log\"\n }\n ],\n \"LogType\": \"fullregex_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"BeginRegex\": \"\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\"[^\\\"]+([^,]+),\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\*\\\\*/\\\\w+\\\\.\\\\w+\\\",\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\w+\\\\.\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\\w+\\\\.\\\\d+\\\\.\\\\d+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\d+\\\\|\\\\d+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\[\\\\]\\\\},\\\"\\\\w+\\\":\\\"\\\\{\\\\\\\\\\\"\\\\w+\\\\\\\\\\\":\\\\d+\\\\}\\\",\\\"\\\\w+\\\"[^\\\"]+([^\\\\}]+).*\",\n \"LogRegex\": \"\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\"[^\\\"]+([^,]+),\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\*\\\\*/\\\\w+\\\\.\\\\w+\\\",\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\w+\\\\.\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\\w+\\\\.\\\\d+\\\\.\\\\d+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\d+\\\\|\\\\d+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\[\\\\]\\\\},\\\"\\\\w+\\\":\\\"\\\\{\\\\\\\\\\\"\\\\w+\\\\\\\\\\\":\\\\d+\\\\}\\\",\\\"\\\\w+\\\"[^\\\"]+([^\\\\}]+).*\",\n \"Keys\": [\n \"Version\",\n \"ConfigId\"\n ],\n \"TimeKey\": \"log_time\",\n \"TimeFormat\": \"%Y-%m-%d %H:%M:%S.%f\",\n \"FilterKeyRegex\": [\n {\n \"Key\": \"key1\",\n \"Regex\": \"value1\"\n },\n {\n \"Key\": \"key2\",\n \"Regex\": \"velue2\"\n }\n ],\n \"UnMatchUpLoadSwitch\": true,\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"Backtracking\": 10,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\",\n \"AdvanceFilterRules\": []\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentMaxDepth\\\":10,\\\"ClsAgentFileTimeout\\\":3600}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
89
89
|
"output": "{\n \"Response\": {\n \"ConfigId\": \"8e63fe9a-5f36-49b0-bdbf-ab1c29e58888\",\n \"RequestId\": \"420f4f07-2134-4167-9442-9ac6c6ffe3d8\"\n }\n}",
|
90
90
|
"title": "创建单行完全正则-文件日志"
|
91
91
|
}
|
@@ -398,7 +398,7 @@
|
|
398
398
|
{
|
399
399
|
"document": "获取特殊采集配置",
|
400
400
|
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeConfigExtras\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"configExtraId\",\n \"Values\": [\n \"xxxx-xxx-xxxx\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
401
|
-
"output": "{\n \"Response\": {\n \"Configs\": [\n {\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"CollectInfos\": [\n {\n \"CollectConfigs\": [\n {\n \"Name\": \"container_name\"\n },\n {\n \"Name\": \"namespace\"\n },\n {\n \"Name\": \"pod_name\"\n },\n {\n \"Name\": \"pod_ip\"\n }\n ],\n \"Type\": 0\n },\n {\n \"CollectConfigs\": [],\n \"Type\": 1\n }\n ],\n \"ConfigExtraId\": \"26ea1681-dfef-4429-a84f-3450d5d46796\",\n \"ConfigFlag\": \"label_k8s\",\n \"ContainerFile\": {\n \"Container\": \"\",\n \"CustomLabels\": null,\n \"ExcludeLabels\": null,\n \"ExcludeNamespace\": \"\",\n \"FilePaths\": [],\n \"FilePattern\": \"\",\n \"IncludeLabels\": null,\n \"LogPath\": \"\",\n \"Namespace\": \"\",\n \"WorkLoad\": {\n \"Container\": \"\",\n \"Kind\": \"\",\n \"Name\": \"\",\n \"Namespace\": \"\"\n }\n },\n \"ContainerStdout\": {\n \"AllContainers\": true,\n \"Container\": \"\",\n \"CustomLabels\": null,\n \"ExcludeLabels\": null,\n \"ExcludeNamespace\": \"\",\n \"IncludeLabels\": null,\n \"Namespace\": \"*\",\n \"WorkLoads\": null\n },\n \"CreateTime\": \"2023-12-04 14:32:35\",\n \"ExcludePaths\": null,\n \"ExtractRule\": {\n \"Address\": \"\",\n \"Backtracking\": 0,\n \"BeginRegex\": \"\",\n \"Delimiter\": \"\",\n \"EventLogRules\": [],\n \"FilterKeyRegex\": [],\n \"IsGBK\": 0,\n \"JsonStandard\": 0,\n \"Keys\": [\n \"__CONTENT__\"\n ],\n \"LogRegex\": \"\",\n \"MetaTags\": [],\n \"MetadataType\": 0,\n \"ParseProtocol\": \"\",\n \"PathRegex\": \"\",\n \"Protocol\": \"\",\n \"TimeFormat\": \"\",\n \"TimeKey\": \"\",\n \"UnMatchLogKey\": null,\n \"UnMatchUpLoadSwitch\": false\n },\n \"GroupId\": \"886bf7a8-7340-4314-8d64-b360da0ffd78\",\n \"HostFile\": {\n \"CustomLabels\": null,\n \"FilePattern\": \"\",\n \"LogPath\": \"\"\n },\n \"LogFormat\": \"\",\n \"LogType\": \"minimalist_log\",\n \"LogsetId\": \"40907915-faa6-46e0-985f-b2fa8c17a080\",\n \"LogsetName\": \"logset-test\",\n \"Name\": \"config-test-886bf7a8-7340-4314-8d64-b360da0ffd78\",\n \"TopicId\": \"b2dcf2e5-9582-4c87-9286-cccccb53889d\",\n \"TopicName\": \"topic-test\",\n \"Type\": \"container_stdout\",\n \"UpdateTime\": \"2023-12-04 14:32:34\",\n \"UserDefineRule\": \"\"\n }\n ],\n \"RequestId\": \"4e48c681-ebf8-4df1-bf0a-51f689117ac6\",\n \"TotalCount\": 1\n }\n}",
|
401
|
+
"output": "{\n \"Response\": {\n \"Configs\": [\n {\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"CollectInfos\": [\n {\n \"CollectConfigs\": [\n {\n \"Name\": \"container_name\"\n },\n {\n \"Name\": \"namespace\"\n },\n {\n \"Name\": \"pod_name\"\n },\n {\n \"Name\": \"pod_ip\"\n }\n ],\n \"Type\": 0\n },\n {\n \"CollectConfigs\": [],\n \"Type\": 1\n }\n ],\n \"ConfigExtraId\": \"26ea1681-dfef-4429-a84f-3450d5d46796\",\n \"ConfigFlag\": \"label_k8s\",\n \"ContainerFile\": {\n \"Container\": \"\",\n \"CustomLabels\": null,\n \"ExcludeLabels\": null,\n \"ExcludeNamespace\": \"\",\n \"FilePaths\": [],\n \"FilePattern\": \"\",\n \"IncludeLabels\": null,\n \"LogPath\": \"\",\n \"Namespace\": \"\",\n \"WorkLoad\": {\n \"Container\": \"\",\n \"Kind\": \"\",\n \"Name\": \"\",\n \"Namespace\": \"\"\n }\n },\n \"ContainerStdout\": {\n \"AllContainers\": true,\n \"Container\": \"\",\n \"CustomLabels\": null,\n \"ExcludeLabels\": null,\n \"ExcludeNamespace\": \"\",\n \"IncludeLabels\": null,\n \"Namespace\": \"*\",\n \"WorkLoads\": null\n },\n \"CreateTime\": \"2023-12-04 14:32:35\",\n \"ExcludePaths\": null,\n \"ExtractRule\": {\n \"Address\": \"\",\n \"AdvanceFilterRules\": null,\n \"Backtracking\": 0,\n \"BeginRegex\": \"\",\n \"Delimiter\": \"\",\n \"EventLogRules\": [],\n \"FilterKeyRegex\": [],\n \"IsGBK\": 0,\n \"JsonStandard\": 0,\n \"Keys\": [\n \"__CONTENT__\"\n ],\n \"LogRegex\": \"\",\n \"MetaTags\": [],\n \"MetadataType\": 0,\n \"ParseProtocol\": \"\",\n \"PathRegex\": \"\",\n \"Protocol\": \"\",\n \"TimeFormat\": \"\",\n \"TimeKey\": \"\",\n \"UnMatchLogKey\": null,\n \"UnMatchUpLoadSwitch\": false\n },\n \"GroupId\": \"886bf7a8-7340-4314-8d64-b360da0ffd78\",\n \"HostFile\": {\n \"CustomLabels\": null,\n \"FilePattern\": \"\",\n \"LogPath\": \"\"\n },\n \"LogFormat\": \"\",\n \"LogType\": \"minimalist_log\",\n \"LogsetId\": \"40907915-faa6-46e0-985f-b2fa8c17a080\",\n \"LogsetName\": \"logset-test\",\n \"Name\": \"config-test-886bf7a8-7340-4314-8d64-b360da0ffd78\",\n \"TopicId\": \"b2dcf2e5-9582-4c87-9286-cccccb53889d\",\n \"TopicName\": \"topic-test\",\n \"Type\": \"container_stdout\",\n \"UpdateTime\": \"2023-12-04 14:32:34\",\n \"UserDefineRule\": \"\"\n }\n ],\n \"RequestId\": \"4e48c681-ebf8-4df1-bf0a-51f689117ac6\",\n \"TotalCount\": 1\n }\n}",
|
402
402
|
"title": "获取特殊采集配置"
|
403
403
|
}
|
404
404
|
],
|
@@ -532,7 +532,7 @@
|
|
532
532
|
{
|
533
533
|
"document": "获取机器组绑定的采集规则配置",
|
534
534
|
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMachineGroupConfigs\n<公共请求参数>\n\n{\n \"GroupId\": \"01fd5bcc-d7d4-4edb-9ff5-7ecfc305b831\"\n}",
|
535
|
-
"output": "{\n \"Response\": {\n \"Configs\": [\n {\n \"AdvancedConfig\": \"\",\n \"ConfigId\": \"16c904ed-db2a-4ba4-b6fd-0f5f94f71111\",\n \"CreateTime\": \"2023-06-28 15:58:16\",\n \"ExcludePaths\": null,\n \"ExtractRule\": {\n \"Address\": \"\",\n \"Backtracking\": -1,\n \"BeginRegex\": \"\",\n \"Delimiter\": \"\",\n \"EventLogRules\": [],\n \"FilterKeyRegex\": [],\n \"IsGBK\": 0,\n \"JsonStandard\": 0,\n \"Keys\": null,\n \"LogRegex\": \"\",\n \"MetaTags\": [],\n \"MetadataType\": 0,\n \"ParseProtocol\": \"\",\n \"PathRegex\": \"\",\n \"Protocol\": \"\",\n \"TimeFormat\": \"\",\n \"TimeKey\": \"\",\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"UnMatchUpLoadSwitch\": false\n },\n \"LogFormat\": \"\",\n \"LogType\": \"json_log\",\n \"Name\": \"cls_hkff7p5e_test_c_eks\",\n \"Output\": \"a004adec-c87a-4179-b0eb-8f7ee4ec1111\",\n \"Path\": \"/var/log/eks-log-agent/test-c/*/*/**/*.log\",\n \"UpdateTime\": \"2023-11-16 21:42:48\",\n \"UserDefineRule\": \"\"\n }\n ],\n \"RequestId\": \"983cd59e-7a7a-48aa-a16f-b0f0275c2288\"\n }\n}",
|
535
|
+
"output": "{\n \"Response\": {\n \"Configs\": [\n {\n \"AdvancedConfig\": \"\",\n \"ConfigId\": \"16c904ed-db2a-4ba4-b6fd-0f5f94f71111\",\n \"CreateTime\": \"2023-06-28 15:58:16\",\n \"ExcludePaths\": null,\n \"ExtractRule\": {\n \"Address\": \"\",\n \"AdvanceFilterRules\": [],\n \"Backtracking\": -1,\n \"BeginRegex\": \"\",\n \"Delimiter\": \"\",\n \"EventLogRules\": [],\n \"FilterKeyRegex\": [],\n \"IsGBK\": 0,\n \"JsonStandard\": 0,\n \"Keys\": null,\n \"LogRegex\": \"\",\n \"MetaTags\": [],\n \"MetadataType\": 0,\n \"ParseProtocol\": \"\",\n \"PathRegex\": \"\",\n \"Protocol\": \"\",\n \"TimeFormat\": \"\",\n \"TimeKey\": \"\",\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"UnMatchUpLoadSwitch\": false\n },\n \"LogFormat\": \"\",\n \"LogType\": \"json_log\",\n \"Name\": \"cls_hkff7p5e_test_c_eks\",\n \"Output\": \"a004adec-c87a-4179-b0eb-8f7ee4ec1111\",\n \"Path\": \"/var/log/eks-log-agent/test-c/*/*/**/*.log\",\n \"UpdateTime\": \"2023-11-16 21:42:48\",\n \"UserDefineRule\": \"\"\n }\n ],\n \"RequestId\": \"983cd59e-7a7a-48aa-a16f-b0f0275c2288\"\n }\n}",
|
536
536
|
"title": "获取机器组绑定的采集规则配置"
|
537
537
|
}
|
538
538
|
],
|
@@ -641,7 +641,7 @@
|
|
641
641
|
"ModifyConfig": [
|
642
642
|
{
|
643
643
|
"document": "FilterKeyRegex:Loglistener日志过滤规则列表(旧版),需要过滤日志的key,及其对应的regex。\n 注意:2.9.3及以上版本LogListener ,建议使用AdvanceFilterRules配置日志过滤规则。\n",
|
644
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyConfig\n<公共请求参数>\n\n{\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"Path\",\n \"Value\": \"/data/log/my.log\"\n }\n ],\n \"Name\": \"test2.8.8\",\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [\n {\n \"Key\": \"__CONTENT__\",\n \"Regex\": \"400|500\"\n }\n ],\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\"\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"ConfigId\": \"a2c6342c-270a-4468-86cf-92625e466401\"\n}",
|
644
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyConfig\n<公共请求参数>\n\n{\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"Path\",\n \"Value\": \"/data/log/my.log\"\n }\n ],\n \"Name\": \"test2.8.8\",\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [\n {\n \"Key\": \"__CONTENT__\",\n \"Regex\": \"400|500\"\n }\n ],\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\",\n \"AdvanceFilterRules\": []\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"ConfigId\": \"a2c6342c-270a-4468-86cf-92625e466401\"\n}",
|
645
645
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
646
646
|
"title": "修改采集规则配置"
|
647
647
|
}
|
@@ -554,7 +554,7 @@
|
|
554
554
|
{
|
555
555
|
"document": "",
|
556
556
|
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceResetInstancesType\n<公共请求参数>\n\n{\n \"InstanceType\": \"S5.16XLARGE256\",\n \"InstanceIds\": [\n \"ins-xmf2ac34\"\n ]\n}",
|
557
|
-
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"OriginalPrice\": 100.45,\n \"DiscountPrice\": 56.31\n }\n },\n \"RequestId\": \"
|
557
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"OriginalPrice\": 100.45,\n \"DiscountPrice\": 56.31\n }\n },\n \"RequestId\": \"3ed7375a-fc2d-488f-88a0-29962f22c929\"\n }\n}",
|
558
558
|
"title": "包年包月实例调整配置询价"
|
559
559
|
}
|
560
560
|
],
|
@@ -540,7 +540,7 @@
|
|
540
540
|
"status": "online"
|
541
541
|
},
|
542
542
|
"DescribeTasks": {
|
543
|
-
"document": "
|
543
|
+
"document": "本接口(DescribeTasks)用于查询任务列表。",
|
544
544
|
"input": "DescribeTasksRequest",
|
545
545
|
"name": "查询任务列表",
|
546
546
|
"output": "DescribeTasksResponse",
|
@@ -2824,7 +2824,7 @@
|
|
2824
2824
|
"value_allowed_null": false
|
2825
2825
|
},
|
2826
2826
|
{
|
2827
|
-
"disabled":
|
2827
|
+
"disabled": true,
|
2828
2828
|
"document": "修改参数任务信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
2829
2829
|
"example": "无",
|
2830
2830
|
"member": "ModifyParamsData",
|
@@ -5055,6 +5055,42 @@
|
|
5055
5055
|
],
|
5056
5056
|
"type": "object"
|
5057
5057
|
},
|
5058
|
+
"CrossRegionBackupItem": {
|
5059
|
+
"document": "跨地域备份各地域备份信息",
|
5060
|
+
"members": [
|
5061
|
+
{
|
5062
|
+
"disabled": false,
|
5063
|
+
"document": "备份的目标地域\n注意:此字段可能返回 null,表示取不到有效值。",
|
5064
|
+
"example": "ap-guangzhou",
|
5065
|
+
"member": "string",
|
5066
|
+
"name": "CrossRegion",
|
5067
|
+
"output_required": false,
|
5068
|
+
"type": "string",
|
5069
|
+
"value_allowed_null": true
|
5070
|
+
},
|
5071
|
+
{
|
5072
|
+
"disabled": false,
|
5073
|
+
"document": "目标地域的备份任务ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
5074
|
+
"example": "1234",
|
5075
|
+
"member": "string",
|
5076
|
+
"name": "BackupId",
|
5077
|
+
"output_required": false,
|
5078
|
+
"type": "string",
|
5079
|
+
"value_allowed_null": true
|
5080
|
+
},
|
5081
|
+
{
|
5082
|
+
"disabled": false,
|
5083
|
+
"document": "目标地域的备份状态\n注意:此字段可能返回 null,表示取不到有效值。",
|
5084
|
+
"example": "processing",
|
5085
|
+
"member": "string",
|
5086
|
+
"name": "BackupStatus",
|
5087
|
+
"output_required": false,
|
5088
|
+
"type": "string",
|
5089
|
+
"value_allowed_null": true
|
5090
|
+
}
|
5091
|
+
],
|
5092
|
+
"usage": "out"
|
5093
|
+
},
|
5058
5094
|
"CynosdbCluster": {
|
5059
5095
|
"document": "集群信息",
|
5060
5096
|
"members": [
|
@@ -11649,6 +11685,16 @@
|
|
11649
11685
|
"type": "string",
|
11650
11686
|
"value_allowed_null": true
|
11651
11687
|
},
|
11688
|
+
{
|
11689
|
+
"disabled": false,
|
11690
|
+
"document": "代理版本详情",
|
11691
|
+
"example": "无",
|
11692
|
+
"member": "ProxyVersionInfo",
|
11693
|
+
"name": "SupportProxyVersionDetail",
|
11694
|
+
"output_required": false,
|
11695
|
+
"type": "list",
|
11696
|
+
"value_allowed_null": false
|
11697
|
+
},
|
11652
11698
|
{
|
11653
11699
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11654
11700
|
"member": "string",
|
@@ -13675,6 +13721,16 @@
|
|
13675
13721
|
"output_required": true,
|
13676
13722
|
"type": "string",
|
13677
13723
|
"value_allowed_null": false
|
13724
|
+
},
|
13725
|
+
{
|
13726
|
+
"disabled": false,
|
13727
|
+
"document": "跨地域备份项详细信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
13728
|
+
"example": "无",
|
13729
|
+
"member": "CrossRegionBackupItem",
|
13730
|
+
"name": "CrossRegionBackupInfos",
|
13731
|
+
"output_required": false,
|
13732
|
+
"type": "list",
|
13733
|
+
"value_allowed_null": true
|
13678
13734
|
}
|
13679
13735
|
],
|
13680
13736
|
"usage": "out"
|
@@ -17944,6 +18000,32 @@
|
|
17944
18000
|
],
|
17945
18001
|
"usage": "out"
|
17946
18002
|
},
|
18003
|
+
"ProxyVersionInfo": {
|
18004
|
+
"document": "TDSQL-C MySQL支持的proxy版本信息",
|
18005
|
+
"members": [
|
18006
|
+
{
|
18007
|
+
"disabled": false,
|
18008
|
+
"document": "proxy版本号\n注意:此字段可能返回 null,表示取不到有效值。",
|
18009
|
+
"example": "1.2.3",
|
18010
|
+
"member": "string",
|
18011
|
+
"name": "ProxyVersion",
|
18012
|
+
"output_required": false,
|
18013
|
+
"type": "string",
|
18014
|
+
"value_allowed_null": true
|
18015
|
+
},
|
18016
|
+
{
|
18017
|
+
"disabled": false,
|
18018
|
+
"document": "版本描述:GA:稳定版 BETA:尝鲜版,DEPRECATED:过旧,\n注意:此字段可能返回 null,表示取不到有效值。",
|
18019
|
+
"example": "GA",
|
18020
|
+
"member": "string",
|
18021
|
+
"name": "ProxyVersionType",
|
18022
|
+
"output_required": false,
|
18023
|
+
"type": "string",
|
18024
|
+
"value_allowed_null": true
|
18025
|
+
}
|
18026
|
+
],
|
18027
|
+
"usage": "out"
|
18028
|
+
},
|
17947
18029
|
"ProxyZone": {
|
17948
18030
|
"document": "proxy节点可用区内个数",
|
17949
18031
|
"members": [
|
@@ -636,7 +636,7 @@
|
|
636
636
|
{
|
637
637
|
"document": "查询支持的数据库代理版本",
|
638
638
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSupportProxyVersion\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-abc\",\n \"ProxyGroupId\": \"cynosdbmysql-proxy-abc\"\n}",
|
639
|
-
"output": "{\n \"Response\": {\n \"SupportProxyVersions\": [\n \"
|
639
|
+
"output": "{\n \"Response\": {\n \"SupportProxyVersions\": [\n \"3.1.4\"\n ],\n \"CurrentProxyVersion\": \"3.1.1\",\n \"SupportProxyVersionDetail\": [\n {\n \"ProxyVersion\": \"3.1.5\",\n \"ProxyVersionType\": \"BATE\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
640
640
|
"title": "查询支持的数据库代理版本"
|
641
641
|
}
|
642
642
|
],
|
tccli/services/dlc/dlc_client.py
CHANGED
@@ -6205,6 +6205,58 @@ def doRegisterThirdPartyAccessUser(args, parsed_globals):
|
|
6205
6205
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6206
6206
|
|
6207
6207
|
|
6208
|
+
def doDescribeTasksAnalysis(args, parsed_globals):
|
6209
|
+
g_param = parse_global_arg(parsed_globals)
|
6210
|
+
|
6211
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6212
|
+
cred = credential.CVMRoleCredential()
|
6213
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6214
|
+
cred = credential.STSAssumeRoleCredential(
|
6215
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6216
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6217
|
+
)
|
6218
|
+
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):
|
6219
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6220
|
+
else:
|
6221
|
+
cred = credential.Credential(
|
6222
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6223
|
+
)
|
6224
|
+
http_profile = HttpProfile(
|
6225
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6226
|
+
reqMethod="POST",
|
6227
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6228
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6229
|
+
)
|
6230
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6231
|
+
if g_param[OptionsDefine.Language]:
|
6232
|
+
profile.language = g_param[OptionsDefine.Language]
|
6233
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6234
|
+
client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
|
6235
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6236
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6237
|
+
model = models.DescribeTasksAnalysisRequest()
|
6238
|
+
model.from_json_string(json.dumps(args))
|
6239
|
+
start_time = time.time()
|
6240
|
+
while True:
|
6241
|
+
rsp = client.DescribeTasksAnalysis(model)
|
6242
|
+
result = rsp.to_json_string()
|
6243
|
+
try:
|
6244
|
+
json_obj = json.loads(result)
|
6245
|
+
except TypeError as e:
|
6246
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6247
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6248
|
+
break
|
6249
|
+
cur_time = time.time()
|
6250
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6251
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6252
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6253
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6254
|
+
else:
|
6255
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6256
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6257
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6258
|
+
|
6259
|
+
|
6208
6260
|
def doDeleteUsersFromWorkGroup(args, parsed_globals):
|
6209
6261
|
g_param = parse_global_arg(parsed_globals)
|
6210
6262
|
|
@@ -7583,6 +7635,7 @@ ACTION_MAP = {
|
|
7583
7635
|
"DescribeTaskResult": doDescribeTaskResult,
|
7584
7636
|
"CreateExportTask": doCreateExportTask,
|
7585
7637
|
"RegisterThirdPartyAccessUser": doRegisterThirdPartyAccessUser,
|
7638
|
+
"DescribeTasksAnalysis": doDescribeTasksAnalysis,
|
7586
7639
|
"DeleteUsersFromWorkGroup": doDeleteUsersFromWorkGroup,
|
7587
7640
|
"DescribeSparkAppTasks": doDescribeSparkAppTasks,
|
7588
7641
|
"UnbindWorkGroupsFromUser": doUnbindWorkGroupsFromUser,
|