Skip to main content
SAMSAL
Platinum ⭐️⭐️⭐️
May 18, 2022
Question

Calling nifi Api using Postman

Hi,

 

I have a secured Nifi cluster. Im trying to call a nifi api to start\stop processor using postman. I followed the instruction for the api "PUT /processors/{id}/run-status". Provided the Bearer token and the Json Body. However I keep getting 403 Forbidden message. Does anybody know why? I'm able to run other APIs successfully such as getting processor info "GET /processors/{id}"! Im guessing its because Im using SSL secured nifi with jks keystore and truststore, but not sure how to provide this information to postman. Can anyone help please?

 

12 replies

MaarufB
Silver ⭐️⭐️⭐️
October 25, 2022

Hello bro @SAMSAL , were you successfully control the nifi component using postman? If yes, would it be okay to share your countermeasure. Currently encountering the same issue that you had. Thanks in advance.

 

Translate
stainblue
Silver ⭐️
January 16, 2025

Hi @SAMSAL @MaarufB,

I had the same problem but solved it. The root cause was the CSRF security filter, which resulted in a 403 error. You can resolve this by setting the Request-Token header with the cookie value obtained during the access token issuance.

For more details, please refer to the following link:
NiFi Administration Guide - CSRF Protection

Hope this helps!

Translate