@alicloud/cs20151215 4.8.6 → 4.8.7
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.
- package/dist/client.d.ts +241 -14
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +243 -14
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -11457,7 +11457,7 @@ export class MigrateClusterResponse extends $tea.Model {
|
|
|
11457
11457
|
export class ModifyClusterRequest extends $tea.Model {
|
|
11458
11458
|
/**
|
|
11459
11459
|
* @remarks
|
|
11460
|
-
* The network access control
|
|
11460
|
+
* The network access control list (ACL) of the SLB instance associated with the API server if the cluster is a registered cluster.
|
|
11461
11461
|
*/
|
|
11462
11462
|
accessControlList?: string[];
|
|
11463
11463
|
/**
|
|
@@ -11494,15 +11494,19 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11494
11494
|
* cluster-new-name
|
|
11495
11495
|
*/
|
|
11496
11496
|
clusterName?: string;
|
|
11497
|
+
/**
|
|
11498
|
+
* @remarks
|
|
11499
|
+
* The control plane configurations of an ACK dedicated cluster.
|
|
11500
|
+
*/
|
|
11497
11501
|
controlPlaneConfig?: ModifyClusterRequestControlPlaneConfig;
|
|
11498
11502
|
/**
|
|
11499
11503
|
* @remarks
|
|
11500
|
-
* Specifies whether to enable cluster deletion protection. If this option
|
|
11504
|
+
* Specifies whether to enable cluster deletion protection. If you enable this option, the cluster cannot be deleted in the console or by calling API operations. Valid values:
|
|
11501
11505
|
*
|
|
11502
11506
|
* * `true`: enables cluster deletion protection.
|
|
11503
11507
|
* * `false`: disables cluster deletion protection.
|
|
11504
11508
|
*
|
|
11505
|
-
* Default value: `false
|
|
11509
|
+
* Default value: `false`.
|
|
11506
11510
|
*
|
|
11507
11511
|
* @example
|
|
11508
11512
|
* true
|
|
@@ -11526,7 +11530,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11526
11530
|
* * `true`: remaps the test domain name of the cluster.
|
|
11527
11531
|
* * `false`: does not remap the test domain name of the cluster.
|
|
11528
11532
|
*
|
|
11529
|
-
* Default value: `false
|
|
11533
|
+
* Default value: `false`.
|
|
11530
11534
|
*
|
|
11531
11535
|
* @example
|
|
11532
11536
|
* true
|
|
@@ -11547,7 +11551,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11547
11551
|
* * `true`: enables instance deletion protection.
|
|
11548
11552
|
* * `false`: disables instance deletion protection.
|
|
11549
11553
|
*
|
|
11550
|
-
* Default value: `false
|
|
11554
|
+
* Default value: `false`.
|
|
11551
11555
|
*
|
|
11552
11556
|
* @example
|
|
11553
11557
|
* true
|
|
@@ -11565,7 +11569,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11565
11569
|
operationPolicy?: ModifyClusterRequestOperationPolicy;
|
|
11566
11570
|
/**
|
|
11567
11571
|
* @remarks
|
|
11568
|
-
* The
|
|
11572
|
+
* The resource group ID of the cluster.
|
|
11569
11573
|
*
|
|
11570
11574
|
* @example
|
|
11571
11575
|
* rg-acfmyvw3wjm****
|
|
@@ -11578,12 +11582,12 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11578
11582
|
systemEventsLogging?: ModifyClusterRequestSystemEventsLogging;
|
|
11579
11583
|
/**
|
|
11580
11584
|
* @remarks
|
|
11581
|
-
* The vSwitches of the control
|
|
11585
|
+
* The vSwitches of the control plane. This parameter can be used to change the vSwitches of the control plane in an ACK managed cluster. Take note of the following items:
|
|
11582
11586
|
*
|
|
11583
|
-
* * This parameter overwrites the existing configuration. You must specify all vSwitches of the control
|
|
11584
|
-
* * The control
|
|
11585
|
-
* *
|
|
11586
|
-
* * If the new vSwitches of the control
|
|
11587
|
+
* * This parameter overwrites the existing configuration. You must specify all vSwitches of the control plane.
|
|
11588
|
+
* * The control plane restarts during the change process. Exercise caution when you perform this operation.
|
|
11589
|
+
* * Ensure that all security groups of the cluster, including the security groups of the control plane, all node pools, and container network, are allowed to access the CIDR blocks of the new vSwitches. This ensures that the nodes and containers can connect to the API server.
|
|
11590
|
+
* * If the new vSwitches of the control plane are configured with an ACL, ensure that the ACL allows communication between the new vSwitches and CIDR blocks such as those of the cluster nodes and the container network.
|
|
11587
11591
|
*/
|
|
11588
11592
|
vswitchIds?: string[];
|
|
11589
11593
|
static names(): { [key: string]: string } {
|
|
@@ -26862,6 +26866,7 @@ export class ListOperationPlansResponseBodyPlans extends $tea.Model {
|
|
|
26862
26866
|
* cluster
|
|
26863
26867
|
*/
|
|
26864
26868
|
targetType?: string;
|
|
26869
|
+
taskId?: string;
|
|
26865
26870
|
/**
|
|
26866
26871
|
* @remarks
|
|
26867
26872
|
* The plan type. Valid values:
|
|
@@ -26882,6 +26887,7 @@ export class ListOperationPlansResponseBodyPlans extends $tea.Model {
|
|
|
26882
26887
|
state: 'state',
|
|
26883
26888
|
targetId: 'target_id',
|
|
26884
26889
|
targetType: 'target_type',
|
|
26890
|
+
taskId: 'task_id',
|
|
26885
26891
|
type: 'type',
|
|
26886
26892
|
};
|
|
26887
26893
|
}
|
|
@@ -26896,6 +26902,7 @@ export class ListOperationPlansResponseBodyPlans extends $tea.Model {
|
|
|
26896
26902
|
state: 'string',
|
|
26897
26903
|
targetId: 'string',
|
|
26898
26904
|
targetType: 'string',
|
|
26905
|
+
taskId: 'string',
|
|
26899
26906
|
type: 'string',
|
|
26900
26907
|
};
|
|
26901
26908
|
}
|
|
@@ -27129,7 +27136,7 @@ export class ModifyClusterRequestApiServerCustomCertSans extends $tea.Model {
|
|
|
27129
27136
|
action?: string;
|
|
27130
27137
|
/**
|
|
27131
27138
|
* @remarks
|
|
27132
|
-
* The SANs.
|
|
27139
|
+
* The list of SANs.
|
|
27133
27140
|
*/
|
|
27134
27141
|
subjectAlternativeNames?: string[];
|
|
27135
27142
|
static names(): { [key: string]: string } {
|
|
@@ -27152,29 +27159,251 @@ export class ModifyClusterRequestApiServerCustomCertSans extends $tea.Model {
|
|
|
27152
27159
|
}
|
|
27153
27160
|
|
|
27154
27161
|
export class ModifyClusterRequestControlPlaneConfig extends $tea.Model {
|
|
27162
|
+
/**
|
|
27163
|
+
* @remarks
|
|
27164
|
+
* Specifies whether to enable auto-renewal for the instance. This parameter takes effect only when `charge_type` is set to `PrePaid`. Valid values:
|
|
27165
|
+
*
|
|
27166
|
+
* * `true`: enables auto-renewal.
|
|
27167
|
+
* * `false`: disables auto-renewal.
|
|
27168
|
+
*
|
|
27169
|
+
* Default value: `false`.
|
|
27170
|
+
*
|
|
27171
|
+
* @example
|
|
27172
|
+
* true
|
|
27173
|
+
*/
|
|
27155
27174
|
autoRenew?: boolean;
|
|
27175
|
+
/**
|
|
27176
|
+
* @remarks
|
|
27177
|
+
* The auto-renewal period of the instance. Valid values: 1, 2, 3, 6, and 12.
|
|
27178
|
+
*
|
|
27179
|
+
* Default value: 1.
|
|
27180
|
+
*
|
|
27181
|
+
* @example
|
|
27182
|
+
* 1
|
|
27183
|
+
*/
|
|
27156
27184
|
autoRenewPeriod?: number;
|
|
27185
|
+
/**
|
|
27186
|
+
* @remarks
|
|
27187
|
+
* The billing method of the instance. Valid values:
|
|
27188
|
+
*
|
|
27189
|
+
* * `PrePaid`: subscription.
|
|
27190
|
+
* * `PostPaid`: pay-as-you-go.
|
|
27191
|
+
*
|
|
27192
|
+
* Default value: `PostPaid`.
|
|
27193
|
+
*
|
|
27194
|
+
* @example
|
|
27195
|
+
* PrePaid
|
|
27196
|
+
*/
|
|
27157
27197
|
chargeType?: string;
|
|
27198
|
+
/**
|
|
27199
|
+
* @remarks
|
|
27200
|
+
* Specifies whether to install the CloudMonitor agent. Valid values:
|
|
27201
|
+
*
|
|
27202
|
+
* * `true`: installs the CloudMonitor agent.
|
|
27203
|
+
* * `false`: does not install the CloudMonitor agent.
|
|
27204
|
+
*
|
|
27205
|
+
* @example
|
|
27206
|
+
* true
|
|
27207
|
+
*/
|
|
27158
27208
|
cloudMonitorFlags?: boolean;
|
|
27209
|
+
/**
|
|
27210
|
+
* @remarks
|
|
27211
|
+
* The CPU management policy of nodes in the node pool. The following policies are supported if the Kubernetes version of the cluster is 1.12.6 or later:
|
|
27212
|
+
*
|
|
27213
|
+
* * `static`: allows pods with specific resource characteristics on the node to be granted with enhanced CPU affinity and exclusivity.
|
|
27214
|
+
* * `none`: specifies that the default CPU affinity is used.
|
|
27215
|
+
*
|
|
27216
|
+
* Default value: `none`.
|
|
27217
|
+
*
|
|
27218
|
+
* @example
|
|
27219
|
+
* none
|
|
27220
|
+
*/
|
|
27159
27221
|
cpuPolicy?: string;
|
|
27222
|
+
/**
|
|
27223
|
+
* @remarks
|
|
27224
|
+
* The ID of the deployment set.
|
|
27225
|
+
*
|
|
27226
|
+
* @example
|
|
27227
|
+
* ds-bp10b35imuam5amw****
|
|
27228
|
+
*/
|
|
27160
27229
|
deploymentsetId?: string;
|
|
27230
|
+
/**
|
|
27231
|
+
* @remarks
|
|
27232
|
+
* The custom image ID. You must configure this parameter if you use a custom image.
|
|
27233
|
+
*
|
|
27234
|
+
* @example
|
|
27235
|
+
* aliyun_3_x64_20G_alibase_20240819.vhd
|
|
27236
|
+
*/
|
|
27161
27237
|
imageId?: string;
|
|
27238
|
+
/**
|
|
27239
|
+
* @remarks
|
|
27240
|
+
* The type of the OS image. Valid values:
|
|
27241
|
+
*
|
|
27242
|
+
* * `AliyunLinux3`: Alibaba Cloud Linux 3.
|
|
27243
|
+
* * `Custom`: the custom image.
|
|
27244
|
+
*
|
|
27245
|
+
* @example
|
|
27246
|
+
* AliyunLinux3
|
|
27247
|
+
*/
|
|
27162
27248
|
imageType?: string;
|
|
27249
|
+
/**
|
|
27250
|
+
* @remarks
|
|
27251
|
+
* The instance type. For more information, see [Overview of ECS instance families](https://help.aliyun.com/document_detail/25378.html).
|
|
27252
|
+
*/
|
|
27163
27253
|
instanceTypes?: string[];
|
|
27254
|
+
/**
|
|
27255
|
+
* @remarks
|
|
27256
|
+
* The name of the key pair. You must configure either this parameter or the `login_password` parameter.
|
|
27257
|
+
*
|
|
27258
|
+
* @example
|
|
27259
|
+
* ack
|
|
27260
|
+
*/
|
|
27164
27261
|
keyPair?: string;
|
|
27262
|
+
/**
|
|
27263
|
+
* @remarks
|
|
27264
|
+
* The password for SSH logon. You must configure either this parameter or the `key_pair` parameter. The password must be 8 to 30 characters in length, and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. To log on with a password, you must specify this parameter during the scale-out.
|
|
27265
|
+
*
|
|
27266
|
+
* @example
|
|
27267
|
+
* Ack@2000.
|
|
27268
|
+
*/
|
|
27165
27269
|
loginPassword?: string;
|
|
27270
|
+
/**
|
|
27271
|
+
* @remarks
|
|
27272
|
+
* The node port range.
|
|
27273
|
+
*
|
|
27274
|
+
* @example
|
|
27275
|
+
* 30000-32767
|
|
27276
|
+
*/
|
|
27166
27277
|
nodePortRange?: string;
|
|
27278
|
+
/**
|
|
27279
|
+
* @remarks
|
|
27280
|
+
* The subscription duration of the instance. This parameter takes effect and is required only when `charge_type` is set to `PrePaid`.
|
|
27281
|
+
*
|
|
27282
|
+
* If `PeriodUnit=Month` is specified, the valid values are 1, 2, 3, 6, 12, 24, 36, 48, and 60.
|
|
27283
|
+
*
|
|
27284
|
+
* @example
|
|
27285
|
+
* 1
|
|
27286
|
+
*/
|
|
27167
27287
|
period?: number;
|
|
27288
|
+
/**
|
|
27289
|
+
* @remarks
|
|
27290
|
+
* The billing cycle of the instance. This parameter takes effect only when `instance_charge_type` is set to `PrePaid`.
|
|
27291
|
+
*
|
|
27292
|
+
* Valid value: `Month`.
|
|
27293
|
+
*
|
|
27294
|
+
* @example
|
|
27295
|
+
* Month
|
|
27296
|
+
*/
|
|
27168
27297
|
periodUnit?: string;
|
|
27298
|
+
/**
|
|
27299
|
+
* @remarks
|
|
27300
|
+
* The type of the container runtime. Valid values:
|
|
27301
|
+
*
|
|
27302
|
+
* * `containerd`: supports all Kubernetes versions. We recommend that you set the parameter to this value.
|
|
27303
|
+
*
|
|
27304
|
+
* Default value: containerd.
|
|
27305
|
+
*
|
|
27306
|
+
* @example
|
|
27307
|
+
* containerd
|
|
27308
|
+
*/
|
|
27169
27309
|
runtime?: string;
|
|
27310
|
+
/**
|
|
27311
|
+
* @remarks
|
|
27312
|
+
* Specifies whether to enable Alibaba Cloud Linux Security Hardening. Valid values:
|
|
27313
|
+
*
|
|
27314
|
+
* * `true`: enables Alibaba Cloud Linux Security Hardening.
|
|
27315
|
+
* * `false`: disables Alibaba Cloud Linux Security Hardening.
|
|
27316
|
+
*
|
|
27317
|
+
* Default value: `false`.
|
|
27318
|
+
*
|
|
27319
|
+
* @example
|
|
27320
|
+
* true
|
|
27321
|
+
*/
|
|
27170
27322
|
securityHardeningOs?: boolean;
|
|
27323
|
+
/**
|
|
27324
|
+
* @remarks
|
|
27325
|
+
* The number of control plane nodes. If you want to scale out the control plane in an ACK dedicated cluster, set this parameter to the desired number of nodes. This parameter must be greater than the current number of nodes.
|
|
27326
|
+
*
|
|
27327
|
+
* @example
|
|
27328
|
+
* 5
|
|
27329
|
+
*/
|
|
27171
27330
|
size?: number;
|
|
27331
|
+
/**
|
|
27332
|
+
* @remarks
|
|
27333
|
+
* Specifies whether to enable Multi-Level Protection Scheme (MLPS) security hardening. For more information, see [ACK security hardening based on MLPS](https://help.aliyun.com/document_detail/196148.html).
|
|
27334
|
+
*
|
|
27335
|
+
* Valid values:
|
|
27336
|
+
*
|
|
27337
|
+
* * `true`: enables MLPS security hardening.
|
|
27338
|
+
* * `false`: disables MLPS security hardening.
|
|
27339
|
+
*
|
|
27340
|
+
* Default value: `false`.
|
|
27341
|
+
*
|
|
27342
|
+
* @example
|
|
27343
|
+
* false
|
|
27344
|
+
*/
|
|
27172
27345
|
socEnabled?: boolean;
|
|
27346
|
+
/**
|
|
27347
|
+
* @remarks
|
|
27348
|
+
* Specifies whether to enable the burst feature for the system disk. Valid values:
|
|
27349
|
+
*
|
|
27350
|
+
* * `true`: enables the burst feature.
|
|
27351
|
+
* * `false`: disables the burst feature.
|
|
27352
|
+
*
|
|
27353
|
+
* This parameter is effective only when `system_disk_category` is set to `cloud_auto`. For more information, see [ESSD AutoPL disks](https://help.aliyun.com/document_detail/368372.html).
|
|
27354
|
+
*
|
|
27355
|
+
* @example
|
|
27356
|
+
* true
|
|
27357
|
+
*/
|
|
27173
27358
|
systemDiskBurstingEnabled?: boolean;
|
|
27359
|
+
/**
|
|
27360
|
+
* @remarks
|
|
27361
|
+
* The type of the node system disk. Valid values:
|
|
27362
|
+
*
|
|
27363
|
+
* * `cloud`: basic disk.
|
|
27364
|
+
* * `cloud_efficiency`: ultra disk.
|
|
27365
|
+
* * `cloud_ssd`: standard SSD.
|
|
27366
|
+
* * `cloud_essd`: enhanced SSD (ESSD).
|
|
27367
|
+
* * `cloud_auto`: ESSD AutoPL disk.
|
|
27368
|
+
* * `cloud_essd_entry`: ESSD Entry disk.
|
|
27369
|
+
*
|
|
27370
|
+
* @example
|
|
27371
|
+
* cloud_essd
|
|
27372
|
+
*/
|
|
27174
27373
|
systemDiskCategory?: string;
|
|
27374
|
+
/**
|
|
27375
|
+
* @remarks
|
|
27376
|
+
* The performance level (PL) of the system disk that you want to use for the node. This parameter is effective only for ESSDs. This parameter is related to the disk size. For more information, see [ESSDs](https://help.aliyun.com/document_detail/122389.html).
|
|
27377
|
+
*
|
|
27378
|
+
* @example
|
|
27379
|
+
* PL1
|
|
27380
|
+
*/
|
|
27175
27381
|
systemDiskPerformanceLevel?: string;
|
|
27382
|
+
/**
|
|
27383
|
+
* @remarks
|
|
27384
|
+
* The preset read/write input/output operations per second (IOPS) of the system disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS} Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}.
|
|
27385
|
+
*
|
|
27386
|
+
* This parameter is effective only when `system_disk_category` is set to `cloud_auto`. For more information, see [ESSD AutoPL disks](https://help.aliyun.com/document_detail/368372.html).
|
|
27387
|
+
*
|
|
27388
|
+
* @example
|
|
27389
|
+
* 1000
|
|
27390
|
+
*/
|
|
27176
27391
|
systemDiskProvisionedIops?: number;
|
|
27392
|
+
/**
|
|
27393
|
+
* @remarks
|
|
27394
|
+
* The type of the system disk. Valid values: [40,500]. Unit: GiB.
|
|
27395
|
+
*
|
|
27396
|
+
* @example
|
|
27397
|
+
* 120
|
|
27398
|
+
*/
|
|
27177
27399
|
systemDiskSize?: number;
|
|
27400
|
+
/**
|
|
27401
|
+
* @remarks
|
|
27402
|
+
* The ID of the automatic snapshot policy applied to the node system disk.
|
|
27403
|
+
*
|
|
27404
|
+
* @example
|
|
27405
|
+
* sp-2zej1nogjvovnz4z****
|
|
27406
|
+
*/
|
|
27178
27407
|
systemDiskSnapshotPolicyId?: string;
|
|
27179
27408
|
static names(): { [key: string]: string } {
|
|
27180
27409
|
return {
|
|
@@ -27242,11 +27471,11 @@ export class ModifyClusterRequestControlPlaneConfig extends $tea.Model {
|
|
|
27242
27471
|
export class ModifyClusterRequestOperationPolicyClusterAutoUpgrade extends $tea.Model {
|
|
27243
27472
|
/**
|
|
27244
27473
|
* @remarks
|
|
27245
|
-
* The automatic
|
|
27474
|
+
* The frequency of automatic cluster updates. For more information, see [Update frequency](https://help.aliyun.com/document_detail/2712866.html).
|
|
27246
27475
|
*
|
|
27247
27476
|
* Valid values:
|
|
27248
27477
|
*
|
|
27249
|
-
* * patch:
|
|
27478
|
+
* * patch: the latest patch version.
|
|
27250
27479
|
* * stables: the second-latest minor version.
|
|
27251
27480
|
* * rapid: the latest minor version.
|
|
27252
27481
|
*
|