Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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

avatar
New Contributor

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.