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
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
<SPAN class="keyword token">from</SPAN> arcgis<SPAN class="punctuation token">.</SPAN>gis <SPAN class="keyword token">import</SPAN> GIS gis <SPAN class="operator token">=</SPAN> GIS<SPAN class="punctuation token">(</SPAN>proxy_host<SPAN class="operator token">=</SPAN><SPAN class="string token">"proxyuser:proxypassword@proxyipaddress"</SPAN><SPAN class="punctuation token">,</SPAN>proxy_port<SPAN class="operator token">=</SPAN><SPAN class="number token">8080</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN>gis<SPAN class="punctuation token">.</SPAN>properties<SPAN class="punctuation token">.</SPAN>portalName<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
But...
<SPAN class="keyword token">from</SPAN> arcgis<SPAN class="punctuation token">.</SPAN>gis <SPAN class="keyword token">import</SPAN> GIS gis <SPAN class="operator token">=</SPAN> GIS<SPAN class="punctuation token">(</SPAN><SPAN class="string token"><SPAN>"</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ffeatureservices.thelist.tas.gov.au%2Farcgis" target="_blank">https://featureservices.thelist.tas.gov.au/arcgis</A><SPAN>"</SPAN></SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">"serviceusername"</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">"servicepassword"</SPAN><SPAN class="punctuation token">,</SPAN>proxy_host<SPAN class="operator token">=</SPAN><SPAN class="string token">"proxyuser:proxypassword@proxyipaddress"</SPAN><SPAN class="punctuation token">,</SPAN>proxy_port<SPAN class="operator token">=</SPAN><SPAN class="number token">8080</SPAN><SPAN class="punctuation token">,</SPAN>verify_cert<SPAN class="operator token">=</SPAN><SPAN class="token boolean">False</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN>gis<SPAN class="punctuation token">.</SPAN>properties<SPAN class="punctuation token">.</SPAN>portalName<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
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<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
You didn't indicate whether you had seen the reference guides or the api reference
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.