X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=NG-RO%2Fosm_ng_ro%2Fro_main.py;fp=NG-RO%2Fosm_ng_ro%2Fro_main.py;h=2a2e22cf99ddae4dd3c43efb76752bc3af0cdf53;hp=bd2ea9e029a434cea0049fa125c460e06b3e1d19;hb=29a4c1a24050561a70f4f47b276a268d48c79067;hpb=78f474e69fde9d64e8716978b5ea38f9f5aace48 diff --git a/NG-RO/osm_ng_ro/ro_main.py b/NG-RO/osm_ng_ro/ro_main.py index bd2ea9e0..2a2e22cf 100644 --- a/NG-RO/osm_ng_ro/ro_main.py +++ b/NG-RO/osm_ng_ro/ro_main.py @@ -143,6 +143,16 @@ valid_url_methods = { }, }, }, + "verticalscale": { + "": { + "METHODS": ("POST"), + "ROLE_PERMISSION": "verticalscale:id:", + "": { + "METHODS": ("GET",), + "ROLE_PERMISSION": "verticalscale:id:id:", + }, + }, + }, } }, } @@ -200,6 +210,7 @@ class Server(object): "recreate:id:post": self.ns.recreate, "recreate:id:id:get": self.ns.recreate_status, "migrate:id:post": self.ns.migrate, + "verticalscale:id:post": self.ns.verticalscale, } def _format_in(self, kwargs):