英文:
NiFi: How to get all ProcessorType via its REST API?
问题
使用这个NiFi API端点GET "/process-groups/{id}/processors"
,能够获取根处理组中的所有处理器。每个处理器都有一个名为"type"
的属性。因此,要获取所有唯一的处理器类型(例如:ConsumeKafka),我可以遍历所有处理器并查找其"type"
属性。
是否有现有的NiFi REST端点来获取所有唯一的"处理器类型"?如果没有,请建议一种更简单的方法来实现这一目标。谢谢!
英文:
Using this NiFi API end-point GET "/process-groups/{id}/processors"
, able to fetch all processors part of the root Process Group. Each Processor has a property called "type"
. So to fetch all unique Processor Type (Example: ConsumeKafka), I can iterate through all processors and look for its "type"
property.
Is there any existing NiFi REST end-point to fetch all unique "Processor Types"? If not, please suggest an easier way to achieve this. Thank you!
答案1
得分: 2
The nifi-api endpoint you probably want is /flow/processor-types.
There is a reference implementation in my NiFi Python client NiPyAPI
英文:
The nifi-api endpoint you probably want is /flow/processor-types.
There is a reference implementation in my NiFi Python client NiPyAPI
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论