<?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>question Re: Truoble with creating templates and processors using api in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Truoble-with-creating-templates-and-processors-using-api/m-p/239626#M201435</link>
    <description>&lt;P&gt;&lt;A href="@john y"&gt;&lt;EM&gt; @john y&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you use &lt;B&gt;http&lt;/B&gt;&lt;STRONG&gt;:// &lt;/STRONG&gt;&lt;STRONG&gt;localhost:8080&lt;/STRONG&gt; instead of &lt;STRONG&gt;www&lt;/STRONG&gt; ! &lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jan 2019 06:38:33 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2019-01-02T06:38:33Z</dc:date>
    <item>
      <title>Truoble with creating templates and processors using api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Truoble-with-creating-templates-and-processors-using-api/m-p/239625#M201434</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I set up standalone NIFI 1.8.0 and now try to communicate with it using node through his api.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I am trying to deploy template which already exist on nifi (made it through GUI) : &lt;BR /&gt;POST to "www.localhost:8080/nifi-api/process-groups/{THE_TEMPLATE_ID}/template-instance" but recieving error 415 status : media type not supported.&lt;BR /&gt;I cant figure out what is worng with the request.&lt;/LI&gt;&lt;LI&gt;I did not set up any authentication, but still when i tried to make any change like creating processor i am getting error 405 : not allowed. How is that possible? &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;love for some help,&lt;/P&gt;&lt;P&gt;john&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 04:50:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Truoble-with-creating-templates-and-processors-using-api/m-p/239625#M201434</guid>
      <dc:creator>yjohn9691</dc:creator>
      <dc:date>2019-01-02T04:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Truoble with creating templates and processors using api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Truoble-with-creating-templates-and-processors-using-api/m-p/239626#M201435</link>
      <description>&lt;P&gt;&lt;A href="@john y"&gt;&lt;EM&gt; @john y&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you use &lt;B&gt;http&lt;/B&gt;&lt;STRONG&gt;:// &lt;/STRONG&gt;&lt;STRONG&gt;localhost:8080&lt;/STRONG&gt; instead of &lt;STRONG&gt;www&lt;/STRONG&gt; ! &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 06:38:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Truoble-with-creating-templates-and-processors-using-api/m-p/239626#M201435</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-01-02T06:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Truoble with creating templates and processors using api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Truoble-with-creating-templates-and-processors-using-api/m-p/239627#M201436</link>
      <description>&lt;P&gt;Already changed it, but still i am getting the same answer. This is not the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 14:23:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Truoble-with-creating-templates-and-processors-using-api/m-p/239627#M201436</guid>
      <dc:creator>yjohn9691</dc:creator>
      <dc:date>2019-01-02T14:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Truoble with creating templates and processors using api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Truoble-with-creating-templates-and-processors-using-api/m-p/239628#M201437</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/103275/yjohn9691.html" nodeid="103275"&gt;@john y&lt;/A&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;The rest-api endpoint you are using is incorrect for instantiating an existing template on the canvas.  You should instead be using a curl command that looks something like this:&lt;/P&gt;&lt;PRE&gt;# curl 'http://localhost:8080/nifi-api/process-groups/&amp;lt;PROCESS GROUP UUID&amp;gt;/template-instance' -H 'Content-Type: application/json' --data-binary '{"templateId":"&amp;lt;THE_TEMPLATE_UUID&amp;gt;","originX":100,"originY":100,"disconnectedNodeAcknowledged":false}' —compressed&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;The rest-api endpoint contains the UUID of the process group in which you will be instantiating your template. You need to include a header like above that defines the content type and then provide "--data-binary" json that includes the template's UUID and the x coordinates on the graph where the template should be placed.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If you found this answer addressed your question, please take a moment to login in and click the "ACCEPT" link.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 01:14:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Truoble-with-creating-templates-and-processors-using-api/m-p/239628#M201437</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-01-03T01:14:29Z</dc:date>
    </item>
  </channel>
</rss>

