Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Controller (SaaS, On Premises)

How to return data inside folders using the REST API?

New Poster

How to return data inside folders using the REST API?

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/<application_name>/metrics" query which gives the result: 




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 the name of all of the metrics inside of the "Overall Application Performance" folder?



By replying you agree to the Terms and Conditions of the AppDynamics Community.
How to return data inside folders using the REST API?
AppDynamics Team



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.



curl --user username@account_name:secret http://<controller_host>:<port>/controller/rest/applications/app_id/metrics?metric-path=Overall%20Application%20Performance




Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
New Poster

Many thanks yogesh.chouk, that has done it!