09 Apr 2020 08:39 PM
Is there an API that can be used to upgrade OneAgent versions on servers/host?
Solved! Go to Solution.
09 Apr 2020 09:16 PM
OneAgent will automatically upgrade itself. Are you looking to initiate the upgrade on your own schedule? or are you looking for an API to download the update package/latest Agent release?
10 Apr 2020 09:05 PM
Currently, if autoupdate is disabled, it's possible to trigger an update within the UI.
I believe this is also achievable via the newly announced OneAgent API (but I did not try it yet, but it looks like the autoupdate configuration allows you to set the version you would like to update to):
https://www.dynatrace.com/news/blog/manage-thousands-of-hosts-with-the-new-oneagent-on-a-host-rest-a...
https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/configuration-api/oneagent-on-...
22 Sep 2021 04:04 PM
No. It's not possible with the new API. You can only manage autoupdate settings. Not possible to say "update now whatever the autoupdate strategy".
You got to set autoupdate automatic, then cross fingers it's done fast, then don't forget to put back autoupdate to "disabled or inherited".
10 Apr 2020 09:15 PM
As Julius mentioned, the API is certainly an option to change the behavior of individual OneAgent updates on specific hosts. But this only changes whether the OneAgent AutoUpdates are Automatic, Manual, or Inherited.
This does not force an update at the moment of the API call. So i'm still abit unclear on the original question. Hope this helps.
14 Apr 2020 11:29 AM
Hi Joseph, yes we are looking to upgrade the agents on our own schedule, and also to specify which agents to upgrade on that schedule
06 May 2020 06:34 PM
Hi @Joseph M. H., Is there An API that triggers the upgrade of the OneAgent to a specific version for a given hostName?
thank you,
06 May 2020 06:52 PM
@Morsi T. Take a look at the links provided by Julius earlier in this thread. He provided the link to the API doc describing how to specify update parameters for a specific host (or group of hosts). But be aware that while you can specify the upgrade version for specific hosts, it's not necessarily going to update the agent at the exact moment of the API call. I don't believe there's any contract stating how quickly the update will happen.
06 May 2020 06:59 PM
Many Thanks @Joseph M. H., should I expect to wait for few minutes or few hours after calling the API?
06 May 2020 07:26 PM
I'm not sure, but I would expect to see it updated within 24 hrs. There's several factors that can influence this so it's not an easy exact answer.