Hello,
Similar to https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-manage-datastores/m-p/1033071/thread-id/5652, now I'm trying to figure out how to get a service object so I can delete() it.
To recap, I am working with a stand-alone site consisting of two 10.8.1 ArcGIS Servers; i.e., no Portal. I have done this in the past for 10.4.1 using the REST API but am trying to do same with the newer "ArcGIS API for Python". I'm new to this, having trouble working through the documentation and not finding much in the way of examples.
I have an arcgis.gis.server.Server object instantiated and can list(<folder_name>) on its services to receive a list of all the services that exist in the specified folder.
However, the documentation suggests that using a ServicesDirectory (https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html#arcgis.gis.server.catalog.ServicesDirectory) will allow me to get() a service directly. I have been unable to get this to work. I can't even get my ServicesDirectory's object to list(<folder_name>), using the same folder_name that works with the Server object's list. The list returned is always empty.
Again...anything that might help is appreciated.
Cheers,
jtm