Skip to main content

GetPortalInfo

汇总

返回包含可用门户信息的字典。

讨论

有关门户连接的详细信息,请参阅 通过 ArcGIS Pro 管理门户连接

语法

GetPortalInfo({portal_URL})

参数 说明 数据类型

portal_URL

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

String

返回值

数据类型 说明

Dictionary

该函数返回包含门户属性信息的字典。

SSL_enabled

如果已启用了安全套接字层 (SSL),则返回 true。

组织

组织名称

organization_type

组织类型

portal_version

门户版本

role

当前角色

GetPortalInfo 字典对象关键字

代码示例

GetPortalInfo 示例
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()))