<?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: NIFI : Create/Backup Template with NIFI-API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124471#M55450</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486"&gt;@Sunile Manjee&lt;/A&gt; : Hi thanks,&lt;/P&gt;&lt;P&gt;I'm trying to make a java restAPI client. &lt;/P&gt;&lt;P&gt;If somebody has already trying create a class for snippet and template, it is wondering if he send to me the definition of these classes.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2017 18:43:59 GMT</pubDate>
    <dc:creator>maykiwogno</dc:creator>
    <dc:date>2017-03-14T18:43:59Z</dc:date>
    <item>
      <title>NIFI : Create/Backup Template with NIFI-API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124467#M55446</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you know create and backup the templates. I've checked NIFI-API but it is not clear for me?&lt;/P&gt;&lt;P&gt;It seems to need post an URI snippsets before create an template.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 18:35:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124467#M55446</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2017-02-24T18:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : Create/Backup Template with NIFI-API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124468#M55447</link>
      <description>&lt;PRE&gt;Create a snippet via http post&lt;/PRE&gt;&lt;P&gt;uri example&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://mynifiinstance.com:9091/nifi-api/snippets" target="_blank"&gt;https://mynifiinstance.com:9091/nifi-api/snippets&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Body which includes my parent process group id and and my process group id&lt;/P&gt;&lt;PRE&gt;{
	"snippet": {
		"parentGroupId": "69ea5920-0157-1000-0000-0000028e1b90",
		"processors": {},
		"funnels": {},
		"inputPorts": {},
		"outputPorts": {},
		"remoteProcessGroups": {},
		"processGroups": {
			"7ce7597d-0157-1000-ffff-ffffc161e771": {
				"clientId": "50b3ec1a-c123-1e4f-718c-b0323fb1e175",
				"version": 0
			}
		},
		"connections": {},
		"labels": {}
	}
}
&lt;/PRE&gt;&lt;P&gt;This will return a snippet json object&lt;/P&gt;&lt;PRE&gt;{
	"snippet": {
		"id": "50b3ec79-c123-1e4f-0000-000009e32e47",
		"uri": "https://hdf20-0.field.hortonworks.com:9091/nifi-api/process-groups/69ea5920-0157-1000-0000-0000028e1b90/snippets/50b3ec79-c123-1e4f-0000-000009e32e47",
		"parentGroupId": "69ea5920-0157-1000-0000-0000028e1b90",
		"processGroups": {
			"7ce7597d-0157-1000-ffff-ffffc161e771": {
				"clientId": "50b3ec1a-c123-1e4f-718c-b0323fb1e175",
				"version": 0
			}
		},
		"remoteProcessGroups": {},
		"processors": {},
		"inputPorts": {},
		"outputPorts": {},
		"connections": {},
		"labels": {},
		"funnels": {}
	}
}
&lt;/PRE&gt;&lt;P&gt;Here you grab the snippet Id and do a HTTP post&lt;/P&gt;&lt;P&gt;uri&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://mynifiinstance.com:9091/nifi-api/process-groups/69ea5920-0157-1000-0000-0000028e1b90/templates" target="_blank"&gt;https://mynifiinstance.com:9091/nifi-api/process-groups/69ea5920-0157-1000-0000-0000028e1b90/templates&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;body&lt;/P&gt;&lt;PRE&gt;{
	"name": "dummy5",
	"description": "",
	"snippetId": "50b3ec79-c123-1e4f-0000-000009e32e47"
}
&lt;/PRE&gt;&lt;P&gt;Now you have a template created with name "dummy5"&lt;/P&gt;&lt;P&gt;The response from this post is the template ID which you can then use nifi rest get api /templates/{id}/download &lt;/P&gt;&lt;P&gt;Here is response with template id&lt;/P&gt;&lt;PRE&gt;{  
   "template":{  
      "uri":"https://mynifiinstance.com:9091/nifi-api/templates/522819e6-e721-3c6b-95a4-81a0591fc9a3",
      "id":"522819e6-e721-3c6b-95a4-81a0591fc9a3",
      "groupId":"69ea5920-0157-1000-0000-0000028e1b90",
      "name":"dummy5",
      "description":"",
      "timestamp":"02/25/2017 03:36:17 UTC",
      "encoding-version":"1.0"
   }
}
&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Feb 2017 11:22:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124468#M55447</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2017-02-25T11:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : Create/Backup Template with NIFI-API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124469#M55448</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486"&gt;@Sunile Manjee&lt;/A&gt; : thanks !!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 17:34:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124469#M55448</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2017-02-27T17:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : Create/Backup Template with NIFI-API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124470#M55449</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486" target="_blank"&gt;@Sunile Manjee&lt;/A&gt; : the documentation about REST-API NIFI it is not clear !!&lt;/P&gt;&lt;P&gt;Why all parameters are optional in the documentation and so if we post a curl with minimum parameters it will failed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13081-snippets-optional.jpg" style="width: 705px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22716i7DB74D13B85DDFD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13081-snippets-optional.jpg" alt="13081-snippets-optional.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:14:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124470#M55449</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2019-08-19T10:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : Create/Backup Template with NIFI-API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124471#M55450</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486"&gt;@Sunile Manjee&lt;/A&gt; : Hi thanks,&lt;/P&gt;&lt;P&gt;I'm trying to make a java restAPI client. &lt;/P&gt;&lt;P&gt;If somebody has already trying create a class for snippet and template, it is wondering if he send to me the definition of these classes.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 18:43:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/124471#M55450</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2017-03-14T18:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : Create/Backup Template with NIFI-API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/290792#M55451</link>
      <description>&lt;P&gt;Hey! Can you please explain more how to create an apache NIFI template?!&amp;nbsp;&lt;BR /&gt;Actually I need to know is it possible to generate an Apache NiFi template using JAVA ??&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 08:52:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-Create-Backup-Template-with-NIFI-API/m-p/290792#M55451</guid>
      <dc:creator>maryem</dc:creator>
      <dc:date>2020-03-02T08:52:47Z</dc:date>
    </item>
  </channel>
</rss>

