How to update Portal system properties using Python

497
0
12-06-2019 07:35 AM
JonathanBailey
Occasional Contributor III

I'd like to update the Portal system properties using the Python API. The documentation seems to indicate that it can be done. However, making an assignment to System.properties doesn't appear to udpate the system properties.

from arcgis.gis import GIS


gis = GIS(gis_base_url, user, password)
system_properties = gis.admin.system.properties
system_properties['privatePortalURL'] = system_properties['WebContextURL']
gis.admin.system.properties = system_properties
Tags (2)
0 Kudos
0 Replies