Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

NIFI : What is ID https://nifi.apache.org/docs/nifi-docs/rest-api/

avatar
Rising Star

Hi all,

The rest API is not clear .. Can you tell me what is {id} ?

GET        /templates/{id}/download

                GET  /flow/process-groups/{id}

Where i can found the ID of templates, for flow ?

thanks

1 ACCEPTED SOLUTION

avatar
Master Guru

Oh right it doesn't show the id in the UI, you will have to first query for all of the templates using this call:

http://localhost:8080/nifi-api/flow/templates

Then you can find the id of the template you want.

View solution in original post

4 REPLIES 4

avatar
Master Guru

Every component in NiFi has a UUID. For process groups you can see the id in the left hand palette when it is selected, for templates the id should be in the table that lists the templates.

avatar
Rising Star

this ID ? it is not found ..

12190-template-id.jpg

curl -H "Content-type: application/json" -X GET https://nifi001:9443/nifi-api/templates/f341121d-0158-1000-36c7-d322df44b3c1/download
Unable to locate template with id 'f341121d-0158-1000-36c7-d322df44b3c1'.

avatar
Master Guru

Oh right it doesn't show the id in the UI, you will have to first query for all of the templates using this call:

http://localhost:8080/nifi-api/flow/templates

Then you can find the id of the template you want.

avatar
Rising Star

Thanks Bryan 🙂

I found this REST API for Create Template but it is not clear how put "the name" of template ..

curl -H "Content-type: application/json" --cacert nifi-cert.pem --cert ./client.p12 -X POST https://nifi001:9443/nifi-api/process-groups/f706d939-0157-1000-9f32-971cfab12b7f/templates

thanks for help