@alicloud/cs20151215 7.2.4 → 7.2.6
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 +88 -88
- package/dist/client.js +107 -88
- package/dist/client.js.map +1 -1
- package/dist/models/AttachInstancesToNodePoolRequest.d.ts +3 -13
- package/dist/models/AttachInstancesToNodePoolRequest.js.map +1 -1
- package/dist/models/CleanClusterUserPermissionsRequest.d.ts +1 -1
- package/dist/models/CleanUserPermissionsRequest.d.ts +2 -2
- package/dist/models/CleanUserPermissionsShrinkRequest.d.ts +2 -2
- package/dist/models/CreateClusterNodePoolRequest.d.ts +214 -163
- package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
- package/dist/models/CreateClusterRequest.d.ts +310 -392
- package/dist/models/CreateClusterRequest.js +2 -0
- package/dist/models/CreateClusterRequest.js.map +1 -1
- package/dist/models/DeleteClusterNodepoolRequest.d.ts +3 -1
- package/dist/models/DeleteClusterNodepoolRequest.js.map +1 -1
- package/dist/models/DeleteClusterNodesRequest.d.ts +15 -7
- package/dist/models/DeleteClusterNodesRequest.js +2 -0
- package/dist/models/DeleteClusterNodesRequest.js.map +1 -1
- package/dist/models/DescribeClusterAttachScriptsRequest.d.ts +9 -17
- package/dist/models/DescribeClusterAttachScriptsRequest.js.map +1 -1
- package/dist/models/DescribeClusterDetailResponseBody.d.ts +85 -77
- package/dist/models/DescribeClusterDetailResponseBody.js +2 -0
- package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +172 -176
- package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
- package/dist/models/DescribeClustersForRegionRequest.d.ts +14 -14
- package/dist/models/DescribeClustersForRegionResponseBody.d.ts +23 -12
- package/dist/models/DescribeClustersForRegionResponseBody.js +2 -0
- package/dist/models/DescribeClustersForRegionResponseBody.js.map +1 -1
- package/dist/models/DescribeKubernetesVersionMetadataRequest.d.ts +27 -15
- package/dist/models/DescribeKubernetesVersionMetadataRequest.js +2 -0
- package/dist/models/DescribeKubernetesVersionMetadataRequest.js.map +1 -1
- package/dist/models/DescribeKubernetesVersionMetadataResponse.d.ts +70 -54
- package/dist/models/DescribeKubernetesVersionMetadataResponse.js +20 -16
- package/dist/models/DescribeKubernetesVersionMetadataResponse.js.map +1 -1
- package/dist/models/ListNodePoolComponentInstanceNodesRequest.d.ts +1 -1
- package/dist/models/ListNodePoolComponentInstanceNodesResponseBody.d.ts +2 -2
- package/dist/models/ListNodePoolComponentInstanceNodesShrinkRequest.d.ts +1 -1
- package/dist/models/ListUserKubeConfigStatesRequest.d.ts +3 -3
- package/dist/models/ListUserKubeConfigStatesResponseBody.d.ts +4 -5
- package/dist/models/ListUserKubeConfigStatesResponseBody.js.map +1 -1
- package/dist/models/ModifyClusterNodePoolRequest.d.ts +210 -235
- package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
- package/dist/models/ModifyClusterRequest.d.ts +111 -99
- package/dist/models/ModifyClusterRequest.js +2 -0
- package/dist/models/ModifyClusterRequest.js.map +1 -1
- package/dist/models/ModifyClusterResponseBody.d.ts +2 -2
- package/dist/models/RemoveNodePoolNodesRequest.d.ts +19 -11
- package/dist/models/RemoveNodePoolNodesRequest.js +2 -0
- package/dist/models/RemoveNodePoolNodesRequest.js.map +1 -1
- package/dist/models/RemoveNodePoolNodesResponseBody.d.ts +2 -2
- package/dist/models/RemoveNodePoolNodesShrinkRequest.d.ts +19 -11
- package/dist/models/RemoveNodePoolNodesShrinkRequest.js +2 -0
- package/dist/models/RemoveNodePoolNodesShrinkRequest.js.map +1 -1
- package/dist/models/UpdateClusterAuditLogConfigRequest.d.ts +4 -3
- package/dist/models/UpdateClusterAuditLogConfigRequest.js.map +1 -1
- package/dist/models/UpdateUserPermissionsRequest.d.ts +22 -22
- package/dist/models/UpdateUserPermissionsRequest.js.map +1 -1
- package/package.json +2 -1
- package/src/client.ts +112 -88
- package/src/models/AttachInstancesToNodePoolRequest.ts +3 -13
- package/src/models/CleanClusterUserPermissionsRequest.ts +1 -1
- package/src/models/CleanUserPermissionsRequest.ts +2 -2
- package/src/models/CleanUserPermissionsShrinkRequest.ts +2 -2
- package/src/models/CreateClusterNodePoolRequest.ts +214 -163
- package/src/models/CreateClusterRequest.ts +312 -392
- package/src/models/DeleteClusterNodepoolRequest.ts +3 -1
- package/src/models/DeleteClusterNodesRequest.ts +17 -7
- package/src/models/DescribeClusterAttachScriptsRequest.ts +9 -17
- package/src/models/DescribeClusterDetailResponseBody.ts +87 -77
- package/src/models/DescribeClusterNodePoolsResponseBody.ts +172 -176
- package/src/models/DescribeClustersForRegionRequest.ts +14 -14
- package/src/models/DescribeClustersForRegionResponseBody.ts +25 -12
- package/src/models/DescribeKubernetesVersionMetadataRequest.ts +29 -15
- package/src/models/DescribeKubernetesVersionMetadataResponse.ts +90 -70
- package/src/models/ListNodePoolComponentInstanceNodesRequest.ts +1 -1
- package/src/models/ListNodePoolComponentInstanceNodesResponseBody.ts +2 -2
- package/src/models/ListNodePoolComponentInstanceNodesShrinkRequest.ts +1 -1
- package/src/models/ListUserKubeConfigStatesRequest.ts +3 -3
- package/src/models/ListUserKubeConfigStatesResponseBody.ts +4 -5
- package/src/models/ModifyClusterNodePoolRequest.ts +210 -235
- package/src/models/ModifyClusterRequest.ts +113 -99
- package/src/models/ModifyClusterResponseBody.ts +2 -2
- package/src/models/RemoveNodePoolNodesRequest.ts +21 -11
- package/src/models/RemoveNodePoolNodesResponseBody.ts +2 -2
- package/src/models/RemoveNodePoolNodesShrinkRequest.ts +21 -11
- package/src/models/UpdateClusterAuditLogConfigRequest.ts +4 -3
- package/src/models/UpdateUserPermissionsRequest.ts +22 -22
package/dist/client.js
CHANGED
|
@@ -41,6 +41,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
// This file is auto-generated, don't edit it
|
|
43
43
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
44
|
+
const gateway_pop_1 = __importDefault(require("@alicloud/gateway-pop"));
|
|
44
45
|
const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
|
|
45
46
|
const openapi_core_2 = require("@alicloud/openapi-core");
|
|
46
47
|
const $_model = __importStar(require("./models/model"));
|
|
@@ -48,6 +49,9 @@ __exportStar(require("./models/model"), exports);
|
|
|
48
49
|
class Client extends openapi_core_1.default {
|
|
49
50
|
constructor(config) {
|
|
50
51
|
super(config);
|
|
52
|
+
this._productId = "CS";
|
|
53
|
+
let gatewayClient = new gateway_pop_1.default();
|
|
54
|
+
this._spi = gatewayClient;
|
|
51
55
|
this._endpointRule = "regional";
|
|
52
56
|
this._endpointMap = {
|
|
53
57
|
'ap-northeast-2-pop': "cs.aliyuncs.com",
|
|
@@ -178,7 +182,7 @@ class Client extends openapi_core_1.default {
|
|
|
178
182
|
return await this.attachInstancesWithOptions(ClusterId, request, headers, runtime);
|
|
179
183
|
}
|
|
180
184
|
/**
|
|
181
|
-
* Adds existing ECS instances to
|
|
185
|
+
* Adds existing ECS instances to an ACK cluster as worker nodes, or re-adds removed node instances to a node pool. You can invoke AttachInstancesToNodePool to add existing nodes to a node pool.
|
|
182
186
|
*
|
|
183
187
|
* @param request - AttachInstancesToNodePoolRequest
|
|
184
188
|
* @param headers - map
|
|
@@ -218,7 +222,7 @@ class Client extends openapi_core_1.default {
|
|
|
218
222
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AttachInstancesToNodePoolResponse({}));
|
|
219
223
|
}
|
|
220
224
|
/**
|
|
221
|
-
* Adds existing ECS instances to
|
|
225
|
+
* Adds existing ECS instances to an ACK cluster as worker nodes, or re-adds removed node instances to a node pool. You can invoke AttachInstancesToNodePool to add existing nodes to a node pool.
|
|
222
226
|
*
|
|
223
227
|
* @param request - AttachInstancesToNodePoolRequest
|
|
224
228
|
* @returns AttachInstancesToNodePoolResponse
|
|
@@ -446,12 +450,12 @@ class Client extends openapi_core_1.default {
|
|
|
446
450
|
return await this.checkServiceRoleWithOptions(request, headers, runtime);
|
|
447
451
|
}
|
|
448
452
|
/**
|
|
449
|
-
* Clears the issued KubeConfig credentials and
|
|
453
|
+
* Clears the issued KubeConfig credentials and revokes the RBAC authorization of a specified user in a specified cluster. You can invoke CleanClusterUserPermissions to clean up and revoke authorization for KubeConfigs that pose a security risk.
|
|
450
454
|
*
|
|
451
455
|
* @remarks
|
|
452
|
-
* > 1. You must have the permissions to manage Container Service for Kubernetes (CS)
|
|
453
|
-
* > 2.
|
|
454
|
-
* > 3.
|
|
456
|
+
* > 1. You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
|
|
457
|
+
* > 2. This operation does not support clearing the permissions of an Alibaba Cloud account.
|
|
458
|
+
* > 3. This operation does not support clearing the permissions of the current user.
|
|
455
459
|
*
|
|
456
460
|
* @param request - CleanClusterUserPermissionsRequest
|
|
457
461
|
* @param headers - map
|
|
@@ -482,12 +486,12 @@ class Client extends openapi_core_1.default {
|
|
|
482
486
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CleanClusterUserPermissionsResponse({}));
|
|
483
487
|
}
|
|
484
488
|
/**
|
|
485
|
-
* Clears the issued KubeConfig credentials and
|
|
489
|
+
* Clears the issued KubeConfig credentials and revokes the RBAC authorization of a specified user in a specified cluster. You can invoke CleanClusterUserPermissions to clean up and revoke authorization for KubeConfigs that pose a security risk.
|
|
486
490
|
*
|
|
487
491
|
* @remarks
|
|
488
|
-
* > 1. You must have the permissions to manage Container Service for Kubernetes (CS)
|
|
489
|
-
* > 2.
|
|
490
|
-
* > 3.
|
|
492
|
+
* > 1. You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
|
|
493
|
+
* > 2. This operation does not support clearing the permissions of an Alibaba Cloud account.
|
|
494
|
+
* > 3. This operation does not support clearing the permissions of the current user.
|
|
491
495
|
*
|
|
492
496
|
* @param request - CleanClusterUserPermissionsRequest
|
|
493
497
|
* @returns CleanClusterUserPermissionsResponse
|
|
@@ -498,12 +502,12 @@ class Client extends openapi_core_1.default {
|
|
|
498
502
|
return await this.cleanClusterUserPermissionsWithOptions(ClusterId, Uid, request, headers, runtime);
|
|
499
503
|
}
|
|
500
504
|
/**
|
|
501
|
-
*
|
|
505
|
+
* Clears the issued KubeConfig credentials and RBAC permissions of a specified user to revoke authorizations for risky users, such as resigned employees or users with frozen accounts.
|
|
502
506
|
*
|
|
503
507
|
* @remarks
|
|
504
|
-
* >-
|
|
505
|
-
* >-
|
|
506
|
-
* >-
|
|
508
|
+
* >- You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
|
|
509
|
+
* >- You cannot clear the permissions of an Alibaba Cloud account.
|
|
510
|
+
* >- You cannot clear your own permissions.
|
|
507
511
|
*
|
|
508
512
|
* @param tmpReq - CleanUserPermissionsRequest
|
|
509
513
|
* @param headers - map
|
|
@@ -542,12 +546,12 @@ class Client extends openapi_core_1.default {
|
|
|
542
546
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CleanUserPermissionsResponse({}));
|
|
543
547
|
}
|
|
544
548
|
/**
|
|
545
|
-
*
|
|
549
|
+
* Clears the issued KubeConfig credentials and RBAC permissions of a specified user to revoke authorizations for risky users, such as resigned employees or users with frozen accounts.
|
|
546
550
|
*
|
|
547
551
|
* @remarks
|
|
548
|
-
* >-
|
|
549
|
-
* >-
|
|
550
|
-
* >-
|
|
552
|
+
* >- You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
|
|
553
|
+
* >- You cannot clear the permissions of an Alibaba Cloud account.
|
|
554
|
+
* >- You cannot clear your own permissions.
|
|
551
555
|
*
|
|
552
556
|
* @param request - CleanUserPermissionsRequest
|
|
553
557
|
* @returns CleanUserPermissionsResponse
|
|
@@ -702,16 +706,16 @@ class Client extends openapi_core_1.default {
|
|
|
702
706
|
return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
|
|
703
707
|
}
|
|
704
708
|
/**
|
|
705
|
-
* Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When
|
|
709
|
+
* Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When creating a cluster, you configure cluster information, cluster components, and ACK-related cloud resources.
|
|
706
710
|
*
|
|
707
711
|
* @remarks
|
|
708
712
|
* ### Generate OpenAPI request parameters by using the console
|
|
709
|
-
* When you call the CreateCluster operation to create a cluster, if the API call fails due to incorrect
|
|
710
|
-
* 1. Log on to the [Container Service
|
|
711
|
-
* 1. On the **Clusters** page, click **Cluster
|
|
712
|
-
* 1. In the dialog box, select the cluster
|
|
713
|
-
* 1. After the configuration is complete, on the **Confirm
|
|
714
|
-
* >Notice: Starting
|
|
713
|
+
* When you call the CreateCluster API operation to create a cluster, if the API call fails due to an incorrect combination of request parameters, you can generate the required combination of request parameters for cluster creation by using the console. Proceed as follows:
|
|
714
|
+
* 1. Log on to the [Container Service console](https://csnew.console.aliyun.com). In the left-side navigation pane, click **Clusters**.
|
|
715
|
+
* 1. On the **Clusters** page, click **Cluster Templates**.
|
|
716
|
+
* 1. In the dialog box, select the type of cluster that you want to create, click Create, and then configure the cluster information on the cluster configuration page.
|
|
717
|
+
* 1. After the configuration is complete, on the **Confirm** page, click **Equivalent Code** in the upper-right corner. The dialog box displays the combination of parameters required for cluster creation. You can copy and use the parameters.
|
|
718
|
+
* >Notice: Starting July 4, 2026, some request parameters will no longer take effect. For details about the changes and replacement parameters, see [Announcement on changes to input and output parameters of ACK cluster management-related OpenAPIs and OpenAPI deprecation](https://help.aliyun.com/document_detail/2932733.html).</notice>
|
|
715
719
|
*
|
|
716
720
|
* @param request - CreateClusterRequest
|
|
717
721
|
* @param headers - map
|
|
@@ -967,6 +971,9 @@ class Client extends openapi_core_1.default {
|
|
|
967
971
|
if (!$dara.isNull(request.sshFlags)) {
|
|
968
972
|
body["ssh_flags"] = request.sshFlags;
|
|
969
973
|
}
|
|
974
|
+
if (!$dara.isNull(request.supportPolicy)) {
|
|
975
|
+
body["support_policy"] = request.supportPolicy;
|
|
976
|
+
}
|
|
970
977
|
if (!$dara.isNull(request.tags)) {
|
|
971
978
|
body["tags"] = request.tags;
|
|
972
979
|
}
|
|
@@ -1051,16 +1058,16 @@ class Client extends openapi_core_1.default {
|
|
|
1051
1058
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateClusterResponse({}));
|
|
1052
1059
|
}
|
|
1053
1060
|
/**
|
|
1054
|
-
* Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When
|
|
1061
|
+
* Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When creating a cluster, you configure cluster information, cluster components, and ACK-related cloud resources.
|
|
1055
1062
|
*
|
|
1056
1063
|
* @remarks
|
|
1057
1064
|
* ### Generate OpenAPI request parameters by using the console
|
|
1058
|
-
* When you call the CreateCluster operation to create a cluster, if the API call fails due to incorrect
|
|
1059
|
-
* 1. Log on to the [Container Service
|
|
1060
|
-
* 1. On the **Clusters** page, click **Cluster
|
|
1061
|
-
* 1. In the dialog box, select the cluster
|
|
1062
|
-
* 1. After the configuration is complete, on the **Confirm
|
|
1063
|
-
* >Notice: Starting
|
|
1065
|
+
* When you call the CreateCluster API operation to create a cluster, if the API call fails due to an incorrect combination of request parameters, you can generate the required combination of request parameters for cluster creation by using the console. Proceed as follows:
|
|
1066
|
+
* 1. Log on to the [Container Service console](https://csnew.console.aliyun.com). In the left-side navigation pane, click **Clusters**.
|
|
1067
|
+
* 1. On the **Clusters** page, click **Cluster Templates**.
|
|
1068
|
+
* 1. In the dialog box, select the type of cluster that you want to create, click Create, and then configure the cluster information on the cluster configuration page.
|
|
1069
|
+
* 1. After the configuration is complete, on the **Confirm** page, click **Equivalent Code** in the upper-right corner. The dialog box displays the combination of parameters required for cluster creation. You can copy and use the parameters.
|
|
1070
|
+
* >Notice: Starting July 4, 2026, some request parameters will no longer take effect. For details about the changes and replacement parameters, see [Announcement on changes to input and output parameters of ACK cluster management-related OpenAPIs and OpenAPI deprecation](https://help.aliyun.com/document_detail/2932733.html).</notice>
|
|
1064
1071
|
*
|
|
1065
1072
|
* @param request - CreateClusterRequest
|
|
1066
1073
|
* @returns CreateClusterResponse
|
|
@@ -1164,7 +1171,7 @@ class Client extends openapi_core_1.default {
|
|
|
1164
1171
|
return await this.createClusterInspectConfigWithOptions(clusterId, request, headers, runtime);
|
|
1165
1172
|
}
|
|
1166
1173
|
/**
|
|
1167
|
-
*
|
|
1174
|
+
* A node pool is a logical collection of nodes with the same properties, which allows unified management and O&M of nodes, such as node upgrades and elastic scaling. You can further use the automated O&M features of node pools, such as automatic repair of OS CVE vulnerabilities, automatic recovery of faulty nodes, and automatic upgrades of kubelet and containerd versions, to reduce O&M costs. You can call CreateClusterNodePool to create a node pool for a cluster.
|
|
1168
1175
|
*
|
|
1169
1176
|
* @param request - CreateClusterNodePoolRequest
|
|
1170
1177
|
* @param headers - map
|
|
@@ -1240,7 +1247,7 @@ class Client extends openapi_core_1.default {
|
|
|
1240
1247
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateClusterNodePoolResponse({}));
|
|
1241
1248
|
}
|
|
1242
1249
|
/**
|
|
1243
|
-
*
|
|
1250
|
+
* A node pool is a logical collection of nodes with the same properties, which allows unified management and O&M of nodes, such as node upgrades and elastic scaling. You can further use the automated O&M features of node pools, such as automatic repair of OS CVE vulnerabilities, automatic recovery of faulty nodes, and automatic upgrades of kubelet and containerd versions, to reduce O&M costs. You can call CreateClusterNodePool to create a node pool for a cluster.
|
|
1244
1251
|
*
|
|
1245
1252
|
* @param request - CreateClusterNodePoolRequest
|
|
1246
1253
|
* @returns CreateClusterNodePoolResponse
|
|
@@ -1707,7 +1714,7 @@ class Client extends openapi_core_1.default {
|
|
|
1707
1714
|
return await this.deleteClusterInspectConfigWithOptions(clusterId, headers, runtime);
|
|
1708
1715
|
}
|
|
1709
1716
|
/**
|
|
1710
|
-
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger
|
|
1717
|
+
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger descheduling. If the pods cannot be rescheduled, your services may be affected. Ensure that the cluster has sufficient resources for descheduling.
|
|
1711
1718
|
*
|
|
1712
1719
|
* @param request - DeleteClusterNodepoolRequest
|
|
1713
1720
|
* @param headers - map
|
|
@@ -1738,7 +1745,7 @@ class Client extends openapi_core_1.default {
|
|
|
1738
1745
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteClusterNodepoolResponse({}));
|
|
1739
1746
|
}
|
|
1740
1747
|
/**
|
|
1741
|
-
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger
|
|
1748
|
+
* Deletes a node pool that is no longer in use. When a node pool is deleted, all pods on its nodes are deleted, which may trigger descheduling. If the pods cannot be rescheduled, your services may be affected. Ensure that the cluster has sufficient resources for descheduling.
|
|
1742
1749
|
*
|
|
1743
1750
|
* @param request - DeleteClusterNodepoolRequest
|
|
1744
1751
|
* @returns DeleteClusterNodepoolResponse
|
|
@@ -1749,14 +1756,14 @@ class Client extends openapi_core_1.default {
|
|
|
1749
1756
|
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
1750
1757
|
}
|
|
1751
1758
|
/**
|
|
1752
|
-
* Removes nodes from a cluster. When
|
|
1759
|
+
* Removes nodes from a cluster. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
|
|
1753
1760
|
*
|
|
1754
1761
|
* @remarks
|
|
1755
|
-
* - When removing nodes, perform standard operations by
|
|
1756
|
-
* - Do not manually release nodes or remove instances in the ECS or Auto Scaling (ESS) console or by calling related API operations, or passively release nodes when a subscription instance expires. In these cases, the nodes are directly
|
|
1757
|
-
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the
|
|
1758
|
-
* - Removing nodes involves pod migration
|
|
1759
|
-
* - When
|
|
1762
|
+
* - When removing nodes, perform standard operations by using this API operation or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
|
|
1763
|
+
* - Do not manually release nodes or remove instances in the ECS or Auto Scaling (ESS) console (or by calling related API operations), or passively release nodes when a subscription instance expires. In these cases, the nodes are directly stopped and automatically removed from the Container Service console.
|
|
1764
|
+
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the configuration to maintain the expected number of nodes.
|
|
1765
|
+
* - Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up your data in advance.
|
|
1766
|
+
* - When removing nodes, ACK executes a drain operation. Ensure that other nodes in the cluster have sufficient resources to avoid application pod scheduling failures.
|
|
1760
1767
|
* - Check the node affinity rules and scheduling policies of the pods on the nodes to be removed to ensure that the pods can be scheduled to other nodes after the nodes are removed.
|
|
1761
1768
|
*
|
|
1762
1769
|
* @param request - DeleteClusterNodesRequest
|
|
@@ -1770,6 +1777,9 @@ class Client extends openapi_core_1.default {
|
|
|
1770
1777
|
if (!$dara.isNull(request.drainNode)) {
|
|
1771
1778
|
body["drain_node"] = request.drainNode;
|
|
1772
1779
|
}
|
|
1780
|
+
if (!$dara.isNull(request.drainTimeoutSeconds)) {
|
|
1781
|
+
body["drain_timeout_seconds"] = request.drainTimeoutSeconds;
|
|
1782
|
+
}
|
|
1773
1783
|
if (!$dara.isNull(request.nodes)) {
|
|
1774
1784
|
body["nodes"] = request.nodes;
|
|
1775
1785
|
}
|
|
@@ -1794,14 +1804,14 @@ class Client extends openapi_core_1.default {
|
|
|
1794
1804
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteClusterNodesResponse({}));
|
|
1795
1805
|
}
|
|
1796
1806
|
/**
|
|
1797
|
-
* Removes nodes from a cluster. When
|
|
1807
|
+
* Removes nodes from a cluster. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
|
|
1798
1808
|
*
|
|
1799
1809
|
* @remarks
|
|
1800
|
-
* - When removing nodes, perform standard operations by
|
|
1801
|
-
* - Do not manually release nodes or remove instances in the ECS or Auto Scaling (ESS) console or by calling related API operations, or passively release nodes when a subscription instance expires. In these cases, the nodes are directly
|
|
1802
|
-
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the
|
|
1803
|
-
* - Removing nodes involves pod migration
|
|
1804
|
-
* - When
|
|
1810
|
+
* - When removing nodes, perform standard operations by using this API operation or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
|
|
1811
|
+
* - Do not manually release nodes or remove instances in the ECS or Auto Scaling (ESS) console (or by calling related API operations), or passively release nodes when a subscription instance expires. In these cases, the nodes are directly stopped and automatically removed from the Container Service console.
|
|
1812
|
+
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the configuration to maintain the expected number of nodes.
|
|
1813
|
+
* - Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up your data in advance.
|
|
1814
|
+
* - When removing nodes, ACK executes a drain operation. Ensure that other nodes in the cluster have sufficient resources to avoid application pod scheduling failures.
|
|
1805
1815
|
* - Check the node affinity rules and scheduling policies of the pods on the nodes to be removed to ensure that the pods can be scheduled to other nodes after the nodes are removed.
|
|
1806
1816
|
*
|
|
1807
1817
|
* @param request - DeleteClusterNodesRequest
|
|
@@ -2437,7 +2447,7 @@ class Client extends openapi_core_1.default {
|
|
|
2437
2447
|
return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
|
|
2438
2448
|
}
|
|
2439
2449
|
/**
|
|
2440
|
-
*
|
|
2450
|
+
* Queries the script for adding existing nodes to a cluster node pool. Container Service for Kubernetes (ACK) supports manually adding existing nodes to a node pool if you need to add existing ECS instances to an ACK cluster as worker nodes or re-add node instances to a node pool after removing worker nodes. You can invoke the DescribeClusterAttachScripts operation to obtain the script for adding existing nodes.
|
|
2441
2451
|
*
|
|
2442
2452
|
* @param request - DescribeClusterAttachScriptsRequest
|
|
2443
2453
|
* @param headers - map
|
|
@@ -2489,7 +2499,7 @@ class Client extends openapi_core_1.default {
|
|
|
2489
2499
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeClusterAttachScriptsResponse({}));
|
|
2490
2500
|
}
|
|
2491
2501
|
/**
|
|
2492
|
-
*
|
|
2502
|
+
* Queries the script for adding existing nodes to a cluster node pool. Container Service for Kubernetes (ACK) supports manually adding existing nodes to a node pool if you need to add existing ECS instances to an ACK cluster as worker nodes or re-add node instances to a node pool after removing worker nodes. You can invoke the DescribeClusterAttachScripts operation to obtain the script for adding existing nodes.
|
|
2493
2503
|
*
|
|
2494
2504
|
* @param request - DescribeClusterAttachScriptsRequest
|
|
2495
2505
|
* @returns DescribeClusterAttachScriptsResponse
|
|
@@ -2657,10 +2667,10 @@ class Client extends openapi_core_1.default {
|
|
|
2657
2667
|
*
|
|
2658
2668
|
* @remarks
|
|
2659
2669
|
* - When you remove a node, perform standard operations by using this API operation or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
|
|
2660
|
-
* - Do not release nodes or remove instances in the ECS or Auto Scaling console
|
|
2661
|
-
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the
|
|
2662
|
-
* - Removing a node involves pod migration
|
|
2663
|
-
* - When a node is removed, ACK
|
|
2670
|
+
* - Do not proactively release nodes or remove instances in the ECS or Auto Scaling (ESS) console or by calling related API operations, or passively release nodes when a subscription instance expires. In these cases, the nodes are directly shut down and automatically removed from the Container Service console.
|
|
2671
|
+
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the configurations to maintain the expected number of nodes.
|
|
2672
|
+
* - Removing a node involves pod migration and may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up your data in advance.
|
|
2673
|
+
* - When a node is removed, ACK performs a drain operation. Make sure that other nodes in the cluster have sufficient resources to prevent application pods from failing to be scheduled.
|
|
2664
2674
|
* - Check the node affinity rules and scheduling policies of the pods on the node to be removed. Make sure that the pods can be scheduled to other nodes after the node is removed.
|
|
2665
2675
|
*
|
|
2666
2676
|
* @param request - DescribeClusterNodePoolsRequest
|
|
@@ -2696,10 +2706,10 @@ class Client extends openapi_core_1.default {
|
|
|
2696
2706
|
*
|
|
2697
2707
|
* @remarks
|
|
2698
2708
|
* - When you remove a node, perform standard operations by using this API operation or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
|
|
2699
|
-
* - Do not release nodes or remove instances in the ECS or Auto Scaling console
|
|
2700
|
-
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the
|
|
2701
|
-
* - Removing a node involves pod migration
|
|
2702
|
-
* - When a node is removed, ACK
|
|
2709
|
+
* - Do not proactively release nodes or remove instances in the ECS or Auto Scaling (ESS) console or by calling related API operations, or passively release nodes when a subscription instance expires. In these cases, the nodes are directly shut down and automatically removed from the Container Service console.
|
|
2710
|
+
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the configurations to maintain the expected number of nodes.
|
|
2711
|
+
* - Removing a node involves pod migration and may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up your data in advance.
|
|
2712
|
+
* - When a node is removed, ACK performs a drain operation. Make sure that other nodes in the cluster have sufficient resources to prevent application pods from failing to be scheduled.
|
|
2703
2713
|
* - Check the node affinity rules and scheduling policies of the pods on the node to be removed. Make sure that the pods can be scheduled to other nodes after the node is removed.
|
|
2704
2714
|
*
|
|
2705
2715
|
* @param request - DescribeClusterNodePoolsRequest
|
|
@@ -3056,7 +3066,7 @@ class Client extends openapi_core_1.default {
|
|
|
3056
3066
|
return await this.describeClustersWithOptions(request, headers, runtime);
|
|
3057
3067
|
}
|
|
3058
3068
|
/**
|
|
3059
|
-
* Queries
|
|
3069
|
+
* Queries all clusters in a specified region.
|
|
3060
3070
|
*
|
|
3061
3071
|
* @param request - DescribeClustersForRegionRequest
|
|
3062
3072
|
* @param headers - map
|
|
@@ -3105,7 +3115,7 @@ class Client extends openapi_core_1.default {
|
|
|
3105
3115
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeClustersForRegionResponse({}));
|
|
3106
3116
|
}
|
|
3107
3117
|
/**
|
|
3108
|
-
* Queries
|
|
3118
|
+
* Queries all clusters in a specified region.
|
|
3109
3119
|
*
|
|
3110
3120
|
* @param request - DescribeClustersForRegionRequest
|
|
3111
3121
|
* @returns DescribeClustersForRegionResponse
|
|
@@ -3346,7 +3356,7 @@ class Client extends openapi_core_1.default {
|
|
|
3346
3356
|
return await this.describeExternalAgentWithOptions(ClusterId, request, headers, runtime);
|
|
3347
3357
|
}
|
|
3348
3358
|
/**
|
|
3349
|
-
* Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and
|
|
3359
|
+
* Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and runtimes.
|
|
3350
3360
|
*
|
|
3351
3361
|
* @param request - DescribeKubernetesVersionMetadataRequest
|
|
3352
3362
|
* @param headers - map
|
|
@@ -3374,6 +3384,9 @@ class Client extends openapi_core_1.default {
|
|
|
3374
3384
|
if (!$dara.isNull(request.region)) {
|
|
3375
3385
|
query["Region"] = request.region;
|
|
3376
3386
|
}
|
|
3387
|
+
if (!$dara.isNull(request.supportPolicy)) {
|
|
3388
|
+
query["SupportPolicy"] = request.supportPolicy;
|
|
3389
|
+
}
|
|
3377
3390
|
if (!$dara.isNull(request.runtime)) {
|
|
3378
3391
|
query["runtime"] = request.runtime;
|
|
3379
3392
|
}
|
|
@@ -3395,7 +3408,7 @@ class Client extends openapi_core_1.default {
|
|
|
3395
3408
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeKubernetesVersionMetadataResponse({}));
|
|
3396
3409
|
}
|
|
3397
3410
|
/**
|
|
3398
|
-
* Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and
|
|
3411
|
+
* Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and runtimes.
|
|
3399
3412
|
*
|
|
3400
3413
|
* @param request - DescribeKubernetesVersionMetadataRequest
|
|
3401
3414
|
* @returns DescribeKubernetesVersionMetadataResponse
|
|
@@ -5245,10 +5258,10 @@ class Client extends openapi_core_1.default {
|
|
|
5245
5258
|
return await this.listTagResourcesWithOptions(request, headers, runtime);
|
|
5246
5259
|
}
|
|
5247
5260
|
/**
|
|
5248
|
-
* Queries the KubeConfig status list
|
|
5261
|
+
* Queries the KubeConfig status list for all clusters of the current user.
|
|
5249
5262
|
*
|
|
5250
5263
|
* @remarks
|
|
5251
|
-
* > To call this operation, you must have the
|
|
5264
|
+
* > To call this operation, you must have the AliyunCSFullAccess permission to manage Container Service for Kubernetes (CS).
|
|
5252
5265
|
*
|
|
5253
5266
|
* @param request - ListUserKubeConfigStatesRequest
|
|
5254
5267
|
* @param headers - map
|
|
@@ -5282,10 +5295,10 @@ class Client extends openapi_core_1.default {
|
|
|
5282
5295
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListUserKubeConfigStatesResponse({}));
|
|
5283
5296
|
}
|
|
5284
5297
|
/**
|
|
5285
|
-
* Queries the KubeConfig status list
|
|
5298
|
+
* Queries the KubeConfig status list for all clusters of the current user.
|
|
5286
5299
|
*
|
|
5287
5300
|
* @remarks
|
|
5288
|
-
* > To call this operation, you must have the
|
|
5301
|
+
* > To call this operation, you must have the AliyunCSFullAccess permission to manage Container Service for Kubernetes (CS).
|
|
5289
5302
|
*
|
|
5290
5303
|
* @param request - ListUserKubeConfigStatesRequest
|
|
5291
5304
|
* @returns ListUserKubeConfigStatesResponse
|
|
@@ -5398,10 +5411,10 @@ class Client extends openapi_core_1.default {
|
|
|
5398
5411
|
return await this.modifyAutoRepairPolicyWithOptions(clusterId, policyId, request, headers, runtime);
|
|
5399
5412
|
}
|
|
5400
5413
|
/**
|
|
5401
|
-
* Modifies the
|
|
5414
|
+
* Modifies the configurations of an ACK cluster.
|
|
5402
5415
|
*
|
|
5403
5416
|
* @remarks
|
|
5404
|
-
* <notice>Starting
|
|
5417
|
+
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to request and response parameters of ACK cluster management API operations and API operation deprecation](https://help.aliyun.com/document_detail/2932733.html).</notice>
|
|
5405
5418
|
*
|
|
5406
5419
|
* @param request - ModifyClusterRequest
|
|
5407
5420
|
* @param headers - map
|
|
@@ -5465,6 +5478,9 @@ class Client extends openapi_core_1.default {
|
|
|
5465
5478
|
if (!$dara.isNull(request.securityGroupId)) {
|
|
5466
5479
|
body["security_group_id"] = request.securityGroupId;
|
|
5467
5480
|
}
|
|
5481
|
+
if (!$dara.isNull(request.supportPolicy)) {
|
|
5482
|
+
body["support_policy"] = request.supportPolicy;
|
|
5483
|
+
}
|
|
5468
5484
|
if (!$dara.isNull(request.systemEventsLogging)) {
|
|
5469
5485
|
body["system_events_logging"] = request.systemEventsLogging;
|
|
5470
5486
|
}
|
|
@@ -5492,10 +5508,10 @@ class Client extends openapi_core_1.default {
|
|
|
5492
5508
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyClusterResponse({}));
|
|
5493
5509
|
}
|
|
5494
5510
|
/**
|
|
5495
|
-
* Modifies the
|
|
5511
|
+
* Modifies the configurations of an ACK cluster.
|
|
5496
5512
|
*
|
|
5497
5513
|
* @remarks
|
|
5498
|
-
* <notice>Starting
|
|
5514
|
+
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to request and response parameters of ACK cluster management API operations and API operation deprecation](https://help.aliyun.com/document_detail/2932733.html).</notice>
|
|
5499
5515
|
*
|
|
5500
5516
|
* @param request - ModifyClusterRequest
|
|
5501
5517
|
* @returns ModifyClusterResponse
|
|
@@ -5560,10 +5576,10 @@ class Client extends openapi_core_1.default {
|
|
|
5560
5576
|
return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
|
|
5561
5577
|
}
|
|
5562
5578
|
/**
|
|
5563
|
-
* Updates the
|
|
5579
|
+
* Updates the configurations of a specified node pool.
|
|
5564
5580
|
*
|
|
5565
5581
|
* @remarks
|
|
5566
|
-
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to
|
|
5582
|
+
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to request and response parameters and deprecation of OpenAPI operations related to ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
|
|
5567
5583
|
*
|
|
5568
5584
|
* @param request - ModifyClusterNodePoolRequest
|
|
5569
5585
|
* @param headers - map
|
|
@@ -5618,10 +5634,10 @@ class Client extends openapi_core_1.default {
|
|
|
5618
5634
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyClusterNodePoolResponse({}));
|
|
5619
5635
|
}
|
|
5620
5636
|
/**
|
|
5621
|
-
* Updates the
|
|
5637
|
+
* Updates the configurations of a specified node pool.
|
|
5622
5638
|
*
|
|
5623
5639
|
* @remarks
|
|
5624
|
-
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to
|
|
5640
|
+
* <notice>Starting July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to request and response parameters and deprecation of OpenAPI operations related to ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
|
|
5625
5641
|
*
|
|
5626
5642
|
* @param request - ModifyClusterNodePoolRequest
|
|
5627
5643
|
* @returns ModifyClusterNodePoolResponse
|
|
@@ -5999,14 +6015,14 @@ class Client extends openapi_core_1.default {
|
|
|
5999
6015
|
return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
6000
6016
|
}
|
|
6001
6017
|
/**
|
|
6002
|
-
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
|
|
6018
|
+
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated Elastic Compute Service (ECS) instances and whether to automatically drain the nodes. Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours and back up your data in advance.
|
|
6003
6019
|
*
|
|
6004
6020
|
* @remarks
|
|
6005
|
-
* -
|
|
6021
|
+
* - Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours.
|
|
6006
6022
|
* - Unexpected risks may occur during the operation. Back up your data in advance.
|
|
6007
|
-
* - During the operation, the system sets the nodes to the unschedulable state.
|
|
6023
|
+
* - During the operation, the system sets the current nodes to the unschedulable state.
|
|
6008
6024
|
* - Only worker nodes are removed. Master nodes are not removed.
|
|
6009
|
-
* - Even if you choose to release nodes (
|
|
6025
|
+
* - Even if you choose to release nodes (that is, set `release_node` to `true`), subscription nodes are not released. To release subscription nodes, you must remove them first and then release them in the [ECS console](https://ecs.console.aliyun.com/).
|
|
6010
6026
|
*
|
|
6011
6027
|
* @param tmpReq - RemoveNodePoolNodesRequest
|
|
6012
6028
|
* @param headers - map
|
|
@@ -6030,6 +6046,9 @@ class Client extends openapi_core_1.default {
|
|
|
6030
6046
|
if (!$dara.isNull(request.drainNode)) {
|
|
6031
6047
|
query["drain_node"] = request.drainNode;
|
|
6032
6048
|
}
|
|
6049
|
+
if (!$dara.isNull(request.drainTimeoutSeconds)) {
|
|
6050
|
+
query["drain_timeout_seconds"] = request.drainTimeoutSeconds;
|
|
6051
|
+
}
|
|
6033
6052
|
if (!$dara.isNull(request.instanceIdsShrink)) {
|
|
6034
6053
|
query["instance_ids"] = request.instanceIdsShrink;
|
|
6035
6054
|
}
|
|
@@ -6057,14 +6076,14 @@ class Client extends openapi_core_1.default {
|
|
|
6057
6076
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RemoveNodePoolNodesResponse({}));
|
|
6058
6077
|
}
|
|
6059
6078
|
/**
|
|
6060
|
-
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
|
|
6079
|
+
* Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated Elastic Compute Service (ECS) instances and whether to automatically drain the nodes. Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours and back up your data in advance.
|
|
6061
6080
|
*
|
|
6062
6081
|
* @remarks
|
|
6063
|
-
* -
|
|
6082
|
+
* - Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours.
|
|
6064
6083
|
* - Unexpected risks may occur during the operation. Back up your data in advance.
|
|
6065
|
-
* - During the operation, the system sets the nodes to the unschedulable state.
|
|
6084
|
+
* - During the operation, the system sets the current nodes to the unschedulable state.
|
|
6066
6085
|
* - Only worker nodes are removed. Master nodes are not removed.
|
|
6067
|
-
* - Even if you choose to release nodes (
|
|
6086
|
+
* - Even if you choose to release nodes (that is, set `release_node` to `true`), subscription nodes are not released. To release subscription nodes, you must remove them first and then release them in the [ECS console](https://ecs.console.aliyun.com/).
|
|
6068
6087
|
*
|
|
6069
6088
|
* @param request - RemoveNodePoolNodesRequest
|
|
6070
6089
|
* @returns RemoveNodePoolNodesResponse
|
|
@@ -6851,7 +6870,7 @@ class Client extends openapi_core_1.default {
|
|
|
6851
6870
|
return await this.untagResourcesWithOptions(request, headers, runtime);
|
|
6852
6871
|
}
|
|
6853
6872
|
/**
|
|
6854
|
-
*
|
|
6873
|
+
* Updates the audit log configuration of a specified ACK cluster. You can call this operation to enable or disable the audit log feature, or update the audit log configuration to record requests to the Kubernetes API and their results for tracing cluster operation history and troubleshooting cluster faults.
|
|
6855
6874
|
*
|
|
6856
6875
|
* @remarks
|
|
6857
6876
|
* Before you call this operation, make sure that you fully understand the billing methods and pricing of <props="china">[Simple Log Service](https://www.aliyun.com/price/product#/sls/detail/sls)<props="intl">[Simple Log Service](https://www.alibabacloud.com/product/log-service/pricing).
|
|
@@ -6888,7 +6907,7 @@ class Client extends openapi_core_1.default {
|
|
|
6888
6907
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateClusterAuditLogConfigResponse({}));
|
|
6889
6908
|
}
|
|
6890
6909
|
/**
|
|
6891
|
-
*
|
|
6910
|
+
* Updates the audit log configuration of a specified ACK cluster. You can call this operation to enable or disable the audit log feature, or update the audit log configuration to record requests to the Kubernetes API and their results for tracing cluster operation history and troubleshooting cluster faults.
|
|
6892
6911
|
*
|
|
6893
6912
|
* @remarks
|
|
6894
6913
|
* Before you call this operation, make sure that you fully understand the billing methods and pricing of <props="china">[Simple Log Service](https://www.aliyun.com/price/product#/sls/detail/sls)<props="intl">[Simple Log Service](https://www.alibabacloud.com/product/log-service/pricing).
|
|
@@ -7382,10 +7401,10 @@ class Client extends openapi_core_1.default {
|
|
|
7382
7401
|
return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
|
|
7383
7402
|
}
|
|
7384
7403
|
/**
|
|
7385
|
-
* Updates the
|
|
7404
|
+
* Updates the RBAC access permissions of a Resource Access Management (RAM) user or RAM role in an ACK cluster. By default, RAM users and RAM roles other than the cluster creator do not have any RBAC access permissions in the cluster. You can invoke the UpdateUserPermissions operation to update the RBAC access permissions of a RAM user or role, including the accessible resources, the scope of the permissions, and the preset role types, to improve secure access control in cluster management.
|
|
7386
7405
|
*
|
|
7387
7406
|
* @remarks
|
|
7388
|
-
* You can update the cluster authorization information of a target Resource Access Management (RAM) user or RAM role by using
|
|
7407
|
+
* You can update the cluster authorization information of a target Resource Access Management (RAM) user or RAM role by using full update or incremental update. A full update overwrites the existing cluster permissions of the target RAM user or RAM role. The request must include all permission configurations that you want to grant to the target RAM user or RAM role. An incremental update includes add and delete operations. It only modifies the permissions based on the cluster authorization information included in the request and does not affect other cluster permissions of the RAM user or RAM role.
|
|
7389
7408
|
*
|
|
7390
7409
|
* @param request - UpdateUserPermissionsRequest
|
|
7391
7410
|
* @param headers - map
|
|
@@ -7417,10 +7436,10 @@ class Client extends openapi_core_1.default {
|
|
|
7417
7436
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateUserPermissionsResponse({}));
|
|
7418
7437
|
}
|
|
7419
7438
|
/**
|
|
7420
|
-
* Updates the
|
|
7439
|
+
* Updates the RBAC access permissions of a Resource Access Management (RAM) user or RAM role in an ACK cluster. By default, RAM users and RAM roles other than the cluster creator do not have any RBAC access permissions in the cluster. You can invoke the UpdateUserPermissions operation to update the RBAC access permissions of a RAM user or role, including the accessible resources, the scope of the permissions, and the preset role types, to improve secure access control in cluster management.
|
|
7421
7440
|
*
|
|
7422
7441
|
* @remarks
|
|
7423
|
-
* You can update the cluster authorization information of a target Resource Access Management (RAM) user or RAM role by using
|
|
7442
|
+
* You can update the cluster authorization information of a target Resource Access Management (RAM) user or RAM role by using full update or incremental update. A full update overwrites the existing cluster permissions of the target RAM user or RAM role. The request must include all permission configurations that you want to grant to the target RAM user or RAM role. An incremental update includes add and delete operations. It only modifies the permissions based on the cluster authorization information included in the request and does not affect other cluster permissions of the RAM user or RAM role.
|
|
7424
7443
|
*
|
|
7425
7444
|
* @param request - UpdateUserPermissionsRequest
|
|
7426
7445
|
* @returns UpdateUserPermissionsResponse
|