host from template ui

This commit is contained in:
Mikaël Cluseau
2024-04-15 16:35:53 +02:00
parent 699b8e71a6
commit 7c9334233d
5 changed files with 77 additions and 2 deletions

View File

@ -76,6 +76,8 @@ func registerWS(rest *restful.Container) {
ws.Route(ws.GET("/clusters").To(wsListClusters).
Doc("List clusters"))
ws.Route(ws.GET("/hosts-from-template").To(wsHostsFromTemplateList).
Doc("List host template instances"))
ws.Route(ws.POST("/hosts-from-template/{name}").To(wsHostsFromTemplateSet).
Reads(HostFromTemplate{}).
Doc("Create or update a host template instance"))