How to fetch configurations hierarchy in GC using GC API
Hi,
We would like to fetch hierarchical GC information using GC API, We tried using configuration fetch API
https://localhost/gc/configuration/1750 which is giving current level of configuration and its child in <oslc_config:configuration rdf:resource="https://localhost/gc/configuration/17677" /> tag
for example, if we have multiple levels of configurations created for a component then it is possible to fetch level 0 and level 1.
Is there a way to fetch all levels of GC configurations?
Thank you
Regards,
Thiru
One answer
In GCM 7.0.2 onwards, there is a public GC SDK REST API that might help.
See https://jazz.net/gc/doc/scenario?id=GetFlatListOfContributionsForGcHiearchy.
Prior to 7.0.2, there was no such API, so the only way to get a configuration was to perform a GET on each GC and traverse the hierarchy, peforming GETs.