tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1414.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.
Potentially problematic release.
This version of tccli might be problematic. Click here for more details.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +2 -1
- tccli/services/ai3d/v20250513/api.json +22 -4
- tccli/services/aiart/aiart_client.py +173 -67
- tccli/services/aiart/v20221229/api.json +193 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/apm/apm_client.py +53 -0
- tccli/services/apm/v20210622/api.json +354 -0
- tccli/services/apm/v20210622/examples.json +8 -0
- tccli/services/asr/v20190614/api.json +3 -3
- tccli/services/autoscaling/v20180419/api.json +24 -2
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/bda/bda_client.py +15 -704
- tccli/services/bda/v20200324/api.json +107 -1819
- tccli/services/bda/v20200324/examples.json +0 -176
- tccli/services/billing/billing_client.py +326 -8
- tccli/services/billing/v20180709/api.json +2200 -255
- tccli/services/billing/v20180709/examples.json +48 -0
- tccli/services/cam/v20190116/api.json +4 -4
- tccli/services/captcha/v20190722/api.json +3 -3
- tccli/services/cat/v20180409/api.json +7 -7
- tccli/services/ccc/ccc_client.py +235 -76
- tccli/services/ccc/v20200210/api.json +502 -18
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +257 -44
- tccli/services/cdb/v20170320/examples.json +22 -6
- tccli/services/cdn/cdn_client.py +4 -163
- tccli/services/cdn/v20180606/api.json +61 -310
- tccli/services/cdn/v20180606/examples.json +1 -25
- tccli/services/cdwdoris/v20211228/api.json +51 -12
- tccli/services/cdwpg/v20201230/api.json +11 -1
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +11 -1
- tccli/services/cfs/cfs_client.py +41 -94
- tccli/services/cfs/v20190719/api.json +171 -55
- tccli/services/cfs/v20190719/examples.json +1 -9
- tccli/services/cfw/v20190904/api.json +122 -10
- tccli/services/ckafka/ckafka_client.py +188 -29
- tccli/services/ckafka/v20190819/api.json +277 -4
- tccli/services/ckafka/v20190819/examples.json +25 -1
- tccli/services/clb/clb_client.py +0 -265
- tccli/services/clb/v20180317/api.json +130 -296
- tccli/services/clb/v20180317/examples.json +12 -40
- tccli/services/cloudapp/v20220530/api.json +55 -0
- tccli/services/cloudaudit/v20190319/api.json +11 -0
- tccli/services/cloudhsm/v20191112/api.json +10 -10
- tccli/services/cls/v20201016/api.json +63 -45
- tccli/services/cls/v20201016/examples.json +10 -4
- tccli/services/csip/v20221121/api.json +53 -3
- tccli/services/ctem/v20231128/api.json +320 -0
- tccli/services/ctem/v20231128/examples.json +3 -3
- tccli/services/cvm/cvm_client.py +0 -212
- tccli/services/cvm/v20170312/api.json +91 -843
- tccli/services/cvm/v20170312/examples.json +32 -58
- tccli/services/cynosdb/cynosdb_client.py +167 -8
- tccli/services/cynosdb/v20190107/api.json +1126 -148
- tccli/services/cynosdb/v20190107/examples.json +31 -7
- tccli/services/dbbrain/dbbrain_client.py +246 -87
- tccli/services/dbbrain/v20191016/api.json +74 -62
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +601 -177
- tccli/services/dbbrain/v20210527/examples.json +28 -4
- tccli/services/dc/v20180410/api.json +101 -3
- tccli/services/dcdb/v20180411/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +237 -24
- tccli/services/dlc/v20210125/examples.json +12 -4
- tccli/services/dnspod/dnspod_client.py +106 -0
- tccli/services/dnspod/v20210323/api.json +126 -20
- tccli/services/dnspod/v20210323/examples.json +17 -7
- tccli/services/dsgc/v20190723/api.json +73 -15
- tccli/services/dts/v20180330/api.json +4 -4
- tccli/services/dts/v20211206/api.json +408 -127
- tccli/services/dts/v20211206/examples.json +15 -9
- tccli/services/eb/v20210416/api.json +41 -1
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +56 -9
- tccli/services/emr/v20190103/examples.json +5 -5
- tccli/services/es/es_client.py +273 -8
- tccli/services/es/v20180416/api.json +845 -33
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/es/v20250101/api.json +135 -2
- tccli/services/es/v20250101/examples.json +8 -0
- tccli/services/ess/ess_client.py +509 -32
- tccli/services/ess/v20201111/api.json +1366 -113
- tccli/services/ess/v20201111/examples.json +94 -10
- tccli/services/essbasic/v20210526/api.json +265 -27
- tccli/services/essbasic/v20210526/examples.json +12 -12
- tccli/services/facefusion/v20220927/api.json +1 -1
- tccli/services/gaap/v20180529/api.json +18 -8
- tccli/services/gme/gme_client.py +53 -0
- tccli/services/gme/v20180711/api.json +241 -1
- tccli/services/gme/v20180711/examples.json +8 -0
- tccli/services/gs/gs_client.py +216 -4
- tccli/services/gs/v20191118/api.json +202 -1
- tccli/services/gs/v20191118/examples.json +32 -0
- tccli/services/gwlb/gwlb_client.py +53 -0
- tccli/services/gwlb/v20240906/api.json +150 -0
- tccli/services/gwlb/v20240906/examples.json +8 -0
- tccli/services/hai/v20230812/api.json +5 -5
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/hunyuan/v20230901/examples.json +1 -1
- tccli/services/iai/v20180301/api.json +227 -207
- tccli/services/iai/v20180301/examples.json +26 -26
- tccli/services/iai/v20200303/api.json +4 -4
- tccli/services/iai/v20200303/examples.json +1 -1
- tccli/services/ioa/ioa_client.py +265 -0
- tccli/services/ioa/v20220601/api.json +781 -85
- tccli/services/ioa/v20220601/examples.json +46 -0
- tccli/services/iotexplorer/iotexplorer_client.py +387 -16
- tccli/services/iotexplorer/v20190423/api.json +1183 -63
- tccli/services/iotexplorer/v20190423/examples.json +92 -0
- tccli/services/keewidb/v20220308/api.json +69 -17
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/lcic/v20220817/api.json +61 -15
- tccli/services/lighthouse/v20200324/api.json +193 -24
- tccli/services/lighthouse/v20200324/examples.json +9 -3
- tccli/services/live/v20180801/api.json +6 -6
- tccli/services/live/v20180801/examples.json +7 -1
- tccli/services/lke/lke_client.py +40 -93
- tccli/services/lke/v20231130/api.json +943 -390
- tccli/services/lke/v20231130/examples.json +38 -46
- tccli/services/lkeap/v20240522/api.json +39 -12
- tccli/services/lkeap/v20240522/examples.json +12 -0
- tccli/services/mariadb/v20170312/api.json +1 -1
- tccli/services/mna/v20210119/api.json +11 -2
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/mongodb/mongodb_client.py +334 -16
- tccli/services/mongodb/v20190725/api.json +1092 -383
- tccli/services/mongodb/v20190725/examples.json +69 -21
- tccli/services/monitor/monitor_client.py +106 -0
- tccli/services/monitor/v20180724/api.json +383 -12
- tccli/services/monitor/v20180724/examples.json +24 -2
- tccli/services/mps/mps_client.py +220 -8
- tccli/services/mps/v20190612/api.json +1999 -179
- tccli/services/mps/v20190612/examples.json +56 -6
- tccli/services/mqtt/v20240516/api.json +10 -0
- tccli/services/mqtt/v20240516/examples.json +3 -9
- tccli/services/nlp/v20190408/api.json +6 -6
- tccli/services/oceanus/oceanus_client.py +318 -0
- tccli/services/oceanus/v20190422/api.json +461 -26
- tccli/services/oceanus/v20190422/examples.json +50 -2
- tccli/services/ocr/ocr_client.py +41 -253
- tccli/services/ocr/v20181119/api.json +153 -659
- tccli/services/ocr/v20181119/examples.json +8 -40
- tccli/services/omics/v20221128/api.json +90 -7
- tccli/services/organization/v20210331/api.json +46 -7
- tccli/services/postgres/v20170312/api.json +333 -77
- tccli/services/postgres/v20170312/examples.json +37 -31
- tccli/services/privatedns/privatedns_client.py +641 -58
- tccli/services/privatedns/v20201028/api.json +930 -19
- tccli/services/privatedns/v20201028/examples.json +91 -3
- tccli/services/pts/v20210728/api.json +2 -2
- tccli/services/redis/v20180412/api.json +303 -109
- tccli/services/redis/v20180412/examples.json +12 -12
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +22 -4
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/sms/v20190711/api.json +12 -12
- tccli/services/sms/v20190711/examples.json +9 -3
- tccli/services/sms/v20210111/api.json +13 -13
- tccli/services/sms/v20210111/examples.json +8 -2
- tccli/services/sqlserver/v20180328/api.json +46 -7
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +28 -0
- tccli/services/svp/v20240125/api.json +14 -4
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tat/v20201028/api.json +22 -3
- tccli/services/tcb/v20180608/api.json +1 -1
- tccli/services/tcss/tcss_client.py +228 -69
- tccli/services/tcss/v20201101/api.json +273 -25
- tccli/services/tcss/v20201101/examples.json +26 -2
- tccli/services/teo/teo_client.py +317 -52
- tccli/services/teo/v20220901/api.json +1824 -242
- tccli/services/teo/v20220901/examples.json +109 -21
- tccli/services/thpc/thpc_client.py +57 -4
- tccli/services/thpc/v20230321/api.json +163 -21
- tccli/services/thpc/v20230321/examples.json +13 -5
- tccli/services/tione/tione_client.py +163 -4
- tccli/services/tione/v20211111/api.json +285 -21
- tccli/services/tione/v20211111/examples.json +27 -3
- tccli/services/tke/tke_client.py +8 -8
- tccli/services/tke/v20180525/api.json +168 -130
- tccli/services/tke/v20180525/examples.json +20 -20
- tccli/services/tke/v20220501/api.json +215 -3
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tms/tms_client.py +106 -0
- tccli/services/tms/v20201229/api.json +249 -3
- tccli/services/tms/v20201229/examples.json +16 -0
- tccli/services/tmt/v20180321/api.json +78 -1
- tccli/services/trabbit/v20230418/api.json +271 -4
- tccli/services/trabbit/v20230418/examples.json +9 -3
- tccli/services/trocket/v20230308/api.json +4 -4
- tccli/services/trro/trro_client.py +106 -0
- tccli/services/trro/v20220325/api.json +456 -0
- tccli/services/trro/v20220325/examples.json +16 -0
- tccli/services/trtc/v20190722/api.json +197 -49
- tccli/services/trtc/v20190722/examples.json +4 -4
- tccli/services/tse/v20201207/api.json +69 -2
- tccli/services/tse/v20201207/examples.json +3 -3
- tccli/services/tsf/v20180326/api.json +70 -7
- tccli/services/tsf/v20180326/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +145 -0
- tccli/services/vclm/v20240523/examples.json +16 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vcube/v20220410/api.json +1 -1
- tccli/services/vod/v20180717/api.json +7 -7
- tccli/services/vpc/v20170312/api.json +1216 -70
- tccli/services/vpc/v20170312/examples.json +139 -3
- tccli/services/vpc/vpc_client.py +1023 -122
- tccli/services/vrs/v20200824/api.json +11 -11
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/vtc/v20240223/api.json +14 -14
- tccli/services/waf/v20180125/api.json +812 -143
- tccli/services/waf/v20180125/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +1281 -601
- tccli/services/wedata/v20210820/examples.json +127 -157
- tccli/services/wedata/v20250806/api.json +19335 -0
- tccli/services/wedata/v20250806/examples.json +999 -0
- tccli/services/wedata/wedata_client.py +7072 -1131
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/METADATA +9 -7
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/RECORD +226 -224
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/WHEEL +1 -1
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1391.1.dist-info/license_files → tccli-3.0.1414.1.dist-info/licenses}/LICENSE +0 -0
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"CreateClusterRelease": [
|
|
136
136
|
{
|
|
137
137
|
"document": "集群创建应用",
|
|
138
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterRelease\n<公共请求参数>\n\n{\n \"ChartFrom\": \"tke\",\n \"Name\": \"app-05\",\n \"ClusterId\": \"cls-65r1c5nu\",\n \"Namespace\": \"lwj\",\n \"Chart\": \"redis\",\n \"ChartVersion\": \"10.5.3\",\n \"ChartNamespace\": \"helm-public\"\n}",
|
|
138
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterRelease\n<公共请求参数>\n\n{\n \"ChartFrom\": \"tke-market\",\n \"Name\": \"app-05\",\n \"ClusterId\": \"cls-65r1c5nu\",\n \"Namespace\": \"lwj\",\n \"Chart\": \"redis\",\n \"ChartVersion\": \"10.5.3\",\n \"ChartNamespace\": \"helm-public\"\n}",
|
|
139
139
|
"output": "{\n \"Response\": {\n \"Release\": {\n \"Condition\": \"\",\n \"CreatedTime\": \"2020-04-15T14:44:42Z\",\n \"ID\": \"0b49c73e-a2eb-41d7-8a9b-c0e61cf1aabb\",\n \"Name\": \"app-05\",\n \"Namespace\": \"lwj\",\n \"Status\": \"pending-install\",\n \"UpdatedTime\": \"2020-04-15T14:44:42Z\"\n },\n \"RequestId\": \"33483fde-efec-4d3c-8ff6-340d9dbc2d01\"\n }\n}",
|
|
140
140
|
"title": "集群创建应用"
|
|
141
141
|
}
|
|
@@ -386,9 +386,9 @@
|
|
|
386
386
|
],
|
|
387
387
|
"DeleteClusterNodePool": [
|
|
388
388
|
{
|
|
389
|
-
"document": "",
|
|
390
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteClusterNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
|
391
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
389
|
+
"document": "删除节点池",
|
|
390
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteClusterNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-7tz3n309\",\n \"NodePoolIds\": [\n \"np-e55paxnt\"\n ],\n \"KeepInstance\": false\n}",
|
|
391
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"ebc80be1-c6a7-4c1f-870e-74eba8471969\"\n }\n}",
|
|
392
392
|
"title": "删除节点池"
|
|
393
393
|
}
|
|
394
394
|
],
|
|
@@ -759,7 +759,7 @@
|
|
|
759
759
|
"DescribeClusterPendingReleases": [
|
|
760
760
|
{
|
|
761
761
|
"document": "",
|
|
762
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterPendingReleases\n<公共请求参数>\n\n{\n \"Limit\":
|
|
762
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterPendingReleases\n<公共请求参数>\n\n{\n \"Limit\": 1,\n \"ClusterId\": \"cls-65r1c5nu\"\n}",
|
|
763
763
|
"output": "{\n \"Response\": {\n \"Limit\": 1,\n \"Offset\": 0,\n \"ReleaseSet\": [\n {\n \"Condition\": \"install release error: host must be a URL or a host:port pair: \\\"https://\\\"\",\n \"CreatedTime\": \"2020-04-15T09:07:22Z\",\n \"ID\": \"8aa09a63-8b9a-461f-8c5b-bd7872abdc37\",\n \"Name\": \"app-01\",\n \"Namespace\": \"lwj\",\n \"Status\": \"failed\",\n \"UpdatedTime\": \"2020-04-15T09:07:22Z\"\n }\n ],\n \"RequestId\": \"33483fde-efec-4d3c-8ff6-340d9dbc2d01\",\n \"Total\": 1\n }\n}",
|
|
764
764
|
"title": "查询集群安装中应用列表"
|
|
765
765
|
}
|
|
@@ -768,7 +768,7 @@
|
|
|
768
768
|
{
|
|
769
769
|
"document": "查询集群已安装应用详情",
|
|
770
770
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterReleaseDetails\n<公共请求参数>\n\n{\n \"Namespace\": \"default\",\n \"ClusterId\": \"cls-65r1c5nu\",\n \"Name\": \"app-name\"\n}",
|
|
771
|
-
"output": "{\n \"Response\": {\n \"Release\": {\n \"Name\": \"app-name\",\n \"Namespace\": \"default\",\n \"Version\":
|
|
771
|
+
"output": "{\n \"Response\": {\n \"Release\": {\n \"Name\": \"app-name\",\n \"Namespace\": \"default\",\n \"Version\": 1,\n \"Status\": \"deployed\",\n \"Description\": \"Install complete\",\n \"Notes\": \"\",\n \"Config\": \"key1=v1,key2=v2\",\n \"Manifest\": \"\",\n \"ChartVersion\": \"10.5.3\",\n \"ChartName\": \"redis\",\n \"ChartDescription\": \"Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.\",\n \"AppVersion\": \"5.0.7\",\n \"FirstDeployedTime\": \"2020-04-09 15:28:28.707549 +0800 CST\",\n \"LastDeployedTime\": \"2020-04-09 15:28:28.707549 +0800 CST\",\n \"ChartFrom\": \"other\",\n \"ChartURL\": \"\",\n \"ComputedValues\": \"\",\n \"Resources\": \"\"\n },\n \"RequestId\": \"f12a6e20-f950-4af9-8f8b-b6329a4961c2\"\n }\n}",
|
|
772
772
|
"title": "查询集群已安装应用详情"
|
|
773
773
|
}
|
|
774
774
|
],
|
|
@@ -776,7 +776,7 @@
|
|
|
776
776
|
{
|
|
777
777
|
"document": "",
|
|
778
778
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterReleaseHistory\n<公共请求参数>\n\n{\n \"Namespace\": \"default\",\n \"ClusterId\": \"cls-65r1c5nu\",\n \"Name\": \"app-name\"\n}",
|
|
779
|
-
"output": "{\n \"Response\": {\n \"ReleaseHistorySet\": [\n {\n \"Name\": \"app-name\",\n \"Namespace\": \"default\",\n \"Revision\":
|
|
779
|
+
"output": "{\n \"Response\": {\n \"ReleaseHistorySet\": [\n {\n \"Name\": \"app-name\",\n \"Namespace\": \"default\",\n \"Revision\": 1,\n \"Status\": \"deployed\",\n \"Chart\": \"redis-10.5.3\",\n \"AppVersion\": \"5.0.7\",\n \"UpdatedTime\": \"2020-04-09 15:28:28.707549 +0800 CST\",\n \"Description\": \"\"\n }\n ],\n \"RequestId\": \"f12a6e20-f950-4af9-8f8b-b6329a4961c2\",\n \"Total\": 1\n }\n}",
|
|
780
780
|
"title": "查询集群已安装应用版本历史"
|
|
781
781
|
}
|
|
782
782
|
],
|
|
@@ -984,7 +984,7 @@
|
|
|
984
984
|
{
|
|
985
985
|
"document": "",
|
|
986
986
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeIPAMD\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-8k33qz0w\"\n}",
|
|
987
|
-
"output": "{\n \"Response\": {\n \"DisableVpcCniMode\": false,\n \"EnableCustomizedPodCidr\":
|
|
987
|
+
"output": "{\n \"Response\": {\n \"ClaimExpiredDuration\": \"0s\",\n \"DisableVpcCniMode\": false,\n \"EnableCustomizedPodCidr\": true,\n \"EnableIPAMD\": true,\n \"EnableTrunkingENI\": false,\n \"Phase\": \"running\",\n \"Reason\": \"\",\n \"RequestId\": \"93f7457a-4c95-4e23-b75f-e3bdbf1ab81e\",\n \"SubnetIds\": [\n \"subnet-7fxdi13h\",\n \"subnet-502b2uw9\"\n ]\n }\n}",
|
|
988
988
|
"title": "获取eniipamd组件信息"
|
|
989
989
|
}
|
|
990
990
|
],
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
"DescribeMasterComponent": [
|
|
1024
1024
|
{
|
|
1025
1025
|
"document": "",
|
|
1026
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
|
1026
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMasterComponent\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-pd41w15e\",\n \"Component\": \"kube-apiserver\"\n}",
|
|
1027
1027
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\",\n \"Component\": \"kube-apiserver\",\n \"Status\": \"Shutdown\"\n }\n}",
|
|
1028
1028
|
"title": "获取kube-apiserver状态"
|
|
1029
1029
|
}
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
{
|
|
1041
1041
|
"document": "",
|
|
1042
1042
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOpenPolicyList\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-gzzr1v5t\",\n \"Category\": \"baseline\"\n}",
|
|
1043
|
-
"output": "{\n \"Response\": {\n \"
|
|
1043
|
+
"output": "{\n \"Response\": {\n \"GatekeeperStatus\": 1,\n \"OpenPolicyInfoList\": [\n {\n \"ConstraintYamlExample\": \"\",\n \"EnabledStatus\": \"open\",\n \"EnforcementAction\": \"deny\",\n \"EventNums\": 0,\n \"Kind\": \"blockclusterdeletion\",\n \"Name\": \"block-cluster-deletion-rule\",\n \"OpenConstraintInfoList\": [\n {\n \"EventNums\": 0,\n \"Name\": \"block-cluster-deletion-rule\",\n \"YamlDetail\": \"\"\n }\n ],\n \"PolicyCategory\": \"cluster\",\n \"PolicyDesc\": \"集群中存在任意节点(普通节点、原生节点、注册节点),需先下线节点后方可删除\",\n \"PolicyName\": \"存在节点的集群不允许删除\"\n }\n ],\n \"RequestId\": \"224782f1-c990-4383-8f21-bb369c9ca396\"\n }\n}",
|
|
1044
1044
|
"title": "查询策略列表"
|
|
1045
1045
|
}
|
|
1046
1046
|
],
|
|
@@ -1356,7 +1356,7 @@
|
|
|
1356
1356
|
{
|
|
1357
1357
|
"document": "",
|
|
1358
1358
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRouteTableConflicts\n<公共请求参数>\n\n{\n \"RouteTableCidrBlock\": \"10.4.0.0/16\",\n \"VpcId\": \"vpc-e55paxnt\"\n}",
|
|
1359
|
-
"output": "{\n \"Response\": {\n \"HasConflict\": false,\n \"RouteTableConflictSet\": [\n {\n \"RouteTableType\": \"CcsCluster\",\n \"RouteTableCidrBlock\": \"172.20.0.0/16\",\n \"RouteTableName\": \"tke-test\",\n \"RouteTableId\": \"
|
|
1359
|
+
"output": "{\n \"Response\": {\n \"HasConflict\": false,\n \"RouteTableConflictSet\": [\n {\n \"RouteTableType\": \"CcsCluster\",\n \"RouteTableCidrBlock\": \"172.20.0.0/16\",\n \"RouteTableName\": \"tke-test\",\n \"RouteTableId\": \"rtb-e55paxnt\"\n }\n ],\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\"\n }\n}",
|
|
1360
1360
|
"title": "查询路由表冲突列表"
|
|
1361
1361
|
}
|
|
1362
1362
|
],
|
|
@@ -1420,7 +1420,7 @@
|
|
|
1420
1420
|
{
|
|
1421
1421
|
"document": "",
|
|
1422
1422
|
"input": "https://tke.tencentcloudapi.com/?Action=DescribeVpcCniPodLimits\n&Zone=ap-guangzhou-3,\n&InstanceFamily=S5,\n&<公共请求参数>",
|
|
1423
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 4,\n \"PodLimitsInstanceSet\": [\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"S5\",\n \"InstanceType\": \"S5.SMALL2\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 60,\n \"TKERouteENIStaticIP\": 59,\n \"TKEDirectENI\": 1\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"S5\",\n \"InstanceType\": \"S5.SMALL4\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 60,\n \"TKERouteENIStaticIP\": 59,\n \"TKEDirectENI\": 1\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"S5\",\n \"InstanceType\": \"S5.MEDIUM4\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 60,\n \"TKERouteENIStaticIP\": 59,\n \"TKEDirectENI\": 3\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"S5\",\n \"InstanceType\": \"S5.MEDIUM8\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 60,\n \"TKERouteENIStaticIP\": 59,\n \"TKEDirectENI\": 3\n }\n }\n ],\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
|
1423
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 25,\n \"PodLimitsInstanceSet\": [\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.12XLARGE96\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.LARGE8\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 27,\n \"TKERouteENIStaticIP\": 27,\n \"TKEDirectENI\": 19,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.12XLARGE128\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.2XLARGE32\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 95,\n \"TKERouteENIStaticIP\": 95,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.LARGE16\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 27,\n \"TKERouteENIStaticIP\": 27,\n \"TKEDirectENI\": 19,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.2XLARGE16\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 95,\n \"TKERouteENIStaticIP\": 95,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.4XLARGE64\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.40XLARGE320\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 22,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.MEDIUM4\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 27,\n \"TKERouteENIStaticIP\": 27,\n \"TKEDirectENI\": 9,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.16XLARGE128\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.20XLARGE160\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.8XLARGE64\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.SMALL1\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 5,\n \"TKERouteENIStaticIP\": 5,\n \"TKEDirectENI\": 4,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.32XLARGE256\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 22,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.SMALL4\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 5,\n \"TKERouteENIStaticIP\": 5,\n \"TKEDirectENI\": 4,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.16XLARGE256\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.MEDIUM2\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 27,\n \"TKERouteENIStaticIP\": 27,\n \"TKEDirectENI\": 9,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.22XLARGE192\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.16XLARGE192\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.MEDIUM8\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 27,\n \"TKERouteENIStaticIP\": 27,\n \"TKEDirectENI\": 9,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.22XLARGE224\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.4XLARGE32\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.4XLARGE16\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 273,\n \"TKERouteENIStaticIP\": 273,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.2XLARGE8\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 95,\n \"TKERouteENIStaticIP\": 95,\n \"TKEDirectENI\": 39,\n \"TKESubENI\": 100\n }\n },\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceFamily\": \"SA2\",\n \"InstanceType\": \"SA2.SMALL2\",\n \"PodLimits\": {\n \"TKERouteENINonStaticIP\": 5,\n \"TKERouteENIStaticIP\": 5,\n \"TKEDirectENI\": 4,\n \"TKESubENI\": 100\n }\n }\n ],\n \"RequestId\": \"0902e5fd-5b71-4ea7-b61b-1a281f7b48c6\"\n }\n}",
|
|
1424
1424
|
"title": "查询广州3区下的S5实例族机型可支持的 VPC-CNI Pod 数量"
|
|
1425
1425
|
}
|
|
1426
1426
|
],
|
|
@@ -1699,7 +1699,7 @@
|
|
|
1699
1699
|
"ModifyMasterComponent": [
|
|
1700
1700
|
{
|
|
1701
1701
|
"document": "",
|
|
1702
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
|
1702
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyMasterComponent\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-pd41w15e\",\n \"Component\": \"kube-apiserver\",\n \"Operation\": \"shutdown\",\n \"DryRun\": false\n}",
|
|
1703
1703
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\"\n }\n}",
|
|
1704
1704
|
"title": "停机kube-apiserver"
|
|
1705
1705
|
}
|
|
@@ -1708,14 +1708,14 @@
|
|
|
1708
1708
|
{
|
|
1709
1709
|
"document": "修改节点池关联伸缩组的期望实例数示例",
|
|
1710
1710
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyNodePoolDesiredCapacityAboutAsg\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-xxx\",\n \"DesiredCapacity\": 6,\n \"NodePoolId\": \"np-xxx\"\n}",
|
|
1711
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
1711
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed\"\n }\n}",
|
|
1712
1712
|
"title": "修改节点池关联伸缩组的期望实例数示例"
|
|
1713
1713
|
}
|
|
1714
1714
|
],
|
|
1715
1715
|
"ModifyNodePoolInstanceTypes": [
|
|
1716
1716
|
{
|
|
1717
1717
|
"document": "修改节点池机型",
|
|
1718
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyNodePoolInstanceTypes\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"InstanceTypes\": [\n \"
|
|
1718
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyNodePoolInstanceTypes\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"InstanceTypes\": [\n \"S6.MEDIUM4\",\n \"S5.MEDIUM4\",\n \"SA3.MEDIUM4\"\n ],\n \"NodePoolId\": \"np-e55paxnt\"\n}",
|
|
1719
1719
|
"output": "{\n \"Response\": {\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
|
1720
1720
|
"title": "修改节点池机型"
|
|
1721
1721
|
}
|
|
@@ -1857,7 +1857,7 @@
|
|
|
1857
1857
|
"RollbackClusterRelease": [
|
|
1858
1858
|
{
|
|
1859
1859
|
"document": "",
|
|
1860
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RollbackClusterRelease\n<公共请求参数>\n\n{\n \"Namespace\": \"lwj\",\n \"ClusterId\": \"cls-65r1c5nu\",\n \"Name\": \"app-05\",\n \"Revision\":
|
|
1860
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RollbackClusterRelease\n<公共请求参数>\n\n{\n \"Namespace\": \"lwj\",\n \"ClusterId\": \"cls-65r1c5nu\",\n \"Name\": \"app-05\",\n \"Revision\": 1\n}",
|
|
1861
1861
|
"output": "{\n \"Response\": {\n \"Release\": {\n \"Condition\": \"\",\n \"CreatedTime\": \"2020-04-15T14:44:42Z\",\n \"ID\": \"0b49c73e-a2eb-41d7-8a9b-c0e61cf1aabb\",\n \"Name\": \"app-05\",\n \"Namespace\": \"lwj\",\n \"Status\": \"pending-rollback\",\n \"UpdatedTime\": \"2020-04-15T14:44:42Z\"\n },\n \"RequestId\": \"33483fde-efec-4d3c-8ff6-340d9dbc2d01\"\n }\n}",
|
|
1862
1862
|
"title": "回滚集群应用"
|
|
1863
1863
|
}
|
|
@@ -1889,7 +1889,7 @@
|
|
|
1889
1889
|
"SetNodePoolNodeProtection": [
|
|
1890
1890
|
{
|
|
1891
1891
|
"document": "当触发缩容时(包括手动和自动),节点不会被伸缩组从集群中移除",
|
|
1892
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetNodePoolNodeProtection\n<公共请求参数>\n\n{\n \"ProtectedFromScaleIn\":
|
|
1892
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetNodePoolNodeProtection\n<公共请求参数>\n\n{\n \"ProtectedFromScaleIn\": true,\n \"ClusterId\": \"cls-e55paxnt\",\n \"InstanceIds\": [\n \"ins-e55paxnt\"\n ],\n \"NodePoolId\": \"np-e55paxnt\"\n}",
|
|
1893
1893
|
"output": "{\n \"Response\": {\n \"SucceedInstanceIds\": [\n \"ins-rvob5o5\"\n ],\n \"FailedInstanceIds\": [\n \"ins-abocc5o\"\n ],\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
1894
1894
|
"title": "给节点池中的节点设置移出保护"
|
|
1895
1895
|
}
|
|
@@ -1954,7 +1954,7 @@
|
|
|
1954
1954
|
"title": "更新tke-log-agent组件参数"
|
|
1955
1955
|
},
|
|
1956
1956
|
{
|
|
1957
|
-
"document": "用户可以通过RawValues参数更新cluster-autoscaler组件支持的自定义配置参数,比如关闭缩容,可以将 {\"extraArgs\":{\"scale-down-enabled\":false}} 进行base64编码后放入到 RawValues 参数中。cluster-autoscaler组件支持的自定义配置参数说明如下:\n```\n{\n \"extraArgs\": {\n \"expander\": string, 扩容策略,例如:random\n \"ignore-daemonsets-utilization\": bool, ds类型不计入利用率,例如:false\n \"max-empty-bulk-delete\": int, 空节点最大并发缩容数,例如:10\n \"scale-down-delay-after-add\": string, 扩容后再触发缩容等待时间,例如:10m\n \"scale-down-enabled\": bool, 开启缩容能力,例如:false\n \"scale-down-unneeded-time\": string, 节点连续空闲触发缩容时间,例如:10m\n \"scale-down-utilization-threshold\": float, 触发缩容节点利用率阈值,例如:0.5\n \"skip-nodes-with-local-storage\": bool, 不缩容包含本地存储的节点,例如:true\n \"skip-nodes-with-system-pods\": bool 不缩容kube-system namespace下非DaemonSet管理的Pod的节点,例如:
|
|
1957
|
+
"document": "用户可以通过RawValues参数更新cluster-autoscaler组件支持的自定义配置参数,比如关闭缩容,可以将 {\"extraArgs\":{\"scale-down-enabled\":false}} 进行base64编码后放入到 RawValues 参数中。cluster-autoscaler组件支持的自定义配置参数说明如下:\n```\n{\n \"extraArgs\": {\n \"expander\": string, 扩容策略,例如:random\n \"ignore-daemonsets-utilization\": bool, ds类型不计入利用率,例如:false\n \"max-empty-bulk-delete\": int, 空节点最大并发缩容数,例如:10\n \"scale-down-delay-after-add\": string, 扩容后再触发缩容等待时间,例如:10m\n \"scale-down-enabled\": bool, 开启缩容能力,例如:false\n \"scale-down-unneeded-time\": string, 节点连续空闲触发缩容时间,例如:10m\n \"scale-down-utilization-threshold\": float, 触发缩容节点利用率阈值,例如:0.5\n \"skip-nodes-with-local-storage\": bool, 不缩容包含本地存储的节点,例如:true\n \"skip-nodes-with-system-pods\": bool 不缩容kube-system namespace下非DaemonSet管理的Pod的节点,例如:true\n }\n}\n```",
|
|
1958
1958
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-qbc3zefo\",\n \"AddonName\": \"cluster-autoscaler\",\n \"RawValues\": \"eyJleHRyYUFyZ3MiOnsic2NhbGUtZG93bi1lbmFibGVkIjpmYWxzZX19\",\n \"UpdateStrategy\": \"merge\"\n}",
|
|
1959
1959
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b0a2e412-6e5e-4a93-9a22-edf5102e9eae\"\n }\n}",
|
|
1960
1960
|
"title": "更新cluster-autoscaler参数"
|
|
@@ -1963,14 +1963,14 @@
|
|
|
1963
1963
|
"UpdateClusterKubeconfig": [
|
|
1964
1964
|
{
|
|
1965
1965
|
"document": "更新集群的kubeconfig信息",
|
|
1966
|
-
"input": "https://tke.tencentcloudapi.com/?Action=UpdateClusterKubeconfig\
|
|
1966
|
+
"input": "https://tke.tencentcloudapi.com/?Action=UpdateClusterKubeconfig\n&ClusterId=cls-65r1c5nu\n&SubAccounts.0=1385968384757\n&SubAccounts.1=1385968384757\n&SubAccounts.2=1385968384757\n&<公共请求参数>",
|
|
1967
1967
|
"output": "{\n \"Response\": {\n \"UpdatedSubAccounts\": [\n \"1385968384757\",\n \"1385968384757\",\n \"1385968384757\"\n ],\n \"RequestId\": \"33483fde-efec-4d3c-8ff6-340d9dbc2d01\"\n }\n}",
|
|
1968
1968
|
"title": "更新集群的kubeconfig信息"
|
|
1969
1969
|
}
|
|
1970
1970
|
],
|
|
1971
1971
|
"UpdateClusterVersion": [
|
|
1972
1972
|
{
|
|
1973
|
-
"document": "
|
|
1973
|
+
"document": "",
|
|
1974
1974
|
"input": "https://tke.tencentcloudapi.com/?Action=UpdateClusterVersion\n&ClusterId=cls-e55paxnt\n&DstVersion=1.18.4\n&<公共请求参数>",
|
|
1975
1975
|
"output": "{\n \"Response\": {\n \"RequestId\": \"2ac430cd-f7de-482e-b98e-f78a48e785e8\"\n }\n}",
|
|
1976
1976
|
"title": "升级集群到指定版本"
|
|
@@ -42,6 +42,13 @@
|
|
|
42
42
|
"output": "DescribeClusterInstancesResponse",
|
|
43
43
|
"status": "online"
|
|
44
44
|
},
|
|
45
|
+
"DescribeClusters": {
|
|
46
|
+
"document": "查询集群列表",
|
|
47
|
+
"input": "DescribeClustersRequest",
|
|
48
|
+
"name": "查询集群列表",
|
|
49
|
+
"output": "DescribeClustersResponse",
|
|
50
|
+
"status": "online"
|
|
51
|
+
},
|
|
45
52
|
"DescribeHealthCheckPolicies": {
|
|
46
53
|
"document": "查询健康检测策略",
|
|
47
54
|
"input": "DescribeHealthCheckPoliciesRequest",
|
|
@@ -233,6 +240,112 @@
|
|
|
233
240
|
],
|
|
234
241
|
"usage": "out"
|
|
235
242
|
},
|
|
243
|
+
"Cluster": {
|
|
244
|
+
"document": "集群信息结构体",
|
|
245
|
+
"members": [
|
|
246
|
+
{
|
|
247
|
+
"disabled": false,
|
|
248
|
+
"document": "集群ID",
|
|
249
|
+
"example": "cls-xxxxxxx",
|
|
250
|
+
"member": "string",
|
|
251
|
+
"name": "ClusterId",
|
|
252
|
+
"output_required": true,
|
|
253
|
+
"type": "string",
|
|
254
|
+
"value_allowed_null": false
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"disabled": false,
|
|
258
|
+
"document": "集群名称",
|
|
259
|
+
"example": "集群",
|
|
260
|
+
"member": "string",
|
|
261
|
+
"name": "ClusterName",
|
|
262
|
+
"output_required": true,
|
|
263
|
+
"type": "string",
|
|
264
|
+
"value_allowed_null": false
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"disabled": false,
|
|
268
|
+
"document": "集群描述",
|
|
269
|
+
"example": "示例集群",
|
|
270
|
+
"member": "string",
|
|
271
|
+
"name": "ClusterDescription",
|
|
272
|
+
"output_required": true,
|
|
273
|
+
"type": "string",
|
|
274
|
+
"value_allowed_null": false
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"disabled": false,
|
|
278
|
+
"document": "集群版本(默认值为1.10.5)",
|
|
279
|
+
"example": "1.20.6",
|
|
280
|
+
"member": "string",
|
|
281
|
+
"name": "ClusterVersion",
|
|
282
|
+
"output_required": true,
|
|
283
|
+
"type": "string",
|
|
284
|
+
"value_allowed_null": false
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"disabled": false,
|
|
288
|
+
"document": "集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。",
|
|
289
|
+
"example": "INDEPENDENT_CLUSTER",
|
|
290
|
+
"member": "string",
|
|
291
|
+
"name": "ClusterType",
|
|
292
|
+
"output_required": true,
|
|
293
|
+
"type": "string",
|
|
294
|
+
"value_allowed_null": false
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"disabled": false,
|
|
298
|
+
"document": "标签描述列表。\n注意:此字段可能返回 null,表示取不到有效值。",
|
|
299
|
+
"example": "无",
|
|
300
|
+
"member": "TagSpecification",
|
|
301
|
+
"name": "TagSpecification",
|
|
302
|
+
"output_required": true,
|
|
303
|
+
"type": "list",
|
|
304
|
+
"value_allowed_null": true
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"disabled": false,
|
|
308
|
+
"document": "集群状态 (Trading 集群开通中,Creating 创建中,Running 运行中,Deleting 删除中,Idling 闲置中,Recovering 唤醒中,Upgrading 升级中,NodeUpgrading 节点升级中,RuntimeUpgrading 节点运行时升级中,MasterScaling Master扩缩容中,ClusterLevelUpgrading 调整规格中,ResourceIsolate 欠费隔离中,ResourceIsolated 欠费已隔离,ResourceReverse 冲正恢复中,Abnormal 异常)",
|
|
309
|
+
"example": "Running",
|
|
310
|
+
"member": "string",
|
|
311
|
+
"name": "ClusterStatus",
|
|
312
|
+
"output_required": true,
|
|
313
|
+
"type": "string",
|
|
314
|
+
"value_allowed_null": false
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"disabled": false,
|
|
318
|
+
"document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
|
319
|
+
"example": "2021-06-16T07:42:57Z",
|
|
320
|
+
"member": "string",
|
|
321
|
+
"name": "CreatedTime",
|
|
322
|
+
"output_required": true,
|
|
323
|
+
"type": "string",
|
|
324
|
+
"value_allowed_null": true
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"disabled": false,
|
|
328
|
+
"document": "集群等级,针对托管集群生效\n注意:此字段可能返回 null,表示取不到有效值。\n注意:此字段可能返回 null,表示取不到有效值。",
|
|
329
|
+
"example": "L5",
|
|
330
|
+
"member": "string",
|
|
331
|
+
"name": "ClusterLevel",
|
|
332
|
+
"output_required": true,
|
|
333
|
+
"type": "string",
|
|
334
|
+
"value_allowed_null": true
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"disabled": false,
|
|
338
|
+
"document": "集群所在vpc的id\n注意:此字段可能返回 null,表示取不到有效值。",
|
|
339
|
+
"example": "vpc-xxx",
|
|
340
|
+
"member": "string",
|
|
341
|
+
"name": "VpcId",
|
|
342
|
+
"output_required": false,
|
|
343
|
+
"type": "string",
|
|
344
|
+
"value_allowed_null": true
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
"usage": "out"
|
|
348
|
+
},
|
|
236
349
|
"CreateHealthCheckPolicyRequest": {
|
|
237
350
|
"document": "CreateHealthCheckPolicy请求参数结构体",
|
|
238
351
|
"members": [
|
|
@@ -945,6 +1058,96 @@
|
|
|
945
1058
|
],
|
|
946
1059
|
"type": "object"
|
|
947
1060
|
},
|
|
1061
|
+
"DescribeClustersRequest": {
|
|
1062
|
+
"document": "DescribeClusters请求参数结构体",
|
|
1063
|
+
"members": [
|
|
1064
|
+
{
|
|
1065
|
+
"disabled": false,
|
|
1066
|
+
"document": "集群ID列表(为空时,\n表示获取账号下所有集群)",
|
|
1067
|
+
"example": "无",
|
|
1068
|
+
"member": "string",
|
|
1069
|
+
"name": "ClusterIds",
|
|
1070
|
+
"required": false,
|
|
1071
|
+
"type": "list"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"disabled": false,
|
|
1075
|
+
"document": "偏移量,默认0",
|
|
1076
|
+
"example": "无",
|
|
1077
|
+
"member": "int64",
|
|
1078
|
+
"name": "Offset",
|
|
1079
|
+
"required": false,
|
|
1080
|
+
"type": "int"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"disabled": false,
|
|
1084
|
+
"document": "最大输出条数,默认20,最大为100",
|
|
1085
|
+
"example": "无",
|
|
1086
|
+
"member": "int64",
|
|
1087
|
+
"name": "Limit",
|
|
1088
|
+
"required": false,
|
|
1089
|
+
"type": "int"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"disabled": false,
|
|
1093
|
+
"document": "· ClusterName\n 按照【集群名】进行过滤。\n 类型:String\n 必选:否\n\n· ClusterType\n 按照【集群类型】进行过滤。\n 类型:String\n 必选:否\n\n· ClusterStatus\n 按照【集群状态】进行过滤。\n 类型:String\n 必选:否\n\n· Tags\n 按照【标签键值对】进行过滤。\n 类型:String\n 必选:否\n\n· vpc-id\n 按照【VPC】进行过滤。\n 类型:String\n 必选:否\n\n· tag-key\n 按照【标签键】进行过滤。\n 类型:String\n 必选:否\n\n· tag-value\n 按照【标签值】进行过滤。\n 类型:String\n 必选:否\n\n· tag:tag-key\n 按照【标签键值对】进行过滤。\n 类型:String\n 必选:否",
|
|
1094
|
+
"example": "无",
|
|
1095
|
+
"member": "Filter",
|
|
1096
|
+
"name": "Filters",
|
|
1097
|
+
"required": false,
|
|
1098
|
+
"type": "list"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"disabled": false,
|
|
1102
|
+
"document": "集群类型,例如:MANAGED_CLUSTER",
|
|
1103
|
+
"example": "MANAGED_CLUSTER",
|
|
1104
|
+
"member": "string",
|
|
1105
|
+
"name": "ClusterType",
|
|
1106
|
+
"required": false,
|
|
1107
|
+
"type": "string"
|
|
1108
|
+
}
|
|
1109
|
+
],
|
|
1110
|
+
"type": "object"
|
|
1111
|
+
},
|
|
1112
|
+
"DescribeClustersResponse": {
|
|
1113
|
+
"document": "DescribeClusters返回参数结构体",
|
|
1114
|
+
"members": [
|
|
1115
|
+
{
|
|
1116
|
+
"disabled": false,
|
|
1117
|
+
"document": "集群总个数",
|
|
1118
|
+
"example": "无",
|
|
1119
|
+
"member": "int64",
|
|
1120
|
+
"name": "TotalCount",
|
|
1121
|
+
"type": "int",
|
|
1122
|
+
"value_allowed_null": false
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
"disabled": false,
|
|
1126
|
+
"document": "集群信息列表",
|
|
1127
|
+
"example": "无",
|
|
1128
|
+
"member": "Cluster",
|
|
1129
|
+
"name": "Clusters",
|
|
1130
|
+
"type": "list",
|
|
1131
|
+
"value_allowed_null": false
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"disabled": false,
|
|
1135
|
+
"document": "错误信息集合",
|
|
1136
|
+
"example": "无",
|
|
1137
|
+
"member": "string",
|
|
1138
|
+
"name": "Errors",
|
|
1139
|
+
"type": "list",
|
|
1140
|
+
"value_allowed_null": false
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
1144
|
+
"member": "string",
|
|
1145
|
+
"name": "RequestId",
|
|
1146
|
+
"type": "string"
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
"type": "object"
|
|
1150
|
+
},
|
|
948
1151
|
"DescribeHealthCheckPoliciesRequest": {
|
|
949
1152
|
"document": "DescribeHealthCheckPolicies请求参数结构体",
|
|
950
1153
|
"members": [
|
|
@@ -1867,18 +2070,18 @@
|
|
|
1867
2070
|
"members": [
|
|
1868
2071
|
{
|
|
1869
2072
|
"disabled": false,
|
|
1870
|
-
"document": "后付费计费周期,单位(月):\n1,2,3,4,5
|
|
2073
|
+
"document": "后付费计费周期,单位(月):\n1,2,3,4,5,6,7, 8,9,10,11,12,24,36,48,60",
|
|
1871
2074
|
"example": "1",
|
|
1872
2075
|
"member": "uint64",
|
|
1873
2076
|
"name": "Period",
|
|
1874
2077
|
"output_required": true,
|
|
1875
|
-
"required":
|
|
2078
|
+
"required": false,
|
|
1876
2079
|
"type": "int",
|
|
1877
2080
|
"value_allowed_null": false
|
|
1878
2081
|
},
|
|
1879
2082
|
{
|
|
1880
2083
|
"disabled": false,
|
|
1881
|
-
"document": "预付费续费方式:\n- NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费
|
|
2084
|
+
"document": "预付费续费方式:\n- NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费 \n- NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不自动续费(默认)\n- DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知用户过期,也不自动续费\n",
|
|
1882
2085
|
"example": "NOTIFY_AND_AUTO_RENEW",
|
|
1883
2086
|
"member": "string",
|
|
1884
2087
|
"name": "RenewFlag",
|
|
@@ -3852,6 +4055,15 @@
|
|
|
3852
4055
|
"required": false,
|
|
3853
4056
|
"type": "int"
|
|
3854
4057
|
},
|
|
4058
|
+
{
|
|
4059
|
+
"disabled": false,
|
|
4060
|
+
"document": "是否更新存量节点",
|
|
4061
|
+
"example": "false",
|
|
4062
|
+
"member": "bool",
|
|
4063
|
+
"name": "UpdateExistedNode",
|
|
4064
|
+
"required": false,
|
|
4065
|
+
"type": "bool"
|
|
4066
|
+
},
|
|
3855
4067
|
{
|
|
3856
4068
|
"disabled": false,
|
|
3857
4069
|
"document": "数据盘列表",
|
|
@@ -48,6 +48,14 @@
|
|
|
48
48
|
"title": "查询集群实例信息"
|
|
49
49
|
}
|
|
50
50
|
],
|
|
51
|
+
"DescribeClusters": [
|
|
52
|
+
{
|
|
53
|
+
"document": "查询集群列表",
|
|
54
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusters\n<公共请求参数>\n\n{}",
|
|
55
|
+
"output": "{\n \"Response\": {\n \"Clusters\": [\n {\n \"ClusterDescription\": \"\",\n \"ClusterId\": \"cls-padxxv08\",\n \"ClusterLevel\": \"L5\",\n \"ClusterName\": \"勿删 feeli-1.16.7-1\",\n \"ClusterStatus\": \"Running\",\n \"ClusterType\": \"EDGE_CLUSTER\",\n \"ClusterVersion\": \"1.16.7\",\n \"CreatedTime\": \"2022-11-09T17:12:15Z\",\n \"TagSpecification\": []\n }\n ],\n \"Errors\": [],\n \"RequestId\": \"55777e90-1af7-4108-abd5-fca0638a7bb6\",\n \"TotalCount\": 1\n }\n}",
|
|
56
|
+
"title": "查询集群列表"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
51
59
|
"DescribeHealthCheckPolicies": [
|
|
52
60
|
{
|
|
53
61
|
"document": "",
|
tccli/services/tms/tms_client.py
CHANGED
|
@@ -175,6 +175,110 @@ def doTextModeration(args, parsed_globals):
|
|
|
175
175
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
176
176
|
|
|
177
177
|
|
|
178
|
+
def doGetFinancialLLMTaskResult(args, parsed_globals):
|
|
179
|
+
g_param = parse_global_arg(parsed_globals)
|
|
180
|
+
|
|
181
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
182
|
+
cred = credential.CVMRoleCredential()
|
|
183
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
184
|
+
cred = credential.STSAssumeRoleCredential(
|
|
185
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
186
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
187
|
+
)
|
|
188
|
+
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):
|
|
189
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
190
|
+
else:
|
|
191
|
+
cred = credential.Credential(
|
|
192
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
193
|
+
)
|
|
194
|
+
http_profile = HttpProfile(
|
|
195
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
196
|
+
reqMethod="POST",
|
|
197
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
198
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
199
|
+
)
|
|
200
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
201
|
+
if g_param[OptionsDefine.Language]:
|
|
202
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
203
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
204
|
+
client = mod.TmsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
205
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
206
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
207
|
+
model = models.GetFinancialLLMTaskResultRequest()
|
|
208
|
+
model.from_json_string(json.dumps(args))
|
|
209
|
+
start_time = time.time()
|
|
210
|
+
while True:
|
|
211
|
+
rsp = client.GetFinancialLLMTaskResult(model)
|
|
212
|
+
result = rsp.to_json_string()
|
|
213
|
+
try:
|
|
214
|
+
json_obj = json.loads(result)
|
|
215
|
+
except TypeError as e:
|
|
216
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
217
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
218
|
+
break
|
|
219
|
+
cur_time = time.time()
|
|
220
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
221
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
222
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
223
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
224
|
+
else:
|
|
225
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
226
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
227
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
def doCreateFinancialLLMTask(args, parsed_globals):
|
|
231
|
+
g_param = parse_global_arg(parsed_globals)
|
|
232
|
+
|
|
233
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
234
|
+
cred = credential.CVMRoleCredential()
|
|
235
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
236
|
+
cred = credential.STSAssumeRoleCredential(
|
|
237
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
238
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
239
|
+
)
|
|
240
|
+
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):
|
|
241
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
242
|
+
else:
|
|
243
|
+
cred = credential.Credential(
|
|
244
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
245
|
+
)
|
|
246
|
+
http_profile = HttpProfile(
|
|
247
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
248
|
+
reqMethod="POST",
|
|
249
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
250
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
251
|
+
)
|
|
252
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
253
|
+
if g_param[OptionsDefine.Language]:
|
|
254
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
255
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
256
|
+
client = mod.TmsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
257
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
258
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
259
|
+
model = models.CreateFinancialLLMTaskRequest()
|
|
260
|
+
model.from_json_string(json.dumps(args))
|
|
261
|
+
start_time = time.time()
|
|
262
|
+
while True:
|
|
263
|
+
rsp = client.CreateFinancialLLMTask(model)
|
|
264
|
+
result = rsp.to_json_string()
|
|
265
|
+
try:
|
|
266
|
+
json_obj = json.loads(result)
|
|
267
|
+
except TypeError as e:
|
|
268
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
269
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
270
|
+
break
|
|
271
|
+
cur_time = time.time()
|
|
272
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
273
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
274
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
275
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
276
|
+
else:
|
|
277
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
278
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
279
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
280
|
+
|
|
281
|
+
|
|
178
282
|
def doDescribeTextLib(args, parsed_globals):
|
|
179
283
|
g_param = parse_global_arg(parsed_globals)
|
|
180
284
|
|
|
@@ -243,6 +347,8 @@ ACTION_MAP = {
|
|
|
243
347
|
"DescribeTextStat": doDescribeTextStat,
|
|
244
348
|
"AccountTipoffAccess": doAccountTipoffAccess,
|
|
245
349
|
"TextModeration": doTextModeration,
|
|
350
|
+
"GetFinancialLLMTaskResult": doGetFinancialLLMTaskResult,
|
|
351
|
+
"CreateFinancialLLMTask": doCreateFinancialLLMTask,
|
|
246
352
|
"DescribeTextLib": doDescribeTextLib,
|
|
247
353
|
|
|
248
354
|
}
|