获取所有ProcessorType的方法是通过其REST API进行的。

huangapple go评论93阅读模式
英文:

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

huangapple
  • 本文由 发表于 2020年7月28日 20:39:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/63134352.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定