apigee_environment_migrationtool
v0.0.3
Published
A command-line tool to move KVM values to Apigee environment configurations
Downloads
3
Readme
Apigee Environment Configuration Migration Tool
This a commandline tool built on NodeJs to migrate Apigee environment configurations (KeyValueMaps, Target Servers) across different environments. It leverages the JSON request structure used by Apigee Management APIs.
##Features
KeyValueMap (KVM)
- Create a new KVM
- Update an existing KVM
- Create a new entry in KVM
- Update an existing entry in KVM
TargetServer
- Create a new TargetServer
- Update an existing TargetServer
##Installation
- Clone the project to local file system or use npm install -g apigee_environment_migrationtool skip bleow steps
- Open the command prompt
- Navigate to the project directory
- npm install -g
- Run "apigee_environment_migrationtool"
##Usage
- To create/update KVM entries apigee_environment_migrationtool -u -f -o -e -t kvm
Sample KVM json file -
[ { "name" : "KVM_1", "entry" : [ { "name" : "Key1", "value" : "value_1" }, { "name" : "Key2", "value" : "value_2" }, { "name" : "Key3", "value" : "value_3" } ] }, { "name" : "KVM_2", "entry" : [ { "name" : "Key4", "value" : "value_4" }, { "name" : "Key5", "value" : "value_5" } ] } ]
- To create/update TargetServer apigee_environment_migrationtool -u -f -o -e -t targetserver
Sample TargetServer json file -
[ { "host": "https://www.server1.com", "isEnabled": true, "name": "Server_1", "port": 443 }, { "host": "https://www.server2.com", "isEnabled": true, "name": "Server_2", "port": 443 } ]
##Help -u ----> Apigee Administrator Username -f ----> Path to the KVM / TargetServer JSON file -o ----> Apigee Organization Name -e ----> Apigee Environment (e.g. dev/test) -t ----> Type (kvm or targetserver)