Support Questions
Find answers, ask questions, and share your expertise

How to use Rest API ressource data-transfer?

How to use Rest API ressource data-transfer?

New Contributor

Hi guys,

I want to use the REST API of Nifi in particularly this one:

POST /data-transfer/input-ports/{portId}/transactions/{transactionId}/flow-files

But I'm not to found how I ca get the transactionId?

Can anyone help me?

Best regards

Ismael

1 REPLY 1

Re: How to use Rest API ressource data-transfer?

That REST end-point was introduced when NiFi introduced Site-To-Site over HTTP, previously Site-To-Site was always over TCP. There is a Site-To-Site Java client which probably makes more sense to use rather than going directly to the API:

https://github.com/apache/nifi/blob/master/nifi-commons/nifi-site-to-site-client/src/main/java/org/a...

Set the transport protocol to HTTP.