summaryrefslogtreecommitdiffstats
path: root/ocata
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2018-11-27 13:02:44 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-27 13:02:44 +0000
commitfcd2cd57996309178298177f35e94eba042ca172 (patch)
tree1e7645fb5a8300de0d153cc0a636271b2a632b05 /ocata
parent61a7ca12e82b229ce5dfad1be4c72ab7f1ebd0ae (diff)
parentb63bfb8962c80750b959f0ac876b2914e571119e (diff)
Merge "Add server action for ocata APIv1" into casablanca
Diffstat (limited to 'ocata')
-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_-]+))?',