<?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: Query map services by authoring client in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-map-services-by-authoring-client/m-p/1059283#M30196</link>
    <description>&lt;P&gt;In the ArcGIS Python API, there is the gis.server submodule that you can use for this. Just call "gis.admin.servers" to access it.&lt;/P&gt;&lt;P&gt;From there, you can iterate through your services on a given server and look at the &lt;STRONG&gt;provider&lt;/STRONG&gt; property.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis = GIS('your-portal-url', 'admin-username', 'admin-password')

server = gis.admin.servers.get('HOSTING_SERVER')[0]

for f in server.services.folders:
    for svc in server.services.list(folder=f):
        if svc.properties['provider'] == 'ArcObjects':
            print(f'{svc.properties['serviceName']} is published using ArcMap!')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything that comes back with a provider value of &lt;STRONG&gt;ArcObjects&lt;/STRONG&gt; was published using ArcMap. Instead of printing that string at the end, you could have the script write the service name to a CSV, or populate a list object for further use.&lt;/P&gt;</description>
    <pubDate>Wed, 19 May 2021 02:42:16 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-05-19T02:42:16Z</dc:date>
    <item>
      <title>Query map services by authoring client</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-map-services-by-authoring-client/m-p/1059257#M30194</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a quick way to gather a list all map services in CSV file using ArcGIS pro client GP tools or programmatically&amp;nbsp; arcpy module or ArcGIS REST API by authoring client - Arcmap vs Arcgis pro? The main objective is to identify services that are published using ArcMap client ONLY.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have ArcGIS Enterprise 10.8.1 with ArcGIS Pro 2.7.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 00:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-map-services-by-authoring-client/m-p/1059257#M30194</guid>
      <dc:creator>Raj-Chavada</dc:creator>
      <dc:date>2021-05-19T00:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Query map services by authoring client</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-map-services-by-authoring-client/m-p/1059283#M30196</link>
      <description>&lt;P&gt;In the ArcGIS Python API, there is the gis.server submodule that you can use for this. Just call "gis.admin.servers" to access it.&lt;/P&gt;&lt;P&gt;From there, you can iterate through your services on a given server and look at the &lt;STRONG&gt;provider&lt;/STRONG&gt; property.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis = GIS('your-portal-url', 'admin-username', 'admin-password')

server = gis.admin.servers.get('HOSTING_SERVER')[0]

for f in server.services.folders:
    for svc in server.services.list(folder=f):
        if svc.properties['provider'] == 'ArcObjects':
            print(f'{svc.properties['serviceName']} is published using ArcMap!')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything that comes back with a provider value of &lt;STRONG&gt;ArcObjects&lt;/STRONG&gt; was published using ArcMap. Instead of printing that string at the end, you could have the script write the service name to a CSV, or populate a list object for further use.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 02:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-map-services-by-authoring-client/m-p/1059283#M30196</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-05-19T02:42:16Z</dc:date>
    </item>
  </channel>
</rss>

