AnsweredAssumed Answered

Listing Service Workspaces

Question asked by susanhmel on Dec 12, 2014
Latest reply on Sep 14, 2015 by susanhmel

I'm interested in being able to manage the underlying data of our ArcGIS Server map services. Basically, I need to be able to list the Service Workspaces for each map service. Several of our sources that support our map services are file geodatabases, and before we remove files no longer needed we want to identify which ones are actually in use by map services. Essentially, create an inventory of data files in use.


This Python script is close, but lists service properties from the REST API, which doesn't provide the service workspace, that I can tell:


Basically, I'd like to use the functionality that the "Service Workspaces..." provides for each service, but be able to apply that as a batch process to every service in a folder or AGS Instance. I haven't found an ArcPy, ArcObjects, or REST API method to do this yet.