How to save all entities in nifi ui into template using rest api?

549 views Asked by At

i having lot of process groups and processors in Nifi UI-0.6.1.Now i need to save all entities as templates using rest api.

In generally snippet ID is needed for create template.

If i have tried snippet ID creation for single process group in below json Contents.

  {
    "revision": {
        "version": 109
    },
     "snippet": {
        "parentGroupId": "root",
       "processGroups":["d3ea576e-d474-4edd-8b11-43071bcaf252"]

    }
}

i could be able created the snippet ID and Template for single process group.

But i need to all entities(ProcessGroups,Processors) in UI to be save as template.

How to create snippetID for all entities in UI?

1

There are 1 answers

2
Bryan Bende On BEST ANSWER

If you create a template from the root canvas with nothing selected, it will include everything in the template. You could open the developer tools in your browser to see what request your browser makes to the NiFi API when you do this.