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

how to clone a management zone

nosca73
Visitor

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!

2 REPLIES 2

Andy_Evans
Visitor

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