summaryrefslogtreecommitdiffstats
path: root/pike
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2018-11-22 08:01:08 +0000
committerBin Yang <bin.yang@windriver.com>2018-11-22 08:01:08 +0000
commit48159a5d813f93103e6cc1459a31e61010dd3ee1 (patch)
tree893b93c836f3a321f2d0c4950ae254c00f30416d /pike
parent64a90dfd2ebf1c415aaa921b3cff06e3c528858b (diff)
Fix ocata and piki rest API url error
Change-Id: I5cbb06db2a613548d0a9606f3b7c404dfb0a49f0 Issue-ID: MULTICLOUD-415 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'pike')
-rw-r--r--pike/pike/urls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pike/pike/urls.py b/pike/pike/urls.py
index 264b4a77..8b8eb3be 100644
--- a/pike/pike/urls.py
+++ b/pike/pike/urls.py
@@ -39,11 +39,11 @@ urlpatterns = [
url(r'^api/multicloud-pike/v0/(?P<vimid>[0-9a-zA-Z_-]+)/infra_workload/(?P<requri>[0-9a-zA-Z_-]*)/?$',
infra_workload.InfraWorkload.as_view()),
# API upgrading
- url(r'^api/multicloud-pike/v1/(?P<vimid>[0-9a-zA-Z_-]+)/registry$',
+ url(r'^api/multicloud-pike/v1/(?P<cloud_owner>[0-9a-zA-Z_-]+)/(?P<cloud_region_id>[0-9a-zA-Z_-]+)/registry$',
registration.RegistryV1.as_view()),
- url(r'^api/multicloud-pike/v1/(?P<vimid>[0-9a-zA-Z_-]+)$',
+ url(r'^api/multicloud-pike/v1/(?P<cloud_owner>[0-9a-zA-Z_-]+)/(?P<cloud_region_id>[0-9a-zA-Z_-]+)$',
registration.RegistryV1.as_view()),
- url(r'^api/multicloud-pike/v1/(?P<vimid>[0-9a-zA-Z_-]+)/exten',
+ url(r'^api/multicloud-pike/v1/(?P<cloud_owner>[0-9a-zA-Z_-]+)/(?P<cloud_region_id>[0-9a-zA-Z_-]+)/exten',
include('pike.extensions.urlsV1')),
url(r'^api/multicloud-pike/v1/(?P<cloud_owner>[0-9a-zA-Z_-]+)/(?P<cloud_region_id>[0-9a-zA-Z_-]+)/',
include('pike.proxy.urlsV1')),