Querying Fabric8 cluster list via REST API

Solution Verified - Updated -

Environment

  • Red Hat JBoss Fuse 6.1

Issue

When running JBoss Fuse 6.1.0 in a Fabric I can view a registry with CXF endpoints either via:

1) The Fabric Console on the API's tab
2) The Karaf console: fabric:cluster-list

Is there a way to access this information via a REST endpoint?

Resolution

You can use the following URL to return the result of the cluster-list command:

  http://JOLOKIA_HOST:8181/jolokia/exec/io.fabric8:type=Fabric/clusterJson/git/

Where base JOLOKIA_HOST can be found here:

  http://localhost:8181/hawtio/index.html#/fabric/container/root?tab=URLs

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.