Support Questions

Find answers, ask questions, and share your expertise

is there a nifi-api to acces all reporting tasks info

avatar
Explorer

I want to access the reporting task id of a particular reporting task. For doing the same , I thought about fetching all reporting task id and then searching for a particular one. Is there any nifi-api that can give me all the reporting task ids or any other approach to solve this problem.

1 ACCEPTED SOLUTION

avatar

Try using the NiFi REST Api to fetch the desired information 😁


You can get a list of all your reporting tasks by executing a call on the following link: https://<hostname>:<port>/nifi-api/flow/reporting-tasks
This will provide you with a JSON list of all your reporting tasks.


If you want to go in a specific reporting task, you need to make a call to:
https://<hostname>:<port>/nifi-api/reporting-tasks/<id-of-controller>

 

You can go ahead and play with the api calls until you fetch the perfect data for you. All the available calls can be found here: https://nifi.apache.org/docs/nifi-docs/rest-api/index.html

 

View solution in original post

3 REPLIES 3

avatar
Community Manager

@nisha2112, Welcome to our community! To help you get the best possible answer, I have tagged our Nifi experts @MattWho @hegdemahendra @stevenmatison  who may be able to assist you further.

 

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar

Try using the NiFi REST Api to fetch the desired information 😁


You can get a list of all your reporting tasks by executing a call on the following link: https://<hostname>:<port>/nifi-api/flow/reporting-tasks
This will provide you with a JSON list of all your reporting tasks.


If you want to go in a specific reporting task, you need to make a call to:
https://<hostname>:<port>/nifi-api/reporting-tasks/<id-of-controller>

 

You can go ahead and play with the api calls until you fetch the perfect data for you. All the available calls can be found here: https://nifi.apache.org/docs/nifi-docs/rest-api/index.html

 

avatar
Explorer

Yupp..That solved the problem .Thanks