You can call RemoveClusterNodes to remove nodes from a cluster.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses the common request header only. For more information, see Common parameters.

Request syntax

POST /api/v2/clusters/[ClusterId]/nodes/remove HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
ClusterId String Yes c82e6987e2961451182edacd74faff7**

The ID of the cluster.

release_node Boolean No false

Specifies whether to release the Elastic Compute Service (ECS) instances when they are removed from the cluster.

drain_node Boolean No true

Specifies whether to remove all pods from the nodes that you want to remove.

nodes Array No []

A list of the nodes that you want to remove.


Sample requests

POST /api/v2/clusters/[ClusterId]/nodes/remove HTTP/1.1
Common request header
"ClusterId": " c82e6987e2961451182edacd74faff7**"

Sample success responses

JSON format


Error codes

For a list of error codes, visit the API Error Center.