<?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: OneAgent extension - request for configuration elements in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/OneAgent-extension-request-for-configuration-elements/m-p/247972#M4571</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73103"&gt;@PierreLamonzie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;you can get each host extension data using extension API (example below)&lt;BR /&gt;Then You can do a script to iterate on step 5 and trigger step 6 for each result from step5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - Generate token with - read config&amp;nbsp;&lt;BR /&gt;2 - go to configuration API and authorize&lt;BR /&gt;3 - Find "/extension" and list all avaiable extension:&lt;BR /&gt;  /api/config/v1/extensions?pageSize=200&lt;BR /&gt;&lt;BR /&gt;4 - copy id of you extension for example:&lt;BR /&gt;  custom.python.cert_plugin&lt;BR /&gt;5 - use id as parameter for "extensions/{id}/instances"&lt;BR /&gt;  /api/config/v1/extensions/custom.python.cert_plugin/instances?pageSize=200&lt;BR /&gt;  you will get list of custom configured instances:&lt;BR /&gt;&lt;BR /&gt;  {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "configurationsList": [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "HOST-4544E85D1B018C76"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "totalResults": 1&lt;BR /&gt;  }&lt;BR /&gt;6 - now go to "extensions/{id}/instances/{configurationId}"&lt;BR /&gt;  fill id and configurationID:&lt;BR /&gt;  /api/config/v1/extensions/custom.python.cert_plugin/instances/HOST-4544E85D1B018C76'&lt;BR /&gt;  in response you will get configuration of plugin in specific host:&lt;BR /&gt;  {&lt;BR /&gt;  "extensionId": "custom.python.cert_plugin",&lt;BR /&gt;  "enabled": true,&lt;BR /&gt;  "useGlobal": false,&lt;BR /&gt;  "properties": {&lt;BR /&gt;    "CertList": "",&lt;BR /&gt;    "ExpDays": "366",&lt;BR /&gt;    "Split": ";",&lt;BR /&gt;    "LogFileLocation": "C:\\ProgramData\\dynatrace\\oneagent\\log\\plugin\\",&lt;BR /&gt;    "DebugLevel": "INFO"&lt;BR /&gt;  },&lt;BR /&gt;  "hostId": "HOST-4544E85D1B018C76"&lt;BR /&gt;  }&lt;/P&gt;&lt;P&gt;Hope it helps&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Bests&lt;BR /&gt;Michal&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 09:59:02 GMT</pubDate>
    <dc:creator>MichalOlszewski</dc:creator>
    <dc:date>2024-06-11T09:59:02Z</dc:date>
    <item>
      <title>OneAgent extension - request for configuration elements</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-extension-request-for-configuration-elements/m-p/247945#M4568</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;We are using a custom OneAgent extension that displays certain fields for its own configuration.&lt;/P&gt;
&lt;P&gt;We have thousands of hosts having this extension used and configured.&lt;/P&gt;
&lt;P&gt;(On premise Dynatrace)&lt;/P&gt;
&lt;P&gt;I am wondering how to get all those configuration elements by API ? To get a result like field name:field value for each host in a json.&lt;/P&gt;
&lt;P&gt;Thx and regards.&lt;/P&gt;
&lt;P&gt;Pierre&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 07:18:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-extension-request-for-configuration-elements/m-p/247945#M4568</guid>
      <dc:creator>PierreLamonzie</dc:creator>
      <dc:date>2024-06-11T07:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent extension - request for configuration elements</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-extension-request-for-configuration-elements/m-p/247972#M4571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73103"&gt;@PierreLamonzie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;you can get each host extension data using extension API (example below)&lt;BR /&gt;Then You can do a script to iterate on step 5 and trigger step 6 for each result from step5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - Generate token with - read config&amp;nbsp;&lt;BR /&gt;2 - go to configuration API and authorize&lt;BR /&gt;3 - Find "/extension" and list all avaiable extension:&lt;BR /&gt;  /api/config/v1/extensions?pageSize=200&lt;BR /&gt;&lt;BR /&gt;4 - copy id of you extension for example:&lt;BR /&gt;  custom.python.cert_plugin&lt;BR /&gt;5 - use id as parameter for "extensions/{id}/instances"&lt;BR /&gt;  /api/config/v1/extensions/custom.python.cert_plugin/instances?pageSize=200&lt;BR /&gt;  you will get list of custom configured instances:&lt;BR /&gt;&lt;BR /&gt;  {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "configurationsList": [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "HOST-4544E85D1B018C76"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "totalResults": 1&lt;BR /&gt;  }&lt;BR /&gt;6 - now go to "extensions/{id}/instances/{configurationId}"&lt;BR /&gt;  fill id and configurationID:&lt;BR /&gt;  /api/config/v1/extensions/custom.python.cert_plugin/instances/HOST-4544E85D1B018C76'&lt;BR /&gt;  in response you will get configuration of plugin in specific host:&lt;BR /&gt;  {&lt;BR /&gt;  "extensionId": "custom.python.cert_plugin",&lt;BR /&gt;  "enabled": true,&lt;BR /&gt;  "useGlobal": false,&lt;BR /&gt;  "properties": {&lt;BR /&gt;    "CertList": "",&lt;BR /&gt;    "ExpDays": "366",&lt;BR /&gt;    "Split": ";",&lt;BR /&gt;    "LogFileLocation": "C:\\ProgramData\\dynatrace\\oneagent\\log\\plugin\\",&lt;BR /&gt;    "DebugLevel": "INFO"&lt;BR /&gt;  },&lt;BR /&gt;  "hostId": "HOST-4544E85D1B018C76"&lt;BR /&gt;  }&lt;/P&gt;&lt;P&gt;Hope it helps&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Bests&lt;BR /&gt;Michal&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 09:59:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-extension-request-for-configuration-elements/m-p/247972#M4571</guid>
      <dc:creator>MichalOlszewski</dc:creator>
      <dc:date>2024-06-11T09:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent extension - request for configuration elements</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-extension-request-for-configuration-elements/m-p/248020#M4573</link>
      <description>&lt;P&gt;Thanks a lot Michal, it works perfectly !&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 14:59:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-extension-request-for-configuration-elements/m-p/248020#M4573</guid>
      <dc:creator>PierreLamonzie</dc:creator>
      <dc:date>2024-06-11T14:59:23Z</dc:date>
    </item>
  </channel>
</rss>

