<?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 Configuration API's and curl in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115037#M1635</link>
    <description>&lt;P&gt;the example does not show how to use a json file as input to the curl command. the -d format is shown. I am doing a "POST&lt;A href="https://dynatrace-aws-le.fanniemae.com/e/8baf2c5d-5519-4c6b-88a9-7633854156e1/api-doc/index.jsp?urls.primaryName=Configuration%20API#/operations/Automatically%20applied%20tags/createAutoTag_1" target="_blank"&gt;/autoTags&lt;/A&gt;Creates a new auto tag" I am using bash&lt;/P&gt;
&lt;P&gt;My command that does not work&lt;/P&gt;
&lt;P&gt;curl -k -X POST "https://${TooTenant}/api/config/v1/autoTags?Api-Token=${TooToken}" -H "accept: application/json; charset=utf-8" -H "accept: application/json; charset=utf-8" -H "Content-Type: application/json; charset=utf-8" -d /export/apm/eds-Prod-oneagent/tmp/Tmp.json&lt;/P&gt;
&lt;P&gt;Thanks for your help in advance&lt;/P&gt;
&lt;P&gt;Ed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 11:25:54 GMT</pubDate>
    <dc:creator>edward_prinsloo</dc:creator>
    <dc:date>2021-12-13T11:25:54Z</dc:date>
    <item>
      <title>Configuration API's and curl</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115037#M1635</link>
      <description>&lt;P&gt;the example does not show how to use a json file as input to the curl command. the -d format is shown. I am doing a "POST&lt;A href="https://dynatrace-aws-le.fanniemae.com/e/8baf2c5d-5519-4c6b-88a9-7633854156e1/api-doc/index.jsp?urls.primaryName=Configuration%20API#/operations/Automatically%20applied%20tags/createAutoTag_1" target="_blank"&gt;/autoTags&lt;/A&gt;Creates a new auto tag" I am using bash&lt;/P&gt;
&lt;P&gt;My command that does not work&lt;/P&gt;
&lt;P&gt;curl -k -X POST "https://${TooTenant}/api/config/v1/autoTags?Api-Token=${TooToken}" -H "accept: application/json; charset=utf-8" -H "accept: application/json; charset=utf-8" -H "Content-Type: application/json; charset=utf-8" -d /export/apm/eds-Prod-oneagent/tmp/Tmp.json&lt;/P&gt;
&lt;P&gt;Thanks for your help in advance&lt;/P&gt;
&lt;P&gt;Ed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 11:25:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115037#M1635</guid>
      <dc:creator>edward_prinsloo</dc:creator>
      <dc:date>2021-12-13T11:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API's and curl</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115038#M1636</link>
      <description>&lt;P&gt;Better use the PUT method to create or update a configuration. The POST method does not allow to provide your own configuration record id, while the PUT does.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Mar 2019 14:51:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115038#M1636</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2019-03-05T14:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API's and curl</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115039#M1637</link>
      <description>&lt;P&gt;sorry I need to use the Json as input to post config eg -d /export/apm/eds-Prod-oneagent/tmp/Tmp.json&lt;/P&gt;&lt;P&gt;When coping to  environment I don't want the ID do I? It creates a new ID for me. It also could be on another cluster. I remove the ID before post.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Mar 2019 15:58:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115039#M1637</guid>
      <dc:creator>edward_prinsloo</dc:creator>
      <dc:date>2019-03-08T15:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API's and curl</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115040#M1638</link>
      <description>&lt;P&gt;PUT means create or update. So you can use curl -k -X PUT "...." -d /export...&lt;/P&gt;&lt;P&gt;Its nothing wrong in using the same GUID for the same config object across environments.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Mar 2019 06:08:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115040#M1638</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2019-03-11T06:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API's and curl</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115041#M1639</link>
      <description>&lt;P&gt;ok environment to environment but what about cluster to cluster?&lt;/P&gt;&lt;P&gt;my question is can I use the -d  to point to a file eg&lt;/P&gt;&lt;P&gt;curl -X PUT "https://dynatrace-le.fanniemae.com/e/b35a1f50-6843-451e-9512-640d11de3507/api/config/v1/autoTags/de6056da-91fe-4333-a764-3af89f5a377f?Api-Token=3LtUywPpTNqmHYJCjSkQb" -H "accept: application/json; charset=utf-8" -H "Content-Type: application/json; charset=utf-8" -d "{ \"id\": \"de6056da-91fe-4333-a764-3af89f5a377f\", \"name\": \"1edtest\", \"rules\": [ { \"type\": \"SERVICE\",...&lt;/P&gt;&lt;P&gt;verses&lt;/P&gt;&lt;P&gt;curl -X PUT "https://dynatrace-le.fanniemae.com/e/b35a1f50-6843-451e-9512-640d11de3507/api/config/v1/autoTags/de6056da-91fe-4333-a764-3af89f5a377f?Api-Token=3LtUywPpTNqmHYJCjSkQb" -H "accept: application/json; charset=utf-8" -H "Content-Type: application/json; charset=utf-8" -d /export/apm/json.file  in the format:&lt;/P&gt;&lt;PRE&gt;{"name":"sampleAutoTag","rules":[{"type":"SERVICE","enabled":true,"valueFormat":"myTagValue {Service:DetectedName}","propagationTypes":["SERVICE_TO_HOST_LIKE"],"conditions":[{"key":{....&lt;BR /&gt;&lt;BR /&gt;I get &lt;BR /&gt;{"error":{"code":400,"message":"Syntax error near line 1 column 2"}}plsys-apapm01 apm/eds-Prod-oneagent%&lt;BR /&gt;&lt;BR /&gt;I have -d "/export/apm/eds-Prod-oneagent/tmp/EdTmp.json"&lt;/PRE&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Mar 2019 12:39:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115041#M1639</guid>
      <dc:creator>edward_prinsloo</dc:creator>
      <dc:date>2019-03-11T12:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration API's and curl</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115042#M1640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use -d with an @ to point at a filename.&lt;/P&gt;&lt;P&gt;curl -X PUT "&lt;A href="https://dynatrace-le.fanniemae.com/e/b35a1f50-6843-451e-9512-640d11de3507/api/config/v1/autoTags/de6056da-91fe-4333-a764-3af89f5a377f?Api-Token=3LtUywPpTNqmHYJCjSkQb"&gt;https://dynatrace-le.fanniemae.com/e/b35a1f50-6843-451e-9512-640d11de3507/api/config/v1/autoTags/de6056da-91fe-4333-a764-3af89f5a377f?Api-Token=&lt;/A&gt;***" -H "accept: application/json; charset=utf-8" -H "Content-Type: application/json; charset=utf-8" -d "@/export/apm/json.file"&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Mar 2019 13:01:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Configuration-API-s-and-curl/m-p/115042#M1640</guid>
      <dc:creator>eduard_van_der1</dc:creator>
      <dc:date>2019-03-11T13:01:55Z</dc:date>
    </item>
  </channel>
</rss>

