Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Use data feeds | Exporting data feeds
 
Exporting data feeds
You can export your MashZone NextGen data feeds.
Export creates an export file that you can use to import data feeds to MashZone NextGen.
Procedure
1. Open a command window and move to the MashZoneNG-install/prestocli/bin folder.
2. Enter this command:
padmin exportFeed -i identifier [-f output-file] [-l prestoURL]
-u username -w password [-v] [-o]
*-i identifier: mandatory data feed identifier. It can be "id=", "name=" or "all", enclosed in quots.
-i "name=feedname": If there are multiple data feeds with the same name then only the first founded data feed will be exported.
-i "id=43243244434432": The data feed id (Guid) is unique in the MashZone NextGen system.
-i "all": Export of all data feeds for that user.
*-f output-file: an optional path and name for the export file to put data feeds. If omitted, this generates an output zip file in the folder where this command is executed:
*Single export with option -i "id=3456" or "name=name" create a new file with name "name_guid.zip"
*Multiple export with option -i "all" create a new file datafeed-export-timestamp.zip
This file must not already exist, unless you also use the -o option.
*-l prestoUrl: is optional. Use this if the MashZone NextGen Server is remote or if it is not running in Tomcat on the default Tomcat port. If you omit this option, this defaults to http://localhost:8080/mashzone/esd/api.
*-u username: is the MashZone NextGen username to log in with. This account must have MashZone NextGen administrator permissions.
*-w password: is the MashZone NextGen password to log in with.
*-v: is an optional flag to turn on verbose logging.
*-o: an optional flag to overwrite an existing export file. If you omit this option, the output file must not already exist.
Once the export command completes successfully, you can use the output file to import data feeds to MashZone NextGen.
Permissions for each data feed were automatically stored into the zip file. If there are not any permissions assigned to the data feed an empty permission file is stored.
There is also an information about the data feed creator stored in the zip file.
Example
padmin exportFeed –l http://localhost:8080/mashzone/esd/api -f feedDefinition.zip
-u Administrator -w manage –i "id=MyFeed"
This created zip file "feedDefinition.zip" contains all information of the data feed "MyFeed" incl. definition and permissions.

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release