Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

hello i have a procesor with this id c4305271-3f44-1644-0000-00005c2a9cc7 how i can get the processor name with nifi API

avatar

hello i have a procesor with this id c4305271-3f44-1644-0000-00005c2a9cc7 how i can get the processor name with nifi API

1 ACCEPTED SOLUTION

avatar

Hi @ibrahima diattara
You should be able to use the below rest api example, and the "name" will be listed in the output.

curl -i -X GET http://<your nifi host>:9090/nifi-api/processors/41ffd1f6-0165-1000-0000-00006974a11c

View solution in original post

4 REPLIES 4

avatar

Hi @ibrahima diattara
You should be able to use the below rest api example, and the "name" will be listed in the output.

curl -i -X GET http://<your nifi host>:9090/nifi-api/processors/41ffd1f6-0165-1000-0000-00006974a11c

avatar
@ibrahima diattara

Below API should get you the processor name.

curl -i -X GET http://localhost:9090/nifi-api/flow/search-results?q=<name(or)id>;

Hope this helps.

avatar
Expert Contributor
@ibrahima diattaraYou can get that information using API call

http://hostname:9090/nifi-api/processors/c4305271-3f44-1644-0000-00005c2a9cc7

Sample output would look like

{"revision":{"clientId":"41fc6ab0-0165-1000-a1fc-4df6aad14b3f","version":2},"id":"42010d71-0165-1000-0000-000011d8c855","uri":"http://hostname:9090/nifi-api/processors/42010d71-0165-1000-0000-000011d8c855","position":{"x":572.0,"y":402.0},"permissions":{"canRead":true,"canWrite":true},"bulletins":[],"component":{"id":"42010d71-0165-1000-0000-000011d8c855","parentGroupId":"329be04d-0165-1000-a159-adcb3e6903f8","position":{"x":572.0,"y":402.0},"name":"GetFile","type":"org.apache.nifi.processors.standard.GetFile","bundle":{"group":"org.apache.nifi","artifact":"nifi-standard-nar","version":"1.5.0.3.1.2.0-7"},"state":"STOPPED","style":{},"relationships":[{"name":"success","description":"All files are routed to 

There in the name field you will get the processor name

Note: Please mark this answer as accepted and upvote if it resolves your issue

avatar

thxt

it works well