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

API Synthetic Monitors in Management Zone

Balamurugesh
Participant

Hi, I am looking for an API which will provide details of all monitors configured in a management zone.

4 REPLIES 4

pahofmann
DynaMight Guru
DynaMight Guru

What exactly do you want? Results? Configuration?

 

You can use the Synthetic API v1 and filter for the Management Zone to get a list of all Synthetic Monitors in that MZ.

 

With /api/v1/synthetic/monitors you can get a list of all synthetic monitors, which can be filtered with the managementZone parameter. 

 

Then you can get more information about the monitor with a request to /api/v1/synthetic/monitors/{ID}.

 

 

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

Malaik
DynaMight Advisor
DynaMight Advisor

Hi @Balamurugesh 

You should use 2 different API.

 

The first one to list all MZ with there IDs.

https://YOURSERVER/e/ENVID/api/config/v1/managementZones?Api-Token=YOURTOKEN

 

After that, with each ID, you can list the parameters of each MZ using:

 

https://YOURSERVER/e/ENVID/api/config/v1/managementZones/{MZ_ID}?Api-Token=YOURTOKEN

 

 

Hope this help

 

Have a good day.

Sharing Knowledge

That API is for Management Zones, the question is about Synthetic Monitors in a specific Management Zone.

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

Malaik
DynaMight Advisor
DynaMight Advisor

Houpa,

I missed one word 

Malaik_0-1654070152062.png

 

 

Sharing Knowledge