Support Questions

Find answers, ask questions, and share your expertise
Announcements
Now Live: Explore expert insights and technical deep dives on the new Cloudera Community BlogsRead the Announcement

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

avatar
New Member
 
1 ACCEPTED SOLUTION

avatar
New Member

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 Member

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