31 May 2022 05:03 PM - last edited on 01 Jun 2022 08:55 AM by pahofmann
Hi, I am looking for an API which will provide details of all monitors configured in a management zone.
Solved! Go to Solution.
31 May 2022 07:44 PM - edited 01 Jun 2022 08:55 AM
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}.
01 Jun 2022 06:15 AM
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.
01 Jun 2022 08:51 AM
That API is for Management Zones, the question is about Synthetic Monitors in a specific Management Zone.
01 Jun 2022 08:56 AM
Houpa,
I missed one word