<?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 List existing Nifi templates using REST API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-existing-Nifi-templates-using-REST-API/m-p/181090#M70666</link>
    <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I am trying to write a python script to upload and instantiate templates in Nifi 1.3 using rest API. &lt;/P&gt;&lt;P&gt;I am able to upload the template using upload API /nifi-api/process-groups/root/templates/upload. &lt;/P&gt;&lt;P&gt;But I don't see a way to list all existing templates so that I can update  or delete/reload templates that are already upload. I see some references to API GET /nifi-api/controller/templates in  forums, but that doesn't work any more on Nifi 1.3.&lt;/P&gt;&lt;P&gt;Any suggestions on the write set of API calls to find and update existing Nifi templates are appreciated. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 12:29:02 GMT</pubDate>
    <dc:creator>gopal_unnikrish</dc:creator>
    <dc:date>2022-09-16T12:29:02Z</dc:date>
    <item>
      <title>List existing Nifi templates using REST API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-existing-Nifi-templates-using-REST-API/m-p/181090#M70666</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I am trying to write a python script to upload and instantiate templates in Nifi 1.3 using rest API. &lt;/P&gt;&lt;P&gt;I am able to upload the template using upload API /nifi-api/process-groups/root/templates/upload. &lt;/P&gt;&lt;P&gt;But I don't see a way to list all existing templates so that I can update  or delete/reload templates that are already upload. I see some references to API GET /nifi-api/controller/templates in  forums, but that doesn't work any more on Nifi 1.3.&lt;/P&gt;&lt;P&gt;Any suggestions on the write set of API calls to find and update existing Nifi templates are appreciated. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:29:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-existing-Nifi-templates-using-REST-API/m-p/181090#M70666</guid>
      <dc:creator>gopal_unnikrish</dc:creator>
      <dc:date>2022-09-16T12:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: List existing Nifi templates using REST API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-existing-Nifi-templates-using-REST-API/m-p/181091#M70667</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Use This &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- this lists the resources in the server and formats the templates ids into a api call. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;note: jq &lt;/STRONG&gt;-- formats the output to be readable &lt;/P&gt;&lt;PRE&gt;curl -v -X GET &lt;A href="http://NiFiServerIP:Port/nifi-api/resources" target="_blank"&gt;http://NiFiServerIP:Port/nifi-api/resources&lt;/A&gt; | jq '.' | grep '"/templates/' | awk '{print $2}' | sed 's/\"//g'| sed 's/\/templates//g' | awk '{print "curl -v -X GET http://NiFiServerIP:Port/nifi-api/templates"$1"/download"}'&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;The output should be a Rest Api call:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl -v -X GET &lt;A href="http://NiFiServerIP:Port/nifi-api/templates/885dc02e-cb13-429c-bdvd-9a4e0cbe1212b/download" target="_blank"&gt;http://NiFiServerIP:Port/nifi-api/templates/885dc02e-cb13-429c-bdvd-9a4e0cbe1212b/download&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;In the future if you don`t see how is done in the docs you can always SPY on the&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;nifi-app.log&lt;/STRONG&gt;, it gives you what you need to know.&lt;/P&gt;&lt;P&gt;Hope this helped.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 05:44:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-existing-Nifi-templates-using-REST-API/m-p/181091#M70667</guid>
      <dc:creator>opreaadrian1</dc:creator>
      <dc:date>2017-11-03T05:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: List existing Nifi templates using REST API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-existing-Nifi-templates-using-REST-API/m-p/181092#M70668</link>
      <description>&lt;P&gt;That works perfectly! Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 21:00:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-existing-Nifi-templates-using-REST-API/m-p/181092#M70668</guid>
      <dc:creator>gopal_unnikrish</dc:creator>
      <dc:date>2017-11-03T21:00:22Z</dc:date>
    </item>
  </channel>
</rss>

