Reputation: 21
I want to get all process group but just from the root canvas, when I call canvas.list_all_process_group(pg_id)
I got all pg from all nifi. I am asking if there is any solution to get just from root canvas.
playground_pg=canvas.list_all_process_groups(pg_id=root_pg.id)
Upvotes: 0
Views: 561
Reputation: 1269
You want nipyapi.nifi.ProcessGroupsApi().get_process_groups(pg_id), which only returns the Process Groups from the target, and not from all descendants. The canvas.list_all_process_group(pg_id) is designed to get everything everywhere quickly.
Upvotes: 0
Reputation: 12103
There are canvas.get_process_group
and canvas.get_process_group_status
function, do either of those return what you're looking for?
Upvotes: 0