Hi Chandra,

On Thu, May  9, 2019 at 02:15 PM, Chandra wrote:
> Is there any API to get only the relationships of specific objects? - I tried
> searching but look like no API to only get the relationships. Nodes API even
> do not have such kind of filters.

As mentioned in previous message, there is no Resources API to get the 
relationship-list directly.

There is a Traversal custom query API that does use the relationship-list but 
it is only pre-configured for specific relationships. You can find the list of 
pre-configured queries at:
https://docs.onap.org/en/casablanca/submodules/aai/aai-common.git/docs/AAI%20REST%20API%20Documentation/customQueries.html

If you have a specific scenario that needs to be added, please raise a JIRA 
case so we can discuss it with you.


> And any other API  to only delete/remove the relationships? - We have to put
> whole object properties data with relationshiplist as blank. Is there any
> simpler way to remove the relationship without passing the object data?

As mentioned in previous message, that is the current method for detaching the 
relationship.
Note that if you delete the related object, it will be automatically removed 
from the relationship-list of other objects as well.

If you would like to request some new API, please bring it to 
https://wiki.onap.org/display/DW/AAI+Developers+Meeting for discussion.


Keong

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

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

Reply via email to