@@ -11,6 +11,7 @@ import (
|
||||
// VmCleanup removes a VM from inventory by ID and datacenter.
|
||||
// @Summary Cleanup VM inventory entry (deprecated)
|
||||
// @Description Deprecated: Removes a VM inventory entry by VM ID and datacenter name.
|
||||
// @Description Requires Bearer authentication with the admin role.
|
||||
// @Tags inventory
|
||||
// @Deprecated
|
||||
// @Produce json
|
||||
@@ -18,6 +19,7 @@ import (
|
||||
// @Param datacenter_name query string true "Datacenter name"
|
||||
// @Success 200 {object} models.StatusMessageResponse "Cleanup completed"
|
||||
// @Failure 400 {object} models.ErrorResponse "Invalid request"
|
||||
// @Security BearerAuth
|
||||
// @Router /api/inventory/vm/delete [delete]
|
||||
func (h *Handler) VmCleanup(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method != http.MethodDelete {
|
||||
|
||||
Reference in New Issue
Block a user