Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Possible to exclude 'descriptor' field from NiFi REST API?

Solved Go to solution

Possible to exclude 'descriptor' field from NiFi REST API?

Explorer

When working with the NiFi REST API and no UI is it possible to exclude the processor's config -> descriptors field from the JSON response? Simply looking to avoid the large volume of useless data during development.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Possible to exclude 'descriptor' field from NiFi REST API?

Some API calls have a recursive and non-recursive attribute, but I wouldn't count on that being ubiquitous. If you're interacting with the API from a command line, I can't recommend 'jq' enough. Pipe the output of e.g. curl call into this JSON parser/query processor. It also adds syntax highlighting as an extra bonus.

1 REPLY 1
Highlighted

Re: Possible to exclude 'descriptor' field from NiFi REST API?

Some API calls have a recursive and non-recursive attribute, but I wouldn't count on that being ubiquitous. If you're interacting with the API from a command line, I can't recommend 'jq' enough. Pipe the output of e.g. curl call into this JSON parser/query processor. It also adds syntax highlighting as an extra bonus.

Don't have an account?
Coming from Hortonworks? Activate your account here