Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

I need to deploy my NIFI templates (xml files ) into Nifi canvas from REST API calls, I am new to NIFI, is there anyway to do the same through POSTMAN or may be some script.

Solved Go to solution
Highlighted

I need to deploy my NIFI templates (xml files ) into Nifi canvas from REST API calls, I am new to NIFI, is there anyway to do the same through POSTMAN or may be some script.

New Contributor

I need to deploy my NIFI templates (xml files ) into Nifi canvas from REST API calls, I am new to NIFI, is there anyway to do the same through POSTMAN or may be some script. The flow should be visible after the API calls inside the Nifi Canvas. Is that possible? Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

Re: I need to deploy my NIFI templates (xml files ) into Nifi canvas from REST API calls, I am new to NIFI, is there anyway to do the same through POSTMAN or may be some script.

Super Guru

@Varun Yadav

Old Approach:

NiFi supports REST API so you can use those rest api calls using POSTMAN.

Refer to this and this links for more details regards to api calls and import/upload templates.

New Approach:

NiFi also supports Registry, we can commit all the changes that are making to the NiFi flow and also supports version control.

For more details refer to this link how to deploy NiFi flow.

3 REPLIES 3

Re: I need to deploy my NIFI templates (xml files ) into Nifi canvas from REST API calls, I am new to NIFI, is there anyway to do the same through POSTMAN or may be some script.

Super Guru

@Varun Yadav

Old Approach:

NiFi supports REST API so you can use those rest api calls using POSTMAN.

Refer to this and this links for more details regards to api calls and import/upload templates.

New Approach:

NiFi also supports Registry, we can commit all the changes that are making to the NiFi flow and also supports version control.

For more details refer to this link how to deploy NiFi flow.

Re: I need to deploy my NIFI templates (xml files ) into Nifi canvas from REST API calls, I am new to NIFI, is there anyway to do the same through POSTMAN or may be some script.

New Contributor

@Shu Thanks for your answer, i was able to upload a template into Nifi Canvas. Is there any way to upload multiple templates (kept inside one folder) to be uploaded by an api call?

Re: I need to deploy my NIFI templates (xml files ) into Nifi canvas from REST API calls, I am new to NIFI, is there anyway to do the same through POSTMAN or may be some script.

Super Guru
@Varun Yadav

I don't think we can upload multiple templates at one time but you can keep all the templates in one folder and then read the filenames and pass each filename(using a loop) to curl api call to upload the template into NiFi canvas.