From e884e2812d775013e1f2d719095fd0ac9a6aafa6 Mon Sep 17 00:00:00 2001 From: Bin Yang <13547180@qq.com> Date: Wed, 13 Mar 2019 15:28:27 +0800 Subject: [PATCH] Update API spec to support multi-tenants Enable multicloud to support multi-tenants of a cloud region while being backward compatible which support the default tenant Change-Id: I0b82e9dfb1e279c5adf780c06d26e2278f7d47d7 Issue-ID: MULTICLOUD-528 Signed-off-by: Bin Yang --- docs/specs/multicloud_infra_workload.rst | 27 +++++++++++++++++++++++ docs/specs/multicloud_resource_capacity_check.rst | 25 +++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/docs/specs/multicloud_infra_workload.rst b/docs/specs/multicloud_infra_workload.rst index ba1c312..6da49ae 100644 --- a/docs/specs/multicloud_infra_workload.rst +++ b/docs/specs/multicloud_infra_workload.rst @@ -26,6 +26,33 @@ For further detailed design, please refer to https://wiki.onap.org/display/DW/SO Propose Change ============== +Multi-Tenant Support +-------------------- + +Request Headers: +>>>>>>>>>>>>>>>> + +To support multi-tenants over the same cloud region, all APIs defined below +should support to accept the following optional headers which are used to +specify a tenant other than the default one associated with the cloud region. + +:: + + "Project" : Tenant/Project ID or Name specified by API consumer, Optional + + +Example 1: +:: + + "Project: tenant1" + +Example 2: +:: + + "Project: fcca3cc49d5e42caae15459e27103efc" + + + Add infrastructure workload --------------------------- diff --git a/docs/specs/multicloud_resource_capacity_check.rst b/docs/specs/multicloud_resource_capacity_check.rst index 31a34b2..f849d32 100644 --- a/docs/specs/multicloud_resource_capacity_check.rst +++ b/docs/specs/multicloud_resource_capacity_check.rst @@ -41,6 +41,31 @@ location information and cloud-region record. ... [A&AI Complex Schema] https://gerrit.onap.org/r/gitweb?p=aai/aai-common.git;a=blob;f=aai-schema/src/main/resources/oxm/aai_oxm_v12.xml;h=e146c06ac675a1127ee11205c0ff2544e4d9a81d;hb=HEAD#l772 +Multi-Tenant Support +-------------------- + +Request Headers: +>>>>>>>>>>>>>>>> + +To support multi-tenants over the same cloud region, all APIs defined below +should support to accept the following optional headers which are used to +specify a tenant other than the default one associated with the cloud region. + +:: + + "Project" : Tenant/Project ID or Name specified by API consumer, Optional + + +Example 1: +:: + + "Project: tenant1" + +Example 2: +:: + + "Project: fcca3cc49d5e42caae15459e27103efc" + Available Resource Check ------------------------ -- 2.16.6