<?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: Filter parameter on value subproperties in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Filter-parameter-on-value-subproperties/m-p/241887#M3020</link>
    <description>&lt;P&gt;Looks like you may be using some other kind of Unicode dash(?), try following curl (replace filter as needed)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --location --request GET 'https://{environmentid}.live.dynatrace.com/api/v2/settings/objects?validateOnly=false&amp;amp;schemaIds=builtin:logmonitoring.log-storage-settings&amp;amp;fields=objectId,value,scope&amp;amp;filter=value.config-item-title='\''/some/file.log'\''' \
--header 'accept: application/json; charset=utf-8' \
--header 'Authorization: Api-Token dt0c01.xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json; charset=utf-8'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 13:24:40 GMT</pubDate>
    <dc:creator>mark_bley</dc:creator>
    <dc:date>2024-04-04T13:24:40Z</dc:date>
    <item>
      <title>Filter parameter on value subproperties</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Filter-parameter-on-value-subproperties/m-p/231882#M2810</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to filter a settings/object API call via the filter parameter on the "value" field. The REST API docs mention it is possible to filter by subproperties, but this is unable to parse characters like - and [].&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{tenanturi}api/v2/settings/objects?schemaIds=builtin:logmonitoring.log-storage-settings&amp;amp;scope=scope&amp;amp;fields=value&amp;amp;filter=value.config-item-title='test'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dan3_0-1702550203105.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16221i4EDF74AA9EB67544/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dan3_0-1702550203105.png" alt="dan3_0-1702550203105.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and with&amp;nbsp;&lt;SPAN&gt;filter=value["config-item-title"]='test'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;same error on&amp;nbsp;&lt;SPAN&gt;token&amp;nbsp;recognition&amp;nbsp;error&amp;nbsp;at:&amp;nbsp;'['"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Follow up question:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Given this is the structure of the value field in a settings object&lt;/P&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dan3_1-1702550487981.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16222i45739E91FFBC3326/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dan3_1-1702550487981.png" alt="dan3_1-1702550487981.png" /&gt;&lt;/span&gt;
&lt;P&gt;Would it be possible to filter the response by the content of the matchers field?&lt;/P&gt;
&lt;P&gt;For instance, returning only settings that contain log.source matchers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Dec 2023 15:07:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Filter-parameter-on-value-subproperties/m-p/231882#M2810</guid>
      <dc:creator>dan3</dc:creator>
      <dc:date>2023-12-20T15:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter parameter on value subproperties</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Filter-parameter-on-value-subproperties/m-p/241887#M3020</link>
      <description>&lt;P&gt;Looks like you may be using some other kind of Unicode dash(?), try following curl (replace filter as needed)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --location --request GET 'https://{environmentid}.live.dynatrace.com/api/v2/settings/objects?validateOnly=false&amp;amp;schemaIds=builtin:logmonitoring.log-storage-settings&amp;amp;fields=objectId,value,scope&amp;amp;filter=value.config-item-title='\''/some/file.log'\''' \
--header 'accept: application/json; charset=utf-8' \
--header 'Authorization: Api-Token dt0c01.xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json; charset=utf-8'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 13:24:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Filter-parameter-on-value-subproperties/m-p/241887#M3020</guid>
      <dc:creator>mark_bley</dc:creator>
      <dc:date>2024-04-04T13:24:40Z</dc:date>
    </item>
  </channel>
</rss>

