aboutsummaryrefslogtreecommitdiffstats
path: root/src/ncm/api/api.go
diff options
context:
space:
mode:
authorRitu Sood <Ritu.Sood@intel.com>2020-09-01 21:18:45 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-01 21:18:45 +0000
commite6277404b61f508d6af11b3e8bb067d716ba21c0 (patch)
treef146afe803c008576b07ea353a5bc05541e663db /src/ncm/api/api.go
parent65e4059d86a5f0dda682ebd879f409be18afa5b0 (diff)
parent645c6a331cd00043fcf9f567f5f261a9db070918 (diff)
Merge "Enhance the status query API"
Diffstat (limited to 'src/ncm/api/api.go')
-rw-r--r--src/ncm/api/api.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ncm/api/api.go b/src/ncm/api/api.go
index 6dd958a1..45551e6c 100644
--- a/src/ncm/api/api.go
+++ b/src/ncm/api/api.go
@@ -90,6 +90,9 @@ func NewRouter(testClient interface{}) *mux.Router {
}
router.HandleFunc("/cluster-providers/{cluster-provider}/clusters/{cluster}/apply", schedulerHandler.applySchedulerHandler).Methods("POST")
router.HandleFunc("/cluster-providers/{cluster-provider}/clusters/{cluster}/terminate", schedulerHandler.terminateSchedulerHandler).Methods("POST")
+ router.HandleFunc("/cluster-providers/{cluster-provider}/clusters/{cluster}/status", schedulerHandler.statusSchedulerHandler).Methods("GET")
+ router.HandleFunc("/cluster-providers/{cluster-provider}/clusters/{cluster}/status",
+ schedulerHandler.statusSchedulerHandler).Queries("instance", "{instance}", "type", "{type}", "output", "{output}", "app", "{app}", "cluster", "{cluster}", "resource", "{resource}")
return router
}