Solved! Go to Solution.
Unfortunately, there is no way of doing a bulk download of all your Proxy Bundles. You would either need to do these one at a time through the UI or use a management API Call as below, however, in the API call also, you would need to specify the version number of the bundle you would like to download. You could potentially write a script which will accomplish a bulk download using the call below
curl -v -u $USERID:$USERPASSWORD -X GET "http://management:8080/v1/o/<OrgName>/apis/<ProxyName>/revisions/<Revision number>?format=bundle" > <FileName>.zip
Here's a script that exports all APIs in an organization:
https://github.com/DinoChiesa/EdgeTools/tree/master/bulkExportApis
The way it works: It queries the org for the list of configured API proxies, then for each proxy, queries for the set of revisions, and then, for each combination of Api proxy + Revision, calls that export API to get the zipped bundle.
Unfortunately, there is no way of doing a bulk download of all your Proxy Bundles. You would either need to do these one at a time through the UI or use a management API Call as below, however, in the API call also, you would need to specify the version number of the bundle you would like to download. You could potentially write a script which will accomplish a bulk download using the call below
curl -v -u $USERID:$USERPASSWORD -X GET "http://management:8080/v1/o/<OrgName>/apis/<ProxyName>/revisions/<Revision number>?format=bundle" > <FileName>.zip
Here's a script that exports all APIs in an organization:
https://github.com/DinoChiesa/EdgeTools/tree/master/bulkExportApis
The way it works: It queries the org for the list of configured API proxies, then for each proxy, queries for the set of revisions, and then, for each combination of Api proxy + Revision, calls that export API to get the zipped bundle.
Thanks Dino, I created a similar solution using bash and curls, but your solution is much more elegant.
Can You eloborate how to use this script and usage process to download the Api proxies
@srujan kumar , Added readme that explains how to use this tool, Find same here. Keep us posted if any.
@Dino , Great tool, Submitted pull request with readme info for above tool.
I've merged that change to the readme. Thanks Anil.
You can also leverage Apigee Migrate Tool to migrate API proxies, Developers, Products, Apps, etc. which is based on Grunt.
CC - @shah
Hi Dino
The above solution will also works for on Edge on premise setup ?
If yes, is there any changes required in Git hub scripts ?
Thanks in advance.
Regards,
Hareesh kokkalla
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |