<?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: Is it possible create/update/delete host groups via REST API in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273950#M3685</link>
    <description>&lt;P&gt;&lt;A href="https://community.dynatrace.com/t5/Product-ideas/API-Endpoint-for-Host-Groups/idi-p/273949#M51234" target="_blank"&gt;API Endpoint for Host Groups - Dynatrace Community&lt;/A&gt;&amp;nbsp;- please vote &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Mar 2025 11:32:51 GMT</pubDate>
    <dc:creator>gschramm</dc:creator>
    <dc:date>2025-03-31T11:32:51Z</dc:date>
    <item>
      <title>Is it possible create/update/delete host groups via Rest API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273904#M3681</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm currently build a script that allows us to quickly setup a new application we want to onboard. The goal is to build a sceleton configuration with all important pieces including permissions.&lt;/P&gt;
&lt;P&gt;Application, URL mapping, storage buckets, management zone ect.. all find. One important piece is the host group and there doesn't seem to be a REST endpunkt for managing host groups.&lt;/P&gt;
&lt;P&gt;Can you confirm that or am I simply overlooking something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Günter&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 11:47:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273904#M3681</guid>
      <dc:creator>gschramm</dc:creator>
      <dc:date>2025-12-15T11:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible create/update/delete host groups via REST API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273906#M3682</link>
      <description>&lt;P&gt;That's correct, there is no API for managing hostgroups.&amp;nbsp; Host groups get automatically created when you set them in the OneAgent installer arguments, in the OneAgent configuration using oneagentctl, by changing them in Deployment status or by using OneAgent configuration API.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 07:13:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273906#M3682</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-03-31T07:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible create/update/delete host groups via REST API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273947#M3684</link>
      <description>&lt;P&gt;That's major disappointment. Host groups are useful config items that are reused in other parts of a configuration, eg. Management Zones, Mainteance Windows, Logs Ingest Rules, Bucket assignment.. also in Policies for boundaries definitions ect.&lt;/P&gt;&lt;P&gt;In our case I simply cannot build a proper starting configuration without a new host group. Connecting / changing an agent to create a new group seems like a very silly workaround to me.&lt;/P&gt;&lt;P&gt;I'll create a product idea for this.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 11:20:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273947#M3684</guid>
      <dc:creator>gschramm</dc:creator>
      <dc:date>2025-03-31T11:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible create/update/delete host groups via REST API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273950#M3685</link>
      <description>&lt;P&gt;&lt;A href="https://community.dynatrace.com/t5/Product-ideas/API-Endpoint-for-Host-Groups/idi-p/273949#M51234" target="_blank"&gt;API Endpoint for Host Groups - Dynatrace Community&lt;/A&gt;&amp;nbsp;- please vote &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 11:32:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273950#M3685</guid>
      <dc:creator>gschramm</dc:creator>
      <dc:date>2025-03-31T11:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible create/update/delete host groups via REST API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273975#M3687</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/78409"&gt;@gschramm&lt;/a&gt;&amp;nbsp;I'm curious about what you are trying to accomplish. You can still create rules such as tagging rules, or management zones referring to a host group name even when such a host group does not exist yet.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 13:38:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/273975#M3687</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-03-31T13:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible create/update/delete host groups via Rest API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/295232#M3933</link>
      <description>&lt;P&gt;One use case could be maintenance windows.&amp;nbsp; For example, I have a few agents that I need to deploy however, they will not be in production until a certain time.&amp;nbsp; If I was able to create an 'empty host group', I could configure my maintenance window based on that host group.&amp;nbsp; Then when those agents are deployed, they should automatically be in maintenance mode.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 18:29:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/295232#M3933</guid>
      <dc:creator>apasoquen1</dc:creator>
      <dc:date>2026-02-24T18:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible create/update/delete host groups via Rest API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/296933#M3971</link>
      <description>&lt;P&gt;My use case : create a new host-group with specifics settings before to install OneAgent. I need to desactivate some monitoring features to the new host group only.&lt;BR /&gt;How can i do that ?&amp;nbsp;&lt;BR /&gt;I do not understand how this page can help : The solution&amp;nbsp;&lt;A href="https://docs.dynatrace.com/managed/shortlink/api-v2-remote-configuration-oneagents-post-job" target="_blank"&gt;https://docs.dynatrace.com/managed/shortlink/api-v2-remote-configuration-oneagents-post-job&lt;/A&gt;&lt;BR /&gt;I do not have entities ID because OneAgent is not installed yet on the new hosts.&lt;BR /&gt;I'am interested if you have un curl example&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 13:54:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/296933#M3971</guid>
      <dc:creator>Didier</dc:creator>
      <dc:date>2026-03-30T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible create/update/delete host groups via Rest API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/297056#M3972</link>
      <description>&lt;P&gt;I'm answering my own question (with Jean-Louis's help). And in case it's helpful to others :&lt;BR /&gt;&lt;BR /&gt;To list Host_Groups, you can use the entities API with the following entitySelector configuration: type(HOST_GROUP)&lt;/P&gt;&lt;P&gt;/api/v2/entities?entitySelector=type%28HOST_GROUP%29&lt;BR /&gt;&lt;BR /&gt;Example :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -s "${DT_TENANT_URL}api/v2/entities?entitySelector=type%28HOST_GROUP%29" -X GET -H 'Accept: application/json; charset=utf-8' -H
 'Content-Type: application/json; charset=utf-8' -H "Authorization: Api-Token ${DT_TENANT_TOKEN}"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;and then, you can modify a specific host group with it's ID ("scope":"HOST_GROUP-ID") in&amp;nbsp;api/v2/settings/objects&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl "${DT_TENANT_URL}api/v2/settings/objects" \
-X POST \
-H "Accept: application/json; charset=utf-8" \
-H "Content-Type: application/json; charset=utf-8" \
-H "Authorization: Api-Token ${DT_TENANT_TOKEN}" \
-d $'[{"schemaId":"builtin:process.process-monitoring","schemaVersion":"0.2","scope":"HOST_GROUP-ID","value":{"autoMonitoring":false}}]'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, you cannot create a host group without a host; it must be associated with at least one host.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2026 08:16:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-create-update-delete-host-groups-via-Rest-API/m-p/297056#M3972</guid>
      <dc:creator>Didier</dc:creator>
      <dc:date>2026-04-01T08:16:22Z</dc:date>
    </item>
  </channel>
</rss>

