Update map service rest url using arcpy

388
0
11-28-2019 01:01 AM
TarunPunetha
New Contributor II

Hi,

I have to update map service rest urls from system test environment to production environment. For example 

system test environment service url : https://systemtestenvserver.domain.com:6443/arcgis/rest/services/Dist/MapServer

Production env url : https://productionenvserver.domain.com:6443/arcgis/rest/services/Dist/MapServer

As you see above only environment server is different in map service url, I have make these changes for around 54 urls and in 24 config files. Manually its a time consuming process to make changes in config files, I am looking for arcpy snippet to automate this process.

0 Kudos
0 Replies