we are working right now on adding specific endpoints and functionality for cloud profiles via the REST API. We expect to provide some of it for the next EAP of 2019.2. Please check, watch and vote for this issue in the tracker: https://youtrack.jetbrains.com/issue/TW-41139
Also feel free to add comments explaining your exact use case, as that would bring attention to the devs of what needs need to be covered.
A quick follow up, the actual issue for your exact scenario is here: https://youtrack.jetbrains.com/issue/TW-45891, although the one I posted is tightly related, allowing to manage the cloud profiles via the REST API.
Thanks, in my case I was looking to get a report on all builds that would only work on a specific set of old agents we wanted to remove before 2019.2 due to the deprecation of Java older than 8. As updating those agents would be more painful than it'd be worth. So for at least this, I needed the info specifically before upgrading to 2019.2.
I found those but as I needed something before 2019.2 I ended up implementing something that just pulls the normal compatible agents html page and parses that. Certainly not good long-term as i imagine later changes to the html will break it, but good enough for now. When I need to pull this data again in the future if my current approach breaks, I'll check if the UI was updated.
Hi Malick,
The following endpoint should return what you want to get: http://<server_url>/app/rest/buildTypes/id:<build_config_id>/?fields=compatibleAgents(*)
Thanks Denis, work like a charm :)
found out this one too when debugging: "http://<server_url>/app/rest/agents?locator=compatible:(buildType:(id:<build_config_id>))"
Unfortunately this doesn't list cloud agents that have no active instances, making it useless for most of us.
Hi Jody,
we are working right now on adding specific endpoints and functionality for cloud profiles via the REST API. We expect to provide some of it for the next EAP of 2019.2. Please check, watch and vote for this issue in the tracker: https://youtrack.jetbrains.com/issue/TW-41139
Also feel free to add comments explaining your exact use case, as that would bring attention to the devs of what needs need to be covered.
A quick follow up, the actual issue for your exact scenario is here: https://youtrack.jetbrains.com/issue/TW-45891, although the one I posted is tightly related, allowing to manage the cloud profiles via the REST API.
Thanks, in my case I was looking to get a report on all builds that would only work on a specific set of old agents we wanted to remove before 2019.2 due to the deprecation of Java older than 8. As updating those agents would be more painful than it'd be worth. So for at least this, I needed the info specifically before upgrading to 2019.2.
I found those but as I needed something before 2019.2 I ended up implementing something that just pulls the normal compatible agents html page and parses that. Certainly not good long-term as i imagine later changes to the html will break it, but good enough for now. When I need to pull this data again in the future if my current approach breaks, I'll check if the UI was updated.
In case it's useful to anyone else, this is the block of code I came up with, it's written for node.js.
https://gist.github.com/jshumaker/877b76d851224d0981a2c84b189ce0b3