cancel
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)

GET All Agents by Rest API

SOLVED
Denis.Silveira
Builder

GET All Agents by Rest API

Is there a Rest API that lists all the agents running in the controller? (Mainly the machine agents.)

 

Can I just see the agents by the nodes?

By replying you agree to the Terms and Conditions of the AppDynamics Community.
GET All Agents by Rest API
4 REPLIES 4
Thomas.Miller
Producer

yes, take a look at this link.

 

https://docs.appdynamics.com/display/PRO45/AppDynamics+APIs

 

I use Postman with Basic Auth (my login details) to get the info, but you can build a Python or Java client to do it also.

 

 

Denis.Silveira
Builder

Hello Thomas, I am making use of these APIs, however, I have not found any that I can see the agents in use or a list of them that are in use by the controller. The limit I found was to access each node. But that would exclude me from the machine agents.

 

Thanks

Thomas.Miller
Producer

after you access the node and get the nodeid you can execute this rest call:

 

https://<your-appd-controller>/controller/rest/applications/<nodeid>/nodes

 

In the output you get a description of the nodes and there is a field 

 

<machineAgentPresent>false</machineAgentPresent>

 

that tells you if there is a machine agent on that node.

 

But it doesn't give you any more details on the machineagent than whether or not it is installed and reporting into the controller.

 

Thomas

 

 

 

Denis.Silveira
Builder

Ok. Thank you very much.

 

=)