Xoá cluster template Kubernetes
DELETE
/v1/clustertemplates/{clustertemplate_ident}Xoá cluster template theo ID được chỉ định.
info
Nguồn: delete-a-cluster-template
Request
Tham số
clustertemplate_identstringbắt buộcUUID 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ái | Mô tả |
|---|---|
| 204 - No Content | Server đã xử lý xong request. |
Lỗi
| Mã trạng thái | Mô tả |
|---|---|
| 401 - Unauthorized | Cần xác thực trước khi gửi request. |
| 403 - Forbidden | Policy không cho phép user hiện tại thực hiện thao tác này. |
| 404 - Not Found | Không tìm thấy tài nguyên được yêu cầu. |
| 409 - Conflict | Thao tác xung đột với một thao tác khác trên tài nguyên. |