<?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 Is it possible to set configuration for a running map service via arcpy Python API? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004284#M5236</link>
    <description>&lt;P&gt;Is it possible to set for example Capabilities for a running specific map service through the arcpy Python API? I searched for methods that can help me with this but can't find anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say I want to activate WMS för a specific service. Then I want to make a call to the server and activate that setting. And then restart the service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed to publish, stop, start, remove services via arcpy but now I want to make changes in the configuration but can't figure out how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 15:23:43 GMT</pubDate>
    <dc:creator>AndersMark</dc:creator>
    <dc:date>2020-11-24T15:23:43Z</dc:date>
    <item>
      <title>Is it possible to set configuration for a running map service via arcpy Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004284#M5236</link>
      <description>&lt;P&gt;Is it possible to set for example Capabilities for a running specific map service through the arcpy Python API? I searched for methods that can help me with this but can't find anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say I want to activate WMS för a specific service. Then I want to make a call to the server and activate that setting. And then restart the service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed to publish, stop, start, remove services via arcpy but now I want to make changes in the configuration but can't figure out how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:23:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004284#M5236</guid>
      <dc:creator>AndersMark</dc:creator>
      <dc:date>2020-11-24T15:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set configuration for a running map service via arcpy Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004286#M5237</link>
      <description>&lt;P&gt;Not to get picky on semantics, but there is ArcPy and ArcGIS API for Python.&amp;nbsp; It isn't clear which API you are referring to with "arcpy Python API."&amp;nbsp; In general, ArcPy does little to nothing to manage ArcGIS Enterprise and GIS services, which is part of the whole reason ArcGIS API for Python was created.&lt;/P&gt;&lt;P&gt;Are you connecting to stand-alone ArcGIS Server or federated ArcGIS Server?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004286#M5237</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-11-24T15:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set configuration for a running map service via arcpy Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004294#M5238</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm connecting to a stand-alone ArcGIS Server. Also didn't know there where two versions of python API. The way I use it is by, in the Python file, import arcpy. Then I just use the functionality that is inside.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I use methods like:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;arcpy.UploadServiceDefinition_server&lt;BR /&gt;arcpy.CreateRasterDataset_management&lt;BR /&gt;arcpy.gp.Combine_sa&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;if that says anything?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004294#M5238</guid>
      <dc:creator>AndersMark</dc:creator>
      <dc:date>2020-11-24T15:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set configuration for a running map service via arcpy Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004351#M5239</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I don't think there is any way to change service properties (e.g. instances, caching properties, pooling) through either arcpy or the ArcGIS API for Python. The only way that I have ever come across before using Python is the REST API, through urllib and JSON calls.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of how to edit service properties using Python in the REST API:&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/server/latest/administer/windows/example-edit-service-properties.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/administer/windows/example-edit-service-properties.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;-Calvin&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 18:44:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004351#M5239</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-11-24T18:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set configuration for a running map service via arcpy Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004355#M5240</link>
      <description>&lt;P&gt;Many thanks! That seems reasonable.&amp;nbsp; I will try that solution.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 18:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004355#M5240</guid>
      <dc:creator>AndersMark</dc:creator>
      <dc:date>2020-11-24T18:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set configuration for a running map service via arcpy Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004413#M5241</link>
      <description>&lt;P&gt;It looks like you are only using ArcPy, which does not have the ability to configure GIS services on a GIS Server.&amp;nbsp; You can use the ArcGIS API for Python to configure GIS services on a GIS Server since it is first and foremost a Python wrapper for the ArcGIS REST API.&lt;/P&gt;&lt;P&gt;I would show you some mock-up code, but a defect was introduced in ArcGIS API for Python 1.8.0 that prevents my usual code from working.&amp;nbsp; Supposedly a fix will be released with 1.8.3.&lt;/P&gt;&lt;P&gt;I don't recommend investing too much time or effort in the Python code examples that Esri has within the ArcGIS Enterprise documentation because a vast majority of them were created a long time ago before the ArcGIS API for Python existed.&amp;nbsp; Many or all of those code samples work, if you really need to get something working now, but learning and using the ArcGIS API for Python is a better use of time and effort.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 20:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1004413#M5241</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-11-24T20:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set configuration for a running map service via arcpy Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1005416#M5252</link>
      <description>&lt;P&gt;Hi again!&lt;/P&gt;&lt;P&gt;That worked perfect. Many thanks! Do know about security settings for a service? I didn't get those settings in the REST reply. Do you know if there another REST call to get /set roles permitted to a certain service? I've looked around to all examples but can't figure out which one to use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Anders&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 22:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-set-configuration-for-a-running/m-p/1005416#M5252</guid>
      <dc:creator>AndersMark</dc:creator>
      <dc:date>2020-11-29T22:13:21Z</dc:date>
    </item>
  </channel>
</rss>

