Forem

Timothy Spann.   🇺🇦
Timothy Spann. 🇺🇦

Posted on • Originally published at datainmotion.dev on

3 3

Backup and Restore NiFi Registry Templates

Backup and Restore NiFi Registry Templates

Example Backed Up NiFi Flow Excerpt

{

"bucket" : {

"createdTimestamp" : 1566430253392,

"identifier" : "aaa50be8-b994-46b5-a0bb-be245c34b928",

"link" : {

"href" : "buckets/aaa50be8-b994-46b5-a0bb-be245c34b928",

"params" : {

"rel" : "self"

}

},

"name" : "IoT",

"permissions" : {

"canDelete" : true,

"canRead" : true,

"canWrite" : true

}

},

"flow" : {

"bucketIdentifier" : "aaa50be8-b994-46b5-a0bb-be245c34b928",

"bucketName" : "IoT",

"createdTimestamp" : 1566430269976,

"description" : "Created by MiNiFi C2 Flow Designer",

"identifier" : "56902ff0-62ac-4189-9684-765247c885b5",

"link" : {

"href" : "buckets/aaa50be8-b994-46b5-a0bb-be245c34b928/flows/56902ff0-62ac-4189-9684-765247c885b5",

"params" : {

"rel" : "self"

}

},

"modifiedTimestamp" : 1567693783102,

"name" : "raspianjava",

"type" : "Flow",

"versionCount" : 10

Restoring Backed Up NiFi Flows

http://nifi.apache.org/docs/nifi-registry-docs/rest-api/index.html

To restore an Apache NiFi registry flow file.

Create a flow

POST

/buckets/{bucketId}/flows

Creates a flow

Using bucket id, upload a flow via POST and get a new flow id

Create a version of a flow

POST with that bucket id and flow id

/buckets/{bucketId}/flows/{flowId}/versions

Creates the next version of a flow

Scripted NiFi Registry Backups for DevOps Processing

You can also backup and restore NiFi Registry using the NiFi Python API or REST API directly.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay