<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Help with list combing in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/help-with-list-combing/m-p/1067671#M30476</link>
    <description>&lt;P&gt;Hello, I am a GIS Tech in over my head attempting to parse some data with a colleague. We have a list of service directories via RESTful service - what is the best way to list the directory and determine the feature classpath in the layers for each service?&lt;/P&gt;&lt;P&gt;We are in over our pay grade here but found this article to use as a jumping-off point although we are still stuck trying to comb through our massive list of data layers..... Help Please&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/101816/which-feature-classes-is-are-used-by-service" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/questions/101816/which-feature-classes-is-are-used-by-service&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Jun 2021 21:03:44 GMT</pubDate>
    <dc:creator>AshleyPattersonTheMapNERD</dc:creator>
    <dc:date>2021-06-12T21:03:44Z</dc:date>
    <item>
      <title>Help with list combing</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/help-with-list-combing/m-p/1067671#M30476</link>
      <description>&lt;P&gt;Hello, I am a GIS Tech in over my head attempting to parse some data with a colleague. We have a list of service directories via RESTful service - what is the best way to list the directory and determine the feature classpath in the layers for each service?&lt;/P&gt;&lt;P&gt;We are in over our pay grade here but found this article to use as a jumping-off point although we are still stuck trying to comb through our massive list of data layers..... Help Please&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/101816/which-feature-classes-is-are-used-by-service" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/questions/101816/which-feature-classes-is-are-used-by-service&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 21:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/help-with-list-combing/m-p/1067671#M30476</guid>
      <dc:creator>AshleyPattersonTheMapNERD</dc:creator>
      <dc:date>2021-06-12T21:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with list combing</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/help-with-list-combing/m-p/1067675#M30477</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp; made a great script which I've been playing about with&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/get-mxd-path-property-for-a-service-published-on-arcgis-server/m-p/1060743#M6108" target="_blank" rel="noopener"&gt;Solved: Re: Get MXD path property for a service published ... - Esri Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This is just me playing about with it, if they're in FGDBs the paths should look ok, otherwise if SDE FCs I'd need to play about with the code to get the SDE path, or just remove the .split() method and print the entire connection string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis.server import Server
import os
import json

url = 'your server admin address eg. - https://domain:6443/arcgis/admin'
username = '’
password = ‘’

server = Server(url=url, username=username, password=password, verify_cert=False)
sm = server.services
svcs = (
    svc 
    for fld in sm.folders 
    for svc in sm.list(fld)
    if fld not in ['System', 'Utilities']
)


for svc in svcs:

    name = svc.serviceName
   
   
    manifest = json.loads(svc._service_manifest())
    if manifest.get("code", 200) == 200:

        print("___________ SERVICE: " + name + "___________")
               
        for database in (manifest["databases"]):
          #print(database['onServerConnectionString'])
          temp_list = []
          for dataset in (database["datasets"]):
              temp_list.append(dataset)
    
          for x in temp_list:
              fc = (x['onServerName'])
              print(os.path.join(database['onServerConnectionString'].split('=')[1],fc))
              
        print('\n')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 21:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/help-with-list-combing/m-p/1067675#M30477</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-06-12T21:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with list combing</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/help-with-list-combing/m-p/1068540#M30509</link>
      <description>&lt;P&gt;WOW! Thank you DavidPike! They are in SDE so I will try to follow your train of thought and between the two of us, I think we will certainly be in a better place for your tips! Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 18:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/help-with-list-combing/m-p/1068540#M30509</guid>
      <dc:creator>AshleyPattersonTheMapNERD</dc:creator>
      <dc:date>2021-06-15T18:37:22Z</dc:date>
    </item>
  </channel>
</rss>

