tccli 3.0.1244.1__py2.py3-none-any.whl → 3.0.1246.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/__init__.py +3 -0
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +72 -0
- tccli/services/cdb/v20170320/examples.json +8 -0
- tccli/services/dbbrain/dbbrain_client.py +57 -4
- tccli/services/dbbrain/v20210527/api.json +145 -0
- tccli/services/dbbrain/v20210527/examples.json +8 -0
- tccli/services/dbdc/v20201029/api.json +72 -72
- tccli/services/dcdb/v20180411/api.json +3 -3
- tccli/services/dcdb/v20180411/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/iotexplorer/iotexplorer_client.py +216 -4
- tccli/services/iotexplorer/v20190423/api.json +146 -1
- tccli/services/iotexplorer/v20190423/examples.json +34 -2
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/lke/v20231130/api.json +30 -0
- tccli/services/lkeap/__init__.py +4 -0
- tccli/services/lkeap/lkeap_client.py +1426 -0
- tccli/services/lkeap/v20240522/api.json +1882 -0
- tccli/services/lkeap/v20240522/examples.json +215 -0
- tccli/services/mna/v20210119/api.json +7 -7
- tccli/services/mna/v20210119/examples.json +9 -9
- tccli/services/monitor/v20180724/api.json +74 -0
- tccli/services/ocr/ocr_client.py +91 -38
- tccli/services/ocr/v20181119/api.json +187 -0
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/scf/v20180416/examples.json +2 -2
- tccli/services/sqlserver/v20180328/api.json +43 -5
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/tcb/v20180608/api.json +45 -39
- tccli/services/tcb/v20180608/examples.json +9 -9
- tccli/services/tcm/v20210413/api.json +9 -3
- tccli/services/tcm/v20210413/examples.json +7 -7
- tccli/services/tcr/v20190924/api.json +89 -89
- tccli/services/tcr/v20190924/examples.json +31 -31
- tccli/services/teo/v20220901/api.json +3 -3
- tccli/services/tke/v20180525/api.json +874 -688
- tccli/services/tke/v20180525/examples.json +40 -40
- tccli/services/tke/v20220501/api.json +16 -16
- tccli/services/tke/v20220501/examples.json +2 -2
- tccli/services/trocket/trocket_client.py +57 -4
- tccli/services/trocket/v20230308/api.json +143 -51
- tccli/services/trocket/v20230308/examples.json +11 -3
- tccli/services/vclm/v20240523/api.json +3 -3
- tccli/services/vpc/v20170312/api.json +20 -20
- tccli/services/vpc/v20170312/examples.json +19 -19
- tccli/services/waf/v20180125/api.json +1 -1
- tccli/services/wedata/v20210820/api.json +34 -1
- {tccli-3.0.1244.1.dist-info → tccli-3.0.1246.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1244.1.dist-info → tccli-3.0.1246.1.dist-info}/RECORD +55 -51
- {tccli-3.0.1244.1.dist-info → tccli-3.0.1246.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1244.1.dist-info → tccli-3.0.1246.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1244.1.dist-info → tccli-3.0.1246.1.dist-info}/license_files/LICENSE +0 -0
@@ -51,7 +51,7 @@
|
|
51
51
|
"CheckEdgeClusterCIDR": [
|
52
52
|
{
|
53
53
|
"document": "",
|
54
|
-
"input": "https://tke.tencentcloudapi.com/?Action=CheckEdgeClusterCIDR\n&VpcId=vpc-
|
54
|
+
"input": "https://tke.tencentcloudapi.com/?Action=CheckEdgeClusterCIDR\n&VpcId=vpc-e55paxnt\n&PodCIDR=10.0.1.10/24\n&ServiceCIDR=192.168.0.0/16\n&<公共请求参数>",
|
55
55
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"ConflictCode\": 0,\n \"ConflictMsg\": \"OK\"\n }\n}",
|
56
56
|
"title": "检查边缘计算集群的CIDR是否冲突示例"
|
57
57
|
}
|
@@ -83,7 +83,7 @@
|
|
83
83
|
"CreateCluster": [
|
84
84
|
{
|
85
85
|
"document": "创建托管集群",
|
86
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCluster\n<公共请求参数>\n\n{\n \"ClusterType\": \"MANAGED_CLUSTER\",\n \"ClusterBasicSettings\": {\n \"ClusterOs\": \"centos8.0x86_64\",\n \"OsCustomizeType\": \"GENERAL\",\n \"ClusterVersion\": \"1.26.1\",\n \"ClusterName\": \"
|
86
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCluster\n<公共请求参数>\n\n{\n \"ClusterType\": \"MANAGED_CLUSTER\",\n \"ClusterBasicSettings\": {\n \"ClusterOs\": \"centos8.0x86_64\",\n \"OsCustomizeType\": \"GENERAL\",\n \"ClusterVersion\": \"1.26.1\",\n \"ClusterName\": \"tke\",\n \"ClusterDescription\": \"测试集群\",\n \"VpcId\": \"vpc-135qxjgs\",\n \"ProjectId\": 0,\n \"NeedWorkSecurityGroup\": false,\n \"TagSpecification\": [\n {\n \"ResourceType\": \"cluster\",\n \"Tags\": [\n {\n \"Key\": \"product\",\n \"Value\": \"tke\"\n }\n ]\n }\n ],\n \"ClusterLevel\": \"L5\",\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n }\n },\n \"ClusterCIDRSettings\": {\n \"ClusterCIDR\": \"172.24.0.0/16\",\n \"IgnoreClusterCIDRConflict\": false,\n \"MaxNodePodNum\": 64,\n \"MaxClusterServiceNum\": 1024\n },\n \"ClusterAdvancedSettings\": {\n \"AsEnabled\": false,\n \"IPVS\": true,\n \"ContainerRuntime\": \"containerd\",\n \"RuntimeVersion\": \"1.6.9\",\n \"NodeNameType\": \"lan-ip\",\n \"ExtraArgs\": {\n \"KubeAPIServer\": [],\n \"KubeControllerManager\": [],\n \"KubeScheduler\": []\n },\n \"NetworkType\": \"GR\",\n \"DeletionProtection\": true,\n \"AuditEnabled\": true,\n \"AuditLogsetId\": \"\",\n \"AuditLogTopicId\": \"\",\n \"EnableCustomizedPodCIDR\": false,\n \"IsDualStack\": false,\n \"QGPUShareEnable\": true\n },\n \"InstanceAdvancedSettings\": {\n \"DataDisks\": [],\n \"DockerGraphPath\": \"/var/lib/containerd\",\n \"Unschedulable\": 0,\n \"PreStartUserScript\": \"\",\n \"UserScript\": \"\",\n \"Labels\": [],\n \"Taints\": [],\n \"GPUArgs\": {},\n \"DesiredPodNumber\": 0\n },\n \"ExtensionAddons\": [\n {\n \"AddonName\": \"CBS\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"cbs\\\",\\\"chartVersion\\\":\\\"1.1.3\\\"},\\\"values\\\":{\\\"values\\\":[],\\\"rawValues\\\":\\\"e30=\\\",\\\"rawValuesType\\\":\\\"json\\\"}}}\"\n },\n {\n \"AddonName\": \"APP\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"user-group-access-control\\\",\\\"chartVersion\\\":\\\"1.0.0\\\"}}}\"\n },\n {\n \"AddonName\": \"QGPU\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"qgpu\\\",\\\"chartVersion\\\":\\\"1.0.19\\\"},\\\"values\\\":{\\\"values\\\":[\\\"config.priority=binpack\\\",\\\"config.nodepriority=spread\\\",\\\"config.rootdir=/var/lib/kubelet\\\"]}}}\"\n },\n {\n \"AddonName\": \"KMS\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"tke-kms-plugin\\\",\\\"chartVersion\\\":\\\"1.0.0\\\"},\\\"name\\\":\\\"tke-kms-plugin\\\",\\\"values\\\":{\\\"values\\\":[\\\"keyId=7d90e454-8458-11ee-b601-525400741137\\\",\\\"region=ap-guangzhou\\\",\\\"resource=secrets\\\"]}}}\"\n }\n ],\n \"RunInstancesForNode\": [\n {\n \"NodeRole\": \"WORKER\",\n \"RunInstancesPara\": [\n \"{\\\"Version\\\":\\\"2017-03-12\\\",\\\"InstanceChargeType\\\":\\\"POSTPAID_BY_HOUR\\\",\\\"Placement\\\":{\\\"Zone\\\":\\\"ap-shanghai-1\\\",\\\"ProjectId\\\":0},\\\"TagSpecification\\\":[{\\\"ResourceType\\\":\\\"instance\\\",\\\"Tags\\\":[{\\\"Key\\\":\\\"aa\\\",\\\"Value\\\":\\\"cc\\\"}]}],\\\"InstanceType\\\":\\\"S2.MEDIUM2\\\",\\\"ImageId\\\":\\\"img-25szkc8t\\\",\\\"SystemDisk\\\":{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50},\\\"VirtualPrivateCloud\\\":{\\\"VpcId\\\":\\\"vpc-135qxjgs\\\",\\\"SubnetId\\\":\\\"subnet-rtp4p7q3\\\",\\\"Ipv6AddressCount\\\":0},\\\"InternetAccessible\\\":{\\\"InternetChargeType\\\":\\\"TRAFFIC_POSTPAID_BY_HOUR\\\",\\\"InternetMaxBandwidthOut\\\":1,\\\"PublicIpAssigned\\\":true},\\\"InstanceCount\\\":1,\\\"InstanceName\\\":\\\"\\\",\\\"LoginSettings\\\":{\\\"KeyIds\\\":[\\\"skey-4h43fuxj\\\"]},\\\"SecurityGroupIds\\\":[\\\"sg-hjsb4ai4\\\"],\\\"EnhancedService\\\":{\\\"SecurityService\\\":{\\\"Enabled\\\":true},\\\"MonitorService\\\":{\\\"Enabled\\\":true}},\\\"PurchaseSource\\\":\\\"docker_dashboard\\\",\\\"UserData\\\":\\\"\\\"}\"\n ],\n \"InstanceAdvancedSettingsOverrides\": [\n {\n \"DataDisks\": [],\n \"MountTarget\": \"\",\n \"DockerGraphPath\": \"/var/lib/containerd\",\n \"Unschedulable\": 0,\n \"PreStartUserScript\": \"\",\n \"UserScript\": \"\",\n \"DesiredPodNumber\": 0,\n \"Labels\": [],\n \"Taints\": [],\n \"ExtraArgs\": {\n \"Kubelet\": []\n },\n \"GPUArgs\": {\n \"MIGEnable\": false,\n \"Driver\": {\n \"Version\": \"\",\n \"Name\": \"\"\n },\n \"CUDA\": {\n \"Version\": \"\",\n \"Name\": \"\"\n },\n \"CUDNN\": {\n \"Version\": \"\",\n \"Name\": \"\",\n \"DocName\": \"\",\n \"DevName\": \"\"\n }\n }\n }\n ]\n }\n ],\n \"InstanceDataDiskMountSettings\": []\n}",
|
87
87
|
"output": "{\n \"Response\": {\n \"ClusterId\": \"cls-7ph3twqe\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
88
88
|
"title": "创建托管集群示例"
|
89
89
|
},
|
@@ -119,7 +119,7 @@
|
|
119
119
|
},
|
120
120
|
{
|
121
121
|
"document": "添加带有多个数据盘的节点到集群\n注意1: InstanceAdvancedSettings设置DataDisks, 多盘数据盘挂载信息,后端会根据盘的类型、大小匹配数据盘ID,将对应的路径挂载\n注意2: RunInstancePara设置DataDisks, 此参数透传给CVM,购买多块数据盘\n注意3: InstanceAdvancedSettings的MountTarget早期是支持单盘的,多盘场景废弃,无需填写",
|
122
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterInstances\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
122
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterInstances\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-nfjdk3n0\",\n \"InstanceAdvancedSettings\": {\n \"DesiredPodNumber\": 120,\n \"Taints\": null,\n \"DataDisks\": [\n {\n \"AutoFormatAndMount\": true,\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_BSSD\",\n \"FileSystem\": \"ext4\",\n \"MountTarget\": \"/run\",\n \"DiskPartition\": \"/dev/vda\"\n },\n {\n \"AutoFormatAndMount\": true,\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_BSSD\",\n \"FileSystem\": \"ext4\",\n \"MountTarget\": \"/var/lib/data2\",\n \"DiskPartition\": \"/dev/vda\"\n }\n ],\n \"DockerGraphPath\": \"\",\n \"GPUArgs\": {\n \"CUDA\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CUDNN\": {\n \"DevName\": \"\",\n \"DocName\": \"\",\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"Driver\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"MIGEnable\": false\n },\n \"PreStartUserScript\": \"\",\n \"Unschedulable\": 0,\n \"UserScript\": \"\"\n },\n \"RunInstancePara\": \"{\\\"InstanceChargeType\\\":\\\"POSTPAID_BY_HOUR\\\",\\\"Placement\\\":{\\\"Zone\\\":\\\"ap-beijing-1\\\",\\\"ProjectId\\\":0},\\\"InstanceType\\\":\\\"S5.LARGE8\\\",\\\"SystemDisk\\\":{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50},\\\"DataDisks\\\":[{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50},{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50}],\\\"VirtualPrivateCloud\\\":{\\\"VpcId\\\":\\\"vpc-fcccepnm\\\",\\\"SubnetId\\\":\\\"subnet-f6c7fr8d\\\",\\\"AsVpcGateway\\\":false,\\\"Ipv6AddressCount\\\":0},\\\"InternetAccessible\\\":{\\\"InternetChargeType\\\":\\\"TRAFFIC_POSTPAID_BY_HOUR\\\",\\\"InternetMaxBandwidthOut\\\":0,\\\"PublicIpAssigned\\\":false},\\\"InstanceCount\\\":1,\\\"ImageId\\\":\\\"img-fqais24x\\\",\\\"HostName\\\":\\\"tke\\\",\\\"InstanceName\\\":\\\"tke\\\",\\\"LoginSettings\\\":{\\\"KeyIds\\\":[\\\"skey-f6c7fr8d\\\"]},\\\"SecurityGroupIds\\\":[\\\"sg-f6c7fr8d\\\"],\\\"EnhancedService\\\":{\\\"SecurityService\\\":{\\\"Enabled\\\":true},\\\"MonitorService\\\":{\\\"Enabled\\\":true}}}\"\n}",
|
123
123
|
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-e55paxnt\"\n ],\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
124
124
|
"title": "添加集群节点(多块数据盘)"
|
125
125
|
}
|
@@ -127,8 +127,8 @@
|
|
127
127
|
"CreateClusterNodePool": [
|
128
128
|
{
|
129
129
|
"document": "",
|
130
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterNodePool\n<公共请求参数>\n\n{\n \"AutoScalingGroupPara\": \"{\\\"AutoScalingGroupName\\\":\\\"\\\",\\\"MaxSize\\\":20,\\\"MinSize\\\":0,\\\"DesiredCapacity\\\":2,\\\"VpcId\\\":\\\"vpc-2ln96dly\\\",\\\"SubnetIds\\\":[\\\"subnet-40bgrdix\\\"],\\\"MultiZoneSubnetPolicy\\\":\\\"PRIORITY\\\",\\\"RetryPolicy\\\":\\\"IMMEDIATE_RETRY\\\",\\\"ServiceSettings\\\":{\\\"ScalingMode\\\":\\\"CLASSIC_SCALING\\\"}}\",\n \"ClusterId\": \"cls-
|
131
|
-
"output": "{\n \"Response\": {\n \"NodePoolId\": \"np-
|
130
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterNodePool\n<公共请求参数>\n\n{\n \"AutoScalingGroupPara\": \"{\\\"AutoScalingGroupName\\\":\\\"\\\",\\\"MaxSize\\\":20,\\\"MinSize\\\":0,\\\"DesiredCapacity\\\":2,\\\"VpcId\\\":\\\"vpc-2ln96dly\\\",\\\"SubnetIds\\\":[\\\"subnet-40bgrdix\\\"],\\\"MultiZoneSubnetPolicy\\\":\\\"PRIORITY\\\",\\\"RetryPolicy\\\":\\\"IMMEDIATE_RETRY\\\",\\\"ServiceSettings\\\":{\\\"ScalingMode\\\":\\\"CLASSIC_SCALING\\\"}}\",\n \"ClusterId\": \"cls-e55paxnt\",\n \"ContainerRuntime\": \"docker\",\n \"DeletionProtection\": true,\n \"EnableAutoscale\": true,\n \"InstanceAdvancedSettings\": {\n \"DataDisks\": [\n {\n \"AutoFormatAndMount\": true,\n \"DiskSize\": 500,\n \"DiskPartition\": \"\",\n \"DiskType\": \"CLOUD_BSSD\",\n \"FileSystem\": \"xfs\",\n \"MountTarget\": \"/var/lib/docker\"\n }\n ],\n \"Taints\": [\n {\n \"Value\": \"value\",\n \"Key\": \"key\",\n \"Effect\": \"NoExecute\"\n }\n ],\n \"DockerGraphPath\": \"/var/lib/docker\",\n \"DesiredPodNumber\": 0,\n \"PreStartUserScript\": \"aGVsbG8gd29ybGQK\",\n \"GPUArgs\": {\n \"CUDA\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CUDNN\": {\n \"DevName\": \"\",\n \"DocName\": \"\",\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"Driver\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"MIGEnable\": false\n },\n \"Unschedulable\": 0,\n \"UserScript\": \"Y3VybCAtcyxcmVzb2x2LmNvbmY=\"\n },\n \"Taints\": [\n {\n \"Value\": \"value\",\n \"Key\": \"key\",\n \"Effect\": \"NoExecute\"\n }\n ],\n \"Labels\": [\n {\n \"Name\": \"node-pool\",\n \"Value\": \"tencent\"\n }\n ],\n \"Annotations\": [\n {\n \"Name\": \"tke.cloud.tencent.com/test\",\n \"Value\": \"true\"\n }\n ],\n \"LaunchConfigurePara\": \"{\\\"LaunchConfigurationName\\\":\\\"\\\",\\\"InstanceType\\\":\\\"S6.8XLARGE64\\\",\\\"SystemDisk\\\":{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50},\\\"DataDisks\\\":[{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":500}],\\\"InternetAccessible\\\":{\\\"InternetChargeType\\\":\\\"TRAFFIC_POSTPAID_BY_HOUR\\\",\\\"InternetMaxBandwidthOut\\\":0,\\\"PublicIpAssigned\\\":false},\\\"LoginSettings\\\":{\\\"KeyIds\\\":[\\\"skey-e55paxnt\\\"]},\\\"SecurityGroupIds\\\":[\\\"sg-e55paxnt\\\"],\\\"EnhancedService\\\":{\\\"SecurityService\\\":{\\\"Enabled\\\":true},\\\"MonitorService\\\":{\\\"Enabled\\\":true}},\\\"HostNameSettings\\\":{\\\"HostName\\\":\\\"foundation-node\\\",\\\"HostNameStyle\\\":\\\"UNIQUE\\\"},\\\"InstanceNameSettings\\\":{\\\"InstanceName\\\":\\\"node\\\",\\\"InstanceNameStyle\\\":\\\"UNIQUE\\\"},\\\"InstanceChargeType\\\":\\\"PREPAID\\\",\\\"InstanceChargePrepaid\\\":{\\\"Period\\\":1,\\\"RenewFlag\\\":\\\"NOTIFY_AND_AUTO_RENEW\\\"}}\",\n \"Name\": \"node-pool\",\n \"NodePoolOs\": \"centos7.6.0_x64\",\n \"OsCustomizeType\": \"GENERAL\",\n \"RuntimeVersion\": \"19.3\"\n}",
|
131
|
+
"output": "{\n \"Response\": {\n \"NodePoolId\": \"np-e55paxnt\",\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
132
132
|
"title": "创建节点池"
|
133
133
|
}
|
134
134
|
],
|
@@ -183,15 +183,15 @@
|
|
183
183
|
"CreateEKSCluster": [
|
184
184
|
{
|
185
185
|
"document": "创建托管集群",
|
186
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEKSCluster\n<公共请求参数>\n\n{\n \"ServiceSubnetId\": \"subnet-
|
187
|
-
"output": "{\n \"Response\": {\n \"ClusterId\": \"cls-
|
186
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEKSCluster\n<公共请求参数>\n\n{\n \"ServiceSubnetId\": \"subnet-j0hy001q\",\n \"VpcId\": \"vpc-j0hy001q\",\n \"K8SVersion\": \"1.12.4\",\n \"ClusterName\": \"tke\",\n \"SubnetIds\": [\n \"subnet-j0hy001q\"\n ],\n \"DnsServers\": [\n {\n \"Domain\": \"exam.com\",\n \"DnsServers\": [\n \"10.2.2.88:53\"\n ]\n }\n ],\n \"ClusterDesc\": \"tke cluster\"\n}",
|
187
|
+
"output": "{\n \"Response\": {\n \"ClusterId\": \"cls-j0hy001q\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
188
188
|
"title": "创建弹性集群示例"
|
189
189
|
}
|
190
190
|
],
|
191
191
|
"CreateEKSContainerInstances": [
|
192
192
|
{
|
193
193
|
"document": "创建容器实例",
|
194
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEKSContainerInstances\n<公共请求参数>\n\n{\n \"AutoCreateEipAttribute\": {\n \"InternetMaxBandwidthOut\": 1,\n \"DeletePolicy\": \"Immediate\",\n \"InternetServiceProvider\": \"BGP\"\n },\n \"CamRoleName\": \"TkeRole\",\n \"VpcId\": \"vpc-
|
194
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEKSContainerInstances\n<公共请求参数>\n\n{\n \"AutoCreateEipAttribute\": {\n \"InternetMaxBandwidthOut\": 1,\n \"DeletePolicy\": \"Immediate\",\n \"InternetServiceProvider\": \"BGP\"\n },\n \"CamRoleName\": \"TkeRole\",\n \"VpcId\": \"vpc-1cghduvc\",\n \"DnsConfig\": {\n \"Nameservers\": [\n \"server\"\n ],\n \"Searches\": [\n \"\"\n ],\n \"Options\": [\n {\n \"Name\": \"\",\n \"Value\": \"\"\n }\n ]\n },\n \"Replicas\": 1,\n \"ImageRegistryCredentials\": [\n {\n \"Username\": \"devops\",\n \"Password\": \"\",\n \"Name\": \"ta-habor-registry-0\",\n \"Server\": \"docker-ta.thinkingdata.cn\"\n }\n ],\n \"EksCiVolume\": {\n \"CbsVolumes\": [\n {\n \"CbsDiskId\": \"disk-45b3agyu\",\n \"Name\": \"disk-45b3agyu\"\n }\n ],\n \"NfsVolumes\": [\n {\n \"Path\": \"/5g326fcf/localfolder\",\n \"ReadOnly\": true,\n \"Name\": \"vol\",\n \"Server\": \"9.19.101.170\"\n }\n ]\n },\n \"GpuCount\": 1,\n \"ExistedEipIds\": [\n \"eip-1cghduvc\"\n ],\n \"AutoCreateEip\": true,\n \"RestartPolicy\": \"Always\",\n \"Cpu\": 1.0,\n \"Memory\": 2.0,\n \"SubnetId\": \"subnet-1cghduvc\",\n \"CpuType\": \"amd,intel\",\n \"SecurityGroupIds\": [\n \"sg-1cghduvc\"\n ],\n \"Containers\": [\n {\n \"Commands\": [\n \"sleep\"\n ],\n \"Name\": \"nginx\",\n \"GpuLimit\": 1,\n \"WorkingDir\": \"/var\",\n \"Image\": \"nginx:latest\",\n \"Args\": [\n \"10000\"\n ],\n \"VolumeMounts\": [\n {\n \"MountPropagation\": \"\",\n \"ReadOnly\": true,\n \"MountPath\": \"/images/mnt\",\n \"SubPath\": \"/images/mnt\",\n \"Name\": \"disk-45b3agyi\"\n }\n ],\n \"RestartCount\": 1,\n \"EnvironmentVars\": [\n {\n \"Name\": \"EKS_LOGS_OUTPUT_TYPE\",\n \"Value\": \"cls\"\n }\n ],\n \"Memory\": 0.0,\n \"Cpu\": 0.0\n }\n ],\n \"EksCiName\": \"for-imc-je2ytppo\"\n}",
|
195
195
|
"output": "{\n \"Response\": {\n \"RequestId\": \"51d9ea5a-6e9e-4384-88da-84229e212220\",\n \"EksCiIds\": [\n \"eksci-bd80pz8s\"\n ]\n }\n}",
|
196
196
|
"title": "创建容器实例"
|
197
197
|
}
|
@@ -559,17 +559,17 @@
|
|
559
559
|
}
|
560
560
|
],
|
561
561
|
"DeleteReservedInstances": [
|
562
|
-
{
|
563
|
-
"document": "同时会退还预留券相应的费用。",
|
564
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteReservedInstances\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-epmr2bww\"\n ]\n}",
|
565
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"9d996a6f-5b4a-4e18-8fd1-cb258b2ce21f\"\n }\n}",
|
566
|
-
"title": "退还预留券实例"
|
567
|
-
},
|
568
562
|
{
|
569
563
|
"document": "返回NotFound",
|
570
564
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteReservedInstances\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"not-found\"\n ]\n}",
|
571
565
|
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"ResourceNotFound.NotFound\",\n \"Message\": \"resources:[]string{\\\"not-found\\\"} not found\"\n },\n \"RequestId\": \"e15cab8e-926a-4119-a4e5-208868d6821a\"\n }\n}",
|
572
566
|
"title": "退还一个不存在的资源"
|
567
|
+
},
|
568
|
+
{
|
569
|
+
"document": "同时会退还预留券相应的费用。",
|
570
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteReservedInstances\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-epmr2bww\"\n ]\n}",
|
571
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"9d996a6f-5b4a-4e18-8fd1-cb258b2ce21f\"\n }\n}",
|
572
|
+
"title": "退还预留券实例"
|
573
573
|
}
|
574
574
|
],
|
575
575
|
"DeleteTKEEdgeCluster": [
|
@@ -872,7 +872,7 @@
|
|
872
872
|
{
|
873
873
|
"document": "",
|
874
874
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEKSContainerInstanceEvent\n<公共请求参数>\n\n{\n \"EksCiId\": \"eksci-iu09upos\"\n}",
|
875
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"51d9ea5a-6e9e-4384-88da-
|
875
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"51d9ea5a-6e9e-4384-88da-84229e133146\",\n \"EksCiId\": \"eksci-iu09upos\",\n \"Events\": [\n {\n \"PodName\": \"eksci-iu09upos\",\n \"Reason\": \"Started\",\n \"Type\": \"Normal\",\n \"Count\": 1,\n \"FirstTimestamp\": \"2021-06-24 03:32:43.424977053 +0000 UTC\",\n \"LastTimestamp\": \"2021-06-24 03:32:43.424977053 +0000 UTC\",\n \"Message\": \"Started container simple-cputest\"\n },\n {\n \"PodName\": \"eksci-iu09upos\",\n \"Reason\": \"Created\",\n \"Type\": \"Normal\",\n \"Count\": 1,\n \"FirstTimestamp\": \"2021-06-24 03:32:43.362703322 +0000 UTC\",\n \"LastTimestamp\": \"2021-06-24 03:32:43.362703322 +0000 UTC\",\n \"Message\": \"Created container simple-cputest\"\n },\n {\n \"PodName\": \"eksci-iu09upos\",\n \"Reason\": \"Pulled\",\n \"Type\": \"Normal\",\n \"Count\": 1,\n \"FirstTimestamp\": \"2021-06-24 03:32:40.841296385 +0000 UTC\",\n \"LastTimestamp\": \"2021-06-24 03:32:40.841296385 +0000 UTC\",\n \"Message\": \"Successfully pulled image \\\"ccr.ccs.tencentyun.com/ploto/cputest:1.4\\\" in 11.508506091s\"\n },\n {\n \"PodName\": \"eksci-iu09upos\",\n \"Reason\": \"Pulling\",\n \"Type\": \"Normal\",\n \"Count\": 1,\n \"FirstTimestamp\": \"2021-06-24 03:32:29.332774654 +0000 UTC\",\n \"LastTimestamp\": \"2021-06-24 03:32:29.332774654 +0000 UTC\",\n \"Message\": \"Pulling image \\\"ccr.ccs.tencentyun.com/ploto/cputest:1.4\\\"\"\n },\n {\n \"PodName\": \"eksci-iu09upos\",\n \"Reason\": \"NodeAllocatableEnforced\",\n \"Type\": \"Normal\",\n \"Count\": 1,\n \"FirstTimestamp\": \"2021-06-24 03:32:28.751352741 +0000 UTC\",\n \"LastTimestamp\": \"2021-06-24 03:32:28.751352741 +0000 UTC\",\n \"Message\": \"Updated Node Allocatable limit across pods\"\n }\n ]\n }\n}",
|
876
876
|
"title": "查询容器实例的事件"
|
877
877
|
}
|
878
878
|
],
|
@@ -888,7 +888,7 @@
|
|
888
888
|
{
|
889
889
|
"document": "",
|
890
890
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEKSContainerInstances\n<公共请求参数>\n\n{\n \"EksCiIds\": [\n \"eksci-6mr3o7eu\"\n ]\n}",
|
891
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"34d9ea5a-6e9e-4384-88da-84229e133412\",\n \"TotalCount\": 1,\n \"EksCis\": [\n {\n \"EksCiId\": \"eksci-iu09upos\",\n \"EksCiName\": \"未命名\",\n \"Memory\": 2,\n \"Cpu\": 1,\n \"SecurityGroupIds\": [\n \"sg-
|
891
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"34d9ea5a-6e9e-4384-88da-84229e133412\",\n \"TotalCount\": 1,\n \"EksCis\": [\n {\n \"EksCiId\": \"eksci-iu09upos\",\n \"EksCiName\": \"未命名\",\n \"Memory\": 2,\n \"Cpu\": 1,\n \"SecurityGroupIds\": [\n \"sg-1cghduvc\"\n ],\n \"RestartPolicy\": \"Always\",\n \"VpcId\": \"vpc-1cghduvc\",\n \"SubnetId\": \"subnet-1cghduvc\",\n \"Status\": \"Running\",\n \"CreationTime\": \"2021-06-24 03:32:02 +0000 UTC\",\n \"SucceededTime\": \"2021-06-24 11:32:21 +0000 UTC\",\n \"Containers\": [\n {\n \"Image\": \"ccr.ccs.tencentyun.com/ploto/cputest:1.4\",\n \"Name\": \"simple-cputest\",\n \"Cpu\": 0,\n \"Memory\": 0,\n \"Commands\": [\n \"sleep\"\n ],\n \"Args\": [\n \"100000\"\n ],\n \"EnvironmentVars\": [],\n \"CurrentState\": {\n \"StartTime\": \"2021-06-24 03:32:43.420750215 +0000 UTC\",\n \"State\": \"running\",\n \"FinishTime\": \"0001-01-01 00:00:00 +0000 UTC\",\n \"ExitCode\": 0,\n \"Reason\": \"\",\n \"Message\": \"\",\n \"RestartCount\": 0\n },\n \"RestartCount\": 0,\n \"WorkingDir\": \"\",\n \"ReadinessProbe\": null,\n \"VolumeMounts\": null,\n \"GpuLimit\": null,\n \"LivenessProbe\": null,\n \"SecurityContext\": null\n }\n ],\n \"InitContainers\": null,\n \"EksCiVolume\": {\n \"CbsVolumes\": null,\n \"NfsVolumes\": null\n },\n \"SecurityContext\": null,\n \"PrivateIp\": \"10.1.0.1\",\n \"EipAddress\": \"\",\n \"CpuType\": \"amd,intel\",\n \"GpuType\": \"\",\n \"GpuCount\": 0,\n \"CamRoleName\": \"\",\n \"AutoCreatedEipId\": \"eni-l6gtb5p0\",\n \"PersistStatus\": false\n }\n ]\n }\n}",
|
892
892
|
"title": "查询容器实例"
|
893
893
|
}
|
894
894
|
],
|
@@ -896,7 +896,7 @@
|
|
896
896
|
{
|
897
897
|
"document": "",
|
898
898
|
"input": "https://tke.tencentcloudapi.com/?Action=DescribeEdgeAvailableExtraArgs\n&ClusterVersion=1.12.4\n&<公共请求参数>",
|
899
|
-
"output": "{\n \"Response\": {\n \"ClusterVersion\": \"
|
899
|
+
"output": "{\n \"Response\": {\n \"ClusterVersion\": \"1.12.4\",\n \"AvailableExtraArgs\": {\n \"KubeAPIServer\": [\n {\n \"Name\": \"enable-admission-plugins\",\n \"Type\": \"string\",\n \"Usage\": \"Comma-delimited list of admission plugins to enable\",\n \"Default\": \"NodeRestriction\",\n \"Constraint\": \"Must be a valid admission plugin name\"\n }\n ],\n \"KubeControllerManager\": [\n {\n \"Name\": \"node-cidr-mask-size\",\n \"Type\": \"int\",\n \"Usage\": \"Mask size for node CIDR in IPv4 or IPv6 networks\",\n \"Default\": \"24\",\n \"Constraint\": \"Must be a valid CIDR mask size\"\n }\n ],\n \"KubeScheduler\": [\n {\n \"Name\": \"scheduler-name\",\n \"Type\": \"string\",\n \"Usage\": \"Name of the scheduler to use\",\n \"Default\": \"default-scheduler\",\n \"Constraint\": \"Must be a valid scheduler name\"\n }\n ],\n \"Kubelet\": [\n {\n \"Name\": \"max-pods\",\n \"Type\": \"int\",\n \"Usage\": \"Maximum number of pods per node\",\n \"Default\": \"110\",\n \"Constraint\": \"Must be a positive integer\"\n }\n ]\n },\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
900
900
|
"title": "查询集群可用的自定义参数"
|
901
901
|
}
|
902
902
|
],
|
@@ -943,7 +943,7 @@
|
|
943
943
|
"DescribeEksContainerInstanceLog": [
|
944
944
|
{
|
945
945
|
"document": "查询容器实例中容器日志",
|
946
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEksContainerInstanceLog\n<公共请求参数>\n\n{\n \"EksCiId\": \"eksci-
|
946
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEksContainerInstanceLog\n<公共请求参数>\n\n{\n \"EksCiId\": \"eksci-1cghduvc\",\n \"Tail\": 500,\n \"Previous\": false,\n \"ContainerName\": \"simple-cputest\"\n}",
|
947
947
|
"output": "{\n \"Response\": {\n \"ContainerName\": \"simple-cputest\",\n \"LogContent\": \"hello world\",\n \"RequestId\": \"5f792091-66a7-40fc-8043-4d8b9537faiu\"\n }\n}",
|
948
948
|
"title": "查询容器实例中容器日志"
|
949
949
|
}
|
@@ -992,7 +992,7 @@
|
|
992
992
|
{
|
993
993
|
"document": "",
|
994
994
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeImageCaches\n<公共请求参数>\n\n{\n \"ImageCacheIds\": [\n \"imc-xxx\"\n ],\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
995
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"6704dc99-e331-4055-8af9-
|
995
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6704dc99-e331-4055-8af9-1cghduvc\",\n \"TotalCount\": 1,\n \"ImageCaches\": [\n {\n \"ImageCacheId\": \"imc-xxx\",\n \"ImageCacheName\": \"imc-nginx\",\n \"ImageCacheSize\": 20,\n \"Status\": \"Ready\",\n \"Images\": [\n \"nginx\"\n ],\n \"CreationTime\": \"2021-12-06 22:52:24\",\n \"ExpireDateTime\": \"\",\n \"Events\": [\n {\n \"ImageCacheId\": \"imc-xxx\",\n \"Reason\": \"SnapCreated\",\n \"Type\": \"Normal\",\n \"FirstTimestamp\": \"2021-12-06 15:10:43\",\n \"LastTimestamp\": \"2021-12-06 15:10:43\",\n \"Message\": \"Snap snap-xxx created\"\n },\n {\n \"ImageCacheId\": \"imc-xxx\",\n \"Reason\": \"DiskCreated\",\n \"Type\": \"Normal\",\n \"FirstTimestamp\": \"2021-12-06 15:03:24\",\n \"LastTimestamp\": \"2021-12-06 15:03:24\",\n \"Message\": \"Disk disk-xxx created\"\n },\n {\n \"ImageCacheId\": \"imc-xxx\",\n \"Reason\": \"EksciCreated\",\n \"Type\": \"Normal\",\n \"FirstTimestamp\": \"2021-12-06 15:03:24\",\n \"LastTimestamp\": \"2021-12-06 15:03:24\",\n \"Message\": \"Eksci eksci-xxx created\"\n }\n ],\n \"LastMatchedTime\": \"2021-12-07 21:30:15\",\n \"SnapshotId\": \"snap-xxx\"\n }\n ]\n }\n}",
|
996
996
|
"title": "查询镜像缓存信息"
|
997
997
|
}
|
998
998
|
],
|
@@ -1372,7 +1372,7 @@
|
|
1372
1372
|
{
|
1373
1373
|
"document": "查询集群列表,用于获取集群列表",
|
1374
1374
|
"input": "https://tke.tencentcloudapi.com/?Action=DescribeTKEEdgeClusters\r\n&<公共请求参数>",
|
1375
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Clusters\": [\n {\n \"ClusterId\": \"
|
1375
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Clusters\": [\n {\n \"ClusterId\": \"cls-j0hy001q\",\n \"ClusterName\": \"production-cluster\",\n \"VpcId\": \"vpc-j0hy001q\",\n \"PodCIDR\": \"10.244.0.0/16\",\n \"ServiceCIDR\": \"10.96.0.0/12\",\n \"K8SVersion\": \"1.24.4\",\n \"Status\": \"Running\",\n \"ClusterDesc\": \"Primary production Kubernetes cluster\",\n \"CreatedTime\": \"2023-10-01T12:00:00Z\",\n \"EdgeClusterVersion\": \"1.24.4\",\n \"MaxNodePodNum\": 110,\n \"ClusterAdvancedSettings\": {\n \"ExtraArgs\": {\n \"KubeAPIServer\": [\n \"--enable-admission-plugins=NodeRestriction\"\n ],\n \"KubeControllerManager\": [\n \"--node-cidr-mask-size=24\"\n ],\n \"KubeScheduler\": [\n \"--scheduler-name=default-scheduler\"\n ]\n },\n \"Runtime\": \"containerd\",\n \"ProxyMode\": \"ipvs\"\n },\n \"Level\": \"L5\",\n \"AutoUpgradeClusterLevel\": true,\n \"ChargeType\": \"PostPaid\",\n \"EdgeVersion\": \"v1.24.3-edge\",\n \"TagSpecification\": {\n \"ResourceType\": \"cluster\",\n \"Tags\": [\n {\n \"Key\": \"Environment\",\n \"Value\": \"Production\"\n },\n {\n \"Key\": \"Owner\",\n \"Value\": \"DevOps\"\n }\n ]\n }\n }\n ],\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
1376
1376
|
"title": "集群信息列表"
|
1377
1377
|
}
|
1378
1378
|
],
|
@@ -1500,7 +1500,7 @@
|
|
1500
1500
|
{
|
1501
1501
|
"document": "",
|
1502
1502
|
"input": "https://tke.tencentcloudapi.com/?Action=ForwardApplicationRequestV3\n&Method=GET\n&Path=/apis/application.tkestack.io/v1/namespaces/cls-gk7cm35k/apps/\n&ClusterName=cls-gk7cm35k\n&<公共请求参数>",
|
1503
|
-
"output": "{\n \"Response\": {\n \"ResponseBody\": \"
|
1503
|
+
"output": "{\n \"Response\": {\n \"ResponseBody\": \"{\\\"kind\\\":\\\"App\\\"}\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
1504
1504
|
"title": "操作TKE集群的addon"
|
1505
1505
|
}
|
1506
1506
|
],
|
@@ -1604,7 +1604,7 @@
|
|
1604
1604
|
{
|
1605
1605
|
"document": "获取巡检结果历史",
|
1606
1606
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListClusterInspectionResultsItems\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-54n6gepo\"\n}",
|
1607
|
-
"output": "{\n \"Response\": {\n \"InspectionResultsItems\": [\n {\n \"Name\": \"
|
1607
|
+
"output": "{\n \"Response\": {\n \"InspectionResultsItems\": [\n {\n \"Name\": \"ClusterSecurity\",\n \"Statistics\": [\n {\n \"HealthyLevel\": \"risk\",\n \"Count\": 2\n },\n {\n \"HealthyLevel\": \"serious\",\n \"Count\": 1\n },\n {\n \"HealthyLevel\": \"failed\",\n \"Count\": 0\n },\n {\n \"HealthyLevel\": \"good\",\n \"Count\": 10\n }\n ]\n },\n {\n \"Name\": \"NodeHealth\",\n \"Statistics\": [\n {\n \"HealthyLevel\": \"serious\",\n \"Count\": 1\n },\n {\n \"HealthyLevel\": \"failed\",\n \"Count\": 0\n },\n {\n \"HealthyLevel\": \"good\",\n \"Count\": 10\n },\n {\n \"HealthyLevel\": \"risk\",\n \"Count\": 2\n }\n ]\n }\n ],\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
1608
1608
|
"title": "获取巡检结果历史"
|
1609
1609
|
}
|
1610
1610
|
],
|
@@ -1627,8 +1627,8 @@
|
|
1627
1627
|
"ModifyClusterAttribute": [
|
1628
1628
|
{
|
1629
1629
|
"document": "修改集群属性",
|
1630
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterAttribute\n<公共请求参数>\n\n{\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n },\n \"ClusterName\": \"tke
|
1631
|
-
"output": "{\n \"Response\": {\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n },\n \"ClusterName\": \"tke
|
1630
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterAttribute\n<公共请求参数>\n\n{\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n },\n \"ClusterName\": \"tke\",\n \"ProjectId\": 0,\n \"ClusterDesc\": \"tke\",\n \"ClusterId\": \"cls-7ph3twqe\",\n \"ClusterLevel\": \"L5\",\n \"ClusterProperty\": {\n \"NodeNameType\": \"lan-ip\"\n }\n}",
|
1631
|
+
"output": "{\n \"Response\": {\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n },\n \"ClusterName\": \"tke\",\n \"ProjectId\": 0,\n \"ClusterDesc\": \"tke\",\n \"QGPUShareEnable\": true,\n \"RequestId\": \"24564577-a642-4164-8752-4668d4ca8886\",\n \"ClusterLevel\": \"L5\",\n \"ClusterProperty\": {\n \"NodeNameType\": \"lan-ip\"\n }\n }\n}",
|
1632
1632
|
"title": "修改集群属性"
|
1633
1633
|
}
|
1634
1634
|
],
|
@@ -1675,8 +1675,8 @@
|
|
1675
1675
|
"ModifyClusterTags": [
|
1676
1676
|
{
|
1677
1677
|
"document": "修改集群标签",
|
1678
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterTags\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-0gudq56e\",\n \"Tags\": [\n {\n \"Key\": \"
|
1679
|
-
"output": "{\n \"Response\": {\n \"Tags\": [\n {\n \"Key\": \"
|
1678
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterTags\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-0gudq56e\",\n \"Tags\": [\n {\n \"Key\": \"product\",\n \"Value\": \"tke\"\n }\n ],\n \"SyncSubresource\": true\n}",
|
1679
|
+
"output": "{\n \"Response\": {\n \"Tags\": [\n {\n \"Key\": \"product\",\n \"Value\": \"tke\"\n }\n ],\n \"RequestId\": \"33483fde-efec-4d3c-8ff6-340d9dbc2d01\"\n }\n}",
|
1680
1680
|
"title": "修改集群标签"
|
1681
1681
|
}
|
1682
1682
|
],
|
@@ -1784,10 +1784,10 @@
|
|
1784
1784
|
],
|
1785
1785
|
"ModifyReservedInstanceScope": [
|
1786
1786
|
{
|
1787
|
-
"document": "
|
1788
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-
|
1789
|
-
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"
|
1790
|
-
"title": "
|
1787
|
+
"document": "Scope 输入错误示例",
|
1788
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-762dtf76\"\n ],\n \"ReservedInstanceScope\": {\n \"Scope\": \"regio\"\n }\n}",
|
1789
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Scope must be in [Region, Zone, Node]\"\n },\n \"RequestId\": \"e88f8640-0e36-4154-a3bf-907b01aa62f0\"\n }\n}",
|
1790
|
+
"title": "Scope 输入错误示例"
|
1791
1791
|
},
|
1792
1792
|
{
|
1793
1793
|
"document": "设置预留券抵扣范围为地域",
|
@@ -1796,10 +1796,10 @@
|
|
1796
1796
|
"title": "抵扣范围为地域"
|
1797
1797
|
},
|
1798
1798
|
{
|
1799
|
-
"document": "
|
1800
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-762dtf76\"\n ],\n \"ReservedInstanceScope\": {\n \"Scope\": \"
|
1801
|
-
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"
|
1802
|
-
"title": "
|
1799
|
+
"document": "抵扣范围为可用区时,Zone 必传,如:ap-guangzhou-2",
|
1800
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-762dtf76\"\n ],\n \"ReservedInstanceScope\": {\n \"Scope\": \"Zone\"\n }\n}",
|
1801
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Zone invalid\"\n },\n \"RequestId\": \"e949558d-f637-4223-8305-047cb2d5bf06\"\n }\n}",
|
1802
|
+
"title": "设置抵扣范围为可用区"
|
1803
1803
|
},
|
1804
1804
|
{
|
1805
1805
|
"document": "设置抵扣范围为节点",
|
@@ -1808,10 +1808,10 @@
|
|
1808
1808
|
"title": "设置抵扣范围为节点"
|
1809
1809
|
},
|
1810
1810
|
{
|
1811
|
-
"document": "
|
1812
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-
|
1813
|
-
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"
|
1814
|
-
"title": "
|
1811
|
+
"document": "输入的资源 ID不存在",
|
1812
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-762dtf7\"\n ],\n \"ReservedInstanceScope\": {\n \"Scope\": \"region\"\n }\n}",
|
1813
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"ResourceNotFound.NotFound\",\n \"Message\": \"ReservedInstanceIds:[]string{\\\"eksri-762dtf7\\\"} not found\"\n },\n \"RequestId\": \"134fa43d-83a5-4b8d-8ea9-293a96515b68\"\n }\n}",
|
1814
|
+
"title": "资源 ID 不存在"
|
1815
1815
|
}
|
1816
1816
|
],
|
1817
1817
|
"RemoveNodeFromNodePool": [
|
@@ -1965,7 +1965,7 @@
|
|
1965
1965
|
"UpdateEKSContainerInstance": [
|
1966
1966
|
{
|
1967
1967
|
"document": "",
|
1968
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateEKSContainerInstance\n<公共请求参数>\n\n{\n \"Name\": \"helloworld\",\n \"RestartPolicy\": \"Always\",\n \"EksCiId\": \"eksci-
|
1968
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateEKSContainerInstance\n<公共请求参数>\n\n{\n \"Name\": \"helloworld\",\n \"RestartPolicy\": \"Always\",\n \"EksCiId\": \"eksci-1cghduvc\"\n}",
|
1969
1969
|
"output": "{\n \"Response\": {\n \"RequestId\": \"51d9ea5a-6e9e-4384-88da-84229e133246\",\n \"EksCiId\": \"eksci-rkkrzy4o\"\n }\n}",
|
1970
1970
|
"title": "更新容器实例"
|
1971
1971
|
}
|
@@ -1998,7 +1998,7 @@
|
|
1998
1998
|
{
|
1999
1999
|
"document": "给集群的一批work节点进行升级 ",
|
2000
2000
|
"input": "https://tke.tencentcloudapi.com/?Action=UpgradeClusterInstances\n&ClusterId=cls-xxxxxx\n&UpgradeType=reset\n&Operation=create\n&InstanceIds.0=ins-xxx\n&<公共请求参数>",
|
2001
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
2001
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"b37ab7ed-3c35-475e-b287-81d1666cb0de\"\n }\n}",
|
2002
2002
|
"title": "集群节点升级"
|
2003
2003
|
}
|
2004
2004
|
],
|
@@ -179,7 +179,7 @@
|
|
179
179
|
{
|
180
180
|
"disabled": false,
|
181
181
|
"document": "正在加入中的节点数量",
|
182
|
-
"example": "
|
182
|
+
"example": "1",
|
183
183
|
"member": "int64",
|
184
184
|
"name": "Joining",
|
185
185
|
"output_required": true,
|
@@ -189,7 +189,7 @@
|
|
189
189
|
{
|
190
190
|
"disabled": false,
|
191
191
|
"document": "初始化中的节点数量",
|
192
|
-
"example": "
|
192
|
+
"example": "1",
|
193
193
|
"member": "int64",
|
194
194
|
"name": "Initializing",
|
195
195
|
"output_required": true,
|
@@ -199,7 +199,7 @@
|
|
199
199
|
{
|
200
200
|
"disabled": false,
|
201
201
|
"document": "正常的节点数量",
|
202
|
-
"example": "
|
202
|
+
"example": "1",
|
203
203
|
"member": "int64",
|
204
204
|
"name": "Normal",
|
205
205
|
"output_required": true,
|
@@ -209,7 +209,7 @@
|
|
209
209
|
{
|
210
210
|
"disabled": false,
|
211
211
|
"document": "节点总数",
|
212
|
-
"example": "
|
212
|
+
"example": "1",
|
213
213
|
"member": "int64",
|
214
214
|
"name": "Total",
|
215
215
|
"output_required": true,
|
@@ -772,7 +772,7 @@
|
|
772
772
|
{
|
773
773
|
"disabled": false,
|
774
774
|
"document": "集群ID",
|
775
|
-
"example": "cls-
|
775
|
+
"example": "cls-4h43fuxj",
|
776
776
|
"member": "string",
|
777
777
|
"name": "ClusterId",
|
778
778
|
"required": true,
|
@@ -823,7 +823,7 @@
|
|
823
823
|
{
|
824
824
|
"disabled": false,
|
825
825
|
"document": "集群中实例总数",
|
826
|
-
"example": "
|
826
|
+
"example": "10",
|
827
827
|
"member": "uint64",
|
828
828
|
"name": "TotalCount",
|
829
829
|
"output_required": true,
|
@@ -843,7 +843,7 @@
|
|
843
843
|
{
|
844
844
|
"disabled": false,
|
845
845
|
"document": "错误信息集合\n注意:此字段可能返回 null,表示取不到有效值。",
|
846
|
-
"example": "
|
846
|
+
"example": "eks not support",
|
847
847
|
"member": "string",
|
848
848
|
"name": "Errors",
|
849
849
|
"output_required": true,
|
@@ -1256,7 +1256,7 @@
|
|
1256
1256
|
{
|
1257
1257
|
"disabled": false,
|
1258
1258
|
"document": "属性值, 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。",
|
1259
|
-
"example": "
|
1259
|
+
"example": "cls-l6gtb5p0",
|
1260
1260
|
"member": "string",
|
1261
1261
|
"name": "Values",
|
1262
1262
|
"required": true,
|
@@ -1419,7 +1419,7 @@
|
|
1419
1419
|
{
|
1420
1420
|
"disabled": false,
|
1421
1421
|
"document": "关联节点池数组",
|
1422
|
-
"example": "
|
1422
|
+
"example": "[\"np-l6gtb5p0\"]",
|
1423
1423
|
"member": "string",
|
1424
1424
|
"name": "NodePools",
|
1425
1425
|
"output_required": true,
|
@@ -1799,7 +1799,7 @@
|
|
1799
1799
|
{
|
1800
1800
|
"disabled": false,
|
1801
1801
|
"document": "kubelet自定义参数,参数格式为[\"k1=v1\", \"k1=v2\"], 例如[\"root-dir=/var/lib/kubelet\",\"feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true\"]\n注意:此字段可能返回 null,表示取不到有效值。",
|
1802
|
-
"example": "
|
1802
|
+
"example": "[\"--max-pods=110\"]",
|
1803
1803
|
"member": "string",
|
1804
1804
|
"name": "Kubelet",
|
1805
1805
|
"output_required": true,
|
@@ -1922,7 +1922,7 @@
|
|
1922
1922
|
{
|
1923
1923
|
"disabled": false,
|
1924
1924
|
"document": "节点初始化前自定义脚本\n注意:此字段可能返回 null,表示取不到有效值。",
|
1925
|
-
"example": "
|
1925
|
+
"example": "aGVsbG8gd29ybGQK",
|
1926
1926
|
"member": "string",
|
1927
1927
|
"name": "PreInit",
|
1928
1928
|
"output_required": true,
|
@@ -1933,7 +1933,7 @@
|
|
1933
1933
|
{
|
1934
1934
|
"disabled": false,
|
1935
1935
|
"document": "节点初始化后自定义脚本\n注意:此字段可能返回 null,表示取不到有效值。",
|
1936
|
-
"example": "
|
1936
|
+
"example": "aGVsbG8gd29ybGQK",
|
1937
1937
|
"member": "string",
|
1938
1938
|
"name": "PostInit",
|
1939
1939
|
"output_required": true,
|
@@ -2584,7 +2584,7 @@
|
|
2584
2584
|
{
|
2585
2585
|
"disabled": false,
|
2586
2586
|
"document": "密钥 ID 列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
2587
|
-
"example": "
|
2587
|
+
"example": "[\"key-l6gtb5p0\"]",
|
2588
2588
|
"member": "string",
|
2589
2589
|
"name": "KeyIds",
|
2590
2590
|
"output_required": true,
|
@@ -2664,7 +2664,7 @@
|
|
2664
2664
|
{
|
2665
2665
|
"disabled": false,
|
2666
2666
|
"document": "机型列表",
|
2667
|
-
"example": "
|
2667
|
+
"example": "S2.4XLARGE48",
|
2668
2668
|
"member": "string",
|
2669
2669
|
"name": "InstanceTypes",
|
2670
2670
|
"output_required": true,
|
@@ -3635,7 +3635,7 @@
|
|
3635
3635
|
{
|
3636
3636
|
"disabled": false,
|
3637
3637
|
"document": "机型列表",
|
3638
|
-
"example": "
|
3638
|
+
"example": "S2.4XLARGE48",
|
3639
3639
|
"member": "string",
|
3640
3640
|
"name": "InstanceTypes",
|
3641
3641
|
"required": false,
|
@@ -3662,7 +3662,7 @@
|
|
3662
3662
|
{
|
3663
3663
|
"disabled": false,
|
3664
3664
|
"document": "ssh公钥id数组",
|
3665
|
-
"example": "[\"sky-
|
3665
|
+
"example": "[\"sky-l6gtb5p0\",\"sky-l6gtb5p1\"]",
|
3666
3666
|
"member": "string",
|
3667
3667
|
"name": "KeyIds",
|
3668
3668
|
"required": false,
|
@@ -36,7 +36,7 @@
|
|
36
36
|
{
|
37
37
|
"document": "查询集群实例信息",
|
38
38
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterInstances\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-7ph3twqe\"\n}",
|
39
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 4,\n \"InstanceSet\": [\n {\n \"CreatedTime\": \"2023-08-17 13:17:57 +0000 UTC\",\n \"External\": {\n \"CPU\": 2,\n \"K8SVersion\": \"v1.26.1-tke.1\",\n \"Memory\": 1,\n \"Name\": \"node-10.0.6.x\"\n },\n \"FailedReason\": \"\",\n \"InstanceId\": \"node-10.0.6.x\",\n \"InstanceRole\": \"WORKER\",\n \"InstanceState\": \"running\",\n \"LanIP\": \"10.0.6.x\",\n \"Native\": null,\n \"NodePoolId\": \"np-
|
39
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 4,\n \"InstanceSet\": [\n {\n \"CreatedTime\": \"2023-08-17 13:17:57 +0000 UTC\",\n \"External\": {\n \"CPU\": 2,\n \"K8SVersion\": \"v1.26.1-tke.1\",\n \"Memory\": 1,\n \"Name\": \"node-10.0.6.x\"\n },\n \"FailedReason\": \"\",\n \"InstanceId\": \"node-10.0.6.x\",\n \"InstanceRole\": \"WORKER\",\n \"InstanceState\": \"running\",\n \"LanIP\": \"10.0.6.x\",\n \"Native\": null,\n \"NodePoolId\": \"np-4h43fuxj\",\n \"NodeType\": \"External\",\n \"Regular\": null,\n \"Super\": null,\n \"Unschedulable\": false\n },\n {\n \"CreatedTime\": \"2023-08-17 20:47:35 +0800 CST\",\n \"External\": null,\n \"FailedReason\": null,\n \"InstanceId\": \"eklet-subnet-4h43fuxjx-yyyy\",\n \"InstanceRole\": \"WORKER\",\n \"InstanceState\": \"running\",\n \"LanIP\": \"a.b.c.d\",\n \"Native\": null,\n \"NodePoolId\": \"np-yyyyy\",\n \"NodeType\": \"Super\",\n \"Regular\": null,\n \"Super\": {\n \"ActiveAt\": null,\n \"AutoRenewFlag\": null,\n \"CPU\": null,\n \"ExpireAt\": null,\n \"InstanceAttribute\": null,\n \"MaxCPUScheduledPod\": null,\n \"Memory\": null,\n \"Name\": \"\",\n \"ResourceType\": null,\n \"SubnetId\": \"subnet-4h43fuxj\",\n \"UsedCPU\": null,\n \"UsedMemory\": null,\n \"VpcId\": null,\n \"Zone\": null\n },\n \"Unschedulable\": false\n },\n {\n \"CreatedTime\": \"2023-08-17 12:46:40 +0000 UTC\",\n \"External\": null,\n \"FailedReason\": \"=\",\n \"InstanceId\": \"np-4h43fuxj-4h43fuxj\",\n \"InstanceRole\": \"WORKER\",\n \"InstanceState\": \"running\",\n \"LanIP\": \"10.0.0.x\",\n \"Native\": {\n \"CPU\": 2,\n \"CreatedAt\": \"2023-08-17 20:46:39\",\n \"DisplayName\": \"tke-np-4h43fuxj-worker\",\n \"ExpiredTime\": \"\",\n \"GPU\": 0,\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"InstanceFamily\": \"S2\",\n \"InstanceType\": \"S2.MEDIUM2\",\n \"InternetAccessible\": {\n \"BandwidthPackageId\": \"\",\n \"ChargeType\": \"\",\n \"MaxBandwidthOut\": 0\n },\n \"IsProtectedFromScaleIn\": false,\n \"LanIp\": \"10.0.0.x\",\n \"LoginStatus\": \"Opened\",\n \"MachineName\": \"np-4h43fuxj-4h43fuxj\",\n \"MachineState\": \"Running\",\n \"Memory\": 2,\n \"OsImage\": \"TencentOS Server 3.1 (Final)\",\n \"PayMode\": \"POSTPAID_BY_HOUR\",\n \"RenewFlag\": \"\",\n \"SecurityGroupIDs\": [\n \"sg-ccccc\"\n ],\n \"SubnetId\": \"subnet-nqx1ymwm\",\n \"VpcId\": \"vpc-zzzzz\",\n \"Zone\": \"ap-guangzhou-3\"\n },\n \"NodePoolId\": \"np-4h43fuxj\",\n \"NodeType\": \"Native\",\n \"Regular\": null,\n \"Super\": null,\n \"Unschedulable\": false\n },\n {\n \"CreatedTime\": \"2023-08-17 12:35:42 +0000 UTC\",\n \"External\": null,\n \"FailedReason\": \"=Ready:True\",\n \"InstanceId\": \"ins-aaaaaa\",\n \"InstanceRole\": \"WORKER\",\n \"InstanceState\": \"running\",\n \"LanIP\": \"10.0.0.x\",\n \"Native\": null,\n \"NodePoolId\": \"\",\n \"NodeType\": \"Regular\",\n \"Regular\": {\n \"AutoscalingGroupId\": \"\",\n \"InstanceAdvancedSettings\": {\n \"DesiredPodNumber\": 64,\n \"ExtraArgs\": {\n \"Kubelet\": null\n },\n \"PreStartUserScript\": null,\n \"RuntimeConfig\": null,\n \"UserScript\": \"\"\n }\n },\n \"Super\": null,\n \"Unschedulable\": false\n }\n ],\n \"Errors\": [],\n \"RequestId\": \"42c27fd7-e2ca-48b2-9f4e-acdb9eef6ee7\"\n }\n}",
|
40
40
|
"title": "查询集群实例信息"
|
41
41
|
}
|
42
42
|
],
|
@@ -60,7 +60,7 @@
|
|
60
60
|
{
|
61
61
|
"document": "",
|
62
62
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeHealthCheckTemplate\n<公共请求参数>\n\n{}",
|
63
|
-
"output": "{\n \"Response\": {\n \"HealthCheckTemplate\": {\n \"Rules\": [\n {\n \"Name\": \"A\",\n \"Description\": \"\",\n \"RepairAction\": \"restart\",\n \"RepairEffect\": \"\",\n \"ShouldEnable\": true,\n \"ShouldRepair\": false,\n \"Severity\": \"
|
63
|
+
"output": "{\n \"Response\": {\n \"HealthCheckTemplate\": {\n \"Rules\": [\n {\n \"Name\": \"A\",\n \"Description\": \"\",\n \"RepairAction\": \"restart\",\n \"RepairEffect\": \"\",\n \"ShouldEnable\": true,\n \"ShouldRepair\": false,\n \"Severity\": \"general\"\n }\n ]\n },\n \"RequestId\": \"123\"\n }\n}",
|
64
64
|
"title": "查询原生节点池健康检测策略模板"
|
65
65
|
}
|
66
66
|
],
|