Hi Ullas,

Are you aware of our DSL api? 
https://wiki.onap.org/pages/viewpage.action?pageId=64005527 It was created for 
this purpose, custom tailored topology queries on the fly.

If you truly need gremlin our APIs do support that via the query api using 
format=console but we usually discourage its use.

For instance:

URI: / aai / v{$version} / query?format=console
Payload { " gremlin " : " g. V (). has (' aai - node - type ',' pserver ') "}

Would be the example of gremlin to get all pservers

Alternatively that dsl would look like

URI: / aai / v{$version} /dsl?format=simple
Payload: { " dsl " : " pserver*('hostname') "}

For traversing relationships refer to the DSL documentation but for instance

Payload: { " dsl " : " pserver*('hostname')>p-interfaces* "}

would return the pservers and associated p-interfaces

Thanks,

Bill Reehil (A&AI PTL)


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#23009): https://lists.onap.org/g/onap-discuss/message/23009
Mute This Topic: https://lists.onap.org/mt/81357255/21656
Mute #aai:https://lists.onap.org/g/onap-discuss/mutehashtag/aai
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to