fix for MultiCloud-Architecture
[multicloud/framework.git] / docs / MultiCloud-APIv0-Specification.rst
index a5158c1..4042f70 100644 (file)
@@ -6,6 +6,11 @@
 MultiCloud API v0 Specification
 ================================
 
+API in json swagger
+===================
+
+":download:`MultiCloud Broker API v0 <https://wiki.onap.org/download/attachments/25435675/multicloud.broker.v0.swagger.json?version=1&modificationDate=1557892177024&api=v2>`"
+
 API Catalog
 ===========
 
@@ -2677,3 +2682,113 @@ NA
 204: No content found
 
 400: failed
+
+
+
+
+14. **Proxied OpenStack APIs**
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+14.1. **Tokens**
+-------------------------
+
+
++---------------------+----------------------------------------------------------------------------------------------+
+| **IF Definition**   | **Description**                                                                              |
++=====================+==============================================================================================+
+| URI                 | http://msb.onap.org:80/api/multicloud/v0/{cloud owner}_{region}/identity/v3/auth/tokens      |
++---------------------+----------------------------------------------------------------------------------------------+
+| Operation           | POST                                                                                         |
++---------------------+----------------------------------------------------------------------------------------------+
+| Direction           | NSLCM-> MULTICLOUD                                                                           |
++---------------------+----------------------------------------------------------------------------------------------+
+
+
+14.1.1. **Request**
+>>>>>>>>>>>>>>>>>>>
+
+
++-----------------+-----------------+-------------------+---------------+-----------------------+
+| **Parameter**   | **Qualifier**   | **Cardinality**   | **Content**   | **Description**       |
++=================+=================+===================+===============+=======================+
+| auth            | O               | 1                 | Object        | Same as OpenStack     |
+|                 |                 |                   |               | Identity Tokens API   |
++-----------------+-----------------+-------------------+---------------+-----------------------+
+
+
+::
+
+    {
+
+    }
+
+
+14.1.2. **Response**
+>>>>>>>>>>>>>>>>>>>>
+
+
++-----------------+-----------------+-------------------+---------------------+--------------------------------------------------------------+
+| **Parameter**   | **Qualifier**   | **Cardinality**   | **Content**         | **Description**                                              |
++=================+=================+===================+=====================+==============================================================+
+| X-Subject-Token | M               | 1                 | String              | The authentication token in Header                           |
++-----------------+-----------------+-------------------+---------------------+--------------------------------------------------------------+
+| token           | O               | 1                 | Object              | Token response, the same as OpenStack Identity Tokens API    |
++-----------------+-----------------+-------------------+---------------------+--------------------------------------------------------------+
+
+
+201: Created
+
+401: Unauthorized
+
+403: Forbidden
+
+500: failed
+
+
+::
+
+  Header:
+    X-Subject-Token: a33f3b209e9b471a97fbeab8324a9a45
+
+  Body:
+
+      {
+           "token" : {
+              "user" : {
+                 "domain" : {
+                    "id" : "default",
+                    "name" : "Default"
+                 },
+                 "id" : "9efb043c7629497a8028d7325ca1afb0",
+                 "name" : "admin"
+              },
+              "catalog" : [
+                 {
+                    "type" : "network",
+                    "endpoints" : [
+                       {
+                          "interface" : "public",
+                          "id" : "39583c1508ad4b71b380570a745ee10a",
+                          "url" : "http://172.16.77.10:80/api/multicloud-titaniumcloud/v0/CloudOwner_RegionOne/network",
+                          "region_id" : "RegionOne",
+                          "region" : "RegionOne"
+                       }
+                    ],
+                    "name" : "neutron",
+                    "id" : "99aefcc82a9246f98f8c281e61ffc754"
+                 },
+                 ...
+              ]
+              "project" : {
+                 "name" : "admin",
+                 "id" : "fcca3cc49d5e42caae15459e27103efc",
+                 "domain" : {
+                    "id" : "default",
+                    "name" : "Default"
+                 }
+              },
+              "is_domain" : false,
+              "expires_at" : "2017-09-11T03:52:29.000000Z"
+           }
+      }
+