Chuyển tới nội dung chính

Xoá cluster Kubernetes

DELETE/v1/clusters/{cluster_ident}

Xoá cluster Kubernetes theo ID được chỉ định.

info

Request​

Tham số​

cluster_identstringbắt buộc

UUID hoặc tên của cluster trong Magnum.

Request mẫu​

Dùng 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

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​

Mã trạng thái​

Thành công​

Mã trạng tháiMô tả
204 - No ContentServer đã xử lý xong request.

Lỗi​

Mã trạng tháiMô tả
401 - UnauthorizedCần xác thực trước khi gửi request.
403 - ForbiddenPolicy không cho phép user hiện tại thực hiện thao tác này.
404 - Not FoundKhông tìm thấy tài nguyên được yêu cầu.
409 - ConflictThao tác xung đột với một thao tác khác trên tài nguyên.