To find the field names you need to use in the JSON, you can look at the code in GitHub.
Look at the `name`s of the PropertyDescriptors in the class - https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-dbcp-service/src/main/java/org/apache/nifi/dbcp/DBCPConnectionPool.java#L106 for example --- *Chris Sampson* IT Consultant [email protected] <https://www.naimuri.com/> On Thu, 3 Dec 2020 at 15:53, Bryan Bende <[email protected]> wrote: > Hello, > > We need to add documentation around this, but right now you can see > examples in the JIRA which added these commands: > > https://issues.apache.org/jira/browse/NIFI-6112 > > Thanks, > > Bryan > > On Thu, Dec 3, 2020 at 10:31 AM Huan Yan <[email protected]> > wrote: > > > > Hello, > > > > I am currently trying to make a controller service using the NiFi CLI > with > > the create-service argument. I have already been able to do other CLI > > commands such as pull from the registry but I cannot figure out how to be > > able to define the controller service in the input file. > > > > It seems that the input file is supposed to be JSON but what do I need to > > put for the fields? For instance I am trying to make a DBCPConnectionPool > > with the CLI. How do I map these fields in a JSON file by name? > > > > Thanks for your help >
