X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fspecs%2Fmulticloud_resource_capacity_check.rst;h=f849d328f0d0332d941b64c4a1818922ca8063f0;hb=e884e2812d775013e1f2d719095fd0ac9a6aafa6;hp=cc1696c9c1220b12b24e619d8b0af1af2030816a;hpb=b3e79cc6ebba2898e201426b59c1bc8caa347a6a;p=multicloud%2Fframework.git diff --git a/docs/specs/multicloud_resource_capacity_check.rst b/docs/specs/multicloud_resource_capacity_check.rst index cc1696c..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 ------------------------ @@ -58,6 +83,53 @@ broker receive a POST request on check_vim_capacity, it will request to each /capacity_check API, and return a list of VIMs with a true in response data. +Format of "vim_id" complying to the functional requirement of +"Consistent ID of a Cloud Region" + +:: + {cloud-owner}/{cloud-region-id} + +Format of "VIM ID" complying to the functional requirement of +"Consistent ID of a Cloud Region" + +:: + + { + "cloud-owner": string, //cloud owner name/ID + "cloud-region-id": string, //cloud region ID + } + + Example: array of "VIM ID" looks like: + + [ + {"cloud-owner": "owner1", "cloud-region-id": "regionid1"}, + {"cloud-owner": "owner2", "cloud-region-id": "regionid2"} + ] + +Format of "AZinfo" + +:: + + { + "availability-zone-name": string, //name of available zone + "vCPUTotal": int, //number of total cores, optional field + "MemoryTotal": float, //GB,total memory, optional field + "StorageTotal": int, //GB total storage, optional field + "vCPUAvail": int, //number of available cores + "MemoryAvail": float, //GB, availablesize of memory + "StorageAvail": int, //GB, available storage + } + } + +Format of "VIMinfo" which extend the "VIM ID" as below + +:: + + { + "cloud-owner": string, //cloud owner name/ID + "cloud-region-id": string, //cloud region ID + "AZs": array, // list of AZinfo + } Input of check_vim_capacity will be @@ -67,7 +139,7 @@ Input of check_vim_capacity will be "vCPU": int, // number of cores "Memory": float, // size of memory, GB "Storage": int, //GB - "VIMs": array // VIMs OOF wish to check with + "VIMs": array, //list of "VIM ID" with which OOF wish to check } Output of check_vim_capacity will be @@ -75,7 +147,7 @@ Output of check_vim_capacity will be :: { - "VIMs": array // VIMs satisfy with this resource requirement + "VIMs": array, //list of VIMinfo } Input of /capacity_check will be @@ -94,7 +166,8 @@ Output of /capacity_check will be :: { - "result": bool + "result": bool, + "AZs": array, //list of AZinfo, optional field }