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.

Apache Nifi - How to use REST api for provenance related search

avatar
Expert Contributor

Hi,

I want to perform provenance search through REST (to retrieve data and utilize it for monitoring etc).

- Currently I dont know what is the correct format for calling /provenance endpoint (essentially doing search, not sure how to specify the search query itself). I tried following on browser, but see a blank page: http://localhost:8080/nifi-api/provenance?uuid=c94ea102-ff9d-4985-a548-fa6611d50e8a

- Following api end point works: http://localhost:8080/nifi-api/provenance/search-options

Any help in resolving this would be highly appreciated.

Thanks

Obaid

1 ACCEPTED SOLUTION

avatar

Hello Obaid,

You can go to help in NiFi and bring up the docs. Scroll down on the left hand pane to the section titled 'developer' and select REST API. The docs can also be found here https://nifi.apache.org/docs.html

From there you can select 'provenance' to get a detailed breakdown of the requests and information necessary for the requests. A really good thing to do is use Chrome's developer tools and use the NiFi UI to create requests. Then you can see precisely what is being done by NiFi's client and you can then emulate the same thing programatically.

Thanks

Joe

View solution in original post

1 REPLY 1

avatar

Hello Obaid,

You can go to help in NiFi and bring up the docs. Scroll down on the left hand pane to the section titled 'developer' and select REST API. The docs can also be found here https://nifi.apache.org/docs.html

From there you can select 'provenance' to get a detailed breakdown of the requests and information necessary for the requests. A really good thing to do is use Chrome's developer tools and use the NiFi UI to create requests. Then you can see precisely what is being done by NiFi's client and you can then emulate the same thing programatically.

Thanks

Joe