Add create of workload update in AAI 83/82183/1
authorEric Multanen <eric.w.multanen@intel.com>
Thu, 14 Mar 2019 05:49:38 +0000 (22:49 -0700)
committerEric Multanen <eric.w.multanen@intel.com>
Thu, 14 Mar 2019 05:53:46 +0000 (22:53 -0700)
Add call to multicloud to update AAI with workload
detailed information (aka Heatbridge for OpenStack).
Add AAI update status responses to the workload
query call.

Change-Id: I6f9ab74e0090f0fbf170b1f0e0c40c65fd928b70
Issue-ID: MULTICLOUD-486
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
docs/specs/multicloud_infra_workload.rst

index ba1c312..bbc88fa 100644 (file)
@@ -167,6 +167,51 @@ Response Body
         }
     }
 
+Update infrastructure workload information in AAI (i.e. Heatbridge)
+-------------------------------------------------------------------
+
+API URL: POST http://{msb IP}:{msb port}/api/multicloud/v1/{cloud-owner}/{cloud-region-id}/infra_workload/{workload-id}
+
+Request Body:
+>>>>>>>>>>>>>
+::
+
+  {
+     "generic-vnf-id":"<generic-vnf-id>",
+     "vf-module-id":"<vf-module-id>"
+  }
+
+Response:
+>>>>>>>>>
+
+Response Codes
+::::::::::::::
+Success
+.......
+
++--------------------+----------------------------------------------------------------------+
+| Code               | Reason                                                               |
++====================+======================================================================+
+| 202 - Accepted     | The request was accepted.                                            |
++--------------------+----------------------------------------------------------------------+
+
+Error
+.....
+
++--------------------+----------------------------------------------------------------------+
+| Code               | Reason                                                               |
++====================+======================================================================+
+| 400 - Bad Request  | Some content in the request was invalid.                             |
++--------------------+----------------------------------------------------------------------+
+| 401 - Unauthorized | User must authenticate before making a request.                      |
++--------------------+----------------------------------------------------------------------+
+| 409 - Conflict     | This operation conflicted with another operation on this resource.   |
++--------------------+----------------------------------------------------------------------+
+
+Response Body
+:::::::::::::
+
+
 Delete infrastructure workload
 ------------------------------
 
@@ -250,7 +295,7 @@ Response Body
     {
         "template_type":"<heat/tosca/etc.>",
         "workload_id": "<The ID of infrastructure workload resource>",
-        "workload_status":"CREATE_IN_PROCESS/CREATE_COMPLETE/DELETE_IN_PROCESS/etc"
+        "workload_status":"CREATE_IN_PROCESS/CREATE_COMPLETE/DELETE_IN_PROCESS/AAI_IN_PROGRESS/AAI_COMPLETE/etc"
     }
 
 Work Items