Hi Thiriloshini,

As we discussed on 
https://wiki.onap.org/display/DW/2019-02-14+AAI+Developers+Meeting :

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://onap.readthedocs.io/en/casablanca/submodules/aai/aai-common.git/docs/AAI%20REST%20API%20Documentation/AAIRESTAPI_CASABLANCA.html#bulk-apis

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://onap.readthedocs.io/en/casablanca/submodules/aai/aai-common.git/docs/AAI%20REST%20API%20Documentation/AAIRESTAPI_CASABLANCA.html#optional-query-parameters

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

https://onap.readthedocs.io/en/casablanca/submodules/aai/aai-common.git/docs/AAI%20REST%20API%20Documentation/AAIRESTAPI_CASABLANCA.html#depth

Thanks for raising it to the AAI Developers meeting!

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

View/Reply Online (#15566): https://lists.onap.org/g/onap-discuss/message/15566
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