09 Nov 2021 02:47 PM
Hi Everyone,
for testing purposes we like to clone existing MZ and then tweak them , is there a way to clone/copy them without manually recreating every entry?
thanks in advance!
Solved! Go to Solution.
09 Nov 2021 03:07 PM
You should be able to use the API to get the parameters of a zone you want to copy, then paste that info into to create a new one
09 Nov 2021 05:25 PM
The steps to follow are:
- Create a token with read & write configuration permissions
- Retrieve the ID from your Management Zone with GEt /managemetnZones API (or on the Dynatra UI URL when editing the MZ)
- Retrieve the info from the MZ to copy : GET /managementZones/<id>
- POST /managementZones using the body previously retrieved, remove the Id before submitting and change the Management Zone name to the new one
You can use Postman or Dynatrace Monaco (https://github.com/dynatrace-oss/dynatrace-monitoring-as-code) if you plan to repeat this process again and again. Also you could add a clean up step to remove that info created
01 Jun 2023 09:09 AM
Hi,
For all practical purposes, I am currently running below 1.266 version and we have the possibility to clone MZ in UI thanks to this button then tweak the existing rules:
Thanks