# Auto-update failure reason via API or Automation

**URL:** <https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [May 14, 2025, 8:22am UTC](https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626 "2025-05-14T08:22:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maheedhar\_T](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/maheedhar_t/32/155_2.png) [@Maheedhar\_T](https://community.dynatrace.com/u/Maheedhar_T)\
**Post date:** [May 14, 2025, 8:22am UTC](https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626/1 "2025-05-14T08:22:50Z")

</div>

If there’s a OA auto-update scheduled and it failed, the failure reason is shown in the respective Host page in the UI like this.

 ![Maheedhar_T_0-1747210929873.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8ec2985a9736ee9bd9caa14dcad7301b2f392515.png)

Any ideas on how we can get this failure reason programmatically via API or in a workflow?

---

<div class="post-metadata">

**Author:** ![Arnaud\_GERMAIN](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Arnaud\_GERMAIN](https://community.dynatrace.com/u/Arnaud_GERMAIN)\
**Post date:** [June 20, 2025, 1:35pm UTC](https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626/2 "2025-06-20T13:35:17Z")

</div>

Hello,

A follow-up on this point would be greatly appreciated !

This is indeed critical when OneAgent is being updated across thousands of machines and some of them fail to update.

Thank you.

---

<div class="post-metadata">

**Author:** ![Sajarra](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Sajarra](https://community.dynatrace.com/u/Sajarra)\
**Post date:** [June 20, 2025, 1:46pm UTC](https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626/3 "2025-06-20T13:46:04Z")

</div>

Hi, have you had a chance to check with your Dynatrace Velocity Engineer or consultant to confirm if the upgrade is paused on the backend? If there are multiple failures, there might be a possibility to have it paused on the backend.

Also, please verify if the server has sufficient free disk space and memory.

---

<div class="post-metadata">

**Author:** ![Arnaud\_GERMAIN](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Arnaud\_GERMAIN](https://community.dynatrace.com/u/Arnaud_GERMAIN)\
**Post date:** [June 20, 2025, 3:11pm UTC](https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626/4 "2025-06-20T15:11:19Z")

</div>

[@Sajarra](https://community.dynatrace.com/user/83648), thank you, but that’s not the point !  
The goal is to have API-based reporting to quickly retrieve, for each machine, the reason for the OneAgent update failure.

---

<div class="post-metadata">

**Author:** ![patryk\_ozimek2](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@patryk\_ozimek2](https://community.dynatrace.com/u/patryk_ozimek2)\
**Post date:** [June 21, 2025, 3:46pm UTC](https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626/5 "2025-06-21T15:46:46Z")

</div>

Hi,

Have you tried the [OneAgent on Host API endpoint](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/oneagent-on-a-host/get-all-hosts-with-oneagents)?

Best Regards

Patryk

---

<div class="post-metadata">

**Author:** ![Arnaud\_GERMAIN](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Arnaud\_GERMAIN](https://community.dynatrace.com/u/Arnaud_GERMAIN)\
**Post date:** [June 23, 2025, 10:35am UTC](https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626/6 "2025-06-23T10:35:30Z")

</div>

Hi&nbsp;[@patryk\_ozimek2](https://community.dynatrace.com/user/49174),

we tested this API, but it doesn’t return the desired information.&nbsp;Have you tested it on your end?

The goal is to retrieve the content of “Automatic update problem” as displayed in the web UI.

---

<div class="post-metadata">

**Author:** ![Arnaud\_GERMAIN](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Arnaud\_GERMAIN](https://community.dynatrace.com/u/Arnaud_GERMAIN)\
**Post date:** [July 9, 2025, 4:13pm UTC](https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626/7 "2025-07-09T16:13:30Z")

</div>

I field a RFE for that :

[https://community.dynatrace.com/t5/Product-ideas/RFE-Auto-update-failure-reason-via-API/idi-p/281178](https://community.dynatrace.com/post/281178)

---

<div class="post-metadata">

**Author:** ![deni](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/deni/32/163_2.png) [@deni](https://community.dynatrace.com/u/deni)\
**Post date:** [July 11, 2025, 9:50am UTC](https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626/8 "2025-07-11T09:50:38Z")

</div>

Hi,

I’m quite new in Dynatrace, so forgive me if I’m missing something and help me understand.  
On the page where this message appears (I have the same one) there are also 3 dots above with a menu:

 ![gencheva_0-1752226760338.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/90202589c756b35e88389f66276cac5cb0f8cf0e.png)

It shows that I should be able to use settings/objects API and also I can see the schemaid:

curl ‘https://\<MY\_ENV\>/api/v2/settings/objects?schemaIds=builtin%3Adeployment.oneagent.updates’ -X GET -H ‘Accept: application/json; charset=utf-8’ -H ‘Content-Type: application/json; charset=utf-8’ -H ‘Authorization: Api-Token \<MY\_TOKEN\>’

{“items”:[],“totalCount”:0,“pageSize”:100}  
Unfortunately I don’t have any resulta. In the API page there is only POST example, but explanation says that I should be able to access this page content by this API:

 ![gencheva_1-1752227108903.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/10a2f91af1d8002f3d0da9d48740e0067ccdee72.png)

So shouldn’t this API return the required information(e.g. the update problems if there are any) with correct get parameters (I supposed that schemaids should be enough, but seem that I’m wrong)? Please help me understand what I’m missing here?

Thanks,

Regards, Deni

---

<div class="post-metadata">

**Author:** ![johnishungry](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/johnishungry/32/3956_2.png) [@johnishungry](https://community.dynatrace.com/u/johnishungry)\
**Post date:** [November 5, 2025, 5:16pm UTC](https://community.dynatrace.com/t/auto-update-failure-reason-via-api-or-automation/51626/9 "2025-11-05T17:16:05Z")

</div>

I tried this and it doesnt return the error reason unfortunately.
