diff options
author | Haibin Huang <haibin.huang@intel.com> | 2018-11-22 08:53:54 +0000 |
---|---|---|
committer | Haibin Huang <haibin.huang@intel.com> | 2018-11-22 11:23:24 +0000 |
commit | 3c2647db5715ac56c08ca252aad37ad3fcd9c9b7 (patch) | |
tree | 3fbb02e7cd8380d952217ad8d2f8a27af7225491 /newton | |
parent | d4491771f28e7b89024b2c174d0c0c94b2414b99 (diff) |
Add server action for newton API
Change-Id: I9aa95f58f0884ed7de51234845ed6b372e22372d
Issue-ID: MULTICLOUD-414
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Diffstat (limited to 'newton')
-rw-r--r-- | newton/newton/requests/urls.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newton/newton/requests/urls.py b/newton/newton/requests/urls.py index ff1a7fb2..c6c9f5ed 100644 --- a/newton/newton/requests/urls.py +++ b/newton/newton/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'^servers(/(?P<serverid>[0-9a-zA-Z_-]+))/action/?$', |