@alicloud/cs20151215 4.8.11 → 4.8.12
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 +681 -352
- package/dist/client.js +59 -28
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +699 -352
package/dist/client.js
CHANGED
|
@@ -8890,6 +8890,7 @@ class DescribeClusterAttachScriptsRequest extends $dara.Model {
|
|
|
8890
8890
|
static names() {
|
|
8891
8891
|
return {
|
|
8892
8892
|
arch: 'arch',
|
|
8893
|
+
expired: 'expired',
|
|
8893
8894
|
formatDisk: 'format_disk',
|
|
8894
8895
|
keepInstanceName: 'keep_instance_name',
|
|
8895
8896
|
nodepoolId: 'nodepool_id',
|
|
@@ -8900,6 +8901,7 @@ class DescribeClusterAttachScriptsRequest extends $dara.Model {
|
|
|
8900
8901
|
static types() {
|
|
8901
8902
|
return {
|
|
8902
8903
|
arch: 'string',
|
|
8904
|
+
expired: 'number',
|
|
8903
8905
|
formatDisk: 'boolean',
|
|
8904
8906
|
keepInstanceName: 'boolean',
|
|
8905
8907
|
nodepoolId: 'string',
|
|
@@ -12736,7 +12738,9 @@ class ModifyClusterRequest extends $dara.Model {
|
|
|
12736
12738
|
maintenanceWindow: 'maintenance_window',
|
|
12737
12739
|
operationPolicy: 'operation_policy',
|
|
12738
12740
|
resourceGroupId: 'resource_group_id',
|
|
12741
|
+
securityGroupId: 'security_group_id',
|
|
12739
12742
|
systemEventsLogging: 'system_events_logging',
|
|
12743
|
+
timezone: 'timezone',
|
|
12740
12744
|
vswitchIds: 'vswitch_ids',
|
|
12741
12745
|
};
|
|
12742
12746
|
}
|
|
@@ -12756,7 +12760,9 @@ class ModifyClusterRequest extends $dara.Model {
|
|
|
12756
12760
|
maintenanceWindow: MaintenanceWindow,
|
|
12757
12761
|
operationPolicy: ModifyClusterRequestOperationPolicy,
|
|
12758
12762
|
resourceGroupId: 'string',
|
|
12763
|
+
securityGroupId: 'string',
|
|
12759
12764
|
systemEventsLogging: ModifyClusterRequestSystemEventsLogging,
|
|
12765
|
+
timezone: 'string',
|
|
12760
12766
|
vswitchIds: { 'type': 'array', 'itemType': 'string' },
|
|
12761
12767
|
};
|
|
12762
12768
|
}
|
|
@@ -15740,7 +15746,7 @@ class Client extends openapi_core_1.default {
|
|
|
15740
15746
|
return await this.checkControlPlaneLogEnableWithOptions(ClusterId, headers, runtime);
|
|
15741
15747
|
}
|
|
15742
15748
|
/**
|
|
15743
|
-
* Checks whether the specified service
|
|
15749
|
+
* Checks whether the specified service roles are granted to Container Service for Kubernetes (ACK) within the current Alibaba Cloud account. ACK can access other cloud services, such as Elastic Compute Service (ECS), Object Storage Service (OSS), File Storage NAS (NAS), and Server Load Balancer (SLB), only after ACK is assigned the required service roles.
|
|
15744
15750
|
*
|
|
15745
15751
|
* @param request - CheckServiceRoleRequest
|
|
15746
15752
|
* @param headers - map
|
|
@@ -15776,7 +15782,7 @@ class Client extends openapi_core_1.default {
|
|
|
15776
15782
|
}
|
|
15777
15783
|
}
|
|
15778
15784
|
/**
|
|
15779
|
-
* Checks whether the specified service
|
|
15785
|
+
* Checks whether the specified service roles are granted to Container Service for Kubernetes (ACK) within the current Alibaba Cloud account. ACK can access other cloud services, such as Elastic Compute Service (ECS), Object Storage Service (OSS), File Storage NAS (NAS), and Server Load Balancer (SLB), only after ACK is assigned the required service roles.
|
|
15780
15786
|
*
|
|
15781
15787
|
* @param request - CheckServiceRoleRequest
|
|
15782
15788
|
* @returns CheckServiceRoleResponse
|
|
@@ -16003,16 +16009,16 @@ class Client extends openapi_core_1.default {
|
|
|
16003
16009
|
return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
|
|
16004
16010
|
}
|
|
16005
16011
|
/**
|
|
16006
|
-
*
|
|
16012
|
+
* Creates a Container Service for Kubernetes (ACK) cluster. For example, you can create an ACK managed cluster, ACK Serverless cluster, ACK Edge cluster, or registered cluster. When you create an ACK cluster, you need to configure the cluster information, components, and cloud resources used by ACK.
|
|
16007
16013
|
*
|
|
16008
16014
|
* @remarks
|
|
16009
|
-
*
|
|
16010
|
-
*
|
|
16011
|
-
*
|
|
16012
|
-
*
|
|
16013
|
-
*
|
|
16014
|
-
*
|
|
16015
|
-
*
|
|
16015
|
+
* ### [](#-openapi-)Generate API request parameters in the ACK console
|
|
16016
|
+
* When you fail to create an ACK cluster by calling the CreateCluster operation due to invalid parameter settings, you can generate valid API request parameters in the ACK console. Procedure:
|
|
16017
|
+
* 1. Log on to the [ACK console](javascript:void\\(0\\)). In the left-side navigation pane, click **Clusters**.
|
|
16018
|
+
* 2. On the **Cluster** page, click **Cluster Templates**.
|
|
16019
|
+
* 3. In the Select Cluster Template dialog box, select the type of cluster that you want to create and click Create. Then, configure the cluster setting parameters.
|
|
16020
|
+
* 4. After you configure the cluster parameters, click **Generate API Request Parameters** in the **Confirm Order** step.
|
|
16021
|
+
* The API request parameters are displayed in the API Request Parameters dialog box.
|
|
16016
16022
|
*
|
|
16017
16023
|
* @param request - CreateClusterRequest
|
|
16018
16024
|
* @param headers - map
|
|
@@ -16339,16 +16345,16 @@ class Client extends openapi_core_1.default {
|
|
|
16339
16345
|
}
|
|
16340
16346
|
}
|
|
16341
16347
|
/**
|
|
16342
|
-
*
|
|
16348
|
+
* Creates a Container Service for Kubernetes (ACK) cluster. For example, you can create an ACK managed cluster, ACK Serverless cluster, ACK Edge cluster, or registered cluster. When you create an ACK cluster, you need to configure the cluster information, components, and cloud resources used by ACK.
|
|
16343
16349
|
*
|
|
16344
16350
|
* @remarks
|
|
16345
|
-
*
|
|
16346
|
-
*
|
|
16347
|
-
*
|
|
16348
|
-
*
|
|
16349
|
-
*
|
|
16350
|
-
*
|
|
16351
|
-
*
|
|
16351
|
+
* ### [](#-openapi-)Generate API request parameters in the ACK console
|
|
16352
|
+
* When you fail to create an ACK cluster by calling the CreateCluster operation due to invalid parameter settings, you can generate valid API request parameters in the ACK console. Procedure:
|
|
16353
|
+
* 1. Log on to the [ACK console](javascript:void\\(0\\)). In the left-side navigation pane, click **Clusters**.
|
|
16354
|
+
* 2. On the **Cluster** page, click **Cluster Templates**.
|
|
16355
|
+
* 3. In the Select Cluster Template dialog box, select the type of cluster that you want to create and click Create. Then, configure the cluster setting parameters.
|
|
16356
|
+
* 4. After you configure the cluster parameters, click **Generate API Request Parameters** in the **Confirm Order** step.
|
|
16357
|
+
* The API request parameters are displayed in the API Request Parameters dialog box.
|
|
16352
16358
|
*
|
|
16353
16359
|
* @param request - CreateClusterRequest
|
|
16354
16360
|
* @returns CreateClusterResponse
|
|
@@ -16828,6 +16834,14 @@ class Client extends openapi_core_1.default {
|
|
|
16828
16834
|
/**
|
|
16829
16835
|
* You can call the DeleteCluster operation to delete a cluster and specify whether to delete or retain the relevant cluster resources. Before you delete a cluster, you must manually delete workloads in the cluster, such as Deployments, StatefulSets, Jobs, and CronJobs. Otherwise, you may fail to delete the cluster.
|
|
16830
16836
|
*
|
|
16837
|
+
* @remarks
|
|
16838
|
+
* Warning:
|
|
16839
|
+
* * Subscription ECS instances and Lingjun nodes in a cluster cannot be automatically released. To avoid unnecessary costs, we recommend that you manually release the resources. For more information, see \\<a href="{0}" target="_blank">Rules for deleting clusters and releasing nodes\\</a>.
|
|
16840
|
+
* * If the SLB instance of the API server uses the subscription billing method, it cannot be automatically released. To avoid unnecessary costs, we recommend that you manually release it.
|
|
16841
|
+
* * By default, virtual private clouds (VPCs), vSwitches, security groups, and RAM roles are retained if they are used by other resources. To avoid unnecessary costs, we recommend that you manually release the resources.
|
|
16842
|
+
* * Elastic container instances created on virtual nodes are automatically released.
|
|
16843
|
+
* * Some resources created together with a cluster are not automatically released when the cluster is deleted. After the cluster is deleted, you are still charged for the resources. Release or retain the resources based on your actual needs. The resources include Simple Log Service projects automatically created by the cluster and dynamically provisioned disks.
|
|
16844
|
+
*
|
|
16831
16845
|
* @param tmpReq - DeleteClusterRequest
|
|
16832
16846
|
* @param headers - map
|
|
16833
16847
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -16881,6 +16895,14 @@ class Client extends openapi_core_1.default {
|
|
|
16881
16895
|
/**
|
|
16882
16896
|
* You can call the DeleteCluster operation to delete a cluster and specify whether to delete or retain the relevant cluster resources. Before you delete a cluster, you must manually delete workloads in the cluster, such as Deployments, StatefulSets, Jobs, and CronJobs. Otherwise, you may fail to delete the cluster.
|
|
16883
16897
|
*
|
|
16898
|
+
* @remarks
|
|
16899
|
+
* Warning:
|
|
16900
|
+
* * Subscription ECS instances and Lingjun nodes in a cluster cannot be automatically released. To avoid unnecessary costs, we recommend that you manually release the resources. For more information, see \\<a href="{0}" target="_blank">Rules for deleting clusters and releasing nodes\\</a>.
|
|
16901
|
+
* * If the SLB instance of the API server uses the subscription billing method, it cannot be automatically released. To avoid unnecessary costs, we recommend that you manually release it.
|
|
16902
|
+
* * By default, virtual private clouds (VPCs), vSwitches, security groups, and RAM roles are retained if they are used by other resources. To avoid unnecessary costs, we recommend that you manually release the resources.
|
|
16903
|
+
* * Elastic container instances created on virtual nodes are automatically released.
|
|
16904
|
+
* * Some resources created together with a cluster are not automatically released when the cluster is deleted. After the cluster is deleted, you are still charged for the resources. Release or retain the resources based on your actual needs. The resources include Simple Log Service projects automatically created by the cluster and dynamically provisioned disks.
|
|
16905
|
+
*
|
|
16884
16906
|
* @param request - DeleteClusterRequest
|
|
16885
16907
|
* @returns DeleteClusterResponse
|
|
16886
16908
|
*/
|
|
@@ -17653,6 +17675,9 @@ class Client extends openapi_core_1.default {
|
|
|
17653
17675
|
if (!$dara.isNull(request.arch)) {
|
|
17654
17676
|
body["arch"] = request.arch;
|
|
17655
17677
|
}
|
|
17678
|
+
if (!$dara.isNull(request.expired)) {
|
|
17679
|
+
body["expired"] = request.expired;
|
|
17680
|
+
}
|
|
17656
17681
|
if (!$dara.isNull(request.formatDisk)) {
|
|
17657
17682
|
body["format_disk"] = request.formatDisk;
|
|
17658
17683
|
}
|
|
@@ -18705,7 +18730,7 @@ class Client extends openapi_core_1.default {
|
|
|
18705
18730
|
return await this.describeEventsForRegionWithOptions(regionId, request, headers, runtime);
|
|
18706
18731
|
}
|
|
18707
18732
|
/**
|
|
18708
|
-
* Queries the proxy configurations of a registered cluster
|
|
18733
|
+
* Queries the proxy configurations of a registered cluster by cluster ID.
|
|
18709
18734
|
*
|
|
18710
18735
|
* @remarks
|
|
18711
18736
|
* For more information, see [Register an external Kubernetes cluster](https://help.aliyun.com/document_detail/121053.html).
|
|
@@ -18750,7 +18775,7 @@ class Client extends openapi_core_1.default {
|
|
|
18750
18775
|
}
|
|
18751
18776
|
}
|
|
18752
18777
|
/**
|
|
18753
|
-
* Queries the proxy configurations of a registered cluster
|
|
18778
|
+
* Queries the proxy configurations of a registered cluster by cluster ID.
|
|
18754
18779
|
*
|
|
18755
18780
|
* @remarks
|
|
18756
18781
|
* For more information, see [Register an external Kubernetes cluster](https://help.aliyun.com/document_detail/121053.html).
|
|
@@ -19668,7 +19693,7 @@ class Client extends openapi_core_1.default {
|
|
|
19668
19693
|
return await this.getClusterAddonInstanceWithOptions(clusterId, instanceName, headers, runtime);
|
|
19669
19694
|
}
|
|
19670
19695
|
/**
|
|
19671
|
-
* You can call the GetClusterAuditProject operation to
|
|
19696
|
+
* You can call the GetClusterAuditProject operation to check whether the cluster has API Server auditing enabled and the corresponding Simple Log Service project that stores API Server audit logs.
|
|
19672
19697
|
*
|
|
19673
19698
|
* @param headers - map
|
|
19674
19699
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -19697,7 +19722,7 @@ class Client extends openapi_core_1.default {
|
|
|
19697
19722
|
}
|
|
19698
19723
|
}
|
|
19699
19724
|
/**
|
|
19700
|
-
* You can call the GetClusterAuditProject operation to
|
|
19725
|
+
* You can call the GetClusterAuditProject operation to check whether the cluster has API Server auditing enabled and the corresponding Simple Log Service project that stores API Server audit logs.
|
|
19701
19726
|
* @returns GetClusterAuditProjectResponse
|
|
19702
19727
|
*/
|
|
19703
19728
|
async getClusterAuditProject(clusterid) {
|
|
@@ -20523,9 +20548,15 @@ class Client extends openapi_core_1.default {
|
|
|
20523
20548
|
if (!$dara.isNull(request.resourceGroupId)) {
|
|
20524
20549
|
body["resource_group_id"] = request.resourceGroupId;
|
|
20525
20550
|
}
|
|
20551
|
+
if (!$dara.isNull(request.securityGroupId)) {
|
|
20552
|
+
body["security_group_id"] = request.securityGroupId;
|
|
20553
|
+
}
|
|
20526
20554
|
if (!$dara.isNull(request.systemEventsLogging)) {
|
|
20527
20555
|
body["system_events_logging"] = request.systemEventsLogging;
|
|
20528
20556
|
}
|
|
20557
|
+
if (!$dara.isNull(request.timezone)) {
|
|
20558
|
+
body["timezone"] = request.timezone;
|
|
20559
|
+
}
|
|
20529
20560
|
if (!$dara.isNull(request.vswitchIds)) {
|
|
20530
20561
|
body["vswitch_ids"] = request.vswitchIds;
|
|
20531
20562
|
}
|
|
@@ -21816,7 +21847,7 @@ class Client extends openapi_core_1.default {
|
|
|
21816
21847
|
return await this.scanClusterVulsWithOptions(clusterId, headers, runtime);
|
|
21817
21848
|
}
|
|
21818
21849
|
/**
|
|
21819
|
-
*
|
|
21850
|
+
* Activates the specified alert rule(s).
|
|
21820
21851
|
*
|
|
21821
21852
|
* @param request - StartAlertRequest
|
|
21822
21853
|
* @param headers - map
|
|
@@ -21855,7 +21886,7 @@ class Client extends openapi_core_1.default {
|
|
|
21855
21886
|
}
|
|
21856
21887
|
}
|
|
21857
21888
|
/**
|
|
21858
|
-
*
|
|
21889
|
+
* Activates the specified alert rule(s).
|
|
21859
21890
|
*
|
|
21860
21891
|
* @param request - StartAlertRequest
|
|
21861
21892
|
* @returns StartAlertResponse
|
|
@@ -22123,7 +22154,7 @@ class Client extends openapi_core_1.default {
|
|
|
22123
22154
|
* You can call the UpdateClusterAuditLogConfig operation to enable or disable the audit log feature in a Container Service for Kubernetes (ACK) cluster and update the audit log configuration. This operation also allows you to record requests to the Kubernetes API and the responses, which can be used to trace cluster operation history and troubleshoot cluster issues.
|
|
22124
22155
|
*
|
|
22125
22156
|
* @remarks
|
|
22126
|
-
* Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.alibabacloud.com/product/log-service/pricing)
|
|
22157
|
+
* Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.alibabacloud.com/product/log-service/pricing).
|
|
22127
22158
|
*
|
|
22128
22159
|
* @param request - UpdateClusterAuditLogConfigRequest
|
|
22129
22160
|
* @param headers - map
|
|
@@ -22165,7 +22196,7 @@ class Client extends openapi_core_1.default {
|
|
|
22165
22196
|
* You can call the UpdateClusterAuditLogConfig operation to enable or disable the audit log feature in a Container Service for Kubernetes (ACK) cluster and update the audit log configuration. This operation also allows you to record requests to the Kubernetes API and the responses, which can be used to trace cluster operation history and troubleshoot cluster issues.
|
|
22166
22197
|
*
|
|
22167
22198
|
* @remarks
|
|
22168
|
-
* Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.alibabacloud.com/product/log-service/pricing)
|
|
22199
|
+
* Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.alibabacloud.com/product/log-service/pricing).
|
|
22169
22200
|
*
|
|
22170
22201
|
* @param request - UpdateClusterAuditLogConfigRequest
|
|
22171
22202
|
* @returns UpdateClusterAuditLogConfigResponse
|
|
@@ -22346,7 +22377,7 @@ class Client extends openapi_core_1.default {
|
|
|
22346
22377
|
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
22347
22378
|
}
|
|
22348
22379
|
/**
|
|
22349
|
-
* Updates the deletion protection status of the specified resources. You can enable or disable deletion protection for namespaces and Services.
|
|
22380
|
+
* Updates the deletion protection status of the specified resources. You can enable or disable deletion protection for namespaces and Services. You can call this operation to enable deletion protection for namespaces or Services that involve businesses-critical and sensitive data to avoid incurring maintenance costs caused by accidental namespace or Service deletion.
|
|
22350
22381
|
*
|
|
22351
22382
|
* @param request - UpdateResourcesDeleteProtectionRequest
|
|
22352
22383
|
* @param headers - map
|
|
@@ -22391,7 +22422,7 @@ class Client extends openapi_core_1.default {
|
|
|
22391
22422
|
}
|
|
22392
22423
|
}
|
|
22393
22424
|
/**
|
|
22394
|
-
* Updates the deletion protection status of the specified resources. You can enable or disable deletion protection for namespaces and Services.
|
|
22425
|
+
* Updates the deletion protection status of the specified resources. You can enable or disable deletion protection for namespaces and Services. You can call this operation to enable deletion protection for namespaces or Services that involve businesses-critical and sensitive data to avoid incurring maintenance costs caused by accidental namespace or Service deletion.
|
|
22395
22426
|
*
|
|
22396
22427
|
* @param request - UpdateResourcesDeleteProtectionRequest
|
|
22397
22428
|
* @returns UpdateResourcesDeleteProtectionResponse
|