GetPortalInfo

Resumen

Returns a dictionary that contains information about available portals.

Debate

For more information on portal connections, see Manage portal connections from ArcGIS Pro.

Sintaxis

GetPortalInfo ({portal_URL})
ParámetroExplicaciónTipo de datos
portal_URL

The portal URL. The URL returned by GetActivePortalURL is used by default.

String
Valor de retorno
Tipo de datosExplicación
Dictionary

The function returns a dictionary containing properties of the portal.

KeyValue

SSL_enabled

True if Secure Sockets Layer (SSL) is enabled

organization

The organization name

organization_type

The organization type

portal_version

The portal version

role

The current role

The GetPortalInfo dictionary object keys

Muestra de código

GetPortalInfo example
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()))

Temas relacionados