How to copy all Policies from API Proxy Bundle before updating it with REST Management API Calls

Hi

I am importing API Proxy bundles and then deploying them using REST API's exposed by Management Server.

Now I update the API Proxy again with Update API Revision using below REST call http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/apis/%7Bapi_name%7D/revisio...

But before updating the same API Proxy, now I want to copy all the policies like Quota Limit & Concurrent RateLimit for Throttling which can be updated manually from Edge UI to be available in bundle which needs to be updated again using REST call above.

So how we can first fetch the current state of the API Proxy bundle and then update the fetched bundle with new API resources/operations and this has to be done automatically.

Thanks in advance for your help

0 1 229
1 REPLY 1

If you haven't looked at it yet, the following maven plugin will take care of it for you

https://github.com/apigee/apigee-deploy-maven-plugin