Support Questions

Find answers, ask questions, and share your expertise
Announcements
Welcome to the upgraded Community! Read this blog to see What’s New!

How to get the id of the root process group in nifi 1.1.2 using curl?

avatar
New Contributor
 
1 ACCEPTED SOLUTION

avatar
New Contributor

Nevermind, I was able to discover it.

export PYTHONIOENCODING=utf8; curl -s -k --cert <cert file> https://127.0.0.1:9443/nifi-api/flow/process-groups/root | python -c "import sys, json; print json.load(sys.stdin) ['processGroupFlow']['id']"

View solution in original post

1 REPLY 1

avatar
New Contributor

Nevermind, I was able to discover it.

export PYTHONIOENCODING=utf8; curl -s -k --cert <cert file> https://127.0.0.1:9443/nifi-api/flow/process-groups/root | python -c "import sys, json; print json.load(sys.stdin) ['processGroupFlow']['id']"

Labels