diff options
author | Haibin Huang <haibin.huang@intel.com> | 2018-11-22 08:42:50 +0000 |
---|---|---|
committer | Huang Haibin <haibin.huang@intel.com> | 2018-11-27 10:51:23 +0000 |
commit | f0495c94b869426286a864a6ffc0b221ce71a092 (patch) | |
tree | 4b4f5ca59bdd1f0d0f438ebf874967f4d00ebc76 | |
parent | 69c7fffdcc22bc47a84775a7214b0495efa04baf (diff) |
Add server action for pike APIv0
Change-Id: I8fdd72ea44eca98b639187d4e6588f67d9f5dc67
Issue-ID: MULTICLOUD-414
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
(cherry picked from commit 92adb71a0a18a7c3355fe915832ae67f2a8ee457)
-rw-r--r-- | pike/pike/requests/urls.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pike/pike/requests/urls.py b/pike/pike/requests/urls.py index 2420c08d..64ec70db 100644 --- a/pike/pike/requests/urls.py +++ b/pike/pike/requests/urls.py @@ -34,6 +34,8 @@ urlpatterns = [ image.Images.as_view()), url(r'^volumes(/(?P<volumeid>[0-9a-zA-Z_-]+))?', volume.Volumes.as_view()), + url(r'^servers(/(?P<serverid>[0-9a-zA-Z_-]+))/action/?$', + server.ServerAction.as_view()), url(r'^servers(/(?P<serverid>[0-9a-zA-Z_-]+))?', server.Servers.as_view()), url(r'^ports(/(?P<portid>[0-9a-zA-Z_-]+))?', |