Code Monkey home page Code Monkey logo

apigee-migrate-tool's Introduction

Apigee Organization Data Migration Tool

##Features

  1. Export Data from an org
    • Developers
    • Proxies (latest version)
    • Products
    • Apps
    • App Keys
    • KVM (Org and Env)
  2. Import Data to an org
    • Developers
    • Proxies (latest version) and deploy them
    • Products
    • Apps
    • App Keys
    • KVM (coming soon)
  3. Import Data from csv file to an org
    • Developers
    • Apps
    • App Keys
    • KVM (Org and Env)

License - MIT

##Installation

  1. Download and Install node - http://nodejs.org/download/

  2. Open a command prompt and install grunt using the command

    npm install -g grunt-cli

  3. Download the tool or git clone the repo.

  4. Install the node dependencies

    npm install

  5. Edit the config.js file to suit your environment

    module.exports = {
    
    	from: {
    		version: 'R22',
    		url: 'http://mgmt-server’,
    		userid: 'user-id’,
    		passwd: 'your-password',
    		org: 'your-org',
    		env: 'your-env'
    	},
    	to: {
    		version: '14.0.7',
    		url: 'http://mgmt-server’,
    		userid: 'user-id’,
    		passwd: 'your-password',
    		org: 'your-org',
    		env: 'your-env'
    	}
    } ;
    
  6. Run “grunt” to get all the grunt tasks.

IMPORTANT

  • It is recommended to take a backup of both the system using the backup scripts provided with the opdk before running this tool.
  • All exports tasks work on the “from” configurations in config.js and store the data in the “data” folder on your local system.
  • All imports and delete tasks work on the “to” configurations in config.js.
  • Deletes made using these scripts cannot be rollbacked. Please use delete commands with caution.

##Usage

  • To export all data type
     grunt exportAll -v
    
    The switch -v is for verbose mode. The following folder structure with data will be created in your current directory.

  • To import Developers
     grunt importDevs -v 
    

You may want to redirect standard out to log files, so they can be reviewed later. It will import all the developers from the data/devs folder to the org specified in the to configuration in your config.js file.

  • For imports run in the following sequence

"importProxies" -> "importDevs"-> "importProducts"-> "importApps"-> "importKeys"

  • By default the importDevs, importApps, importKeys imports all the entities from the respective data folder.

  • To import a specific entities you can pass an argument src as shown below.

     grunt importApps -v --src=./data/apps/*/App*
    

The above command will import all apps starting with "App" irrespective of the developer the app belongs to. For more details on other globbing patterns supported please refer to [Globbing Pattern] (http://gruntjs.com/configuring-tasks#globbing-patterns)

  • To import Developers or Apps from a csv file.
     grunt readCSVDevs -v 
    

The above command will read the input/devs.csv file and generate the developer json files in the data/devs folder. These developers can then be imported to your org using the importDevs command shown earlier. A sample devs.csv file is shown below.

![](https://github.com/shahbagdadi/apigee-migrate-tool/blob/master/image/devs_csv.png)

This will create a corrosponding json in the data/devs/[email protected] as shown below.

You can also imports Apps from csv in a similar way. Take a look at the sample apps.csv in the input folder.

apigee-migrate-tool's People

Contributors

vinit4u16 avatar shahbagdadi avatar

Watchers

James Cloos avatar Sean Case avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.