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

Xoá cluster template Kubernetes

DELETE/v1/clustertemplates/{clustertemplate_ident}

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

Request​

Tham số​

clustertemplate_identstringbắt buộc

UUID hoặc tên của cluster template 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/clustertemplates/389ecf86-46ce-4cdd-b7f3-889b0603b7ed

HTTP request​

DELETE https://api.vietnix.cloud:9513/v1/clustertemplates/389ecf86-46ce-4cdd-b7f3-889b0603b7ed
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.