• Cloud Container Engine

cce
  1. Help Center
  2. Cloud Container Engine
  3. API Reference
  4. Cluster and Host Management (Proprietary APIs)
  5. Deleting Nodes from a Container Cluster

Deleting Nodes from a Container Cluster

Function

This API is used to delete one or multiple nodes from a container cluster.

URI

DELETE /api/v1/clusters/{clusteruuid}/hosts

Table 1 describes the parameter of this API.

Table 1 Parameter description

Parameter

Mandatory

Description

clusteruuid

Yes

UUID of the container cluster.

Request

Request parameter:

Table 2 describes the request parameter.

Table 2 Request parameter

Parameter

Mandatory

Type

Description

hosts

Yes

Table 3

List of nodes.

Table 3 Data structure of the hosts field

Parameter

Mandatory

Type

Description

name

Yes

String

Node Name.

Example request:

{
    "hosts": [
        {
            "name": "test-node-1"
        }
    ]
}

Response

N/A

Status Code

Table 4 describes the status code of this API.

Table 4 Status code

Status Code

Description

200

The node is successfully deleted from the container cluster.

For the description about status codes, see section Status Codes.