Skip to end of metadata
Go to start of metadata

You can fetch the contents of the AppDynamics REST API calls using curl. curl dumps the XML results to standard output.

The syntax is:

curl --user <appdynamics-username>@<appdynamics-account-name:<appdynamics-password> '<URI>'

For example, this command gets the applications on the "demo" server:

curl --user user1@customer1:secret 'http://demo.appdynamics.com/controller/rest/applications'

This command gets the tiers in application 2:

curl --user user1@customer1:secret 'http://demo.appdynamics.com/controller/rest/applications/2/tiers'

This command gets the average response time in the Ecommerce tier of the ACME Online Book Store application over the past two hours:

curl --user user1@customer1:secret 'http://demo.appdynamics.com/controller/rest/applications/Acme%20Online%20Book%20Store/metric-data?metric-path=Business%20Transaction%20Performance%7CBusiness%20Transactions%7CE-Commerce-2%7CCheckout%7CAverage%20Response%20Time%20(ms)&time-range-type=BEFORE_NOW&duration-in-mins=120'