<?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: Retrieve all host group names in the environment via APIs in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-host-group-names-in-the-environment-via-APIs/m-p/205820#M2324</link>
    <description>&lt;P&gt;See also Product Idea&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/Dynatrace-product-ideas/Host-group-visualization-in-side-bar/idi-p/170138" target="_blank"&gt;Host group visualization in side bar - Dynatrace Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 10:31:28 GMT</pubDate>
    <dc:creator>fstekelenburg</dc:creator>
    <dc:date>2023-02-28T10:31:28Z</dc:date>
    <item>
      <title>Retrieve all host group names in the environment via APIs</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-host-group-names-in-the-environment-via-APIs/m-p/167424#M1280</link>
      <description>&lt;P&gt;I need to use some Dynatrace APIs to retrieve a list of all host groups names configured in our environment,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i do not have host group ids and i do not want to retrieve a single host or host group, simply a full list of ALL&amp;nbsp; distinct host groups names, and their ids in case host groups also have IDs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what is the easiest set of APIs to use to retrieve this list?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Davide&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 12:56:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-host-group-names-in-the-environment-via-APIs/m-p/167424#M1280</guid>
      <dc:creator>DavidePiras</dc:creator>
      <dc:date>2021-06-29T12:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve all host group names in the environment via APIs</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-host-group-names-in-the-environment-via-APIs/m-p/167431#M1281</link>
      <description>&lt;P&gt;You can do this via the API:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_0-1623264260159.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1251iB588A477F46520F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_0-1623264260159.png" alt="ChadTurner_0-1623264260159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I recommend saving the API Json then importing it to excel where you then can remove unwanted data:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_1-1623264476719.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1252i6C2B836172AB5FF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_1-1623264476719.png" alt="ChadTurner_1-1623264476719.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 18:49:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-host-group-names-in-the-environment-via-APIs/m-p/167431#M1281</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2021-06-09T18:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve all host group names in the environment via APIs</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-host-group-names-in-the-environment-via-APIs/m-p/167448#M1282</link>
      <description>&lt;P&gt;I have an equally good solution.&amp;nbsp; &amp;nbsp;Someone had created an amazing set of powershell scripts to also extract administrative type data out of DT.&amp;nbsp; The Git Repo is here:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/mzball-dt/dynatrace-pwsh" target="_blank"&gt;https://github.com/mzball-dt/dynatrace-pwsh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Each script has a helpful header that tells you what permissions the token requires, the parameters you can pass in, and some example runs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First create a token with the proper access to run the script. You'll need it in Step 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps for DT SaaS. If you use Managed then follow the instruction in the Git repo.&lt;/P&gt;&lt;P&gt;1) downloaded and extract the zip&lt;/P&gt;&lt;P&gt;2) Open a powershell prompt (e.g.&amp;nbsp;C:\dynatrace-pwsh-master)&lt;/P&gt;&lt;P&gt;3) navigate to the directory you extracted the code into&lt;/P&gt;&lt;P&gt;4) Enter (replace xxxxx with your SaaS tenant id)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; $env:dtenv='https://xxxxxxxxx.live.dynatrace.com';&lt;/LI-CODE&gt;&lt;P&gt;5) Enter&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$env:dttoken='dt0c01.XXXXXXXXXXX';&lt;/LI-CODE&gt;&lt;P&gt;6) Enter this command and enter 'Y'. This changes the execution policy so that you can run third-party scripts.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass;   &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;7) Run any of the scripts you like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are example commands I use frequently to get the data&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;C:\dynatrace-pwsh-master\get-tenantHostGroupDetail.ps1 -token dt0c01.xxxxxx -dtenv https://xxxxx.live.dynatrace.com  -outfile hostgroup_06092021.csv

C:\dynatrace-pwsh-master\get-tenantHostGroupDetail.ps1 | format-table

C:\dynatrace-pwsh-master\get-tenantHostGroupDetail.ps1 -token dt0c01.xxxxxxxx -dtenv https://xxxxxxx.live.dynatrace.com  -summary&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 02:59:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-host-group-names-in-the-environment-via-APIs/m-p/167448#M1282</guid>
      <dc:creator>ct_27</dc:creator>
      <dc:date>2021-06-10T02:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve all host group names in the environment via APIs</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-host-group-names-in-the-environment-via-APIs/m-p/205820#M2324</link>
      <description>&lt;P&gt;See also Product Idea&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/Dynatrace-product-ideas/Host-group-visualization-in-side-bar/idi-p/170138" target="_blank"&gt;Host group visualization in side bar - Dynatrace Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 10:31:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-host-group-names-in-the-environment-via-APIs/m-p/205820#M2324</guid>
      <dc:creator>fstekelenburg</dc:creator>
      <dc:date>2023-02-28T10:31:28Z</dc:date>
    </item>
  </channel>
</rss>

