summaryrefslogtreecommitdiffstats
path: root/docs/specs
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-02-18 09:31:49 +0000
committerBin Yang <bin.yang@windriver.com>2019-02-21 04:01:37 +0000
commita5c468c84f5c3e68bd32f4606dd3ac59b91de332 (patch)
treeb8b782b6f4b5c9758361b9b2582a90e03f3bbf05 /docs/specs
parent070d92752b5e048a20c8066cab2b5fe13615ff0e (diff)
Draft the enhancement of capacity_check API
To support F-GPS at AZ level Change-Id: Idc89afaaa1e649ec5735ce5b537dc37cca71a5a7 Issue-ID: MULTICLOUD-485 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'docs/specs')
-rw-r--r--docs/specs/multicloud_resource_capacity_check.rst54
1 files changed, 51 insertions, 3 deletions
diff --git a/docs/specs/multicloud_resource_capacity_check.rst b/docs/specs/multicloud_resource_capacity_check.rst
index cc1696c..31a34b2 100644
--- a/docs/specs/multicloud_resource_capacity_check.rst
+++ b/docs/specs/multicloud_resource_capacity_check.rst
@@ -58,6 +58,53 @@ broker receive a POST request on check_vim_capacity, it will request to each
<vim_id>/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 +114,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 +122,7 @@ Output of check_vim_capacity will be
::
{
- "VIMs": array // VIMs satisfy with this resource requirement
+ "VIMs": array, //list of VIMinfo
}
Input of <vim_id>/capacity_check will be
@@ -94,7 +141,8 @@ Output of <vim_id>/capacity_check will be
::
{
- "result": bool
+ "result": bool,
+ "AZs": array, //list of AZinfo, optional field
}