I am in the process of listing my map services and layers in ArcGIS Enterprise.
The objective is to develop a python script to scan portal for ArcGIS and display a list of all services in ArcGIS server.
Then in each service list the layers and identify the aprx directory.
If possible also identify if the data is versioned or archived.
Thank you very much.