You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by "Knapp, Michael" <Mi...@capitalone.com> on 2018/06/19 20:58:50 UTC

exporting the canvas using the rest API

Hi,

My team is developing a platform on Kubernetes that hosts NiFi instances for tenants.  We are not giving tenants direct access to the running NiFi pods (docker containers).  They will only have indirect access through NiFi’s rest API and also through one I am developing.

After a tenant creates their canvas on our platform, I want to provide some means for them to export their canvas XML, basically to let them save it as another docker image.

Unfortunately my own code is finding it impossible to use Kubernetes’s “Exec” service, I already lost a week trying that.  Without that, I cannot easily export the canvas XML (flow.xml).  The exec service would have let my own API run arbitrary commands on the pod (docker container), like cat /path/to/nifi/conf/flow.xml.gz for example.

Is there any easy way for me to get the canvas (flow.xml) from NiFi using NiFi’s rest API?  I am using NiFi 1.3.

Michael Knapp
________________________________________________________

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.