Created 02-07-2017 01:31 PM
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
Created 02-07-2017 02:10 PM
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.
Created 02-07-2017 01:40 PM
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.
Created on 02-07-2017 01:47 PM - edited 08-18-2019 04:31 AM
this ID ? it is not found ..
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'.
Created 02-07-2017 02:10 PM
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.
Created 02-07-2017 02:12 PM
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