summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaibin Huang <haibin.huang@intel.com>2018-11-22 08:51:44 +0000
committerHuang Haibin <haibin.huang@intel.com>2018-11-27 10:54:47 +0000
commitb63bfb8962c80750b959f0ac876b2914e571119e (patch)
treeebff9273f64749d099da319540af27275e6f7778
parent69c7fffdcc22bc47a84775a7214b0495efa04baf (diff)
Add server action for ocata APIv1
Change-Id: Ib725f9a9dbfc375154c2c87c98790b9988fb2eb4 Issue-ID: MULTICLOUD-414 Signed-off-by: Haibin Huang <haibin.huang@intel.com> (cherry picked from commit 2e9fd6f5733bc906b3c1581175645de8d76f2e08)
-rw-r--r--ocata/ocata/requests/urlsV1.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ocata/ocata/requests/urlsV1.py b/ocata/ocata/requests/urlsV1.py
index 4a8134aa..80b0a7e9 100644
--- a/ocata/ocata/requests/urlsV1.py
+++ b/ocata/ocata/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_-]+))?',