Arcgis Server?

674
2
10-30-2017 02:22 PM
RichardWebb3
New Contributor II

Hi,

Can I make a connection using this API to ArcGIS Server 10.3 (without Portal)?

Or can I only connect to Portal or AGOL?

Richard

Tags (1)
0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

You didn't indicate whether you had seen the reference guides or  the api reference

0 Kudos
RichardWebb3
New Contributor II

Thanks Dan,

I have read those but it seems to imply ArcGIS Enterprise meaning ArcGIS Server is behind Portal.

E.g. the output from below is ArcGIS Online so I'm getting through the proxy ok

from arcgis.gis import GIS
gis = GIS(proxy_host="proxyuser:proxypassword@proxyipaddress",proxy_port=8080)
print(gis.properties.portalName)

But...

from arcgis.gis import GIS
gis = GIS("https://featureservices.thelist.tas.gov.au/arcgis","serviceusername","servicepassword",proxy_host="proxyuser:proxypassword@proxyipaddress",proxy_port=8080,verify_cert=False)
print(gis.properties.portalName)

Returns:

Untitled

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in __init__(self, url, username, password, key_file, cert_file, verify_cert, set_active, client_id, profile, **kwargs)  257 client_id=self._client_id)  258 except Exception as e: --> 259 if str(type(e.args[0])) == "<class 'ssl.SSLError'>":  260 raise RuntimeError("An untrusted SSL error occurred when attempting to connect to the provided GIS.\n"  261 "If you trust this server and want to proceed, add 'verify_cert=False' as an "‍

IndexError: tuple index out of range
0 Kudos