Select to view content in your preferred language

Service Manifest with arcgis.gis.server module

714
0
03-10-2024 11:06 PM
AX
by
New Contributor

I'm trying to access the service manifest xml (the same that appears via "https://..../arcgis/admin/services/folder/.../iteminfo/manifest/manifest.xml" through the arcgis.gis.server module.

I've followed the docos here: https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html#service

The json I can reach but it hides the Oracle DB schema name.

Here is an example of my script  - any advice?: 

 

server = Server(url="https://.../arcgis/admin", username= r"u", password = r"pw")
services = server.services
for x in services.list(folder='folder1'):
     service_name = x.iteminformation.properties['name']
     service_manifest = x.iteminformation.manifest         #this works fine but hides the oracle DB schema name
     service_manifest_xml = x.service_manifest(file_type='xml')    #this gets the error AttributeError: 'Service' object has no attribute 'service_manifest    

 

0 Kudos
0 Replies