X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fguides%2Fonap-user%2Finstantiate%2Fpre_instantiation%2Findex.rst;h=ea3f90852a8383f72a50c04136dac432d08b5ade;hb=cf513de2c4f1e5a2d0368f73c0889bacd3a48ccc;hp=ca9af13d7d172c9d4b7e50770ebaeb7375305024;hpb=4d36931793c87fc896946d07def05de76d3c60c9;p=doc.git diff --git a/docs/guides/onap-user/instantiate/pre_instantiation/index.rst b/docs/guides/onap-user/instantiate/pre_instantiation/index.rst index ca9af13d7..ea3f90852 100644 --- a/docs/guides/onap-user/instantiate/pre_instantiation/index.rst +++ b/docs/guides/onap-user/instantiate/pre_instantiation/index.rst @@ -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 '{