<?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 Re: [Notebook] External api data origin IP in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Notebook-External-api-data-origin-IP/m-p/237764#M3751</link>
    <description>&lt;P&gt;Wow, I didn't know about this webhook.site, thanks for this!!&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 20:29:00 GMT</pubDate>
    <dc:creator>dannemca</dc:creator>
    <dc:date>2024-02-21T20:29:00Z</dc:date>
    <item>
      <title>[Notebook] External api data origin IP</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Notebook-External-api-data-origin-IP/m-p/237685#M3748</link>
      <description>&lt;P&gt;Recently we can try use the notebook ("dynatrace.notebooks/notebook") to get external data from API and increment with logs or dynatrace information.&lt;/P&gt;&lt;P&gt;In my scenario, the target endpoint has one restriction access by IP, and the request only returns success when the requester IP is allowed to proceed.&lt;/P&gt;&lt;P&gt;What is the Dynatrace IP list used in the notebook runner on fetch?&lt;/P&gt;&lt;P&gt;I need this information to allow the IP on the firewall rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of fetch&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;export default async function () {&lt;BR /&gt;const options = {&lt;BR /&gt;method: 'POST',&lt;BR /&gt;headers: {&lt;BR /&gt;'Content-Type': 'application/json',&lt;BR /&gt;Authorization: 'ApiKey XPTO'&lt;BR /&gt;},&lt;BR /&gt;body: '{"fakeBody": "aaa"}'&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const response = await fetch('&lt;A href="https://xpto.url/_search" target="_blank" rel="noopener"&gt;https://xpto.url/_search&lt;/A&gt;', options);&lt;BR /&gt;const json = await response.json();&lt;BR /&gt;return json.hits.hits;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Draw example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2024-02-21 at 11.15.09.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17745iD32FFF86B5469E95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-02-21 at 11.15.09.png" alt="Screenshot 2024-02-21 at 11.15.09.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 14:17:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Notebook-External-api-data-origin-IP/m-p/237685#M3748</guid>
      <dc:creator>matheus</dc:creator>
      <dc:date>2024-02-21T14:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: [Notebook] External api data origin IP</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Notebook-External-api-data-origin-IP/m-p/237761#M3749</link>
      <description>&lt;P&gt;I would test with the IPs you get from "Deploy OneAgent" page.&lt;/P&gt;&lt;P&gt;Example from demo env&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (20).png" style="width: 466px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17762iAF90DDD5D4FA964F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (20).png" alt="image (20).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 20:03:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Notebook-External-api-data-origin-IP/m-p/237761#M3749</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2024-02-21T20:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: [Notebook] External api data origin IP</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Notebook-External-api-data-origin-IP/m-p/237763#M3750</link>
      <description>&lt;P&gt;I think this is a use case for &lt;A href="https://docs.dynatrace.com/docs/shortlink/edgeconnect" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;edgeconnect&lt;/STRONG&gt;&lt;/A&gt;. To channel the connection in an infra that you have control to and execute it from there. So there is no "Cloud component reaching the data" just a local one that streams the data back to dynatrace.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For testing purposes, you could use a webhook from&amp;nbsp;&lt;A href="https://webhook.site/" target="_blank" rel="noopener"&gt;https://webhook.site/&lt;/A&gt;&amp;nbsp;and post to it to check the incoming connection from where is hitting. But since this is all an elastic platform I would not trust that the origin remains the same all the time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 11:32:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Notebook-External-api-data-origin-IP/m-p/237763#M3750</guid>
      <dc:creator>Dant3</dc:creator>
      <dc:date>2024-02-22T11:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: [Notebook] External api data origin IP</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Notebook-External-api-data-origin-IP/m-p/237764#M3751</link>
      <description>&lt;P&gt;Wow, I didn't know about this webhook.site, thanks for this!!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 20:29:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Notebook-External-api-data-origin-IP/m-p/237764#M3751</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2024-02-21T20:29:00Z</dc:date>
    </item>
  </channel>
</rss>

