<?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: API to pull ALL hostgroup ID's in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/221049#M2621</link>
    <description>&lt;P&gt;You must remove ALL parameters before using the&amp;nbsp;&lt;SPAN&gt;nextPageKey or you will get the errors you show here.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2023 17:58:47 GMT</pubDate>
    <dc:creator>Mike_S</dc:creator>
    <dc:date>2023-08-18T17:58:47Z</dc:date>
    <item>
      <title>API to pull all host group ID's</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/181005#M1730</link>
      <description>&lt;P&gt;I am trying to pull in ALL my hostgroup ID's from the DT API.&lt;BR /&gt;&lt;BR /&gt;It used to work using&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;https:// xxxxxlive.dynatrace.com/api/v1/entity/infrastructure/hosts?tag=ds%3Aprod&amp;amp;showMonitoringCandidates=false&amp;amp;includeDetails=true&lt;BR /&gt;&lt;BR /&gt;now, I am getting blank hostGroups&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Aug 2024 08:28:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/181005#M1730</guid>
      <dc:creator>lee_rovner</dc:creator>
      <dc:date>2024-08-21T08:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: API to pull ALL hostgroup ID's</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/181740#M1738</link>
      <description>&lt;P&gt;You can try using the&amp;nbsp;&lt;STRONG&gt;Monitored Entities API,&amp;nbsp;&lt;/STRONG&gt;using the entity type HOST_GROUP should give you what you are looking for:&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;/api/v2/entities?entitySelector=type%28%22host_group%22%29&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 09:13:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/181740#M1738</guid>
      <dc:creator>axel_ayala</dc:creator>
      <dc:date>2022-03-03T09:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: API to pull ALL hostgroup ID's</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/215504#M2578</link>
      <description>&lt;P&gt;Hi Axel,&lt;/P&gt;&lt;P&gt;There appears to be a bug in this API, when issuing a nextPageKey parameter is throws an exception&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "error": {
    "code": 400,
    "message": "Constraints violated.",
    "constraintViolations": [
      {
        "path": "entitySelector",
        "message": "must not be used in combination with nextPageKey query parameter.",
        "parameterLocation": "QUERY",
        "location": null
      },
      {
        "path": "pageSize",
        "message": "must not be used in combination with nextPageKey query parameter.",
        "parameterLocation": "QUERY",
        "location": null
      }
    ]
  }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Jun 2023 13:42:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/215504#M2578</guid>
      <dc:creator>mherbert</dc:creator>
      <dc:date>2023-06-20T13:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: API to pull ALL hostgroup ID's</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/221049#M2621</link>
      <description>&lt;P&gt;You must remove ALL parameters before using the&amp;nbsp;&lt;SPAN&gt;nextPageKey or you will get the errors you show here.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 17:58:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/221049#M2621</guid>
      <dc:creator>Mike_S</dc:creator>
      <dc:date>2023-08-18T17:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: API to pull ALL hostgroup ID's</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/236324#M2920</link>
      <description>&lt;P&gt;This is very useful information and I was able to get the list of host groups using the API.&amp;nbsp; The only question I have is how do I associate these host_groups to the hosts themselves?&amp;nbsp; I don't see a shared host Id/host group id, or at least know how to properly format the URL to pull both information together to allow me to view what host groups are associated to a given host.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 21:43:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/236324#M2920</guid>
      <dc:creator>funkymike7</dc:creator>
      <dc:date>2024-02-05T21:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: API to pull ALL hostgroup ID's</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/236329#M2921</link>
      <description>&lt;P&gt;I dont think the Host group monitored API information gives you that, unfortunately you would need a second call for hosts, and that info is part of the available properties:&lt;/P&gt;&lt;PRE&gt;/api/v2/entities?entitySelector=type("host")&amp;amp;fields=properties.hostgroupname&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 21:59:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-to-pull-all-host-group-ID-s/m-p/236329#M2921</guid>
      <dc:creator>axel_ayala</dc:creator>
      <dc:date>2024-02-05T21:59:48Z</dc:date>
    </item>
  </channel>
</rss>

