Uploaded image for project: 'External API Framework'
  1. External API Framework
  2. EXTAPI-199

Use “format” query parameter on Node Query to find service instance hierarchy

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • Dublin Release
    • 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

       

            aosull01 aosull01
            aosull01 aosull01
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: