Le'ts say we have a CA API Gateway stays in DEV environment, policies are located in multiple folders. Now we need to find a way to automatically deploy new policies to our Production environment. What is the best way to do it?
For example, under the DEV environment, we have
According to the document, we can export each policy and import it one by one. This way maybe too complicated, for example, if we need to promote random numbers of policies every day. It should have a better way, for example, export everything under a given folder and import it to the Production machine?
We have several ways of doing this, but the most widely talked about and used are:
Restman – Exposes the gateway as a restful endpoint
GMU – Gateway Migration Utility – Client side scripts to help interact with your already established service migration.
Principal Consultant, CA API Management Presales
Email = Derek.Orr@ca.com<mailto:Derek.Orr@ca.com>
CA API Management Community: https://communities.ca.com/community/ca-api-management-community
Thanks a lot, Derek,
Yes, I am more familiar with Restman, but not sure which API call I can use? For example, I want to export folder 'ProjectX' as an example listed above, from Server A and import it to server B.
Could you please provide me an example?
GMU is exactly using the restman, as its name suggested, Gateway Migration Utility, it's more easier for you to migrate policies.
A problem of using restman is, the xml you export cannot be used directly for importing. You have to do some transform. The GMU will do that for you.
Thanks ! Yep, Just tried it out, Thanks Zhijun and Derek!
41 ./GMU.sh migrateOut -z properties/local_app.properties --folderName /OTK --defaultAction NewOrUpdate --dest 44 ./GMU.sh migrateIn -z properties/local_app.properties --bundle releases/folder_OTK.xml
Btw, I cannot find the URL to download the GatewayMigrationUtility-1.4.00-85.zip
How can I get the latest version?
The GMU needs to match your gateway version, you can find the GMU component on support.ca.com, (on Download Center, select your gateway version)