<?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: deleting inactive applications through API in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735323#M9344</link>
    <description>&lt;P&gt;Thanks for the response, w.r.t. health rules the provided information is useful.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Now, after finding the tiers which are no longer needed I have to delete them. But I did not find any API to delete a specific tier.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;And also I need an API to delete a specific application. I found API call in one of our community responses but it's not working as expected.&lt;/P&gt;

&lt;P&gt;Can you please provide API&amp;nbsp; to delete a specific tier and an API to delete a specific application.&lt;/P&gt;
&lt;P&gt;The above APIs are useful to automate the cleanup of an inactive application in Appdynamics.&lt;/P&gt;

&lt;P&gt;Thanks for the help.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pradeep&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 12:47:32 GMT</pubDate>
    <dc:creator>pradeep_kumar1</dc:creator>
    <dc:date>2020-07-01T12:47:32Z</dc:date>
    <item>
      <title>deleting inactive applications through API</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735321#M9342</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I'm working on the automation for removing inactive applications from the controller. For this i'm checking the following:&lt;/P&gt;
&lt;P&gt;1) application with tiers having zero(0) node count and no &lt;STRONG&gt;health status(?)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2) applications with&amp;nbsp;tiers having zero(0) node count and 0 calls per month&lt;/P&gt;

&lt;P&gt;I'm having issues finding the&lt;STRONG&gt; Health status&lt;/STRONG&gt; of a node in a particular tier. This can easily found in the UI but I need this through API call.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;can someone please help with this.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Pradeep&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 06:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735321#M9342</guid>
      <dc:creator>pradeep_kumar1</dc:creator>
      <dc:date>2020-06-18T06:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: deleting inactive applications through API</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735322#M9343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/147437"&gt;@pradeep.kumar&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;Thanks for your post on the community. I found this AppD Docs page that covers the Health Rule API&amp;nbsp;&lt;A href="https://docs.appdynamics.com/display/PRO45/Health+Rule+API" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO45/Health+Rule+API&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you don't find what you are looking for there, take a look at the sidebar on that page as there is a list of all other AppD APIs.&lt;/P&gt;

&lt;P&gt;If you find anything in the documentation that was helpful, please do share those results back in this post. This helps keep knowledge sharing alive and closes the loop.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 16:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735322#M9343</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2020-06-18T16:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: deleting inactive applications through API</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735323#M9344</link>
      <description>&lt;P&gt;Thanks for the response, w.r.t. health rules the provided information is useful.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Now, after finding the tiers which are no longer needed I have to delete them. But I did not find any API to delete a specific tier.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;And also I need an API to delete a specific application. I found API call in one of our community responses but it's not working as expected.&lt;/P&gt;

&lt;P&gt;Can you please provide API&amp;nbsp; to delete a specific tier and an API to delete a specific application.&lt;/P&gt;
&lt;P&gt;The above APIs are useful to automate the cleanup of an inactive application in Appdynamics.&lt;/P&gt;

&lt;P&gt;Thanks for the help.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pradeep&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 12:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735323#M9344</guid>
      <dc:creator>pradeep_kumar1</dc:creator>
      <dc:date>2020-07-01T12:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: deleting inactive applications through API</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735324#M9345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/147437"&gt;@pradeep.kumar&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;I don't have answers to those questions. If I find anything, I will share it back here. In the meantime, let's see if the community can jump in and provide any insight.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 17:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735324#M9345</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2020-07-02T17:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: deleting inactive applications through API</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735325#M9346</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;You can use the below two ways to delete Applications and Tiers via the API&lt;/P&gt;&lt;P&gt;First step as you know is to run the auth query to get the JSESSIONID &amp;amp; X-CSRF-TOKEN&lt;/P&gt;&lt;P&gt;Get Auth Details&lt;/P&gt;&lt;P&gt;curl -i --user &amp;lt;username&amp;gt;@&amp;lt;accountname&amp;gt;:&amp;lt;password&amp;gt; https://&amp;lt;controller details&amp;gt;/controller/auth?action=login&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Applications&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;To Delete an application, you can use the default API, to get the ID's of the application, once you have the ID of the application you want to delete you can use the following query&lt;/P&gt;&lt;P&gt;curl -X POST -H "Cookie:JSESSIONID=e81ba25c363b479b16d49ccc8e75;" -H "X-CSRF-TOKEN:ab45ea344e5178f08862g03f4f4a4ddb25910934" -H "Content-Type: application/json" -H "Accept: application/json" https://&amp;lt;controller details&amp;gt;/controller/restui/allApplications/deleteApplication --data "&amp;lt;application ID&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The same for Tiers&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Use the default API's to get the ID's of the tiers you want to delete(ComponentID) and then tun the following query&lt;/P&gt;&lt;P&gt;curl -X DELETE -H "Cookie:JSESSIONID=e81ba24c303be79b16d49ccd8e75;" -H "X-CSRF-TOKEN:ab45ea334e7178f00862f03f4f4a4ddb25910934" -H "Content-Type: application/json" -H "Accept: application/json" https://&amp;lt;controller details&amp;gt;/controller/restui/components/deleteComponent/&amp;lt;componentid&amp;gt;&lt;/P&gt;&lt;P&gt;Ciao&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 10:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/deleting-inactive-applications-through-API/m-p/735325#M9346</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2020-07-05T10:44:36Z</dc:date>
    </item>
  </channel>
</rss>

