Referencing this Esri How-To article, I am unable to return results from any server folder and I cannot seem to find documentation to access specific server folders.
- ArcGIS Python API v2.01 Enterprise 10.9.1, federated.
- The services in and folders are a mix of shared with everyone as well as content restricted to certain groups.
- User logging in has full Admin privileges; also tried with primary site admin
- tried accessing via portal URL and directly to Server Url; logins successful but only root level resources are returned.
- Searching for content via something like gis.content.search(query="query stuff") returns Portal content no problem
Referencing this post here regarding specific folders, when I try the following (also marked as the solution):
serverFolder = 'My test folder'
serviceList = gis_servers.services.list(folder=serverFolder)
I receive a
'list' object has no attribute 'services'
The original Esri article also suggests that:
Note:
If the desired server folder array location is known in the list, the script can be modified to:
servers = gis.admin.servers.list()[0]
"[0]" can be modified to specify the exact location of the service in the array. In the example, the script grabs the first service in the list.
Attempting that, the error is as follows:
AttributeError: 'tuple' object has no attribute 'services'