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.

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

Solved Go to solution
Highlighted

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

Explorer

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

Accepted Solutions

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

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
Highlighted

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

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.

Highlighted

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

Explorer

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'.

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

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

Highlighted

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

Explorer

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

Don't have an account?
Coming from Hortonworks? Activate your account here