<?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 API for Python - How to get() a service in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033461#M5661</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can retrieve sample on this article : &lt;A href="https://support.esri.com/en/technical-article/000019994" target="_self"&gt;How To: Stop GIS services using ArcGIS API for Python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and &lt;A href="https://developers.arcgis.com/python/guide/managing-your-gis-servers/" target="_blank"&gt;https://developers.arcgis.com/python/guide/managing-your-gis-servers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 16:45:05 GMT</pubDate>
    <dc:creator>fpr</dc:creator>
    <dc:date>2021-03-05T16:45:05Z</dc:date>
    <item>
      <title>ArcGIS API for Python - How to get() a service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033209#M5659</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Similar to &lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-manage-datastores/m-p/1033071/thread-id/5652" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-manage-datastores/m-p/1033071/thread-id/5652&lt;/A&gt;, now I'm trying to figure out how to get a service object so I can delete() it.&lt;/P&gt;&lt;P&gt;To recap, I am working with a stand-alone site consisting of two 10.8.1 ArcGIS Servers; i.e., no Portal. I have done this in the past for 10.4.1 using the REST API but am trying to do same with the newer "ArcGIS API for Python". I'm new to this, having trouble working through the documentation and not finding much in the way of examples.&lt;/P&gt;&lt;P&gt;I have an arcgis.gis.server.Server object instantiated and can list(&amp;lt;folder_name&amp;gt;) on its services to receive a list of all the services that exist in the specified folder.&lt;/P&gt;&lt;P&gt;However, the documentation suggests that using a ServicesDirectory (&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html#arcgis.gis.server.catalog.ServicesDirectory" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html#arcgis.gis.server.catalog.ServicesDirectory&lt;/A&gt;) will allow me to get() a service directly. I have been unable to get this to work. I can't even get my ServicesDirectory's object to list(&amp;lt;folder_name&amp;gt;), using the same folder_name that works with the Server object's list. The list returned is always empty.&lt;/P&gt;&lt;P&gt;Again...anything that might help is appreciated.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;jtm&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 22:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033209#M5659</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2021-03-04T22:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python - How to get() a service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033212#M5660</link>
      <description>&lt;P&gt;If you want to delete a service, you need to go through the Admin API and not the REST Services endpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are getting a list of services, then you have the service already, you just need to grab it from the list.&amp;nbsp; Iterate through the list to find the one you are interested in.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 23:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033212#M5660</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-03-04T23:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python - How to get() a service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033461#M5661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can retrieve sample on this article : &lt;A href="https://support.esri.com/en/technical-article/000019994" target="_self"&gt;How To: Stop GIS services using ArcGIS API for Python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and &lt;A href="https://developers.arcgis.com/python/guide/managing-your-gis-servers/" target="_blank"&gt;https://developers.arcgis.com/python/guide/managing-your-gis-servers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 16:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033461#M5661</guid>
      <dc:creator>fpr</dc:creator>
      <dc:date>2021-03-05T16:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python - How to get() a service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033488#M5662</link>
      <description>&lt;P&gt;First, "Thank you!" to both Joshua and Fred for taking the time to reply.&lt;/P&gt;&lt;P&gt;I'm not able to mark both as a solution (although each are) so I'll choose Fred's because it gave me more information than I had already learned...particularly the link to &lt;A href="https://developers.arcgis.com/python/guide/managing-your-gis-servers/" target="_blank"&gt;https://developers.arcgis.com/python/guide/managing-your-gis-servers/&lt;/A&gt; (which I hadn't found).&lt;/P&gt;&lt;P&gt;Having said that, an overriding question that I have regarding using ArcGIS API for Python hasn't been answered, but after re-reading my posts I realize I may not have been clear. So, I'll accept Fred's reponse but will also start a new thread with an code example to illustrate what I'm fundamentally struggling to understand.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jtm&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 17:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033488#M5662</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2021-03-05T17:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python - How to get() a service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033507#M5663</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/174005"&gt;@JoanneMcGraw&lt;/a&gt;, in the new GeoNet (aka Esri Community) platform, multiple replies can be marked as the solution, if you want.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 18:03:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-how-to-get-a-service/m-p/1033507#M5663</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-03-05T18:03:47Z</dc:date>
    </item>
  </channel>
</rss>

