<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Secured Services information at REST end in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/secured-services-information-at-rest-end/m-p/434684#M16781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to determine if&amp;nbsp; any gis service is&lt;STRONG&gt; secured or unsecured at the REST end point.&lt;/STRONG&gt; I want to hit the arcgis server REST using &lt;STRONG&gt;Python&lt;/STRONG&gt; and find if services are secured or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2015 06:56:14 GMT</pubDate>
    <dc:creator>ShikharDeep1</dc:creator>
    <dc:date>2015-05-15T06:56:14Z</dc:date>
    <item>
      <title>Secured Services information at REST end</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/secured-services-information-at-rest-end/m-p/434684#M16781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to determine if&amp;nbsp; any gis service is&lt;STRONG&gt; secured or unsecured at the REST end point.&lt;/STRONG&gt; I want to hit the arcgis server REST using &lt;STRONG&gt;Python&lt;/STRONG&gt; and find if services are secured or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 06:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/secured-services-information-at-rest-end/m-p/434684#M16781</guid>
      <dc:creator>ShikharDeep1</dc:creator>
      <dc:date>2015-05-15T06:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Secured Services information at REST end</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/secured-services-information-at-rest-end/m-p/434685#M16782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shikhar, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If the services that you are accessing are known to you , you will probably know the services that are published.&lt;/P&gt;&lt;P&gt;So , you can query them using urllib/ urllib2 like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import urllib2
&lt;SPAN&gt;url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://YourUrl/rest/services/sample/MapServer/0/query?where=1%3D1&amp;amp;f=pjson" rel="nofollow noopener noreferrer" target="_blank"&gt;http://YourUrl/rest/services/sample/MapServer/0/query?where=1%3D1&amp;amp;f=pjson&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
data = urllib2.urlopen(url).read()
print data&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are getting results , then it is not secured.&lt;/P&gt;&lt;P&gt;If you are getting result as&amp;nbsp; '{\n "error": {\n&amp;nbsp; "code": 499,\n&amp;nbsp; "message": "Token Required",\n&amp;nbsp; "details": []\n }\n}' , or any such error , then it is secured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;If the services that you are accessing is not known to you and you can do a simple analysis using the following URL: &lt;A href="http://gistest1.rajasthan.gov.in/rajasthan/rest/services/?f=pjson" title="http://gistest1.rajasthan.gov.in/rajasthan/rest/services/?f=pjson" rel="nofollow noopener noreferrer" target="_blank"&gt;http://YourURL/rest/services/?f=pjson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and conclude if the services are secure or not secure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/secured-services-information-at-rest-end/m-p/434685#M16782</guid>
      <dc:creator>JaiSiva1</dc:creator>
      <dc:date>2021-12-11T19:29:05Z</dc:date>
    </item>
  </channel>
</rss>

