Delete Kubernetes Cluster
DELETE /v1/clusters/{cluster_ident}
Delete a Kubernetes cluster with the specified ID.
info
Source: delete-a-cluster
Request
Request Parameters
| Name | In | Type | Description |
|---|---|---|---|
| cluster_ident | path | string | The 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 Code | Description |
|---|---|
| 204 - No Content | The server has fulfilled the request. |
Error
| Status Code | Description |
|---|---|
| 401 - Unauthorized | User must authenticate before making a request. |
| 403 - Forbidden | Policy does not allow current user to do this operation. |
| 404 - Not Found | The requested resource could not be found. |
| 409 - Conflict | This operation conflicted with another operation on this resource. |