Update API spec to support multi-tenants 85/82085/2
authorBin Yang <13547180@qq.com>
Wed, 13 Mar 2019 07:28:27 +0000 (15:28 +0800)
committerBin Yang <bin.yang@windriver.com>
Thu, 14 Mar 2019 04:50:06 +0000 (04:50 +0000)
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 <bin.yang@windriver.com>
docs/specs/multicloud_infra_workload.rst
docs/specs/multicloud_resource_capacity_check.rst

index ba1c312..6da49ae 100644 (file)
@@ -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
 ---------------------------
 
index 31a34b2..f849d32 100644 (file)
@@ -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
 ------------------------