diff options
author | 2018-11-22 08:50:11 +0000 | |
---|---|---|
committer | 2018-11-27 10:53:17 +0000 | |
commit | c7fd33a7a7a7287986f0236226dc5a5485abfbc5 (patch) | |
tree | 5851e7951310229ee268d9bfd61a9c60d50c923c /ocata | |
parent | 69c7fffdcc22bc47a84775a7214b0495efa04baf (diff) |
Add server action for ocata APIv0
Change-Id: Iec73bd961e41ce8d8bb01c32cbb1786cb6d25516
Issue-ID: MULTICLOUD-414
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
(cherry picked from commit d4491771f28e7b89024b2c174d0c0c94b2414b99)
Diffstat (limited to 'ocata')
-rw-r--r-- | ocata/ocata/requests/urls.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ocata/ocata/requests/urls.py b/ocata/ocata/requests/urls.py index 435ff239..73cc1543 100644 --- a/ocata/ocata/requests/urls.py +++ b/ocata/ocata/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_-]+))?', |