From 7594904221ba67c2f296b08dc1c495b70fcf9d66 Mon Sep 17 00:00:00 2001 From: Haibin Huang Date: Thu, 22 Nov 2018 08:47:53 +0000 Subject: Add server action for pike APIv1 Change-Id: Ie2252ec4cb0d6ebacc7b7572005e198f54c81f11 Issue-ID: MULTICLOUD-414 Signed-off-by: Haibin Huang (cherry picked from commit ea1d235f8232e6597d7266bb0b04d4a521eb672e) --- pike/pike/requests/urlsV1.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pike') 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[0-9a-zA-Z_-]+))?', volume.APIv1Volumes.as_view()), + url(r'^servers(/(?P[0-9a-zA-Z_-]+))/action/?$', + server.APIv1ServerAction.as_view()), url(r'^servers(/(?P[0-9a-zA-Z_-]+))?', server.APIv1Servers.as_view()), url(r'^ports(/(?P[0-9a-zA-Z_-]+))?', -- cgit 1.2.3-korg