summaryrefslogtreecommitdiffstats
path: root/docs/platform/consumedapis.rst
diff options
context:
space:
mode:
authorshentao <shentao@chinamobile.com>2017-11-12 09:36:51 +0800
committershentao <shentao@chinamobile.com>2017-11-12 09:36:59 +0800
commit9208eb1e0f4b44e7e9ddaf05642c3cfadd61e95b (patch)
treed7565e98850eaa0ed5367d0840213a8650f34ac0 /docs/platform/consumedapis.rst
parent7db99a4c2fbd85a8cf45a89206e1bffe96226ee0 (diff)
Update usecase-ui docs
Change-Id: I55065209062d721cfdaea8310854f2cfd4e7e446 Issue-Id: USECASEUI-57 Signed-off-by: shentao <shentao@chinamobile.com>
Diffstat (limited to 'docs/platform/consumedapis.rst')
-rw-r--r--docs/platform/consumedapis.rst97
1 files changed, 72 insertions, 25 deletions
diff --git a/docs/platform/consumedapis.rst b/docs/platform/consumedapis.rst
index 6d803d19..46b2cde0 100644
--- a/docs/platform/consumedapis.rst
+++ b/docs/platform/consumedapis.rst
@@ -4,56 +4,103 @@
Consumed APIs
-------------
-In the Amsterdam release, Holmes mainly depends on the APIs provided by DCAE, A&AI, DMaaP and MSB.
+In the Amsterdam release, Usecase-UI mainly depends on the APIs provided by VF-C, SDC, A&AI, SO, DMaaP and MSB.
-DCAE
+VF-C
^^^^
-Holmes uses DCAE APIs to fetch the information of the microservices that are registered to the DCAE Consul via the Config Binding Service provided by DCAE. The definition of the APIs could be found at `Config Binding Service APIs <https://wiki.onap.org/download/attachments/13599708/cb.html?version=1&modificationDate=1503378245000&api=v2>`_.
+#. Distribute Network Service package:
+
+ ``POST /api/catalog/v1/nspackages``
+
+#. Distribute VF resource:
+
+ ``POST /api/catalog/v1/vnfpackages``
+
+#. Query operation progress for distributing network service/vf resource:
+
+ ``GET /api/nslcm/v1/jobs/{jobId}``
+
+#. Delete Network Service package:
+
+ ``DELETE /api/catalog/v1/nspackages/{csarId}``
+
+#. Delete VF resource:
+
+ ``DELETE /api/catalog/v1/vnfpackages/{csarId}``
+
+
+SDC
+^^^^
+
+#. Query all distributed End to End Service:
+
+ ``GET /sdc/v1/catalog/services``
+
+#. Query specified service:
+
+ ``GET /sdc/v1/catalog/services/{uuid}/metadata``
+
+#. Query VF resource:
+
+ ``GET /sdc/v1/catalog/resources``
+
+#. Download csar file:
+
+ ``GET /sdc/v1/catalog/services/{uuid}/toscaModel``
+
A&AI
^^^^
-In order to get the correlation between different alarms with the help of the topological information provided by A&AI. Holmes needs to call the A&AI APIs. Generally, we have to query the information of VNFs, VMs and the corresponding relation between resources from different layers. The following APIs are invoked by Holmes.
+#. Query all customers:
+
+ ``/aai/v11/business/customers``
+
+#. Query all service types for the specified customer:
+
+ ``/aai/v11/business/customers/customer/{global-customer-id}/service-subscriptions``
+
+#. Query all service instances:
+
+ ``/aai/v11/business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances``
+
+#. Query all cloud regions:
-#. Query a VNF by name:
+ ``/aai/v11/cloud-infrastructure/cloud-regions``
- ``/aai/v11/network/generic-vnfs/generic-vnf?vnf-name={vnf-name}``
+#. Query all sdnc controllers:
-#. Query a VNF by ID:
+ ``/aai/v11/external-system/esr-thirdparty-sdnc-list``
- ``/aai/v11/network/generic-vnfs/generic-vnf?vnf-id={vnf-id}``
-#. Query a VM by name:
+SO
+^^^^
+
+#. Instantiate service instance:
+
+ ``POST /ecomp/mso/infra/e2eServiceInstances/v3``
+
+#. Query operation progress for service instantiation/termination:
+
+ ``GET /ecomp/mso/infra/e2eServiceInstances/v3/{serviceId}/operations/{operationId}``
- ``/aai/v11/search/nodes-query?search-node-type=vserver&filter=vserver-name:EQUALS:{vserver-name}``
+#. Terminate service instance:
-#. Query a VM by ID:
+ ``DELETE /ecomp/mso/infra/e2eServiceInstances/v3/{serviceId}``
- ``/aai/v11/search/nodes-query?search-node-type=vserver&filter=vserver-id:EQUALS:{vserver-id}``
-More details could be found at `A&AI APIs <https://wiki.onap.org/pages/viewpage.action?pageId=13598793>`_.
-
DMaaP
^^^^^
-Holmes fetches VES data from DMaaP and publishes the control loop event back to DMaaP. The related APIs are:
-
#. Subscribing:
``/events/{topic}/{consumergroup}/{consumerid}``
-#. Publishing:
-
- ``/events/{topic}``
-
-More details could be found at `DMaaP APIs <https://wiki.onap.org/display/DW/DMaaP+API>`_.
MSB
^^^
-MSB is a key component that Holmes depends on. Almost all communications between Holmes and other components are performed using MSB as a proxy. In order to utilize the service registration and discovery functions provided by MSB, Holmes has to register itself to MSB in advance.
-
-Service Registration: ``/api/microservices/v1/services``
+#. Service Registration:
-More details could be found at `MSB APIs <https://wiki.onap.org/display/DW/Microservice+Bus+API+Documentation>`_.
+ ``/api/microservices/v1/services``