Skip to main content

GetActivePortalURL

Résumé

The GetActivePortalURL function returns the URL of the active portal.

Discussion

To add, set, or edit portal connections, see Manage portal connections from ArcGIS Pro.

Syntaxe

GetActivePortalURL()

Valeur de retour

Type de données Explication

String

The URL of the active portal.

Exemple de code

GetActivePortalURL example
import arcpy

# For example: 'http://www.arcgis.com/'
arcpy.GetActivePortalURL()