<?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: How can I create a service in a folder other than root. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-create-a-service-in-a-folder-other-than/m-p/1158302#M7263</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Is there any update on how to set the folder or the ServiceManager? For a standalone, unfedereated AGS, I cannot pass gis to a manually created.&lt;/P&gt;&lt;P&gt;I tried several things on my ServiceManager Object:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ags.services._folder(folder='temp')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;ags.services._currentURL = ags.services._url + '/temp'&lt;BR /&gt;ags.services._init()&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 11:11:04 GMT</pubDate>
    <dc:creator>NicolasDechamps1</dc:creator>
    <dc:date>2022-03-28T11:11:04Z</dc:date>
    <item>
      <title>How can I create a service in a folder other than root.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-create-a-service-in-a-folder-other-than/m-p/846626#M3671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;When I create a service it always gets created in the root directory.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;target_server &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis&lt;SPAN class="punctuation 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;server_url&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; username&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;username&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; password&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;password&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; target_server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;create_service&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;json&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dumps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;service_dict&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This actually works, but uses "_con" attribute.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;folder_service_manager &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ServiceManager&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;target_server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&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="operator token"&gt;+&lt;/SPAN&gt;service_folder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 gis&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;target_server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_con&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍
result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; folder_service_manager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;create_service&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;json&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dumps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;service_dict&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to do this, like changing the current folder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-create-a-service-in-a-folder-other-than/m-p/846626#M3671</guid>
      <dc:creator>KaiSteinicke1</dc:creator>
      <dc:date>2021-12-12T10:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a service in a folder other than root.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-create-a-service-in-a-folder-other-than/m-p/1158302#M7263</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Is there any update on how to set the folder or the ServiceManager? For a standalone, unfedereated AGS, I cannot pass gis to a manually created.&lt;/P&gt;&lt;P&gt;I tried several things on my ServiceManager Object:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ags.services._folder(folder='temp')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;ags.services._currentURL = ags.services._url + '/temp'&lt;BR /&gt;ags.services._init()&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 11:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-create-a-service-in-a-folder-other-than/m-p/1158302#M7263</guid>
      <dc:creator>NicolasDechamps1</dc:creator>
      <dc:date>2022-03-28T11:11:04Z</dc:date>
    </item>
  </channel>
</rss>

