-
Task
-
Resolution: Done
-
Medium
-
None
-
None
Use “format” query parameter on Node Query to find service instance hierarchy
There are a couple of useful values available for the “format” parameter for your case, in particular:
https://onap.readthedocs.io/en/casablanca/submodules/aai/aai-common.git/docs/AAI%20REST%20API%20Documentation/customQueries.html#resource-and-uri
https://onap.readthedocs.io/en/casablanca/submodules/aai/aai-common.git/docs/AAI%20REST%20API%20Documentation/customQueries.html#simple
i.e.
?format=resource_and_url
?format=simple
The output format will include a URL parameter with the value being the full path to the object, e.g.
"url": "/aai/v11/cloud-infrastructure/complexes/complex/complextest1"
So in the case of the service-instance URL, it should give you the global-customer-id and service-type parameters in the path
We can use this in the get service/{id} API to retrieve relatedParty
- mentioned in
-
Page Loading...