GetPortalInfo

概要

The GetPortalInfo function returns a dictionary that contains information on available portals.

ディスカッション

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

構文

GetPortalInfo ({portal_URL})
パラメーター説明データ タイプ
portal_URL

The portal URL. By default it uses the URL returned by GetActivePortalURL.

String
戻り値
データ タイプ説明
Dictionary

The function returns a dictionary containing properties of the portal.

KeysValues

SSL_enabled

True, if Secure Sockets Layer (SSL) enabled.

organization

The organization name.

organization_type

The organization type.

portal_version

The portal version.

role

The current role.

The GetPortalInfo dictionary object keys

コードのサンプル

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

関連トピック