You can call this operation to remove one or more nodes from a cluster. The ReleaseNode parameter controls whether to release the underlying ENS compute instance, and its default value is false. If a node being removed is in the failed state, this parameter is ignored and the corresponding compute instance is released by default. For an ENS compute instance attached via a script from the DescribeAttachScript operation, this parameter is also ignored, and the instance is not released by default.
Operation description
If you set the ReleaseNode parameter to false, you must manually stop the kubelet process on the node before calling this operation. Otherwise, the node may automatically rejoin the cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DeleteClusterNodes |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
eck-xxxxxxxx |
| Body |
object |
Yes |
The request body. |
|
| Nodes |
array |
Yes |
A list of nodes to remove. |
|
|
string |
Yes |
The node ID. |
["i-5xxxxxxxxxxx"] |
|
| ReleaseNode |
boolean |
No |
Specifies whether to release the underlying ENS instance for the node. Default value: |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.