<?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 Stopping and Starting Services in Portal via Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/840109#M3498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to start/stop specific services. Using the article at&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000019994" title="https://support.esri.com/en/technical-article/000019994" rel="nofollow noopener noreferrer" target="_blank"&gt;How To: Stop GIS services using ArcGIS API for Python&lt;/A&gt;, I tried using the code but keep receiving an error message below posted code. I am running this script in IDLE (ArcGIS Pro). Using just IDLE for ArcGIS Desktop did not have the necessary modules.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;admin
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"https://url.to.com/portal"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Username"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Password"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; verify_cert&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
services &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis_servers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#To stop specific service(s)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; service &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; services&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; service &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; service&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;serviceName &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SampleWorldCities"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 service&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;stop&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "Z:\Temp\Brian\test.py", line 5, in &amp;lt;module&amp;gt;&lt;BR /&gt; services = gis_servers.services.list()&lt;BR /&gt;NameError: name 'gis_servers' is not defined&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:14:44 GMT</pubDate>
    <dc:creator>Brian_McLeer</dc:creator>
    <dc:date>2021-12-12T10:14:44Z</dc:date>
    <item>
      <title>Stopping and Starting Services in Portal via Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/840109#M3498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to start/stop specific services. Using the article at&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000019994" title="https://support.esri.com/en/technical-article/000019994" rel="nofollow noopener noreferrer" target="_blank"&gt;How To: Stop GIS services using ArcGIS API for Python&lt;/A&gt;, I tried using the code but keep receiving an error message below posted code. I am running this script in IDLE (ArcGIS Pro). Using just IDLE for ArcGIS Desktop did not have the necessary modules.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;admin
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"https://url.to.com/portal"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Username"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Password"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; verify_cert&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
services &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis_servers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#To stop specific service(s)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; service &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; services&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; service &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; service&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;serviceName &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SampleWorldCities"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 service&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;stop&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "Z:\Temp\Brian\test.py", line 5, in &amp;lt;module&amp;gt;&lt;BR /&gt; services = gis_servers.services.list()&lt;BR /&gt;NameError: name 'gis_servers' is not defined&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:14:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/840109#M3498</guid>
      <dc:creator>Brian_McLeer</dc:creator>
      <dc:date>2021-12-12T10:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting Services in Portal via Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/840110#M3499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All your error message is stating is that you are using a variable, gis_servers, that has never been defined in your code.&amp;nbsp; Look at the "full code" at the bottom on that page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 17:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/840110#M3499</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-01-08T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting Services in Portal via Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/840111#M3500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua is&amp;nbsp;absolutely right. You need to get to the servers first.&lt;/P&gt;&lt;P&gt;If you don't use the Python API a lot, it can be a little confusing. I have to always refer to script I've used before. I had a snipped lying around... to turn on/off services.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; gis

&lt;SPAN class="comment token"&gt;# I like this interactive way whenever possible instead of storing passwords&lt;/SPAN&gt;
mygis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;your_portal_path&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; username&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'arcgis_python'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

servers &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mygis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;admin&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;servers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
one_server &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; servers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

services_on_that_server &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; one_server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
one_of_those_services &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; services_on_that_server&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# provided your service is running to begin with&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;one_of_those_services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;status&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
one_of_those_services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;stop&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;one_of_those_services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;status&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
one_of_those_services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;start&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;one_of_those_services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;status&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This&amp;nbsp;gives me the following output:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;{'configuredState': 'STARTED', 'realTimeState': 'STARTED'}
{'configuredState': 'STOPPED', 'realTimeState': 'STOPPED'}
{'configuredState': 'STARTED', 'realTimeState': 'STARTED'}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/840111#M3500</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-12T10:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting Services in Portal via Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1049245#M5944</link>
      <description>&lt;P&gt;Is the Portal path the portal home URL without the /home at the end?&lt;/P&gt;&lt;P&gt;Does the user specified need to be defined as an Administrator in your portal?&lt;/P&gt;&lt;P&gt;Did you need to clone your python environment and add a specific module to python to access the GIS module?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 17:08:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1049245#M5944</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-04-20T17:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting Services in Portal via Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1222652#M7920</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237415"&gt;@Arne_Gelfert&lt;/a&gt;&amp;nbsp; this helped me more than:&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000019994" target="_blank"&gt;https://support.esri.com/en/technical-article/000019994&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 21:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1222652#M7920</guid>
      <dc:creator>Jen_Zumbado-Hannibal</dc:creator>
      <dc:date>2022-10-17T21:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting Services in Portal via Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1568658#M10968</link>
      <description>&lt;P&gt;These two articles also helped me accomplish stopping and starting services programatically:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/latest/guide/managing-your-gis-servers/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/python/latest/guide/managing-your-gis-servers/&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/enterprise/service-status/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/rest/enterprise-administration/enterprise/service-status/&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 14 Dec 2024 08:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1568658#M10968</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2024-12-14T08:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting Services in Portal via Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1604230#M11309</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237415"&gt;@Arne_Gelfert&lt;/a&gt;&amp;nbsp;do you know if you can query the realTimeState? something like&lt;/P&gt;&lt;P&gt;if one_of_those_services.status == "STARTED"&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 15:58:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1604230#M11309</guid>
      <dc:creator>AndreaB_</dc:creator>
      <dc:date>2025-04-09T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting Services in Portal via Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1604332#M11310</link>
      <description>&lt;P&gt;Well, I was able to figure it out. I'll post here for others. Very helpful community post, thank you!&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if one_of_those_services.status['realTimeState'] == "STARTED":
    print("yes")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 19:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1604332#M11310</guid>
      <dc:creator>AndreaB_</dc:creator>
      <dc:date>2025-04-09T19:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting Services in Portal via Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1604335#M11311</link>
      <description>&lt;P&gt;Good deal!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 19:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/stopping-and-starting-services-in-portal-via/m-p/1604335#M11311</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2025-04-09T19:12:26Z</dc:date>
    </item>
  </channel>
</rss>

