cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get java version via REST API?

John.Gregg
Architect

All,

 

Is there a way to get the java version via the REST API?  /applications/foo/nodes seems like the logical resource but doesn't have the java version.  It does have the machine and app agent type and version but I don't see the java version anywhere.

 

thanks

1 REPLY 1

Nawaz Ali.Mohammad
AppDynamics Team

Hello John,

 

We don't have a public API to fetch the JVM details as of now. 

If you are on-prem controller and you have access to the database, you can use below SQL query to know the JVM version.

 

select app.name as appName, ac.name as tierName, acn.name as nodeName, ag.type as agentType,
ag.agent_version as agentVersion, ag.agent_runtime as agentRunTime
from application app
inner join application_component ac on ac.application_id = app.id
inner join application_component_node acn on acn.application_component_id = ac.id
inner join application_component_node_agent_mapping acnm on acnm.application_component_node_id=acn.id
inner join agent ag on ag.id=acnm.agent_id
inner join account a on a.id = app.account_id
where a.name='customer1'