How to get the list of all Bamboo agents via REST

How can I get the list of all Bamboo agents via REST?

I need it for several automated reports, monitoring, etc.

I've seen the ages-api, but as far as I can see it does not provide the list of agents.

1 answer

1 accepted

1 vote

REST API Documentation Status

The Bamboo REST API guide is a bit confusing/misleading currently, insofar the Bamboo REST resources reference guide linked from the Getting Started section is incomplete/outdated. The current REST API documentation is only referred to from an info tip on that page in turn:

API reference for your Bamboo version is the recommended source of information on Bamboo REST APIs.

Agents Resource

As per the resp. Bamboo 5.10.3 REST API Documentation, a GET on the /agent resource provides a list of all agents:

Use query parameter "online = true/false" to filter only online agents.

Thanks, that's exactly what I need, with the exception I'm still on Bamboo 5.7.2. Do you know what release added this funtionality? Can't see it in the Release Notes

Good question - briefly checking the available REST API versions suggests that this has indeed just been added to the Bamboo 5.10.2 API recently, i.e. previous versions still lack the /agent resource, surprisingly.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,813 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you