update to support postgresql and add godocs
This commit is contained in:
@@ -9,7 +9,15 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Remove a specified VM from the inventory
|
||||
// VcCleanup removes inventory entries for a vCenter instance.
|
||||
// @Summary Cleanup vCenter inventory
|
||||
// @Description Removes all inventory entries associated with a vCenter URL.
|
||||
// @Tags maintenance
|
||||
// @Produce json
|
||||
// @Param vc_url query string true "vCenter URL"
|
||||
// @Success 200 {object} map[string]string "Cleanup completed"
|
||||
// @Failure 400 {object} map[string]string "Invalid request"
|
||||
// @Router /api/cleanup/vcenter [delete]
|
||||
func (h *Handler) VcCleanup(w http.ResponseWriter, r *http.Request) {
|
||||
ctx := context.Background()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user