Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there an API that can be used to upgrade OneAgent versions on servers/host?

Is there an API that can be used to upgrade OneAgent versions on servers/host?


Dynatrace Champion
Dynatrace Champion

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?


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):

Dynatrace Champion
Dynatrace Champion

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.

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


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,

@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.

Many Thanks @Joseph M. H., should I expect to wait for few minutes or few hours after calling the API?

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.