• Cloud Container Engine

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

Deleting a Specified Container Cluster

Function

This API is used to delete a cluster.

URI

DELETE /api/v3/projects/{project_id}/clusters/{cluster_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.

Request

N/A

Response

Response parameters:

For details about the response parameters, see Table 8.

Example response:

{
    "kind": "Cluster",
    "apiVersion": "v3",
    "metadata": {
        "name": "mycluster-demo",
        "uid": "40c54866-38c5-11e9-b246-0255ac101413",
        "creationTimestamp": "2019-02-25 06:19:05.789462 +0000 UTC",
        "updateTimestamp": "2019-02-25 06:37:33.878405 +0000 UTC"
    },
    "spec": {
        "type": "VirtualMachine",
        "flavor": "cce.s1.small",
        "version": "v1.11.3-r1",
        "description": "thisisademocluster",
        "hostNetwork": {
            "vpc": "a8cc62dc-acc2-47d0-9bfb-3b1d776c520b",
            "subnet": "6d9e5355-85af-4a89-af28-243edb700db6"
        },
        "containerNetwork": {
            "mode": "overlay_l2",
            "cidr": "172.16.0.0/16"
        },
        "authentication": {
            "mode": "x509",
            "authenticatingProxy": {}
        },
        "billingMode": 0
    },
    "status": {
        "phase": "Available",
        "jobID": "e1cbc576-3023-11e9-89af-0255ac101406",
        "endpoints": {
            "internal": "https://192.168.0.101:5443",
            "external_otc": "https://b1b54638-301f-11e9-89af-0255ac101406.cce.eu-de.otc.t-systems.com"
        }
    }
}

Status Code

Table 2 describes the status code of the API.

Table 2 Status code

Status Code

Description

200

The job for deleting a cluster is successfully delivered.

For details about error status codes, see Status Codes.