Created 03-03-2023 02:43 AM
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.
Created 03-03-2023 05:39 AM
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
Created 03-03-2023 05:03 AM
@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,Created 03-03-2023 05:39 AM
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
Created 03-05-2023 06:59 PM
Yupp..That solved the problem .Thanks