<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create Maintenance Window (API) for all hosts with a specific geoloc_site in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Maintenance-Window-API-for-all-hosts-with-a-specific/m-p/109611#M6700</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi René &lt;/P&gt;&lt;P&gt;You are on the right track. However; we would use the &lt;STRONG&gt;type&lt;/STRONG&gt; element in the &lt;STRONG&gt;MonitoredEntityFilter&lt;/STRONG&gt; object to specify the geolocation. Documentation can be found on this here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/configuration-api/maintenance-windows-api/post-mw/"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/configuration-api/maintenance-windows-api/post-mw/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Such as:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt; "type": "Geolocation",&lt;/LI&gt;&lt;LI&gt;        "managementZoneId": example   &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you navigate to your tenant. You can click the oneagent icon in the top right corner, you can navigate to configuration API to test a few queries &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;-Michael&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 03 Mar 2020 15:25:23 GMT</pubDate>
    <dc:creator>michael_bonner</dc:creator>
    <dc:date>2020-03-03T15:25:23Z</dc:date>
    <item>
      <title>Create Maintenance Window (API) for all hosts with a specific geoloc_site</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Maintenance-Window-API-for-all-hosts-with-a-specific/m-p/109610#M6699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'd like to create a maintenance window for all hosts within a specific DC (GEOLOC_Site) through API, however I'm not able to figure out the correct JSON to do this, beside quering for all entities prior the request and concatenate them within the entities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'd like to archive something like this:&lt;/P&gt;&lt;PRE&gt;"scope": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "entities": [],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "matches": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "type": "HOST",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "managementZoneId": null,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "tags": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "context": "ENVIRONMENT",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "key": "GEOLOC_SITE",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "value": "GEOLOC_SITE-123456789abdcf"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ]&lt;BR /&gt;&amp;nbsp; },&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;René&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:34:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Maintenance-Window-API-for-all-hosts-with-a-specific/m-p/109610#M6699</guid>
      <dc:creator>rene_forstner</dc:creator>
      <dc:date>2020-03-02T13:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create Maintenance Window (API) for all hosts with a specific geoloc_site</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Maintenance-Window-API-for-all-hosts-with-a-specific/m-p/109611#M6700</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi René &lt;/P&gt;&lt;P&gt;You are on the right track. However; we would use the &lt;STRONG&gt;type&lt;/STRONG&gt; element in the &lt;STRONG&gt;MonitoredEntityFilter&lt;/STRONG&gt; object to specify the geolocation. Documentation can be found on this here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/configuration-api/maintenance-windows-api/post-mw/"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/configuration-api/maintenance-windows-api/post-mw/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Such as:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt; "type": "Geolocation",&lt;/LI&gt;&lt;LI&gt;        "managementZoneId": example   &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you navigate to your tenant. You can click the oneagent icon in the top right corner, you can navigate to configuration API to test a few queries &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;-Michael&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Mar 2020 15:25:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Maintenance-Window-API-for-all-hosts-with-a-specific/m-p/109611#M6700</guid>
      <dc:creator>michael_bonner</dc:creator>
      <dc:date>2020-03-03T15:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create Maintenance Window (API) for all hosts with a specific geoloc_site</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Maintenance-Window-API-for-all-hosts-with-a-specific/m-p/206838#M25093</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to achieve nearly the same, but scope being limited to one management zone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However using this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
    {
        "schemaId": "builtin:alerting.maintenance-window",
        "scope": {
            "entities": [],
            "matches": [
                {
                    "type": "HOST",
                    "managementZoneId": "-89498072342349753701"
                }
            ]
        },&lt;/LI-CODE&gt;&lt;P&gt;does give me a 400 in Postman (&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Could&amp;nbsp;not&amp;nbsp;map&amp;nbsp;JSON&amp;nbsp;at&amp;nbsp;'[0].scope'&amp;nbsp;near&amp;nbsp;line&amp;nbsp;4&amp;nbsp;column&amp;nbsp;18")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i define the scope here? Am i blind? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Bjoern&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 12:28:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Maintenance-Window-API-for-all-hosts-with-a-specific/m-p/206838#M25093</guid>
      <dc:creator>Zanderfilet</dc:creator>
      <dc:date>2023-03-12T12:28:53Z</dc:date>
    </item>
  </channel>
</rss>

