<?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: Configuration API for Service naming rules? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118665#M913</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Here is the solution:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using ConditionalNaming rule API GET the Services and their IDs’ where all the Service naming rules are created {&lt;!-- --&gt;{tenant}}/api/config/v1/conditionalNaming/:type&lt;/LI&gt;&lt;LI&gt;GET the properties of each Id {&lt;!-- --&gt;{tenant}}/api/config/v1/conditionalNaming/:type/:id&lt;/LI&gt;&lt;LI&gt;GET the host group ID of the host group of the the enviornment where you are planning to create the rule using API {&lt;!-- --&gt;{tenant}}/api/v1/entity/infrastructure/hosts&lt;/LI&gt;&lt;LI&gt;Take the meId from #3, modify the #2 response and POST the payload using  {&lt;!-- --&gt;{tenant}}/api/config/v1/conditionalNaming/:type&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Thanks for your inputs &lt;A rel="user" href="https://answers.dynatrace.com/users/18250/view.html" nodeid="18250"&gt;@Alonso de Cosio F.&lt;/A&gt; &lt;A rel="user" href="https://answers.dynatrace.com/users/16467/view.html" nodeid="16467"&gt;@Július L.&lt;/A&gt; and &lt;A rel="user" href="https://answers.dynatrace.com/users/36422/view.html" nodeid="36422"&gt;@Chad T.&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks, Suresh.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 20:11:53 GMT</pubDate>
    <dc:creator>sureshKumarK</dc:creator>
    <dc:date>2020-11-10T20:11:53Z</dc:date>
    <item>
      <title>Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118655#M903</link>
      <description>&lt;P&gt;Hi, I am trying to find whether there is an Configuration API available to define or copy the Service naming rules. In one environment I have defined the rules manually and I am trying to use Configuration API to GET, modify and POST the rules to a new Environment. Please let me know if there is an API available for this?&lt;/P&gt;
&lt;P&gt;Thanks, Suresh.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 10:22:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118655#M903</guid>
      <dc:creator>sureshKumarK</dc:creator>
      <dc:date>2022-08-30T10:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118656#M904</link>
      <description>&lt;P&gt;Within the configuration API, you can pull the metrics on each rule and then post that into your new environment as shown here:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27192-1604627720052.png" /&gt;&lt;/P&gt;&lt;P&gt;We had Dynatrace Support do the migration for us so it was apples to apples&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 02:00:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118656#M904</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2020-11-06T02:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118657#M905</link>
      <description>&lt;P&gt;At the moment, you cannot transfer service naming rules via API and you have to recreate them manually or maybe ask Dynatrace support to do that for you as &lt;A rel="user" href="https://answers.dynatrace.com/users/36422/view.html" nodeid="36422"&gt;@Chad T.&lt;/A&gt; mentions.&lt;BR /&gt;&lt;BR /&gt;But it's likely your situation can be also covered by the Service detection rules. Those are for a different purpose.  They can be migrated via API easily.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 10:00:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118657#M905</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2020-11-06T10:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118658#M906</link>
      <description>&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;To migrate the service naming rules, you can use the /conditionalNaming/{Type} endpoint.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27241-screen-shot-2020-11-06-at-95208-am.png" /&gt;&lt;/P&gt;&lt;P&gt;In your case, the type will be "service", and as you said, first you need to do a GET and then do a POST in the second environment.&lt;/P&gt;&lt;P&gt;Alonso&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 14:58:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118658#M906</guid>
      <dc:creator>alonso_decosio</dc:creator>
      <dc:date>2020-11-06T14:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118659#M907</link>
      <description>&lt;P&gt;thanks &lt;A rel="user" href="https://answers.dynatrace.com/users/36422/view.html" nodeid="36422"&gt;@Chad T.&lt;/A&gt; I am not looking for metrics, I am looking for renaming the Services with rules using API&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 17:16:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118659#M907</guid>
      <dc:creator>sureshKumarK</dc:creator>
      <dc:date>2020-11-10T17:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118660#M908</link>
      <description>&lt;P&gt;Hi Alonso, looks like this API is useful for process groups not for each service&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 17:22:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118660#M908</guid>
      <dc:creator>sureshKumarK</dc:creator>
      <dc:date>2020-11-10T17:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118661#M909</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.dynatrace.com/users/18250/view.html" nodeid="18250"&gt;@Alonso de Cosio F.&lt;/A&gt;, &lt;A rel="user" href="https://answers.dynatrace.com/users/16467/view.html" nodeid="16467"&gt;@Július L.&lt;/A&gt;, and &lt;A rel="user" href="https://answers.dynatrace.com/users/36422/view.html" nodeid="36422"&gt;@Chad T.&lt;/A&gt; i have made some progress to get this done.&lt;/P&gt;&lt;P&gt;As Alonso mentioned, I can do the GET to pull all the services and their IDs using conditionalNaming API {&lt;!-- --&gt;{tenant}}/api/config/v1/conditionalNaming/:type&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27259-1605031154410.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and do another GET on id to pull the properties of that service {&lt;!-- --&gt;{tenant}}/api/config/v1/conditionalNaming/:type/:id&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27284-1605034690221.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;now the question is, to do POST this in new environment where I want to modify and create as a new rule, I am not able to find how to GET the HOST_GROUP_ID values for new environment so that I can modify the Payload and POST to the new environment to create the rule(s)&lt;/P&gt;&lt;P&gt;fyi, this is the payload I am trying to POST in new Environment to get the rule created. Not sure how to get the HOST_GROUP_ID values of new Environment. if I get them, then should be easy to create. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27283-1605034529727.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 18:08:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118661#M909</guid>
      <dc:creator>sureshKumarK</dc:creator>
      <dc:date>2020-11-10T18:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118662#M910</link>
      <description>&lt;P&gt;If I know how to GET the HOST group IDs using API, simply i can replace that in the payload and do POST. &lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 18:13:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118662#M910</guid>
      <dc:creator>sureshKumarK</dc:creator>
      <dc:date>2020-11-10T18:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118663#M911</link>
      <description>&lt;P&gt;Seems using the following API we can find the host group ID&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/topology-and-smartscape/hosts-api/get-all/#entityinfrastructurehosts-get-response-hostgroup" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-api/environment-api/topology-and-smartscape/hosts-api/get-all/#entityinfrastructurehosts-get-response-hostgroup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27285-1605035683929.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 18:49:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118663#M911</guid>
      <dc:creator>sureshKumarK</dc:creator>
      <dc:date>2020-11-10T18:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118664#M912</link>
      <description>&lt;P&gt;thanks Alonso, conditional naming API gave a good lead for the solution&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 19:45:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118664#M912</guid>
      <dc:creator>sureshKumarK</dc:creator>
      <dc:date>2020-11-10T19:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API for Service naming rules?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118665#M913</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Here is the solution:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using ConditionalNaming rule API GET the Services and their IDs’ where all the Service naming rules are created {&lt;!-- --&gt;{tenant}}/api/config/v1/conditionalNaming/:type&lt;/LI&gt;&lt;LI&gt;GET the properties of each Id {&lt;!-- --&gt;{tenant}}/api/config/v1/conditionalNaming/:type/:id&lt;/LI&gt;&lt;LI&gt;GET the host group ID of the host group of the the enviornment where you are planning to create the rule using API {&lt;!-- --&gt;{tenant}}/api/v1/entity/infrastructure/hosts&lt;/LI&gt;&lt;LI&gt;Take the meId from #3, modify the #2 response and POST the payload using  {&lt;!-- --&gt;{tenant}}/api/config/v1/conditionalNaming/:type&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Thanks for your inputs &lt;A rel="user" href="https://answers.dynatrace.com/users/18250/view.html" nodeid="18250"&gt;@Alonso de Cosio F.&lt;/A&gt; &lt;A rel="user" href="https://answers.dynatrace.com/users/16467/view.html" nodeid="16467"&gt;@Július L.&lt;/A&gt; and &lt;A rel="user" href="https://answers.dynatrace.com/users/36422/view.html" nodeid="36422"&gt;@Chad T.&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks, Suresh.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 20:11:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-for-Service-naming-rules/m-p/118665#M913</guid>
      <dc:creator>sureshKumarK</dc:creator>
      <dc:date>2020-11-10T20:11:53Z</dc:date>
    </item>
  </channel>
</rss>

