Created 09-21-2023 12:48 PM
Hi,
I have a python code which is trying to authenticates to my NIFI server and start a processor inside it.
Please see code below:
Created 09-22-2023 01:36 AM
Any feedback will be appreciated. Thanks.
Created 09-22-2023 08:56 AM
@Kiranq
The NiFi rest-api endpoint for obtaining token is not rest-api/access.
It is rest-api/access/token
https://<nifi-hostname>:<nifi-port>/nifi-api/access/token
and data passed like:
--data-raw 'username=<username>&password=<user password>'
Then the token needs to be passed with every subsequent rest-api request.
If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "Accept as Solution" on one or more of them that helped.
Thank you,
Matt