Fix for SSL certificate issue
[doc.git] / docs / guides / onap-user / instantiate / pre_instantiation / index.rst
index ca9af13..ea3f908 100644 (file)
@@ -38,37 +38,71 @@ Those informations will be available to all service instantiation
 (you only need to declare them once in ONAP)
 
 
-Example for "Owning Entity" named "Test"
+Example for "Owning Entity" named "OE-Generic"
+
+For Owning_Entity, it is important to declare the information in AAI
+with a UUID value for "owning-entity-id". That value will be necessary
+to instantiate a service with SO using GR_API.
+
+::
+
+  curl -k -X PUT \
+    https://aai.api.sparky.simpledemo.onap.org:30233/aai/v13/business/owning-entities/owning-entity/8874891f-5120-4b98-b452-46284513958d \
+    -H 'Accept: application/json' \
+    -H 'Authorization: Basic QUFJOkFBSQ==' \
+    -H 'Content-Type: application/json' \
+    -H 'X-FromAppId: AAI' \
+    -H 'X-TransactionId: get_aai_subscr' \
+    -H 'cache-control: no-cache' \
+    -d '{
+      "owning-entity-name": "OE-Generic",
+      "owning-entity-id": "8874891f-5120-4b98-b452-46284513958d"
+  }'
 
 ::
 
-  curl -X POST \
-    http://vid.api.simpledemo.onap.org:30238/vid/maintenance/category_parameter/owningEntity \
+  curl -k -X GET \
+    https://aai.api.sparky.simpledemo.onap.org:30233/aai/v16/business/owning-entities \
+    -H 'Accept: application/json' \
+    -H 'Authorization: Basic QUFJOkFBSQ==' \
+    -H 'Content-Type: application/json' \
+    -H 'X-FromAppId: AAI' \
+    -H 'X-TransactionId: get_aai_subscr' \
+    -H 'cache-control: no-cache'
+
+
+To declare the Owning Entity in VID:
+
+::
+
+  curl -k -X POST \
+    https://vid.api.simpledemo.onap.org:30200/vid/maintenance/category_parameter/owningEntity \
     -H 'Accept-Encoding: gzip, deflate' \
     -H 'Content-Type: application/json' \
     -H 'cache-control: no-cache' \
     -d '{
-      "options": ["Test"]
+      "options": ["OE-Generic"]
   }'
 
+
 Example for "platform" named "Test_Platform"
 
 ::
 
-  curl -X POST \
-    http://vid.api.simpledemo.onap.org:30238/vid/maintenance/category_parameter/platform \
+  curl -k -X POST \
+    https://vid.api.simpledemo.onap.org:30200/vid/maintenance/category_parameter/platform \
     -H 'Content-Type: application/json' \
     -H 'cache-control: no-cache' \
     -d '{
-      "options": [""Test_Platform"]
+      "options": ["Test_Platform"]
   }'
 
 Example for "line of business" named "Test_LOB"
 
 ::
 
-  curl -X POST \
-  http://vid.api.simpledemo.onap.org:30238/vid/maintenance/category_parameter/lineOfBusiness \
+  curl -k -X POST \
+  https://vid.api.simpledemo.onap.org:30200/vid/maintenance/category_parameter/lineOfBusiness \
   -H 'Content-Type: application/json' \
   -H 'cache-control: no-cache' \
   -d '{
@@ -79,8 +113,8 @@ Example for "project" named "Test_project"
 
 ::
 
-  curl -X POST \
-    http://vid.api.simpledemo.onap.org:30238/vid/maintenance/category_parameter/project \
+  curl -k -X POST \
+    https://vid.api.simpledemo.onap.org:30200/vid/maintenance/category_parameter/project \
     -H 'Content-Type: application/json' \
     -H 'cache-control: no-cache' \
     -d '{