ARCGIS SERVER LAYERS

635
3
02-02-2018 11:48 PM
MANESK
by
New Contributor III

How to fetch the List of Layers and Services in ArcGIS SERVER using ARCPY?

0 Kudos
3 Replies
DanPatterson_Retired
MVP Esteemed Contributor

alphabetical list of classes http://pro.arcgis.com/en/pro-app/arcpy/classes/alphabetical-list-of-arcpy-classes.htm

alphabetical list of classes http://pro.arcgis.com/en/pro-app/arcpy/functions/alphabetical-list-of-arcpy-functions.htm

there is stuff in the 'Describe' section, maybe AGOL and portal.

maybe some keyword might twig you needs.

Beyond that, if there is a tool in arctoolbox that you use, then the tool can be accessed through arcpy.  Every tool has a code example and syntax at the bottom of their help topic

0 Kudos
XanderBakker
Esri Esteemed Contributor

I have used this in the past: ListMapServices—Help | ArcGIS Desktop  but it has been deprecated and you should now be using this: Scripting with ArcGIS REST API—ArcGIS Server Administration (Windows) | ArcGIS Enterprise . There are many samples available which you can adapt to your specific needs.

DanPatterson_Retired
MVP Esteemed Contributor

In Pro what is left is Updating and fixing connection properties and the Server tools and what is not available in server tools

So I take it this is not a question about arcpy at all.

0 Kudos