<?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: Start/stop service on non-portal site in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/start-stop-service-on-non-portal-site/m-p/873556#M4807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wrong it does work, just not in Jupyter. I thought I would try Jupyter out since I hadnt really used it much and it turns out it was boggling the module up. So creating a Server object like that works just fine in idle and returns the all of the related classes and methods like it is supposed to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2018 21:58:31 GMT</pubDate>
    <dc:creator>ChrisMathers1</dc:creator>
    <dc:date>2018-03-01T21:58:31Z</dc:date>
    <item>
      <title>Start/stop service on non-portal site</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/start-stop-service-on-non-portal-site/m-p/873554#M4805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Im tired of trying to figure this out based on the documentation for the API. All I want to do is stop a geocoding service so I can rebuild the locators and then restart it. We are not using portal here. Running the lines below returns "AttributeError: 'Server' object has no attribute 'services'" even though dir(site) shows that "services" is there. I am on v1.3.0 of the API. This is the best result I have gotten. Trying to import arcgis or from arcgis import gis and creating the server object by arcgis.gis.server.Server() always just gets me "AttributeError: module 'arcgis.gis' has no attribute 'server'".&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; server
site &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
site&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="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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/start-stop-service-on-non-portal-site/m-p/873554#M4805</guid>
      <dc:creator>ChrisMathers1</dc:creator>
      <dc:date>2021-12-12T10:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Start/stop service on non-portal site</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/start-stop-service-on-non-portal-site/m-p/873555#M4806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Being that this is posted in the API site, you probably are looking for that solution, and not an alternative...but just in case the need is more important than the how, have you looked at&amp;nbsp;&lt;A class="link-titled" href="http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340" title="http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340"&gt;http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340&lt;/A&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;the "&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Administrative tools for ArcGIS Server. Stop, start services, change logging, rename a service and more..."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 17:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/start-stop-service-on-non-portal-site/m-p/873555#M4806</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-03-01T17:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Start/stop service on non-portal site</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/start-stop-service-on-non-portal-site/m-p/873556#M4807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wrong it does work, just not in Jupyter. I thought I would try Jupyter out since I hadnt really used it much and it turns out it was boggling the module up. So creating a Server object like that works just fine in idle and returns the all of the related classes and methods like it is supposed to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 21:58:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/start-stop-service-on-non-portal-site/m-p/873556#M4807</guid>
      <dc:creator>ChrisMathers1</dc:creator>
      <dc:date>2018-03-01T21:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Start/stop service on non-portal site</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/start-stop-service-on-non-portal-site/m-p/873557#M4808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting, I havnt seen this before. I'll dig into it and see if it will work better for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 21:59:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/start-stop-service-on-non-portal-site/m-p/873557#M4808</guid>
      <dc:creator>ChrisMathers1</dc:creator>
      <dc:date>2018-03-01T21:59:06Z</dc:date>
    </item>
  </channel>
</rss>

