It's all about the answers!

Ask a question

How to fetch configurations hierarchy in GC using GC API


Thiruvenkadam Dhanaraj (27218) | asked Jun 10 '22, 9:41 a.m.

 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



permanent link
David Honey (1.8k17) | answered Jun 10 '22, 9:45 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.