MashZone NextGen 10.2 | Appendix | Administration | MashZone NextGen Server Administration | Deploying MashZone NextGen Instances, Clusters or Artifacts | Importing App Metadata
 
Importing App Metadata
you must have an app export file to import. See Exporting App MetaData for instructions.
If you choose to import dependent mashables or mashups that exist in the export file, you must also define any datasources and drivers used by these mashables or mashups. See Importing Mashable or Mashup MetaData for more information.
1. If it is not started, start the MashZone NextGen Server for the MashZone NextGen Repository where you wish to import data. See Start and Stop the MashZone NextGen Server for instructions.
2. Open a command window and move to the MashZoneNG-install/prestocli/bin folder.
3. Enter this command:
padmin importApps -f input-file [-q filter]
[-s -l prestoURL] -u username -w password
[-c] [-o] [-v]
*-f input-file: is the path and name of the export file to import data from. This may be an XML file or a ZIP file.
*-q filter: defines which apps to import from the export file. The filter can be:
*"all" to import all apps from this export file. You can also use "ALL" or "*".
*"author=list-of-owner-ids", the user ID for a specific user or a list of comma-separated user IDs. This imports apps created by those users.
*"category=list-of-categories", a specific category or a list of comma-separated categories. This imports apps with those categories. Apps with no category are not included.
*"ids=list-of-app-ids", a specific app ID or a list of comma-separated app IDs. This imports those specific apps.
*"name=app-name", the name of a specific app or a list of comma-separated names. This imports apps with those names.
*"provider=list-of-providers", a specific provider or a list of comma-separated providers. This imports apps with those providers. Apps with no provider are not included.
*"tag=list-of-tags" , a specific user-defined tag or a list of comma-separated tags. This imports apps with those tags. Apps with no tags are not included.
*-l prestoUrl: is optional. Use this if the MashZone NextGen Server is remote or is not running in Tomcat on the default Tomcat port. If you omit this option, this defaults to http://localhost:8080/mashzone/edge/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.
*-c: is an optional flag to allow the import process to continue after import errors. By default, any import errors stop all further processing.
*-o: is an optional flag to allow import information for an app to overwrite an existing app with the same ID.
*-s: is an optional flag to import all the dependent mashables or mashups in the import file. Note that imports for dependent artifacts is not affected by any filtering.
*-v: is an optional flag to turn on verbose logging.
Messages and errors from the import process are sent to the console window (stdout).Once the import is successfully finished, you may confirm that apps have been imported in MashZone NextGen Hub.
Example
The following example, imports all the apps from a file named MyorgApps.xml.
padmin importApps -f MyorgApps.xml -u Administrator -w manage
The following example from a Windows environment, imports data from a file named MyorgApps.xml and logs all messages or errors from the import process to a file named AppImport.log.
c:\Program Files\JackBe\version\prestocli> padmin importApps
-f MyorgApps.xml -u Administrator -w manage >> AppImport.log

Copyright © 2013-2018 | 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