Hi.
I'm trying to get a list of fields from all the services inside a folder in ArcGIS Server using Python API.
But when I want to list my services, all the MapServer gives Could not load service: <serviceURL>/MapServer
This is the code I'm using with a ServicesDirectory Object.
server_url = "https://<webadaptorserver>"
portal_url = "https://<webadaptorportal>"
usuario = "admin"
contraseña = "password"
gis = GIS(portal_url, usuario, contraseña)
gisSD= server.catalog.ServicesDirectory(url=server_url,tokenurl=gis._con.token)
servfolder="MYFOLDER"
servicios=gisSD.list(folder=servfolder)
for s in servicios:
print (s)