<?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: arcgis.gis.server.ServerManager.get versus .list in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-server-servermanager-get-versus-list/m-p/1020893#M5486</link>
    <description>&lt;P&gt;I guess this might regard to your setting in Portal, namely, when you federate the server, server name with port provided.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm the results are consistent from my end while federating without the port.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled picture.png" style="width: 313px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4755i78A005D3B3188AF2/image-dimensions/313x164?v=v2" width="313" height="164" role="button" title="Untitled picture.png" alt="Untitled picture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2021 07:03:42 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-01-28T07:03:42Z</dc:date>
    <item>
      <title>arcgis.gis.server.ServerManager.get versus .list</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-server-servermanager-get-versus-list/m-p/1020355#M5476</link>
      <description>&lt;P&gt;I am migrating from my own Python 2.7 package for performing administrative tasks against the various ArcGIS REST API endpoints to the ArcGIS API for Python.&amp;nbsp; The biggest question for day one is why do I get different results when I use the arcgis.gis.server.ServerManager.get method versus the&amp;nbsp;arcgis.gis.server.ServerManager.list method.&amp;nbsp; For example, list gives me a list of one server that references the web adaptor URL while get returns a similar list with the direct administrative URL on the server.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snippet.png" style="width: 633px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4635iCCFDE5C08D747555/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snippet.png" alt="Snippet.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;From here, I tested some code to find and start or stop a service.&amp;nbsp; The problem is that the list method server works and the get method server doesn't.&amp;nbsp; Now I can think hard about why one works and the other doesn't from an ArcGIS Server standpoint, but I don't see why the two different methods in the ArcGIS API for Python yield different results.&lt;/P&gt;&lt;P&gt;Second, the list method is very slow (about 1 minute), while the get method is very fast.&amp;nbsp; That is why I tried the get approach in the first place, namely to speed up the process.&amp;nbsp; If I were to make the REST requests directly, I wouldn't have to wait this minute for no apparent reason.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 03:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-server-servermanager-get-versus-list/m-p/1020355#M5476</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2021-01-27T03:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.gis.server.ServerManager.get versus .list</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-server-servermanager-get-versus-list/m-p/1020893#M5486</link>
      <description>&lt;P&gt;I guess this might regard to your setting in Portal, namely, when you federate the server, server name with port provided.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm the results are consistent from my end while federating without the port.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled picture.png" style="width: 313px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4755i78A005D3B3188AF2/image-dimensions/313x164?v=v2" width="313" height="164" role="button" title="Untitled picture.png" alt="Untitled picture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 07:03:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-server-servermanager-get-versus-list/m-p/1020893#M5486</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-28T07:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.gis.server.ServerManager.get versus .list</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-server-servermanager-get-versus-list/m-p/1021114#M5487</link>
      <description>&lt;P&gt;That's interesting.&amp;nbsp; I went to the Portal settings page and found the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Federated Server - https://servername:6443/arcgis&lt;/LI&gt;&lt;LI&gt;Hosted Server - https://servername/server&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here are the results when I make different method calls:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;get("HOSTED_SERVER") -&amp;nbsp;https://servername/server&lt;/LI&gt;&lt;LI&gt;get("FEDERATED_SERVER") - []&lt;/LI&gt;&lt;LI&gt;list() -&amp;nbsp;https://servername:6443/arcgis&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can see how that is kind of strange behavior.&amp;nbsp; It's almost as if list really means list the federated servers.&lt;/P&gt;&lt;P&gt;Also, I really don't understand why list takes one minute and get takes one second.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 17:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-server-servermanager-get-versus-list/m-p/1021114#M5487</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2021-01-28T17:19:12Z</dc:date>
    </item>
  </channel>
</rss>

