Summary
Returns the URL of the active portal.
Discussion
To add, set, or edit portal connections, see Manage portal connections from ArcGIS Pro.
Syntax
GetActivePortalURL ()
Data Type | Explanation |
String | The URL of the active portal. |
Code sample
import arcpy
# For example: 'http://www.arcgis.com/'
arcpy.GetActivePortalURL()