Summary
The GetActivePortalURL function returns the URL of the active portal.
Discussion
To add, set or edit portal connections, see Managing portal connections from ArcGIS for Desktop.
Syntax
GetActivePortalURL ()
Return Value
Data Type | Explanation |
String | The URL of the active portal. |
Code sample
GetPortalInfo example
import arcpy
# For example: 'http://www.arcgis.com/'
arcpy.GetActivePortalURL()