Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

How to Fetch Parameters from Parameter Provider and apply to associated process group using NiFi api

avatar

With NiFi toolkit we can use below command to fetch parameters from parameter provider, apply the parameters to parameter group with the mention of sensitive properties:

cli.sh nifi fetch-params --paramProviderId $PCP --applyParameters --sensitiveParamPattern "sens_.*"

 

How can I achieve the same thing using NiFi api. I am planning to use NiFi version 1.21.0.

1 REPLY 1

avatar

@Bhavesh_Solanki Please reference the NiFI Rest API Doc here:

 

https://nifi.apache.org/docs/nifi-docs/rest-api/index.html

 

You will find document blocks for Parameter Contexts & Parameter Providers with the capabilities and requirements for  Parameter based API Calls.   Outside of the required calls to manage parameters, you may need to complete Access steps if you are accessing the rest api from outside of nifi canvas.  If you are using the API within NiFI itself, this step is not necessary.