Resumen
The GetPortalInfo function returns a dictionary that contains information on available portals.
Debate
For more information on portal connections, see Manage portal connections from ArcGIS Pro.
Sintaxis
GetPortalInfo ({portal_URL})
Parámetro | Explicación | Tipo de datos |
portal_URL | The portal URL. By default it uses the URL returned by GetActivePortalURL. | String |
Tipo de datos | Explicación | ||||||||||||
Dictionary | The function returns a dictionary containing properties of the portal.
|
Muestra de código
import arcpy
# For example:
# {'portal_version': 2.3, 'SSL_enabled': False, 'organization':
# 'PortalHost 10.2.1', 'role': 'account_publisher', 'organizationtype': ''}
print(arcpy.GetPortalInfo(portal_URL=arcpy.GetActivePortalURL()))