Keong,

Thanks for taking time to respond to the questions.
I'll wait for Jimmy to fix the broken link.

Appreciate your support.

Thanks,
Thiriloshini

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of 
Keong Lim
Sent: Thursday, February 14, 2019 6:19 PM
To: Thoppekrishnakumar, Thiriloshini 
<[email protected]>; [email protected]
Subject: Re: [onap-discuss] [AAI] Questions on AAI REST APIs

Hi Thiriloshini,

As we discussed on 
https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_2019-2D02-2D14-2BAAI-2BDevelopers-2BMeeting&d=DwIFaQ&c=09aR81AqZjK9FqV5BSCPBw&r=I1jivgCaLtLwcDmPXao4FVAfQHO4jJsh_tzGG-LrvaM4UX5OI9qN3wJdIa2CCyRw&m=QXuoF0jtGy4d9LmMmFVmMXeHMIjCPMnAzNfa02sGYu8&s=SIUyovv7iHew9cbFsXb-pf9IkGEFIPn494aDY74tVKg&e=
 :

On Fri, Feb 15, 2019 at 05:25 AM, 
[email protected] wrote:
> I am new to ONAP and I am currently working on AAI (Casablanca branch) 
> and I have below questions for the same.
> 
> 
> 1.       I see APIs to ADD/DELETE/UPDATE a single PNF to/from AAI. Is it
> possible to do a bulk ADD/DELETE/UPDATE ? That is, ADD/DELETE/UPDATE 
> multiple PNFs in one API call instead of doing multiple calls for each PNF.

The documentation at:

https://urldefense.proofpoint.com/v2/url?u=https-3A__onap.readthedocs.io_en_casablanca_submodules_aai_aai-2Dcommon.git_docs_AAI-2520REST-2520API-2520Documentation_AAIRESTAPI-5FCASABLANCA.html-23bulk-2Dapis&d=DwIFaQ&c=09aR81AqZjK9FqV5BSCPBw&r=I1jivgCaLtLwcDmPXao4FVAfQHO4jJsh_tzGG-LrvaM4UX5OI9qN3wJdIa2CCyRw&m=QXuoF0jtGy4d9LmMmFVmMXeHMIjCPMnAzNfa02sGYu8&s=KmB37iM2VVasr3MCHdkH935Yg92ZKJMF8_M1MClvor8&e=

is intended to have a link to the wiki, but it appears to be broken. That will 
be fixed.


> 2.       I added some p-interfaces as part of adding a pnf. Please find below
> a sample json that I used. I use POSTMAN for all REST operations.
> The pnf addition was successful. When I try to fetch the pnf, I 
> expected to see the p-interfaces as well under the pnf element as 
> that's how I see in the pnf model. But I had to make a separate GET API call 
> to see the interfaces.

The default GET API uses a "depth" of zero, meaning that related objects are 
not returned.
However, you can change this by adding the optional query parameter "depth=1":

https://urldefense.proofpoint.com/v2/url?u=https-3A__onap.readthedocs.io_en_casablanca_submodules_aai_aai-2Dcommon.git_docs_AAI-2520REST-2520API-2520Documentation_AAIRESTAPI-5FCASABLANCA.html-23optional-2Dquery-2Dparameters&d=DwIFaQ&c=09aR81AqZjK9FqV5BSCPBw&r=I1jivgCaLtLwcDmPXao4FVAfQHO4jJsh_tzGG-LrvaM4UX5OI9qN3wJdIa2CCyRw&m=QXuoF0jtGy4d9LmMmFVmMXeHMIjCPMnAzNfa02sGYu8&s=NNhcSDxqaSfLTCrSR0TAlPs2ta2i12c6iPa3bQA1jzQ&e=

Note that on the query API, the default depth is 1:

https://urldefense.proofpoint.com/v2/url?u=https-3A__onap.readthedocs.io_en_casablanca_submodules_aai_aai-2Dcommon.git_docs_AAI-2520REST-2520API-2520Documentation_AAIRESTAPI-5FCASABLANCA.html-23depth&d=DwIFaQ&c=09aR81AqZjK9FqV5BSCPBw&r=I1jivgCaLtLwcDmPXao4FVAfQHO4jJsh_tzGG-LrvaM4UX5OI9qN3wJdIa2CCyRw&m=QXuoF0jtGy4d9LmMmFVmMXeHMIjCPMnAzNfa02sGYu8&s=3w86m1kK04WTMbWkzXEgffW6SMfocn723QVLgZu69dY&e=

Thanks for raising it to the AAI Developers meeting!




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15585): https://lists.onap.org/g/onap-discuss/message/15585
Mute This Topic: https://lists.onap.org/mt/29844678/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to