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

how to clone a management zone

nosca73
Inactive

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!

3 REPLIES 3

Andy_Evans
Frequent Guest

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

 

Andy_Evans_0-1636470349076.png

 

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

uros_djukic1
Dynatrace Advisor
Dynatrace Advisor

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: 

uros_djukic1_0-1685606841937.png

Thanks

Featured Posts