<?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 Settings API - GET objects in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212440#M2502</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am trying to execute get objects API but not sure what to enter in&amp;nbsp;&lt;SPAN&gt;schemaIds, how can I find schemaID to get list of one agent deployed&amp;nbsp;list.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Pooja P&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 14:14:36 GMT</pubDate>
    <dc:creator>Pooja_3</dc:creator>
    <dc:date>2023-05-17T14:14:36Z</dc:date>
    <item>
      <title>Settings API - GET objects</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212440#M2502</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am trying to execute get objects API but not sure what to enter in&amp;nbsp;&lt;SPAN&gt;schemaIds, how can I find schemaID to get list of one agent deployed&amp;nbsp;list.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Pooja P&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 14:14:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212440#M2502</guid>
      <dc:creator>Pooja_3</dc:creator>
      <dc:date>2023-05-17T14:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Settings API - GET objects</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212442#M2503</link>
      <description>&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;Hi Pooja,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;You can use v2 Settings API to get the list of all the available schemas.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;&lt;STRONG&gt;API:&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;https://{environmentid}.live.dynatrace.com/api/v2&lt;/SPAN&gt;&lt;SPAN class=""&gt;/settings/schemas&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Response: &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "schemaId": "builtin:monitored-technologies.php",
  "displayName": "PHP",
  "latestSchemaVersion": "0.0.3"
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;You can use above &lt;EM&gt;schemaId&lt;/EM&gt; to get or update the objects.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt;&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings/schemas/get-all" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings/schemas/get-all&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 11:18:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212442#M2503</guid>
      <dc:creator>Naveen</dc:creator>
      <dc:date>2023-05-17T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Settings API - GET objects</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212523#M2506</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57187"&gt;@Pooja_3&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I don't know if you are looking for the list of deployed hosts or if you just need the OneAgent &lt;SPAN&gt;default&amp;nbsp;&lt;/SPAN&gt;version, if you are looking for the list of hosts, you need to use entity API not settings API.&lt;/P&gt;&lt;P&gt;entity API v2:&lt;/P&gt;&lt;P&gt;/api/v2/entities?entitySelector=type(host)&amp;amp;fields=+properties.osType,+properties.monitoringMode&lt;/P&gt;&lt;P&gt;or you can use API v1:&lt;/P&gt;&lt;P&gt;/api/v1/entity/infrastructure/hosts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as for settings API, you can find all the&amp;nbsp;available schemas &lt;A href="https://www.dynatrace.com/support/help/shortlink/settings20-available-schemas" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 19:54:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212523#M2506</guid>
      <dc:creator>Mohamed_Hamdy</dc:creator>
      <dc:date>2023-05-17T19:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Settings API - GET objects</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212532#M2507</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51963"&gt;@Naveen&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4007"&gt;@Mohamed_Hamdy&lt;/a&gt;&amp;nbsp;- I am able to get the list of schema IDs. Basically, I am trying to get list of hosts on which one agents is deployed in last 3 months. From UI I can't option to save that list. My requirement is to block the traffic of certain IPs with same subnet but we have few ECS containers where one agent is deployed. We can block traffic at IP level but at API level it's quite difficult. If you have better solution for this, it would be helpful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 01:10:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212532#M2507</guid>
      <dc:creator>Pooja_3</dc:creator>
      <dc:date>2023-05-18T01:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Settings API - GET objects</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212544#M2508</link>
      <description>&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57187"&gt;@Pooja_3&lt;/a&gt;&amp;nbsp;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;I am not sure what exactly you trying to do, but you can use&amp;nbsp;&lt;STRONG&gt;api/v1/oneagents?includeDetails=false&lt;/STRONG&gt; API to get the list of host where oneagent is installed and save it as a JSON file. Could you please share the API you are using.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;Trying using script may be bash or powershell.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 04:45:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212544#M2508</guid>
      <dc:creator>Naveen</dc:creator>
      <dc:date>2023-05-18T04:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Settings API - GET objects</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212556#M2510</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51963"&gt;@Naveen&lt;/a&gt;&amp;nbsp;, I think&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57187"&gt;@Pooja_3&lt;/a&gt;&amp;nbsp;is looking for this, but for the last three months, so you can use the following as well:&lt;/P&gt;&lt;P&gt;/api/v1/oneagents?includeDetails=false&amp;amp;startTimestamp=1679097600000&amp;amp;endTimestamp=1684368000000&lt;/P&gt;&lt;P&gt;for more details check &lt;A href="https://www.dynatrace.com/support/help/shortlink/api-oneagent-on-host" target="_self"&gt;OneAgent on Host API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to convert timestamps to milliseconds use &lt;A href="https://www.epochconverter.com/" target="_self"&gt;this&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 08:35:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Settings-API-GET-objects/m-p/212556#M2510</guid>
      <dc:creator>Mohamed_Hamdy</dc:creator>
      <dc:date>2023-05-18T08:35:22Z</dc:date>
    </item>
  </channel>
</rss>

