<?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 Re: Extract Services to Excel in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-services-to-excel/m-p/1617876#M11417</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/702651"&gt;@AndyIngall&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can get in and get a lot of info about the services but I'm not sure you can get information on Dedicated versus Shared. It could perhaps be ascertained from other properties but I have not dug too deep.&lt;/P&gt;&lt;P&gt;Here's how to get to the info...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

## access Portal
portal = GIS("home")

## access the Server (you might want to print out the .list() to see which 
## server to access with the index[]
server = portal.admin.servers.list()[0]

## create a ServerManager object
server_manager = server.services

## for each folder in ther server
for folder in server_manager.folders:
    ## for each service in the folder
    for service in [s for s in server_manager.list(folder) if s.type == "MapServer"]:
        ## here is where you would extract the information from the service
        ## for now we print the properties for the service
        ## you might want to limit to just print out for a service or two
        ## to see what is returned. Maybe a dedicated versus shared.
        print(json.dumps(dict(service), indent=4))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know how you get on and if you find any properties that distinguish between Dedicated and Shared.&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2025 12:34:03 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2025-05-23T12:34:03Z</dc:date>
    <item>
      <title>Extract Services to Excel</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-services-to-excel/m-p/1616865#M11407</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to python and ArcGIS Notebooks so want to know if the following would be possible.&lt;/P&gt;&lt;P&gt;I am trying to connect the the REST Services directory on our server, and export a list of services to an excel file that would contain initially the service name and all of the pooling information.&lt;/P&gt;&lt;P&gt;I am trying to find an easy way to find which services are dedicated or shared, so thought that filtering an excel sheet would be the simplest way to do this.&lt;/P&gt;&lt;P&gt;If it is possible could you give me some pointers on how to do it please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 07:51:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-services-to-excel/m-p/1616865#M11407</guid>
      <dc:creator>AndyIngall</dc:creator>
      <dc:date>2025-05-21T07:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Services to Excel</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-services-to-excel/m-p/1617876#M11417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/702651"&gt;@AndyIngall&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can get in and get a lot of info about the services but I'm not sure you can get information on Dedicated versus Shared. It could perhaps be ascertained from other properties but I have not dug too deep.&lt;/P&gt;&lt;P&gt;Here's how to get to the info...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

## access Portal
portal = GIS("home")

## access the Server (you might want to print out the .list() to see which 
## server to access with the index[]
server = portal.admin.servers.list()[0]

## create a ServerManager object
server_manager = server.services

## for each folder in ther server
for folder in server_manager.folders:
    ## for each service in the folder
    for service in [s for s in server_manager.list(folder) if s.type == "MapServer"]:
        ## here is where you would extract the information from the service
        ## for now we print the properties for the service
        ## you might want to limit to just print out for a service or two
        ## to see what is returned. Maybe a dedicated versus shared.
        print(json.dumps(dict(service), indent=4))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know how you get on and if you find any properties that distinguish between Dedicated and Shared.&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 12:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-services-to-excel/m-p/1617876#M11417</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-05-23T12:34:03Z</dc:date>
    </item>
  </channel>
</rss>

