<?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 API authentication error in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/API-authentication-error/m-p/242305#M3035</link>
    <description>&lt;P&gt;I am unable to use POST request using event ingest API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; curl --request POST \
    --url https://{environmentid}.apps.dynatrace.com/api/v2/events/ingest \
    --header 'Authorization: Api-Token dt0c01.XXXX.XXXXX' \
  --data '{
    "eventType": "MARKED_FOR_TERMINATION",
    "title": "Planned host downscale",
    "entitySelector": "type(HOST),fromRelationship.isInstanceOf(type(HOST_GROUP),entityName(cloud-burst-hosts))",
    "properties": {
        "job.number": "21234346"
    }
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 10:59:30 GMT</pubDate>
    <dc:creator>gdp-d</dc:creator>
    <dc:date>2024-04-10T10:59:30Z</dc:date>
    <item>
      <title>API authentication error</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-authentication-error/m-p/242305#M3035</link>
      <description>&lt;P&gt;I am unable to use POST request using event ingest API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; curl --request POST \
    --url https://{environmentid}.apps.dynatrace.com/api/v2/events/ingest \
    --header 'Authorization: Api-Token dt0c01.XXXX.XXXXX' \
  --data '{
    "eventType": "MARKED_FOR_TERMINATION",
    "title": "Planned host downscale",
    "entitySelector": "type(HOST),fromRelationship.isInstanceOf(type(HOST_GROUP),entityName(cloud-burst-hosts))",
    "properties": {
        "job.number": "21234346"
    }
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 10:59:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-authentication-error/m-p/242305#M3035</guid>
      <dc:creator>gdp-d</dc:creator>
      <dc:date>2024-04-10T10:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: API authentication error</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-authentication-error/m-p/242308#M3036</link>
      <description>&lt;P&gt;you need to make sure the token you use has the required scope:&amp;nbsp;events.ingest&amp;nbsp;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;One of the following permissions is required for personal access tokens:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;environment:roles:viewer&lt;/LI&gt;&lt;LI&gt;storage:events:write&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 12:06:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-authentication-error/m-p/242308#M3036</guid>
      <dc:creator>Esam_Eid</dc:creator>
      <dc:date>2024-04-10T12:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: API authentication error</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-authentication-error/m-p/244148#M3086</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/74450"&gt;@gdp-d&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try to replace the url string:&amp;nbsp;&lt;/P&gt;&lt;P&gt;--url https://{environmentid}.&lt;STRONG&gt;apps&lt;/STRONG&gt;.dynatrace.com/api/v2/events/ingest \&lt;/P&gt;&lt;P&gt;with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;--url https://{environmentid}.&lt;STRONG&gt;live&lt;/STRONG&gt;.dynatrace.com/api/v2/events/ingest \&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 13:53:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-authentication-error/m-p/244148#M3086</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2024-04-28T13:53:37Z</dc:date>
    </item>
  </channel>
</rss>

