# Extract the Name and Schedule of the Maintenance window configured for OneAgent update

**URL:** <https://community.dynatrace.com/t/extract-the-name-and-schedule-of-the-maintenance-window-configured-for-oneagent-update/44153>\
**Category:** Open Q&A\
**Tags:** oneagent, maintenance-window\
**Created:** [February 15, 2024, 6:04pm UTC](https://community.dynatrace.com/t/extract-the-name-and-schedule-of-the-maintenance-window-configured-for-oneagent-update/44153 "2024-02-15T18:04:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EugeneJacob](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@EugeneJacob](https://community.dynatrace.com/u/EugeneJacob)\
**Post date:** [February 15, 2024, 6:04pm UTC](https://community.dynatrace.com/t/extract-the-name-and-schedule-of-the-maintenance-window-configured-for-oneagent-update/44153/1 "2024-02-15T18:04:09Z")

</div>

In our environment, we do not all OneAgents in one shot. We update them batch by batch, using “Auto Update during Maintenance Window” option.

We wanted to ensure that we are updating the correct list of OneAgents on each batch. After making necessary configurations, we would like to validate if Maintenance Window is correctly configured again correct list of hosts/hostgroups.

Is there a particular API / builtin:scheme that i can use to extract this information? Or if i should write a python script, is there any specific parameter i need to look for?

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [February 19, 2024, 11:30am UTC](https://community.dynatrace.com/t/extract-the-name-and-schedule-of-the-maintenance-window-configured-for-oneagent-update/44153/2 "2024-02-19T11:30:06Z")

</div>

Hello&nbsp;[@EugeneJacob](https://community.dynatrace.com/user/60476),

I think you can use&nbsp;builtin:deployment.management.update-windows

for more details please check the following link:

> **[Settings API - Update windows for OneAgent and ActiveGate schema table](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/settings/schemas/builtin-deployment-management-update-windows)**
>
> View builtin:deployment.management.update-windows settings schema table of your monitoring environment via the Dynatrace API.
