From 0491327f8dcd808402669c3d8f32a5a0f879db45 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Thu, 4 Apr 2019 08:32:13 +0800 Subject: Add os-interface api for server Change-Id: Ia9f98d3ba841dd70d0969334d86dbbd3a0f6ac0e Issue-ID: MULTICLOUD-565 Signed-off-by: fujinhua --- windriver/titanium_cloud/requests/urls.py | 4 ++++ windriver/titanium_cloud/requests/urlsV1.py | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'windriver/titanium_cloud/requests') diff --git a/windriver/titanium_cloud/requests/urls.py b/windriver/titanium_cloud/requests/urls.py index 73cc1543..bfba9c73 100644 --- a/windriver/titanium_cloud/requests/urls.py +++ b/windriver/titanium_cloud/requests/urls.py @@ -36,6 +36,10 @@ urlpatterns = [ volume.Volumes.as_view()), url(r'^servers(/(?P[0-9a-zA-Z_-]+))/action/?$', server.ServerAction.as_view()), + url(r'^servers(/(?P[0-9a-zA-Z_-]+))/os-interface/?$', + server.ServerOsInterface.as_view()), + url(r'^servers(/(?P[0-9a-zA-Z_-]+))/os-interface(/(?P[0-9a-zA-Z_-]+))?', + server.ServerOsInterfacePort.as_view()), url(r'^servers(/(?P[0-9a-zA-Z_-]+))?', server.Servers.as_view()), url(r'^ports(/(?P[0-9a-zA-Z_-]+))?', diff --git a/windriver/titanium_cloud/requests/urlsV1.py b/windriver/titanium_cloud/requests/urlsV1.py index 6e884ab1..eaca68c6 100644 --- a/windriver/titanium_cloud/requests/urlsV1.py +++ b/windriver/titanium_cloud/requests/urlsV1.py @@ -36,6 +36,10 @@ urlpatterns = [ 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_-]+))/os-interface/?$', + server.APIv1ServerOsInterface.as_view()), + url(r'^servers(/(?P[0-9a-zA-Z_-]+))/os-interface(/(?P[0-9a-zA-Z_-]+))?', + server.APIv1ServerOsInterfacePort.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