Summary
The GetActivePortalURL function returns the URL of the active portal.
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()