Skip to main content

Delete Kubernetes Cluster

DELETE /v1/clusters/{cluster_ident}

Delete a Kubernetes cluster with the specified ID.

info

Request

Request Parameters

NameInTypeDescription
cluster_identpathstringThe UUID or name of clusters in Magnum.

Sample Request

Using curl

curl -ks -X DELETE -H 'Content-Type: application/json' -H 'OpenStack-API-Version: container-infra 1.8' -H 'X-Auth-Token: gAAAAA<...>' \
https://api.vietnix.cloud:9513/v1/clusters/ed495c33-601c-4f5c-86c8-d7c13b5f6b0e

Using HTTP request

DELETE https://api.vietnix.cloud:9513/v1/clusters/ed495c33-601c-4f5c-86c8-d7c13b5f6b0e
Content-Type: application/json
OpenStack-API-Version: container-infra 1.8
X-Auth-Token: gAAAAA<...>

Response

Status Code

Success

Status CodeDescription
204 - No ContentThe server has fulfilled the request.

Error

Status CodeDescription
401 - UnauthorizedUser must authenticate before making a request.
403 - ForbiddenPolicy does not allow current user to do this operation.
404 - Not FoundThe requested resource could not be found.
409 - ConflictThis operation conflicted with another operation on this resource.