• Cloud Container Engine

cce
  1. Help Center
  2. Cloud Container Engine
  3. API Reference 2.0
  4. API
  5. Cluster Management
  6. Deleting a Node from a Specified Cluster

Deleting a Node from a Specified Cluster

Function

This API is used to delete a node from a specified cluster.

URI

DELETE /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/{node_id}

Table 1 describes the parameters of the API.

Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Project ID.

cluster_id

Yes

Cluster ID.

node_id

Yes

Node ID.

Request

N/A

Response

Response parameters:

For details about the response parameters, see Table 2.

Example response:

{
    "kind": "Node",
    "apiVersion": "v3",
    "metadata": {
        "name": "node-demo",
        "uid": "c33b6898-38c9-11e9-b246-0255ac101413",
        "creationTimestamp": "2019-02-25 07:19:33.476529 +0000 UTC",
        "updateTimestamp": "2019-02-25 07:23:58.859328 +0000 UTC",
        "annotations": {
            "kubernetes.io/node-pool.id": "eu-de-02#m3.large.8#EulerOS 2.2"
        }
    },
    "spec": {
        "flavor": "m3.large.8",
        "az": "eu-de-02",
        "os": "EulerOS 2.2",
        "login": {
            "sshKey": "KeyPair-demo",
        },
        "rootVolume": {
            "volumetype": "SATA",
            "size": 40
        },
        "dataVolumes": [
            {
                "volumetype": "SATA",
                "size": 100
            }
        ],
        "publicIP": {
            "eip": {
                "bandwidth": {}
            }
        },
        "billingMode": 0
    },
    "status": {
        "phase": "Active",
        "jobID": "e13146e4-3029-11e9-9e7b-0255ac101407",
        "serverId": "8a5a3ac2-5fc8-4eed-860c-96e15a745f99",
        "privateIP": "192.168.0.55"
    }
}

Status Code

Table 2 describes the status code of the API.

Table 2 Status code

Status Code

Description

200

The job for deleting a node is successfully delivered.

For details about error status codes, see Status Codes.