Created 08-16-2018 09:02 AM
hello i have a procesor with this id c4305271-3f44-1644-0000-00005c2a9cc7 how i can get the processor name with nifi API
Created 08-16-2018 09:17 AM
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
Created 08-16-2018 09:17 AM
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
Created 08-16-2018 09:20 AM
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.
Created 08-16-2018 09:20 AM
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
Created 08-16-2018 01:48 PM
thxt
it works well