Splunk AppDynamics

Not able to GET any application through /controller/rest/applications

Min_Si_Phang
Engager

I have monitored 2 applications (one Java app and one node.js app) in Appdynamics, but when trying to query the applications, it returned NO applications. Appreciate your advice on what might be wrong. Thank you.

image.png

image.png

I also tried to copy the REST URL Path from the metrics browser:
https://<>.saas.appdynamics.com/controller/rest/applications/newhello/metric-data?metric-path=Overal...

And the return shows:

<body>
<h1>HTTP Status 400 - Invalid application id newhello is specified</h1>
<hr />
<p><b>type</b> Status report</p>
<p><b>message</b>Invalid application id newhello is specified</p>
<p><b>description</b>The request sent by the client was syntactically incorrect.</p>
<hr />
<h3>AppDynamics</h3>
</body>
 
^ Post edited by @Ryan.Paredez for minor changes to the title to make it more searchable
Labels (3)

John_Lee1
New Member

Hi Ryan, 

Thanks for your reply. Yes, I was referring to the AppD Docs page, but it does not return any applications which are unexpected, because we have monitored several applications as can be seen from the UI screen captured above. 

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

0 Karma

Luis_Torres4
New Member

If you are hitting the API successfully and it's not returning any data, then its due the API client not having enough permissions. in  Settings / Administration / API Clients select the Client Name from the list, and take a look at the roles assigned, if there is no roles or the client is given a role that does not have sufficient permissions, then the data will return empty. 

I know this is from a year ago, but at least it's here in case someone else has a similar issue. 

0 Karma

iamryan
Community Manager
Community Manager

Hi @Min Si.Phang,

Have you seen this AppD Docs page? https://docs.appdynamics.com/21.2/en/extend-appdynamics/appdynamics-apis/application-model-api#Appli...

Please let me know if this helps. 

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...