HOW TO
A service can be published to ArcGIS Server from multiple sources, for example, from ArcGIS Pro or direct file uploads to Portal for ArcGIS. Refer to ArcGIS Enterprise: Publishing in ArcGIS Enterprise for more information. To identify a database source, users can manually check the manifest.json file in the following directory:
C:\arcgis\arcgisserver\config-store\services\<Service Folder>\<Service Name>\esriinfo\manifest
Another way to identify the database source of a service is using ArcGIS API for Python. This article describes the procedure to identify the database source of a service using a Python script.
from arcgis.gis import GIS import pprint
gis = GIS('https://<machine>.<domain>/<web adaptor name>', 'username', 'password', verify_cert=False) print('Connected')
servers = gis.admin.servers.list() print(servers)
server1 = servers[0] services = server1.services.list(folder="<Folder Name>") service = services[0]
ii = service.iteminformation manifest = ii.manifest pprint.pprint(manifest) properties = ii.properties pprint.pprint(properties)
The code block below demonstrates the full working script.
from arcgis.gis import GIS import pprint gis = GIS('https://machine.esri.com/portal', 'username', 'password', verify_cert=False) print('Connected') servers = gis.admin.servers.list() print(servers) server1 = servers[0] services = server1.services.list(folder="Test_Folder") service = services[0] ii = service.iteminformation manifest = ii.manifest pprint.pprint(manifest) properties = ii.properties pprint.pprint(properties)
Get help from ArcGIS experts
Download the Esri Support App