Is it possible to change the parameters highlighted in the screenshot below? If so which ArcPy function would do this? I know about and do not want to use the function that references .sde files on C:\ In the example below AUWEISQL1 will change I want to AUWEISQL3.
In ArcGIS, you add your resources such as feature classes and tables from an enterprise geodatabase stored in a DBMS by using connection files (they have .sde extension). If you need to change the data source of a layer, you need to supply another .sde connection that will have a different server specified.
You cannot change the server you highlighted, because it's a part of the connection configuration which is found in the .sde connection file.
The Source tab shows the information retrieved from the .sde connection file, and you need to modify the connection file itself to make your layer reference another table or another server.
Look at the
lyr.workspacePath (access workspacePath of the Map Layer object) which will return a path to .sde connection file:
As you have mentioned, you could use
replaceDataSource methods to modify the data sources for your layers.