30 Mar 2022
	
		
		01:00 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		26 Apr 2022
	
		
		02:50 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 MaciejNeumann
		
			MaciejNeumann
		
		
		
		
		
		
		
		
	
			
		
I'm new to dynatrace. I tried to pull using api. I used monitored entities in v2 for this. But I did not understand how to pull at the process level. Can anyone help?
Solved! Go to Solution.
30 Mar 2022 01:06 PM
If you want to get the version of the agent inside the process (code module) you need to query the PROCESS_GROUP_INSTANCE via the Entities v2 API.
It is listed there under installedVersion.
You can get the Process Group Instance ID via the entities API or direct from the URL in the GUI.
30 Mar 2022 01:32 PM
Thanks for your answer it was really helpful. can I ask one more question?
I also want to get actualMonitoringState and expectedMonitoringState information, how can I add them
03 May 2022 09:59 AM
From here have you got those field names? I don't see them as part of a PGI.
