Re: Programmatically passing secrets to nifi processor.

2019-12-04 Thread Bahlul Haider
Thank you very much Joe. This is exactly what I needed. I have search for it in some of the API's but I never thought that it would be under /flow. Thanks, Bahlul On Tue, Dec 3, 2019 at 5:23 AM Joe Ferner wrote: > Have a look under Flow in the API. There you'll find GET >

Re: Programmatically passing secrets to nifi processor.

2019-12-03 Thread Joe Ferner
Have a look under Flow in the API. There you'll find GET /flow/parameters-contexts to retrieve a list. On Mon, Dec 2, 2019 at 4:48 PM Bahlul Haider wrote: > Friendly Monday ping. > > Thanks, > Bahlul > > On Wed, Nov 27, 2019 at 10:29 AM Bahlul Haider > wrote: > >> Thank you Mark for your for

Re: Programmatically passing secrets to nifi processor.

2019-12-02 Thread Bahlul Haider
Friendly Monday ping. Thanks, Bahlul On Wed, Nov 27, 2019 at 10:29 AM Bahlul Haider wrote: > Thank you Mark for your for your reply. > > According to the NIFI API documentation , > parameter-contexts is for creating a new parameter context. > [image:

Re: Programmatically passing secrets to nifi processor.

2019-11-27 Thread Bahlul Haider
Thank you Mark for your for your reply. According to the NIFI API documentation , parameter-contexts is for creating a new parameter context. [image: image.png] Yesterday, I blindly tried different "ParameterContextEntry" in the API but failed to list all the

Re: Programmatically passing secrets to nifi processor.

2019-11-27 Thread Mark Bean
The /parameter-contexts endpoint will give you all the parameter contexts which you have permission to access. You will have to parse the JSON to find the name and/or ID. -Mark On Tue, Nov 26, 2019 at 2:54 PM Bahlul Haider wrote: > I was able to use the API's to create parameter context. > >

Re: Programmatically passing secrets to nifi processor.

2019-11-26 Thread Bahlul Haider
I was able to use the API's to create parameter context. Currently my parameter context is stored in the registry (except the secret values). Every time I create a new nifi cluster from the registry, the parameter context gets a different ID. To be able to add the secrets using nifi-api I need to

Re: Programmatically passing secrets to nifi processor.

2019-11-25 Thread Bahlul Haider
Thank you very much Daniel for your reply. Mark pointed me out to Controller API documentation here . I would be happy to contribute if there is any API that needs to be updated. Thanks, Bahlul On Mon, Nov 25, 2019 at 10:40 AM Daniel Chaffelson wrote: >

Re: Programmatically passing secrets to nifi processor.

2019-11-25 Thread Bahlul Haider
Thank you Mark for your quick reply. This is what I was looking for but was unable to find it. I will see if I can create the parameter context using the REST APIs. Thanks, Bahlul On Mon, Nov 25, 2019 at 10:49 AM Mark Bean wrote: > Bahlul, > > You can access parameter contexts via the NiFi

Re: Programmatically passing secrets to nifi processor.

2019-11-25 Thread Mark Bean
Bahlul, You can access parameter contexts via the NiFi REST API. See /parameter-contexts under the Controller in the API documentation. http://nifi.apache.org/docs.html -Mark On Mon, Nov 25, 2019 at 1:12 PM Bahlul Haider wrote: > Friendly Monday morning ping. > > I am looking for a way to

Re: Programmatically passing secrets to nifi processor.

2019-11-25 Thread Daniel Chaffelson
While I haven't implemented it yet, it would be a relatively easy addition to NiPyAPI alongside the existing Variable and Registry functionality. If there is good community demand I can prioritise it, or someone may choose to contribute it. On Mon, 25 Nov 2019, 20:12 Bahlul Haider, wrote: >

Re: Programmatically passing secrets to nifi processor.

2019-11-25 Thread Bahlul Haider
Friendly Monday morning ping. I am looking for a way to programmatically setting/updating parameters in newly created nifi cluster. Thanks, Bahlul On Fri, Nov 22, 2019 at 1:28 PM Bahlul Haider wrote: > Hey Bryan, > > I was able to manually add parameters in a flow and was able to use them. >

Re: Programmatically passing secrets to nifi processor.

2019-11-22 Thread Bahlul Haider
Hey Bryan, I was able to manually add parameters in a flow and was able to use them. However I did not find a way to programmatically create the parameter context values in new nifi cluster. Any help regarding this is greatly appreciated. Happy Friday :-) Thanks, Bahlul On Thu, Nov 21, 2019 at

Re: Programmatically passing secrets to nifi processor.

2019-11-21 Thread Bahlul Haider
Thank you very much Bryan for your quick reply. I actually started with 1.10.0. But when I tried to pass variables to the flow using nifi CLI I was getting an error (see my comments in NIFI 6814: Nifi REST api returns incompatible date format for NiFi Client DTO

Re: Programmatically passing secrets to nifi processor.

2019-11-21 Thread Bryan Bende
Hello, If you can use the latest 1.10.0 release there is a new feature called parameters that will greatly help with this. You can use a new syntax #{my.secret} which will remain in the flow when saved to registry. Then you can use CLI commands for setting the value of the parameter named

Programmatically passing secrets to nifi processor.

2019-11-21 Thread Bahlul Haider
Hello, I am working on automatically starting a flow from registry in newly created nfi clusters. To start the flow, I need to provide some secret values to some of the processors. What is the recommended way of programmatically provide secret of a processor? So far, I have tried NiFi CLI to