<?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 Create a Geoevent INPUT with a poll to Admin API  in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/create-a-geoevent-input-with-a-poll-to-admin-api/m-p/490702#M2139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I want create a Geoevent INPUT with a poll to &lt;SPAN style="color: #000000; font-weight: 300;"&gt;ArcGIS GeoEvent Server REST Admin API (&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/localhost:6143/geoevent/admin/monitoring" rel="nofollow" target="_blank"&gt;https://localhost:6143/geoevent/admin/monitoring&lt;/A&gt;&lt;SPAN style="color: #000000; font-weight: 300;"&gt;) to send messages when a event occurs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But I have an error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505051; background-color: #e5edf4; font-size: 12px;"&gt;Request failed (HTTP/1.1 415 Unsupported Media Type)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think it's because Admin API need a token generated.&lt;/P&gt;&lt;P&gt;someone could&amp;nbsp;poll the admin&amp;nbsp;API from an input???&lt;/P&gt;&lt;P&gt;From already thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2018 14:17:11 GMT</pubDate>
    <dc:creator>Javier_Pintos</dc:creator>
    <dc:date>2018-05-18T14:17:11Z</dc:date>
    <item>
      <title>Create a Geoevent INPUT with a poll to Admin API</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/create-a-geoevent-input-with-a-poll-to-admin-api/m-p/490702#M2139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I want create a Geoevent INPUT with a poll to &lt;SPAN style="color: #000000; font-weight: 300;"&gt;ArcGIS GeoEvent Server REST Admin API (&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/localhost:6143/geoevent/admin/monitoring" rel="nofollow" target="_blank"&gt;https://localhost:6143/geoevent/admin/monitoring&lt;/A&gt;&lt;SPAN style="color: #000000; font-weight: 300;"&gt;) to send messages when a event occurs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But I have an error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505051; background-color: #e5edf4; font-size: 12px;"&gt;Request failed (HTTP/1.1 415 Unsupported Media Type)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think it's because Admin API need a token generated.&lt;/P&gt;&lt;P&gt;someone could&amp;nbsp;poll the admin&amp;nbsp;API from an input???&lt;/P&gt;&lt;P&gt;From already thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 14:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/create-a-geoevent-input-with-a-poll-to-admin-api/m-p/490702#M2139</guid>
      <dc:creator>Javier_Pintos</dc:creator>
      <dc:date>2018-05-18T14:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Geoevent INPUT with a poll to Admin API</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/create-a-geoevent-input-with-a-poll-to-admin-api/m-p/490703#M2140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/270336"&gt;Javier Rodolfo Pintos Ettlin&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two things to address here. You are correct. Any connection to the admin API is going to require a token. Otherwise, trying to access that endpoint will result in a "Forbidden" error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the message that you mentioned says "Unsupported media type." This is likely due to the fact the MIME type in the input connector configuration is not set correctly. The monitoring endpoint is formatted as JSON. Since it is not a JSON &lt;EM&gt;file&lt;/EM&gt; that is being accessed and rather a JSON API, you will want to make sure the MIME type specified is &lt;STRONG&gt;application/JSON&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/414340_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this is set, you should no longer run into the &lt;SPAN style="color: #505051; background-color: #e5edf4; font-size: 12px;"&gt;Request failed (HTTP/1.1 415 Unsupported Media Type)&lt;/SPAN&gt; error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, going back to the access concern...the way to work around this would be to somehow include the token in your request to the endpoint. The simplest way would be to generate a token from the Portal admin directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/414350_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From there, you can append the token to the URL and use that URL for the input connector's URL parameter. You should then see the counts go up for that input and a definition be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/414361_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 17:00:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/create-a-geoevent-input-with-a-poll-to-admin-api/m-p/490703#M2140</guid>
      <dc:creator>DanielCota1</dc:creator>
      <dc:date>2018-07-17T17:00:51Z</dc:date>
    </item>
  </channel>
</rss>

