summaryrefslogtreecommitdiffstats
path: root/pike
diff options
context:
space:
mode:
authorHaibin Huang <haibin.huang@intel.com>2018-11-22 08:47:53 +0000
committerHaibin Huang <haibin.huang@intel.com>2018-11-22 11:30:47 +0000
commitea1d235f8232e6597d7266bb0b04d4a521eb672e (patch)
tree57724a58541efaeebfb521fb73e78c2bda2ad2ed /pike
parent2e9fd6f5733bc906b3c1581175645de8d76f2e08 (diff)
Add server action for pike APIv1
Change-Id: Ie2252ec4cb0d6ebacc7b7572005e198f54c81f11 Issue-ID: MULTICLOUD-414 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Diffstat (limited to 'pike')
-rw-r--r--pike/pike/requests/urlsV1.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pike/pike/requests/urlsV1.py b/pike/pike/requests/urlsV1.py
index 4a8134aa..80b0a7e9 100644
--- a/pike/pike/requests/urlsV1.py
+++ b/pike/pike/requests/urlsV1.py
@@ -34,6 +34,8 @@ urlpatterns = [
image.APIv1Images.as_view()),
url(r'^volumes(/(?P<volumeid>[0-9a-zA-Z_-]+))?',
volume.APIv1Volumes.as_view()),
+ url(r'^servers(/(?P<serverid>[0-9a-zA-Z_-]+))/action/?$',
+ server.APIv1ServerAction.as_view()),
url(r'^servers(/(?P<serverid>[0-9a-zA-Z_-]+))?',
server.APIv1Servers.as_view()),
url(r'^ports(/(?P<portid>[0-9a-zA-Z_-]+))?',