tencentcloud-sdk-nodejs-tke 4.1.136 → 4.1.138

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.
@@ -1,6 +1,6 @@
1
- import { v20180525 } from "./v20180525";
2
1
  import { v20220501 } from "./v20220501";
2
+ import { v20180525 } from "./v20180525";
3
3
  export const tke = {
4
- v20180525: v20180525,
5
4
  v20220501: v20220501,
5
+ v20180525: v20180525,
6
6
  };
@@ -18,6 +18,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
18
18
  async SetMachineLogin(req, cb) {
19
19
  return this.request("SetMachineLogin", req, cb);
20
20
  }
21
+ async StopMachines(req, cb) {
22
+ return this.request("StopMachines", req, cb);
23
+ }
21
24
  async DeleteHealthCheckPolicy(req, cb) {
22
25
  return this.request("DeleteHealthCheckPolicy", req, cb);
23
26
  }
@@ -30,8 +33,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
30
33
  async ModifyHealthCheckPolicy(req, cb) {
31
34
  return this.request("ModifyHealthCheckPolicy", req, cb);
32
35
  }
33
- async StopMachines(req, cb) {
34
- return this.request("StopMachines", req, cb);
36
+ async DescribeHealthCheckPolicyBindings(req, cb) {
37
+ return this.request("DescribeHealthCheckPolicyBindings", req, cb);
35
38
  }
36
39
  async CreateNodePool(req, cb) {
37
40
  return this.request("CreateNodePool", req, cb);
@@ -39,8 +42,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
39
42
  async DescribeHealthCheckTemplate(req, cb) {
40
43
  return this.request("DescribeHealthCheckTemplate", req, cb);
41
44
  }
42
- async DescribeHealthCheckPolicyBindings(req, cb) {
43
- return this.request("DescribeHealthCheckPolicyBindings", req, cb);
45
+ async DescribeClusters(req, cb) {
46
+ return this.request("DescribeClusters", req, cb);
44
47
  }
45
48
  async CreateHealthCheckPolicy(req, cb) {
46
49
  return this.request("CreateHealthCheckPolicy", req, cb);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tke",
3
- "version": "4.1.136",
3
+ "version": "4.1.138",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,10 +1,10 @@
1
1
  export declare const tke: {
2
- v20180525: {
3
- Client: typeof import("./v20180525/tke_client").Client;
4
- Models: typeof import("./v20180525/tke_models");
5
- };
6
2
  v20220501: {
7
3
  Client: typeof import("./v20220501/tke_client").Client;
8
4
  Models: typeof import("./v20220501/tke_models");
9
5
  };
6
+ v20180525: {
7
+ Client: typeof import("./v20180525/tke_client").Client;
8
+ Models: typeof import("./v20180525/tke_models");
9
+ };
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tke = void 0;
4
- const v20180525_1 = require("./v20180525");
5
4
  const v20220501_1 = require("./v20220501");
5
+ const v20180525_1 = require("./v20180525");
6
6
  exports.tke = {
7
- v20180525: v20180525_1.v20180525,
8
7
  v20220501: v20220501_1.v20220501,
8
+ v20180525: v20180525_1.v20180525,
9
9
  };
@@ -271,7 +271,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
271
271
  */
272
272
  CreateClusterInstances(req: CreateClusterInstancesRequest, cb?: (error: string, rep: CreateClusterInstancesResponse) => void): Promise<CreateClusterInstancesResponse>;
273
273
  /**
274
- * 修改集群属性
274
+ * 修改集群属性,至少选择一个参数更新
275
275
  */
276
276
  ModifyClusterAttribute(req: ModifyClusterAttributeRequest, cb?: (error: string, rep: ModifyClusterAttributeResponse) => void): Promise<ModifyClusterAttributeResponse>;
277
277
  /**
@@ -919,7 +919,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
919
919
  */
920
920
  CreateClusterEndpointVip(req: CreateClusterEndpointVipRequest, cb?: (error: string, rep: CreateClusterEndpointVipResponse) => void): Promise<CreateClusterEndpointVipResponse>;
921
921
  /**
922
- * 修改集群及节点池纬度运行时配置
922
+ * 修改集群及节点池维度运行时配置
923
923
  */
924
924
  ModifyClusterRuntimeConfig(req: ModifyClusterRuntimeConfigRequest, cb?: (error: string, rep: ModifyClusterRuntimeConfigResponse) => void): Promise<ModifyClusterRuntimeConfigResponse>;
925
925
  /**
@@ -425,7 +425,7 @@ class Client extends TencentCloudCommon.AbstractClient {
425
425
  return this.request("CreateClusterInstances", req, cb);
426
426
  }
427
427
  /**
428
- * 修改集群属性
428
+ * 修改集群属性,至少选择一个参数更新
429
429
  */
430
430
  async ModifyClusterAttribute(req, cb) {
431
431
  return this.request("ModifyClusterAttribute", req, cb);
@@ -1397,7 +1397,7 @@ class Client extends TencentCloudCommon.AbstractClient {
1397
1397
  return this.request("CreateClusterEndpointVip", req, cb);
1398
1398
  }
1399
1399
  /**
1400
- * 修改集群及节点池纬度运行时配置
1400
+ * 修改集群及节点池维度运行时配置
1401
1401
  */
1402
1402
  async ModifyClusterRuntimeConfig(req, cb) {
1403
1403
  return this.request("ModifyClusterRuntimeConfig", req, cb);
@@ -1097,7 +1097,7 @@ export interface ModifyClusterAttributeRequest {
1097
1097
  */
1098
1098
  ProjectId?: number;
1099
1099
  /**
1100
- * 集群名称
1100
+ * 集群名称,字符长度50
1101
1101
  */
1102
1102
  ClusterName?: string;
1103
1103
  /**
@@ -1105,7 +1105,7 @@ export interface ModifyClusterAttributeRequest {
1105
1105
  */
1106
1106
  ClusterDesc?: string;
1107
1107
  /**
1108
- * 集群等级
1108
+ * 集群等级,等级类型:L20、L50、L100、L200、L500、L1000、L3000、L5000
1109
1109
  */
1110
1110
  ClusterLevel?: string;
1111
1111
  /**
@@ -1189,7 +1189,7 @@ export interface DescribeClustersRequest {
1189
1189
  */
1190
1190
  Filters?: Array<Filter>;
1191
1191
  /**
1192
- * 集群类型,例如:MANAGED_CLUSTER
1192
+ * 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。
1193
1193
  */
1194
1194
  ClusterType?: string;
1195
1195
  }
@@ -1198,7 +1198,7 @@ export interface DescribeClustersRequest {
1198
1198
  */
1199
1199
  export interface UpgradeClusterInstancesRequest {
1200
1200
  /**
1201
- * 集群ID
1201
+ * 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
1202
1202
  */
1203
1203
  ClusterId: string;
1204
1204
  /**
@@ -1216,7 +1216,8 @@ export interface UpgradeClusterInstancesRequest {
1216
1216
  */
1217
1217
  UpgradeType?: string;
1218
1218
  /**
1219
- * 需要升级的节点列表
1219
+ * 需要升级的节点列表,可以通过控制台或 [查询待升级节点接口
1220
+ ](https://cloud.tencent.com/document/api/457/50366) 获取
1220
1221
  */
1221
1222
  InstanceIds?: Array<string>;
1222
1223
  /**
@@ -1224,7 +1225,7 @@ export interface UpgradeClusterInstancesRequest {
1224
1225
  */
1225
1226
  ResetParam?: UpgradeNodeResetParam;
1226
1227
  /**
1227
- * 是否忽略节点升级前检查
1228
+ * 是否忽略节点升级前检查,默认值 false
1228
1229
  */
1229
1230
  SkipPreCheck?: boolean;
1230
1231
  /**
@@ -1488,11 +1489,11 @@ export interface CreateBackupStorageLocationRequest {
1488
1489
  */
1489
1490
  StorageRegion: string;
1490
1491
  /**
1491
- * 对象存储桶名称,如果是COS必须是tke-backup前缀开头
1492
+ * 对象存储桶名称,如果是COS必须是tke-backup前缀开头,字符长度是19
1492
1493
  */
1493
1494
  Bucket: string;
1494
1495
  /**
1495
- * 备份仓库名称
1496
+ * 备份仓库名称,字符长度为63
1496
1497
  */
1497
1498
  Name: string;
1498
1499
  /**
@@ -1577,7 +1578,7 @@ export interface DescribeEKSClusterCredentialResponse {
1577
1578
  */
1578
1579
  export interface CheckInstancesUpgradeAbleRequest {
1579
1580
  /**
1580
- * 集群ID
1581
+ * 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
1581
1582
  */
1582
1583
  ClusterId: string;
1583
1584
  /**
@@ -1589,15 +1590,20 @@ export interface CheckInstancesUpgradeAbleRequest {
1589
1590
  */
1590
1591
  UpgradeType?: string;
1591
1592
  /**
1592
- * 分页Offset
1593
+ * 偏移量,默认为0。关于 Offset 的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
1593
1594
  */
1594
1595
  Offset?: number;
1595
1596
  /**
1596
- * 分页Limit
1597
+ * 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
1597
1598
  */
1598
1599
  Limit?: number;
1599
1600
  /**
1600
- * 过滤
1601
+ * 过滤条件列表,Name 可选值为ip、instanceId、hostname、label
1602
+
1603
+ - Name 为 ip 时,Value 为待查询节点 ip
1604
+ - Name 为 hostname 时,Value 为待查询节点名称
1605
+ - Name 为 label 时,Value 为待查询 K8S 节点 label
1606
+ - Name 为 instanceId 时,Value 为 待查询节点 id
1601
1607
  */
1602
1608
  Filter?: Array<Filter>;
1603
1609
  }
@@ -2385,7 +2391,7 @@ export interface CreatePrometheusRecordRuleYamlResponse {
2385
2391
  */
2386
2392
  export interface DescribeClusterInstancesRequest {
2387
2393
  /**
2388
- * 集群ID
2394
+ * 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
2389
2395
  */
2390
2396
  ClusterId: string;
2391
2397
  /**
@@ -2397,11 +2403,17 @@ export interface DescribeClusterInstancesRequest {
2397
2403
  */
2398
2404
  Limit?: number;
2399
2405
  /**
2400
- * 需要获取的节点实例Id列表。如果为空,表示拉取集群下所有节点实例。
2406
+ * 需要获取的节点实例 ID 列表。如果为空,表示拉取集群下所有节点实例。普通节点用 CVM ID(如 ins-1cghhuuu ),原生节点用节点池内机器 ID (如 np-1ade4uid-0a2dc )。
2401
2407
  */
2402
2408
  InstanceIds?: Array<string>;
2403
2409
  /**
2404
- * 节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER。默认为WORKER类型。
2410
+ * 节点角色,默认为WORKER类型
2411
+
2412
+ - WOKRER 集群内常规计算节点
2413
+ - MASTER 独立集群控制面组件节点
2414
+ - ETCD 独立集群 etcd 存储节点
2415
+ - MASTER_ETCD 独立集群控制面、etcd 共同部署的 master 节点
2416
+
2405
2417
  */
2406
2418
  InstanceRole?: string;
2407
2419
  /**
@@ -2692,11 +2704,11 @@ export interface DescribePrometheusAgentInstancesResponse {
2692
2704
  */
2693
2705
  export interface AddExistedInstancesRequest {
2694
2706
  /**
2695
- * 集群ID
2707
+ * 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
2696
2708
  */
2697
2709
  ClusterId: string;
2698
2710
  /**
2699
- * 实例列表,不支持竞价实例
2711
+ * 实例列表,不支持竞价实例(请登录 [CVM控制台](https://console.cloud.tencent.com/cvm) 获取待添加节点ID )
2700
2712
  */
2701
2713
  InstanceIds: Array<string>;
2702
2714
  /**
@@ -2795,12 +2807,12 @@ export interface ClusterAsGroupOption {
2795
2807
  */
2796
2808
  MaxTotalUnreadyPercentage?: number;
2797
2809
  /**
2798
- * 表示未准备就绪的节点在有资格进行缩减之前应该停留多长时间
2810
+ * 表示未准备就绪的节点在有资格进行缩减之前应该停留多少分钟
2799
2811
  注意:此字段可能返回 null,表示取不到有效值。
2800
2812
  */
2801
2813
  ScaleDownUnreadyTime?: number;
2802
2814
  /**
2803
- * CA删除未在Kubernetes中注册的节点之前等待的时间
2815
+ * CA删除未在Kubernetes中注册的节点之前等待的分钟数
2804
2816
  注意:此字段可能返回 null,表示取不到有效值。
2805
2817
  */
2806
2818
  UnregisteredNodeRemovalTime?: number;
@@ -2962,6 +2974,14 @@ export interface KubeJarvisStateInspectionResultsItem {
2962
2974
  * 诊断结果统计
2963
2975
  */
2964
2976
  Statistics?: Array<KubeJarvisStateStatistic>;
2977
+ /**
2978
+ * 诊断数据开始时间
2979
+ */
2980
+ StartTime?: string;
2981
+ /**
2982
+ * 诊断数据结束时间
2983
+ */
2984
+ EndTime?: string;
2965
2985
  }
2966
2986
  /**
2967
2987
  * DescribeClusterReleaseHistory返回参数结构体
@@ -3249,11 +3269,11 @@ export interface UpdateClusterVersionRequest {
3249
3269
  */
3250
3270
  ExtraArgs?: ClusterExtraArgs;
3251
3271
  /**
3252
- * 可容忍的最大不可用pod数目
3272
+ * 可容忍的最大不可用pod数目。默认0
3253
3273
  */
3254
3274
  MaxNotReadyPercent?: number;
3255
3275
  /**
3256
- * 是否跳过预检查阶段
3276
+ * 是否跳过预检查阶段,默认false
3257
3277
  */
3258
3278
  SkipPreCheck?: boolean;
3259
3279
  }
@@ -4221,11 +4241,11 @@ export interface HttpGet {
4221
4241
  */
4222
4242
  export interface ResourceUsage {
4223
4243
  /**
4224
- * 资源类型
4244
+ * 资源类型,参考k8s 官方资源
4225
4245
  */
4226
4246
  Name?: string;
4227
4247
  /**
4228
- * 资源使用量
4248
+ * 资源使用量,单位:个数
4229
4249
  */
4230
4250
  Usage?: number;
4231
4251
  /**
@@ -4400,11 +4420,11 @@ export interface DescribePodDeductionRateResponse {
4400
4420
  */
4401
4421
  export interface DeleteClusterInstancesRequest {
4402
4422
  /**
4403
- * 集群ID
4423
+ * 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
4404
4424
  */
4405
4425
  ClusterId: string;
4406
4426
  /**
4407
- * 主机InstanceId列表
4427
+ * 主机 InstanceId 列表
4408
4428
  */
4409
4429
  InstanceIds: Array<string>;
4410
4430
  /**
@@ -4415,6 +4435,10 @@ export interface DeleteClusterInstancesRequest {
4415
4435
  * 是否强制删除(当节点在初始化时,可以指定参数为TRUE)
4416
4436
  */
4417
4437
  ForceDelete?: boolean;
4438
+ /**
4439
+ * 集群删除时资源的删除策略,目前支持CBS(默认保留CBS)
4440
+ */
4441
+ ResourceDeleteOptions?: Array<ResourceDeleteOption>;
4418
4442
  }
4419
4443
  /**
4420
4444
  * 节点升级重装参数
@@ -4605,7 +4629,7 @@ export interface ModifyNodePoolInstanceTypesRequest {
4605
4629
  */
4606
4630
  NodePoolId: string;
4607
4631
  /**
4608
- * 机型列表,主实例机型不支持修改
4632
+ * 机型列表,参考 https://cloud.tencent.com/document/product/213/11518,主实例机型不支持修改
4609
4633
  */
4610
4634
  InstanceTypes: Array<string>;
4611
4635
  }
@@ -5050,15 +5074,15 @@ export interface DescribeResourceUsageResponse {
5050
5074
  */
5051
5075
  CRDUsage?: ResourceUsage;
5052
5076
  /**
5053
- * Pod使用量
5077
+ * Pod使用量,单位:个数
5054
5078
  */
5055
5079
  PodUsage?: number;
5056
5080
  /**
5057
- * ReplicaSet使用量
5081
+ * ReplicaSet使用量,单位:个数
5058
5082
  */
5059
5083
  RSUsage?: number;
5060
5084
  /**
5061
- * ConfigMap使用量
5085
+ * ConfigMap使用量,单位:个数
5062
5086
  */
5063
5087
  ConfigMapUsage?: number;
5064
5088
  /**
@@ -5118,11 +5142,11 @@ export interface ReservedInstanceScope {
5118
5142
  */
5119
5143
  export interface DescribeAvailableClusterVersionRequest {
5120
5144
  /**
5121
- * 集群 Id。若只查询某个集群可升级的版本,需填写此项。
5145
+ * 集群 Id。若只查询某个集群可升级的版本,需填写此项,与ClusterIds 参数二选一。
5122
5146
  */
5123
5147
  ClusterId?: string;
5124
5148
  /**
5125
- * 集群 Id 列表。若查询多个集群可升级的版本,需填写此项。
5149
+ * 集群 Id 列表。若查询多个集群可升级的版本,需填写此项,与ClusterId 参数二选一。
5126
5150
  */
5127
5151
  ClusterIds?: Array<string>;
5128
5152
  }
@@ -5179,15 +5203,15 @@ export interface ModifyClusterRuntimeConfigRequest {
5179
5203
  */
5180
5204
  ClusterId: string;
5181
5205
  /**
5182
- * 当需要修改运行时版本是根据另外的K8S版本获取时,需填写。例如升级校验有冲突后修改场景
5206
+ * 运行时版本需依据指定的Kubernetes版本进行设置。典型情况为,在升级过程中因版本冲突而需要调整运行时版本时。
5183
5207
  */
5184
5208
  DstK8SVersion?: string;
5185
5209
  /**
5186
- * 需要修改集群运行时时填写
5210
+ * 需要修改集群运行时填写
5187
5211
  */
5188
5212
  ClusterRuntimeConfig?: RuntimeConfig;
5189
5213
  /**
5190
- * 需要修改节点池运行时时,填需要修改的部分
5214
+ * 需要修改节点池运行时,填需要修改的部分
5191
5215
  */
5192
5216
  NodePoolRuntimeConfig?: Array<NodePoolRuntime>;
5193
5217
  }
@@ -5385,7 +5409,7 @@ export interface CreatePrometheusConfigResponse {
5385
5409
  */
5386
5410
  export interface DescribeClusterEndpointStatusResponse {
5387
5411
  /**
5388
- * 查询集群访问端口状态(Created 开启成功,Creating 开启中,NotFound 未开启)
5412
+ * 查询集群访问端口状态(Created 开启成功,Creating 开启中,NotFound 未开启,CreateFailed 开启失败)
5389
5413
  */
5390
5414
  Status?: string;
5391
5415
  /**
@@ -5562,7 +5586,8 @@ export interface CreateClusterEndpointRequest {
5562
5586
  */
5563
5587
  ClusterId: string;
5564
5588
  /**
5565
- * 集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网)
5589
+ * 集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网)。获取方式:https://cloud.tencent.com/document/product/215/15784
5590
+
5566
5591
  */
5567
5592
  SubnetId?: string;
5568
5593
  /**
@@ -5574,7 +5599,7 @@ export interface CreateClusterEndpointRequest {
5574
5599
  */
5575
5600
  Domain?: string;
5576
5601
  /**
5577
- * 使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)
5602
+ * 使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)。获取方式:https://cloud.tencent.com/document/api/215/15808
5578
5603
  */
5579
5604
  SecurityGroup?: string;
5580
5605
  /**
@@ -6910,7 +6935,7 @@ export interface AddNodeToNodePoolRequest {
6910
6935
  */
6911
6936
  NodePoolId: string;
6912
6937
  /**
6913
- * 节点id
6938
+ * 节点id,获取参考 https://cloud.tencent.com/document/product/213/15728
6914
6939
  */
6915
6940
  InstanceIds: Array<string>;
6916
6941
  }
@@ -7426,11 +7451,11 @@ export interface Cluster {
7426
7451
  */
7427
7452
  CreatedTime?: string;
7428
7453
  /**
7429
- * 删除保护开关
7454
+ * 集群删除保护开关,打开:true,关闭:false
7430
7455
  */
7431
7456
  DeletionProtection?: boolean;
7432
7457
  /**
7433
- * 集群是否开启第三方节点支持
7458
+ * 集群是否开启第三方节点支持,开启:true,关闭:false
7434
7459
  */
7435
7460
  EnableExternalNode?: boolean;
7436
7461
  /**
@@ -7438,11 +7463,11 @@ export interface Cluster {
7438
7463
  */
7439
7464
  ClusterLevel?: string;
7440
7465
  /**
7441
- * 自动变配集群等级,针对托管集群生效
7466
+ * 自动变配集群等级,针对托管集群生效。开启:true,关闭:false
7442
7467
  */
7443
7468
  AutoUpgradeClusterLevel?: boolean;
7444
7469
  /**
7445
- * 是否开启QGPU共享
7470
+ * 是否开启QGPU共享,开启:true,关闭:false
7446
7471
  */
7447
7472
  QGPUShareEnable?: boolean;
7448
7473
  /**
@@ -8427,6 +8452,9 @@ export interface CreatePrometheusGlobalNotificationResponse {
8427
8452
  export interface ListClusterInspectionResultsItemsRequest {
8428
8453
  /**
8429
8454
  * 目标集群ID
8455
+
8456
+ 取值可参考:
8457
+ [查询TKE集群列表](https://cloud.tencent.com/document/api/457/31862)
8430
8458
  */
8431
8459
  ClusterId: string;
8432
8460
  /**
@@ -10723,15 +10751,15 @@ export interface NodePoolRuntime {
10723
10751
  */
10724
10752
  NodePoolId?: string;
10725
10753
  /**
10726
- * 运行时类型
10754
+ * 运行时类型,参考:https://cloud.tencent.com/document/api/457/105241
10727
10755
  */
10728
10756
  RuntimeType?: string;
10729
10757
  /**
10730
- * 运行时版本
10758
+ * 运行时版本,参考:https://cloud.tencent.com/document/api/457/105241
10731
10759
  */
10732
10760
  RuntimeVersion?: string;
10733
10761
  /**
10734
- * 节点池名称
10762
+ * 节点池名称,限制 255 字符
10735
10763
  */
10736
10764
  NodePoolName?: string;
10737
10765
  }
@@ -11014,7 +11042,8 @@ export interface ModifyClusterTagsRequest {
11014
11042
  */
11015
11043
  ClusterId: string;
11016
11044
  /**
11017
- * 集群标签
11045
+ * 集群标签:
11046
+ [{"TagKey":"env","TagValue":"dev"}]}]
11018
11047
  */
11019
11048
  Tags?: Array<Tag>;
11020
11049
  /**
@@ -12063,7 +12092,7 @@ export interface ModifyClusterNodePoolRequest {
12063
12092
  */
12064
12093
  NodePoolId: string;
12065
12094
  /**
12066
- * 名称
12095
+ * 名称,最长63个字符,只能包含小写字母、数字及分隔符“_”,且必须以小写字母开头,数字或小写字母结尾
12067
12096
  */
12068
12097
  Name?: string;
12069
12098
  /**
@@ -12149,7 +12178,7 @@ export interface InstallLogAgentResponse {
12149
12178
  */
12150
12179
  export interface GetClusterLevelPriceRequest {
12151
12180
  /**
12152
- * 集群规格,托管集群询价
12181
+ * 集群规格,托管集群询价,集群等级:L20、L50、L100、L200、L500、L1000、L3000、L5000
12153
12182
  */
12154
12183
  ClusterLevel: string;
12155
12184
  }
@@ -12313,11 +12342,11 @@ export interface UpdateClusterKubeconfigResponse {
12313
12342
  */
12314
12343
  export interface RuntimeConfig {
12315
12344
  /**
12316
- * 运行时类型
12345
+ * 运行时类型,支持的类型有 docker、containerd
12317
12346
  */
12318
12347
  RuntimeType?: string;
12319
12348
  /**
12320
- * 运行时版本
12349
+ * 运行时版本,参考:https://cloud.tencent.com/document/api/457/105241
12321
12350
  */
12322
12351
  RuntimeVersion?: string;
12323
12352
  }
@@ -12562,7 +12591,12 @@ export interface AddVpcCniSubnetsResponse {
12562
12591
  */
12563
12592
  export interface KubeJarvisStateStatistic {
12564
12593
  /**
12565
- * 诊断结果的健康水平
12594
+ * 诊断结果的健康水平,健康水平取值:
12595
+ serious:高风险
12596
+ risk:中风险
12597
+ warn:低风险
12598
+ good:健康
12599
+ failed:诊断流程异常
12566
12600
  */
12567
12601
  HealthyLevel?: string;
12568
12602
  /**
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { StartMachinesResponse, DeleteHealthCheckPolicyRequest, CreateNodePoolResponse, DescribeNodePoolsResponse, DescribeClusterInstancesResponse, DescribeHealthCheckPolicyBindingsRequest, CreateHealthCheckPolicyRequest, DeleteClusterMachinesResponse, StartMachinesRequest, RebootMachinesResponse, DeleteNodePoolResponse, ModifyNodePoolRequest, DescribeClusterInstancesRequest, DeleteHealthCheckPolicyResponse, SetMachineLoginRequest, DeleteClusterMachinesRequest, RebootMachinesRequest, ModifyNodePoolResponse, StopMachinesRequest, DescribeHealthCheckPoliciesRequest, DescribeHealthCheckTemplateResponse, CreateNodePoolRequest, DescribeHealthCheckPolicyBindingsResponse, DescribeNodePoolsRequest, DeleteNodePoolRequest, StopMachinesResponse, DescribeHealthCheckTemplateRequest, DescribeHealthCheckPoliciesResponse, ModifyHealthCheckPolicyRequest, SetMachineLoginResponse, ModifyHealthCheckPolicyResponse, CreateHealthCheckPolicyResponse } from "./tke_models";
2
+ import { StartMachinesResponse, DescribeClustersRequest, DeleteHealthCheckPolicyRequest, CreateNodePoolResponse, DescribeNodePoolsResponse, DescribeClusterInstancesResponse, DescribeHealthCheckPolicyBindingsRequest, CreateHealthCheckPolicyRequest, SetMachineLoginResponse, DeleteClusterMachinesResponse, StartMachinesRequest, RebootMachinesResponse, DeleteNodePoolResponse, ModifyNodePoolRequest, DescribeClusterInstancesRequest, DeleteHealthCheckPolicyResponse, SetMachineLoginRequest, DeleteClusterMachinesRequest, RebootMachinesRequest, ModifyNodePoolResponse, StopMachinesRequest, DescribeHealthCheckPoliciesRequest, DescribeHealthCheckTemplateResponse, CreateNodePoolRequest, DescribeHealthCheckPolicyBindingsResponse, DescribeNodePoolsRequest, DeleteNodePoolRequest, StopMachinesResponse, DescribeHealthCheckTemplateRequest, DescribeHealthCheckPoliciesResponse, ModifyHealthCheckPolicyRequest, DescribeClustersResponse, ModifyHealthCheckPolicyResponse, CreateHealthCheckPolicyResponse } from "./tke_models";
3
3
  /**
4
4
  * tke client
5
5
  * @class
@@ -26,6 +26,16 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
26
26
  * 设置是否开启节点登录
27
27
  */
28
28
  SetMachineLogin(req: SetMachineLoginRequest, cb?: (error: string, rep: SetMachineLoginResponse) => void): Promise<SetMachineLoginResponse>;
29
+ /**
30
+ * 本接口 (StopMachines) 用于关闭一个或多个原生节点实例。
31
+
32
+ 只有状态为 Running 的实例才可以进行此操作。
33
+ 接口调用成功时,实例会进入 Stopping 状态;关闭实例成功时,实例会进入 Stopped 状态。
34
+ 支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
35
+ 支持批量操作。每次请求批量实例的上限为 100。
36
+ 本接口为同步接口,关闭实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的状态为stopped_with_charging,则代表关闭实例操作成功。
37
+ */
38
+ StopMachines(req: StopMachinesRequest, cb?: (error: string, rep: StopMachinesResponse) => void): Promise<StopMachinesResponse>;
29
39
  /**
30
40
  * 删除健康检测策略
31
41
  */
@@ -43,15 +53,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
43
53
  */
44
54
  ModifyHealthCheckPolicy(req: ModifyHealthCheckPolicyRequest, cb?: (error: string, rep: ModifyHealthCheckPolicyResponse) => void): Promise<ModifyHealthCheckPolicyResponse>;
45
55
  /**
46
- * 本接口 (StopMachines) 用于关闭一个或多个原生节点实例。
47
-
48
- 只有状态为 Running 的实例才可以进行此操作。
49
- 接口调用成功时,实例会进入 Stopping 状态;关闭实例成功时,实例会进入 Stopped 状态。
50
- 支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
51
- 支持批量操作。每次请求批量实例的上限为 100。
52
- 本接口为同步接口,关闭实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的状态为stopped_with_charging,则代表关闭实例操作成功。
53
- */
54
- StopMachines(req: StopMachinesRequest, cb?: (error: string, rep: StopMachinesResponse) => void): Promise<StopMachinesResponse>;
56
+ * 查询健康检测策略绑定关系
57
+ */
58
+ DescribeHealthCheckPolicyBindings(req: DescribeHealthCheckPolicyBindingsRequest, cb?: (error: string, rep: DescribeHealthCheckPolicyBindingsResponse) => void): Promise<DescribeHealthCheckPolicyBindingsResponse>;
55
59
  /**
56
60
  * 创建 TKE 节点池
57
61
  */
@@ -61,9 +65,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
61
65
  */
62
66
  DescribeHealthCheckTemplate(req?: DescribeHealthCheckTemplateRequest, cb?: (error: string, rep: DescribeHealthCheckTemplateResponse) => void): Promise<DescribeHealthCheckTemplateResponse>;
63
67
  /**
64
- * 查询健康检测策略绑定关系
68
+ * 查询集群列表
65
69
  */
66
- DescribeHealthCheckPolicyBindings(req: DescribeHealthCheckPolicyBindingsRequest, cb?: (error: string, rep: DescribeHealthCheckPolicyBindingsResponse) => void): Promise<DescribeHealthCheckPolicyBindingsResponse>;
70
+ DescribeClusters(req: DescribeClustersRequest, cb?: (error: string, rep: DescribeClustersResponse) => void): Promise<DescribeClustersResponse>;
67
71
  /**
68
72
  * 创建健康检测策略
69
73
  */
@@ -58,6 +58,18 @@ class Client extends TencentCloudCommon.AbstractClient {
58
58
  async SetMachineLogin(req, cb) {
59
59
  return this.request("SetMachineLogin", req, cb);
60
60
  }
61
+ /**
62
+ * 本接口 (StopMachines) 用于关闭一个或多个原生节点实例。
63
+
64
+ 只有状态为 Running 的实例才可以进行此操作。
65
+ 接口调用成功时,实例会进入 Stopping 状态;关闭实例成功时,实例会进入 Stopped 状态。
66
+ 支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
67
+ 支持批量操作。每次请求批量实例的上限为 100。
68
+ 本接口为同步接口,关闭实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的状态为stopped_with_charging,则代表关闭实例操作成功。
69
+ */
70
+ async StopMachines(req, cb) {
71
+ return this.request("StopMachines", req, cb);
72
+ }
61
73
  /**
62
74
  * 删除健康检测策略
63
75
  */
@@ -83,16 +95,10 @@ class Client extends TencentCloudCommon.AbstractClient {
83
95
  return this.request("ModifyHealthCheckPolicy", req, cb);
84
96
  }
85
97
  /**
86
- * 本接口 (StopMachines) 用于关闭一个或多个原生节点实例。
87
-
88
- 只有状态为 Running 的实例才可以进行此操作。
89
- 接口调用成功时,实例会进入 Stopping 状态;关闭实例成功时,实例会进入 Stopped 状态。
90
- 支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
91
- 支持批量操作。每次请求批量实例的上限为 100。
92
- 本接口为同步接口,关闭实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的状态为stopped_with_charging,则代表关闭实例操作成功。
93
- */
94
- async StopMachines(req, cb) {
95
- return this.request("StopMachines", req, cb);
98
+ * 查询健康检测策略绑定关系
99
+ */
100
+ async DescribeHealthCheckPolicyBindings(req, cb) {
101
+ return this.request("DescribeHealthCheckPolicyBindings", req, cb);
96
102
  }
97
103
  /**
98
104
  * 创建 TKE 节点池
@@ -107,10 +113,10 @@ class Client extends TencentCloudCommon.AbstractClient {
107
113
  return this.request("DescribeHealthCheckTemplate", req, cb);
108
114
  }
109
115
  /**
110
- * 查询健康检测策略绑定关系
116
+ * 查询集群列表
111
117
  */
112
- async DescribeHealthCheckPolicyBindings(req, cb) {
113
- return this.request("DescribeHealthCheckPolicyBindings", req, cb);
118
+ async DescribeClusters(req, cb) {
119
+ return this.request("DescribeClusters", req, cb);
114
120
  }
115
121
  /**
116
122
  * 创建健康检测策略
@@ -179,6 +179,70 @@ export interface HealthCheckTemplateRule {
179
179
  */
180
180
  Severity: string;
181
181
  }
182
+ /**
183
+ * DescribeClusters请求参数结构体
184
+ */
185
+ export interface DescribeClustersRequest {
186
+ /**
187
+ * 集群ID列表(为空时,
188
+ 表示获取账号下所有集群)
189
+ */
190
+ ClusterIds?: Array<string>;
191
+ /**
192
+ * 偏移量,默认0
193
+ */
194
+ Offset?: number;
195
+ /**
196
+ * 最大输出条数,默认20,最大为100
197
+ */
198
+ Limit?: number;
199
+ /**
200
+ * · ClusterName
201
+ 按照【集群名】进行过滤。
202
+ 类型:String
203
+ 必选:否
204
+
205
+ · ClusterType
206
+ 按照【集群类型】进行过滤。
207
+ 类型:String
208
+ 必选:否
209
+
210
+ · ClusterStatus
211
+ 按照【集群状态】进行过滤。
212
+ 类型:String
213
+ 必选:否
214
+
215
+ · Tags
216
+ 按照【标签键值对】进行过滤。
217
+ 类型:String
218
+ 必选:否
219
+
220
+ · vpc-id
221
+ 按照【VPC】进行过滤。
222
+ 类型:String
223
+ 必选:否
224
+
225
+ · tag-key
226
+ 按照【标签键】进行过滤。
227
+ 类型:String
228
+ 必选:否
229
+
230
+ · tag-value
231
+ 按照【标签值】进行过滤。
232
+ 类型:String
233
+ 必选:否
234
+
235
+ · tag:tag-key
236
+ 按照【标签键值对】进行过滤。
237
+ 类型:String
238
+ 必选:否
239
+ */
240
+ Filters?: Array<Filter>;
241
+ /**
242
+ * 集群类型,例如:MANAGED_CLUSTER
243
+ */
244
+ ClusterType?: string;
245
+ }
182
246
  /**
183
247
  * 机型名称与GPU相关的参数,包括驱动版本,CUDA版本,cuDNN版本,是否开启MIG以及是否开启Fabric等相关配置信息
184
248
  */
@@ -640,6 +704,15 @@ export interface CreateHealthCheckPolicyRequest {
640
704
  */
641
705
  HealthCheckPolicy: HealthCheckPolicy;
642
706
  }
707
+ /**
708
+ * SetMachineLogin返回参数结构体
709
+ */
710
+ export interface SetMachineLoginResponse {
711
+ /**
712
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
713
+ */
714
+ RequestId?: string;
715
+ }
643
716
  /**
644
717
  * 节点自定义参数
645
718
  */
@@ -1676,6 +1749,26 @@ export interface DescribeHealthCheckPoliciesResponse {
1676
1749
  */
1677
1750
  RequestId?: string;
1678
1751
  }
1752
+ /**
1753
+ * 托管节点池Management配置
1754
+ */
1755
+ export interface ManagementConfig {
1756
+ /**
1757
+ * dns 配置
1758
+ 注意:此字段可能返回 null,表示取不到有效值。
1759
+ */
1760
+ Nameservers?: Array<string>;
1761
+ /**
1762
+ * hosts 配置
1763
+ 注意:此字段可能返回 null,表示取不到有效值。
1764
+ */
1765
+ Hosts?: Array<string>;
1766
+ /**
1767
+ * 内核参数配置
1768
+ 注意:此字段可能返回 null,表示取不到有效值。
1769
+ */
1770
+ KernelArgs?: Array<string>;
1771
+ }
1679
1772
  /**
1680
1773
  * 健康检测模板
1681
1774
  */
@@ -1716,13 +1809,54 @@ export interface ModifyHealthCheckPolicyRequest {
1716
1809
  HealthCheckPolicy: HealthCheckPolicy;
1717
1810
  }
1718
1811
  /**
1719
- * SetMachineLogin返回参数结构体
1812
+ * 集群信息结构体
1720
1813
  */
1721
- export interface SetMachineLoginResponse {
1814
+ export interface Cluster {
1722
1815
  /**
1723
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1816
+ * 集群ID
1724
1817
  */
1725
- RequestId?: string;
1818
+ ClusterId?: string;
1819
+ /**
1820
+ * 集群名称
1821
+ */
1822
+ ClusterName?: string;
1823
+ /**
1824
+ * 集群描述
1825
+ */
1826
+ ClusterDescription?: string;
1827
+ /**
1828
+ * 集群版本(默认值为1.10.5)
1829
+ */
1830
+ ClusterVersion?: string;
1831
+ /**
1832
+ * 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。
1833
+ */
1834
+ ClusterType?: string;
1835
+ /**
1836
+ * 标签描述列表。
1837
+ 注意:此字段可能返回 null,表示取不到有效值。
1838
+ */
1839
+ TagSpecification?: Array<TagSpecification>;
1840
+ /**
1841
+ * 集群状态 (Trading 集群开通中,Creating 创建中,Running 运行中,Deleting 删除中,Idling 闲置中,Recovering 唤醒中,Upgrading 升级中,NodeUpgrading 节点升级中,RuntimeUpgrading 节点运行时升级中,MasterScaling Master扩缩容中,ClusterLevelUpgrading 调整规格中,ResourceIsolate 欠费隔离中,ResourceIsolated 欠费已隔离,ResourceReverse 冲正恢复中,Abnormal 异常)
1842
+ */
1843
+ ClusterStatus?: string;
1844
+ /**
1845
+ * 创建时间
1846
+ 注意:此字段可能返回 null,表示取不到有效值。
1847
+ */
1848
+ CreatedTime?: string;
1849
+ /**
1850
+ * 集群等级,针对托管集群生效
1851
+ 注意:此字段可能返回 null,表示取不到有效值。
1852
+ 注意:此字段可能返回 null,表示取不到有效值。
1853
+ */
1854
+ ClusterLevel?: string;
1855
+ /**
1856
+ * 集群所在vpc的id
1857
+ 注意:此字段可能返回 null,表示取不到有效值。
1858
+ */
1859
+ VpcId?: string;
1726
1860
  }
1727
1861
  /**
1728
1862
  * 手动加入的节点
@@ -1746,24 +1880,25 @@ export interface ManuallyAdded {
1746
1880
  Total?: number;
1747
1881
  }
1748
1882
  /**
1749
- * 托管节点池Management配置
1883
+ * DescribeClusters返回参数结构体
1750
1884
  */
1751
- export interface ManagementConfig {
1885
+ export interface DescribeClustersResponse {
1752
1886
  /**
1753
- * dns 配置
1754
- 注意:此字段可能返回 null,表示取不到有效值。
1887
+ * 集群总个数
1755
1888
  */
1756
- Nameservers?: Array<string>;
1889
+ TotalCount?: number;
1757
1890
  /**
1758
- * hosts 配置
1759
- 注意:此字段可能返回 null,表示取不到有效值。
1891
+ * 集群信息列表
1760
1892
  */
1761
- Hosts?: Array<string>;
1893
+ Clusters?: Array<Cluster>;
1762
1894
  /**
1763
- * 内核参数配置
1764
- 注意:此字段可能返回 null,表示取不到有效值。
1895
+ * 错误信息集合
1765
1896
  */
1766
- KernelArgs?: Array<string>;
1897
+ Errors?: Array<string>;
1898
+ /**
1899
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1900
+ */
1901
+ RequestId?: string;
1767
1902
  }
1768
1903
  /**
1769
1904
  * ModifyHealthCheckPolicy返回参数结构体