Support Questions

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

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

avatar
Explorer
 
1 ACCEPTED SOLUTION

avatar
Explorer

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
Explorer

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']"