Hi Popleys,
So from what I understand, you have this scenario:
PROD
--CustAPIFolder
--custCreate
DEV
--CustAPIFolder
--newAPI1
--newAPI2
And you want to move the new APIs to PROD so eventually you get this:
PROD
--CustAPIFolder
--custCreate
--newAPI1
--newAPI2
This can be done using three GMU commands, which I'll explain in detail. I'm assuming you have Gateway v9.3, and GMU v1.5 or later. If not we can revisit the steps to take for other versions. I would also take a snapshot of the Gateway if you are on a Virtual Appliance so we can roll back any changes incase something goes amiss. I apologize if you already know some of this information but I figure it's best to provide as much knowledge as possible incase you have immediate questions.
1. $./GatewayMigrationUtility.sh migrateOut--argFile dev.properties --folderName CustAPIFolder --dest apiBundle.xml
- --argFile is a file in which you would describe your hosts, username, passwords, and other arguments
- --folderName means we will export the folder name 'CustAPIFolder' and all it's contents
- --dest is the result of the file export
2. ./GatewayMigrationUtility.sh manageMappings --srcPath /CustAPIFolder --targetPath /CustAPIFolder --type folder --bundle apiBundle.xml
- Here we are modifying our CustAPIFolder folder from our Dev (given by srcPath) to map to the CustAPIFolder folder from Prod (given by targetPath). If your folder names are different in Dev and Prod, this is where you would customize the folder names. Also if for example your CustAPIFolder is nested in other folders, just specify the correct path for your folder (ie, if CustAPIFolder is under a test folder, this is your path: /test/CustAPIFolder).
- --type is the type of entity you are modifying and --bundle is the name of the bundle file to modify.
3. ./GatewayMigrationUtility.sh migrateIn --bundle apiBundle.xml --argFile prod.properties --results apiBundleResults.xml --test
- Here we are applying the migrateIn in test mode. Similar to migrateOut, prod.properties contains host, username, password, and other information needed for migration. In the results file generated, we should see that the APIs have a "CreatedNew" action taken, and the folder which we changed to map by path should have "UsedExisting" action taken.
- When this is satisfactory, rerun the command without the --test option
Let me know if this worked for you and if you have any other questions.