<?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: Can you use Python to stop ArcGIS Enterprise Service in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1259180#M66878</link>
    <description>&lt;P&gt;You can do it through the ArcGIS Python API. Check out the a&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html#service" target="_blank"&gt;rcgis.gis.server.Service section of the docs&lt;/A&gt;, where you'll see &lt;STRONG&gt;start &lt;/STRONG&gt;and &lt;STRONG&gt;stop &lt;/STRONG&gt;are both methods. So you could have a script stop the service, do whatever, then start it back up.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 00:19:31 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-02-17T00:19:31Z</dc:date>
    <item>
      <title>Can you use Python to stop ArcGIS Enterprise Service</title>
      <link>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1259128#M66873</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MS Services.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63049i67F17A98117C7CDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MS Services.jpg" alt="MS Services.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Is it possible to use Python to stop the ArcGIS Service so you could successfully delete a FGDB with running map services completely and copy a new one in it's place with same name.&amp;nbsp; See the attached image for what I am referring.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 21:38:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1259128#M66873</guid>
      <dc:creator>MDavis</dc:creator>
      <dc:date>2023-02-16T21:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use Python to stop ArcGIS Enterprise Service</title>
      <link>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1259171#M66877</link>
      <description>&lt;P&gt;How about a truncate and append of feature classes in the FGDB so the services would not need to be stopped?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 23:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1259171#M66877</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2023-02-16T23:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use Python to stop ArcGIS Enterprise Service</title>
      <link>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1259180#M66878</link>
      <description>&lt;P&gt;You can do it through the ArcGIS Python API. Check out the a&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html#service" target="_blank"&gt;rcgis.gis.server.Service section of the docs&lt;/A&gt;, where you'll see &lt;STRONG&gt;start &lt;/STRONG&gt;and &lt;STRONG&gt;stop &lt;/STRONG&gt;are both methods. So you could have a script stop the service, do whatever, then start it back up.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 00:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1259180#M66878</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-02-17T00:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use Python to stop ArcGIS Enterprise Service</title>
      <link>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1260212#M66911</link>
      <description>&lt;P&gt;That is what we are doing now. This is a dual Server setup for load balancing and the objectIDs do not match after the truncate and append script runs on each Server . This was not an issue until we started using the feature service in an AGOL application. The AGOL app must cache the ObjectID and if you identify another feature after an initial identify the different ObjectIDs cause strange behavior.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 19:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1260212#M66911</guid>
      <dc:creator>MDavis</dc:creator>
      <dc:date>2023-02-21T19:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use Python to stop ArcGIS Enterprise Service</title>
      <link>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1260215#M66912</link>
      <description>&lt;P&gt;Thank you I will check this out and let you know if this solves the problem. I appreciate the response.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 19:42:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1260215#M66912</guid>
      <dc:creator>MDavis</dc:creator>
      <dc:date>2023-02-21T19:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use Python to stop ArcGIS Enterprise Service</title>
      <link>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1260361#M66917</link>
      <description>&lt;P&gt;This has nothing to do with esri libraries.&lt;/P&gt;&lt;P&gt;You can do it with standard python libraries.&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/46595845/python-command-to-stop-and-start-windows-services" target="_blank"&gt;https://stackoverflow.com/questions/46595845/python-command-to-stop-and-start-windows-services&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have a script that takes the machine out of load balancing, stop the service, replace directories (FGDB is just a directory) and then return everything. The script must run on the machine itself in order to take it out the load balancing.&lt;/P&gt;&lt;P&gt;Sorry I cannot share it but it is very simple.&lt;/P&gt;&lt;P&gt;Have fun&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 06:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1260361#M66917</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2023-02-22T06:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use Python to stop ArcGIS Enterprise Service</title>
      <link>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1260443#M66920</link>
      <description>&lt;P&gt;Thank you I think this is what I am after. I appreciate you taking the time to answer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 13:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1260443#M66920</guid>
      <dc:creator>MDavis</dc:creator>
      <dc:date>2023-02-22T13:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use Python to stop ArcGIS Enterprise Service</title>
      <link>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1573766#M73480</link>
      <description>&lt;P&gt;Just came here to look for answers to the question of stopping and starting single services with python, and I went to the documentation section you linked but the service section is just completely blank.&lt;/P&gt;&lt;P&gt;Instead I tried using the Server class (arcgis.gis.server module), which has a .services() property, according to the documentation. However, when debugging in VS Code, I see that that method returns a traceback error, saying it has no property "services".&lt;/P&gt;&lt;P&gt;- Jack C.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 22:55:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-use-python-to-stop-arcgis-enterprise/m-p/1573766#M73480</guid>
      <dc:creator>__JackCharde__</dc:creator>
      <dc:date>2025-01-08T22:55:21Z</dc:date>
    </item>
  </channel>
</rss>

