<?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 How to set the AGOL utility services used by Portal? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-set-the-agol-utility-services-used-by/m-p/864863#M4364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to set the AGOL utility services used by a Portal using the Python API. After setting&amp;nbsp; them up through the Portal UI, I can see that the URL to the AGO World Closest Facility service, for example, is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink2" href="https://sbxweb.tcgis.ca/portal/sharing/servers/7f5b6ab8ac444bf685520f0e642079c8/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World" title="https://sbxweb.tcgis.ca/portal/sharing/servers/7f5b6ab8ac444bf685520f0e642079c8/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World"&gt;https://&amp;lt;domain&amp;gt;/portal/sharing/servers/7f5b6ab8ac444bf685520f0e642079c8/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I also know that my login credentials are used to access the AGOL services, and I'm assuming that they're encrypted in the ID portion of the URL (the portion between /servers/ and /rest/). So, if this is the case, can I assume that this URL can be used to access the utility services, provided that the login credentials remain invalid? In that case, I can use the&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;GIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update_properties&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;method to pass in a dictionary representing the utility services. Or, is there another place in the API that I can set the AGOL utility services by passing in the login credentials?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2018 19:22:52 GMT</pubDate>
    <dc:creator>JonathanBailey</dc:creator>
    <dc:date>2018-11-06T19:22:52Z</dc:date>
    <item>
      <title>How to set the AGOL utility services used by Portal?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-set-the-agol-utility-services-used-by/m-p/864863#M4364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to set the AGOL utility services used by a Portal using the Python API. After setting&amp;nbsp; them up through the Portal UI, I can see that the URL to the AGO World Closest Facility service, for example, is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink2" href="https://sbxweb.tcgis.ca/portal/sharing/servers/7f5b6ab8ac444bf685520f0e642079c8/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World" title="https://sbxweb.tcgis.ca/portal/sharing/servers/7f5b6ab8ac444bf685520f0e642079c8/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World"&gt;https://&amp;lt;domain&amp;gt;/portal/sharing/servers/7f5b6ab8ac444bf685520f0e642079c8/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I also know that my login credentials are used to access the AGOL services, and I'm assuming that they're encrypted in the ID portion of the URL (the portion between /servers/ and /rest/). So, if this is the case, can I assume that this URL can be used to access the utility services, provided that the login credentials remain invalid? In that case, I can use the&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;GIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update_properties&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;method to pass in a dictionary representing the utility services. Or, is there another place in the API that I can set the AGOL utility services by passing in the login credentials?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 19:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-set-the-agol-utility-services-used-by/m-p/864863#M4364</guid>
      <dc:creator>JonathanBailey</dc:creator>
      <dc:date>2018-11-06T19:22:52Z</dc:date>
    </item>
  </channel>
</rss>

