Hello,
I have done lots of searching about this but have not found anything in Esri documentation or here in the Community, so I thought I'd see if anyone can help.
My organization is in the midst of a server migration. In our old ArcGIS Server environment, we had token authentication, but in the new one, we have web-tier authentication. I am trying to migrate a Python script that rebuilt an address locator in the old environment; the script includes stopping and then starting services, which is necessary for rebuilding the address locator. I have 2 main problems:
- The first problem is that I have no idea how to write Python for web-tier authentication, instead of tokens. I have researched this but haven't found anything. Any suggestions?
- The second problem is that it sounds like it's not possible to stop/start services via a script anymore, at least not as simply as in the past (see: https://community.esri.com/t5/arcgis-enterprise-questions/start-stop-secure-services-in-10-6-1/td-p/646090 ).
- I saw that it is possible to do it with the ArcGIS API for Python, but that it requires that the server be federated (https://support.esri.com/en/technical-article/000019994 ).
- The involved servers are not federated, unfortunately, but we have other servers that are federated.
- Does anyone know how to stop/start services in a script, services that are not on a federated server?
Thanks so much!
Allen