<?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: Get related entities of a specific service through the environment api V2. in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Related-entities-of-a-specific-service-through-the-environment/m-p/286448#M3851</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using this and I can see relations in the output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X 'GET' \
  'https://XXXXX.live.dynatrace.com/api/v2/entities/SERVICE-XXXXX' \
  -H 'accept: application/json; charset=utf-8' \
  -H 'Authorization: Api-Token XXXXX'&lt;/LI-CODE&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2025 13:01:56 GMT</pubDate>
    <dc:creator>AntonPineiro</dc:creator>
    <dc:date>2025-09-19T13:01:56Z</dc:date>
    <item>
      <title>Related entities of a specific service through the environment API V2</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Related-entities-of-a-specific-service-through-the-environment/m-p/286435#M3850</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;I am trying to get the related entities of a specific service via the environment api. I am using the FromRelations.Calls relationship. I have read the documentation, but unfortunately i am not able to make it work.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This is what i am trying to execute.&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;curl -X &lt;/SPAN&gt;&lt;SPAN&gt;'GET'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;  &lt;SPAN&gt;'https://#########blanked out########/api/v2/entities?entitySelector=fromRelationships.Calls%28entityId%28SERVICE-1AAA4F%29%29'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;SPAN&gt;  -H &lt;/SPAN&gt;&lt;SPAN&gt;'accept: application/json; charset=utf-8'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;SPAN&gt;  -H &lt;/SPAN&gt;&lt;SPAN&gt;'Authorization: Api-Token ####blanked out####'&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output is&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;  &lt;SPAN class=""&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;    &lt;SPAN class=""&gt;"code"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;400&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;    &lt;SPAN class=""&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Constraints violated."&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;    &lt;SPAN class=""&gt;"constraintViolations"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;      {
        &lt;SPAN class=""&gt;"path"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"entitySelector"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;        &lt;SPAN class=""&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"The entitySelector parameter must contain entity type information on all levels, not determinable on level with values: fromrelationships.calls"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;        &lt;SPAN class=""&gt;"parameterLocation"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"QUERY"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;        &lt;SPAN class=""&gt;"location"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;
      }
    ]
  }
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone try to help me out here with the syntax? Thank you in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 11:45:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Related-entities-of-a-specific-service-through-the-environment/m-p/286435#M3850</guid>
      <dc:creator>svendb1803</dc:creator>
      <dc:date>2025-12-15T11:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get related entities of a specific service through the environment api V2.</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Related-entities-of-a-specific-service-through-the-environment/m-p/286448#M3851</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using this and I can see relations in the output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X 'GET' \
  'https://XXXXX.live.dynatrace.com/api/v2/entities/SERVICE-XXXXX' \
  -H 'accept: application/json; charset=utf-8' \
  -H 'Authorization: Api-Token XXXXX'&lt;/LI-CODE&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 13:01:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Related-entities-of-a-specific-service-through-the-environment/m-p/286448#M3851</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-09-19T13:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get related entities of a specific service through the environment api V2.</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Related-entities-of-a-specific-service-through-the-environment/m-p/286449#M3852</link>
      <description>&lt;P&gt;I haven't tested it, but it seems it wants to get type information, hence something like entityselector=type(SERVICE),fromRelationships.Calls(...) , to determine the base type it needs to query...&lt;/P&gt;&lt;P&gt;As mentioned, not tested but my first though...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 13:22:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Related-entities-of-a-specific-service-through-the-environment/m-p/286449#M3852</guid>
      <dc:creator>SjoerdB</dc:creator>
      <dc:date>2025-09-19T13:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get related entities of a specific service through the environment api V2.</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Related-entities-of-a-specific-service-through-the-environment/m-p/286490#M3853</link>
      <description>&lt;P&gt;i found it. thanks for the insight&lt;BR /&gt;&lt;BR /&gt;$CurlArgument = 'X', 'GET', 'https://################/api/v2/entities?entitySelector=type%28SERVICE%29%2Cfromrelationships.calls%28entityID%28SERVICE-5123456789EF%29%29',&lt;BR /&gt;'-H', 'accept: application/json; charset=utf-8', '-H', 'Authorization: Api-Token ####################'&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 05:36:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Related-entities-of-a-specific-service-through-the-environment/m-p/286490#M3853</guid>
      <dc:creator>svendb1803</dc:creator>
      <dc:date>2025-09-22T05:36:32Z</dc:date>
    </item>
  </channel>
</rss>

