<?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 Acquiring ArcGIS tokens in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/acquiring-arcgis-tokens/m-p/513453#M19973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been spending too much time trying to create a token for my services with no success. Im hoping I can get the help I need from this forum since the ESRI Analyst that has helped me seemed just as confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;I have ArcGIS server 10.1 SP 1 running on Amazon EC2 within a VPC(virtual private cloud). &lt;/UL&gt;&lt;UL&gt;I have a customized version of the arcgis online simple map viewer (JSAPI)&lt;/UL&gt;&lt;UL&gt;The IP address is 10.0.244.20- this is what I use to RDP to the instance (JSAPI)&lt;/UL&gt;&lt;UL&gt;Staff accesses the map using &lt;A href="http://gismaps/roadmap/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://gismaps/roadmap/index.html&lt;/A&gt;&lt;/UL&gt;&lt;UL&gt;Public accesses the map using &lt;A href="http://gismaps.carlsbadca.gov/roadmap/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://gismaps.carlsbadca.gov/roadmap/index.html&lt;/A&gt;&lt;/UL&gt;&lt;UL&gt;Both gismaps and gismaps.carlsbadca.gov are pointers to 10.0.244.20&lt;/UL&gt;&lt;UL&gt;I tried using both the arcgis account and the AGS admin account for the token and had no luck&lt;/UL&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webmap.itemData = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "operationalLayers": [
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/MapServer/1",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "trafficStatusMobile_5116",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "visibility": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "opacity": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "title": "Carlsbad Boundary"
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
 {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/MapServer/0",
&amp;nbsp;&amp;nbsp;&amp;nbsp; //"id": "trafficStatusMobile_6847",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "visibility": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "opacity": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "mode": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "title": "Road Maintenance",
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a 1 year token&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;How far into the rest services URL do I go to create the token? Do I create the token at the full path of &lt;A href="http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/&lt;/A&gt; or all the way down to the layer index? &lt;/UL&gt;&lt;UL&gt;Do I create the token from my desktop or from the Amazon instance?&lt;/UL&gt;&lt;UL&gt;Do I use HTTP Referer? IP Address? or IP address of this request's origin? If I use http Referer, what's the syntax for http referer:?&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 22:27:12 GMT</pubDate>
    <dc:creator>JuneAcosta</dc:creator>
    <dc:date>2021-12-11T22:27:12Z</dc:date>
    <item>
      <title>Acquiring ArcGIS tokens</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/acquiring-arcgis-tokens/m-p/513453#M19973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been spending too much time trying to create a token for my services with no success. Im hoping I can get the help I need from this forum since the ESRI Analyst that has helped me seemed just as confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;I have ArcGIS server 10.1 SP 1 running on Amazon EC2 within a VPC(virtual private cloud). &lt;/UL&gt;&lt;UL&gt;I have a customized version of the arcgis online simple map viewer (JSAPI)&lt;/UL&gt;&lt;UL&gt;The IP address is 10.0.244.20- this is what I use to RDP to the instance (JSAPI)&lt;/UL&gt;&lt;UL&gt;Staff accesses the map using &lt;A href="http://gismaps/roadmap/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://gismaps/roadmap/index.html&lt;/A&gt;&lt;/UL&gt;&lt;UL&gt;Public accesses the map using &lt;A href="http://gismaps.carlsbadca.gov/roadmap/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://gismaps.carlsbadca.gov/roadmap/index.html&lt;/A&gt;&lt;/UL&gt;&lt;UL&gt;Both gismaps and gismaps.carlsbadca.gov are pointers to 10.0.244.20&lt;/UL&gt;&lt;UL&gt;I tried using both the arcgis account and the AGS admin account for the token and had no luck&lt;/UL&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webmap.itemData = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "operationalLayers": [
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/MapServer/1",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "trafficStatusMobile_5116",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "visibility": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "opacity": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "title": "Carlsbad Boundary"
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
 {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/MapServer/0",
&amp;nbsp;&amp;nbsp;&amp;nbsp; //"id": "trafficStatusMobile_6847",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "visibility": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "opacity": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "mode": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "title": "Road Maintenance",
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a 1 year token&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;How far into the rest services URL do I go to create the token? Do I create the token at the full path of &lt;A href="http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/&lt;/A&gt; or all the way down to the layer index? &lt;/UL&gt;&lt;UL&gt;Do I create the token from my desktop or from the Amazon instance?&lt;/UL&gt;&lt;UL&gt;Do I use HTTP Referer? IP Address? or IP address of this request's origin? If I use http Referer, what's the syntax for http referer:?&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:27:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/acquiring-arcgis-tokens/m-p/513453#M19973</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2021-12-11T22:27:12Z</dc:date>
    </item>
  </channel>
</rss>

