It's all about the answers!

Ask a question

How to retrieve the components of a global configuration from outside Jazz


Christoph Bergner (254) | asked Jun 12, 7:04 a.m.

We are developing a solution that contributes its own local configurations to GCM. 

For a certain analysis we need to retrieve the components of a given (by url of the GC) global configuration from outside Jazz. Is there an API call that allows to do that?
I am working with Jazz 6.0.6.

Accepted answer


permanent link
Nick Crossley (1262) | answered Jun 12, 9:48 a.m.
JAZZ DEVELOPER

Christoph,


APIs for global configuration management are summarized at https://jazz.net/wiki/bin/view/Main/GlobalConfigurationManagement. That page also contains other important information to consider when integrating with global configuration management.

There is no single API to find at one call all the recursive component configurations in a given global configuration. However, you can find the component of a contribution to a global configuration by looking at its oslc_config:component property, and you can find all the direct contributions to a global configuration by looking at the oslc_config:configuration property on the parent configuration's oslc_config:contribution properties.

You can find the component properties of all the direct contributions to a single global configuration using OSLC query, but you still need to recurse through nested contributions to find all the components in the GC hierarchy. There are examples of using OSLC queries for global configurations and components on the GC REST API page at https://jazz.net/gc/doc/scenarios.

The OSLC specs can be found at https://open-services.net/specifications/, but the Configuration Management spec link on that page is currently broken, so use a direct link to the version-controlled copy as an interim measure: https://raw.githack.com/oasis-tcs/oslc-core/master/specs/config/oslc-config-mgt.html.

Nick.

Christoph Bergner selected this answer as the correct answer

Your answer


Register or to post your answer.