<?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: How to return data inside folders using the REST API? in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-return-data-inside-folders-using-the-REST-API/m-p/725046#M4506</link>
    <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Can you try below and let us know if it helps. Replace username, account name and password with the correct credentials and run the below Rest API.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl --user username@account_name:secret http://&amp;lt;controller_host&amp;gt;:&amp;lt;port&amp;gt;/controller/rest/applications/app_id/metrics?metric-path=Overall%20Application%20Performance&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Yogesh&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2017 06:05:01 GMT</pubDate>
    <dc:creator>Yogesh_Chouk</dc:creator>
    <dc:date>2017-11-21T06:05:01Z</dc:date>
    <item>
      <title>How to return data inside folders using the REST API?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-return-data-inside-folders-using-the-REST-API/m-p/725045#M4505</link>
      <description>&lt;P&gt;I am having some difficulty constructing a query which is able to return metric names from within a folder. I am able to successfully return the names of the folders by using the "controller/rest/applications/&amp;lt;application_name&amp;gt;/metrics" query which gives the result:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="API1.png" style="width: 961px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35045iEED34C96B9A83A60/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;What I would like to do is to have the contents of each folder returned in an API call. For example, what would be the query needed to return &lt;STRONG&gt;the name of&lt;/STRONG&gt; all of the metrics inside of the "Overall Application Performance" folder?&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="API2.png" style="width: 619px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35046iA6B3D89130C241A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 16:13:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-return-data-inside-folders-using-the-REST-API/m-p/725045#M4505</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-11-20T16:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to return data inside folders using the REST API?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-return-data-inside-folders-using-the-REST-API/m-p/725046#M4506</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Can you try below and let us know if it helps. Replace username, account name and password with the correct credentials and run the below Rest API.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl --user username@account_name:secret http://&amp;lt;controller_host&amp;gt;:&amp;lt;port&amp;gt;/controller/rest/applications/app_id/metrics?metric-path=Overall%20Application%20Performance&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Yogesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 06:05:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-return-data-inside-folders-using-the-REST-API/m-p/725046#M4506</guid>
      <dc:creator>Yogesh_Chouk</dc:creator>
      <dc:date>2017-11-21T06:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to return data inside folders using the REST API?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-return-data-inside-folders-using-the-REST-API/m-p/725047#M4507</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;yogesh.chouk, that has done it!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:46:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-return-data-inside-folders-using-the-REST-API/m-p/725047#M4507</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-11-21T09:46:16Z</dc:date>
    </item>
  </channel>
</rss>

