summaryrefslogtreecommitdiffstats
path: root/newton
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-08-23 19:46:14 +0800
committerBin Yang <bin.yang@windriver.com>2018-08-24 06:27:16 +0000
commit0321035cf1f31a07929de22a31bf520861f1eaff (patch)
tree1889a715989fe841534c6fdfb2dce356d9cf4ef4 /newton
parentd7422ca9097c3fca3bd02f187fbfb5ca7a898e84 (diff)
Add server action api for openstack newton
Change-Id: I61cd2de2db764551e33e52f10e615a02bdcc65b3 Issue-ID: MULTICLOUD-332 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'newton')
-rw-r--r--newton/newton/requests/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/newton/newton/requests/urls.py b/newton/newton/requests/urls.py
index 435ff239..ff1a7fb2 100644
--- a/newton/newton/requests/urls.py
+++ b/newton/newton/requests/urls.py
@@ -36,6 +36,8 @@ urlpatterns = [
volume.Volumes.as_view()),
url(r'^servers(/(?P<serverid>[0-9a-zA-Z_-]+))?',
server.Servers.as_view()),
+ url(r'^servers(/(?P<serverid>[0-9a-zA-Z_-]+))/action/?$',
+ server.ServerAction.as_view()),
url(r'^ports(/(?P<portid>[0-9a-zA-Z_-]+))?',
vport.Vports.as_view()),
url(r'^flavors(/(?P<flavorid>[0-9a-zA-Z_-]+))?',