Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to export and import all Apigee Edge objects related to an org?

Tags:

apigee

Are there scripts for exporting and importing all Apigee Edge objects, such as developers, users, apps, caches, key value maps, etc?

To clarify, it would be nice to have non-runtime objects as a priority vs. the runtime data contained within. E.g., the current content of caches are not as critical as just having the cache object available.

like image 225
akoo1010 Avatar asked Jan 14 '14 22:01

akoo1010


2 Answers

I have released a tool that can be used to retrieve Apigee organization settings. This tool has been in use internally at Apigee for some time, but this is the first time it has been released to the public. It uses the Apigee management API to pull configuration data, and that data to be pulled is configurable. The data is stored in a hierarchical directory structure, which can be archived, explored, or used to compare organizations. It can be used with both the Apigee Edge cloud and on-prem offerings.

A few caveats:

  1. This tool does not retrieve all data from an organization. For example, it does not retrieve API proxies. Use the Apigee management UI or management API to retrieve API proxies.

  2. The tool is composed of a few bash scripts. It has been successfully run on Linux and Mac OS X.

  3. The tool does not write data back into the organization, although the files it retrieves can often be POSTed back to the organization using the management API.

  4. This tool is released as-is. It is not officially supported by Apigee.

Find the tool at the api-platform samples site (https://github.com/apigee/api-platform-samples) in the tools/org-snapshot directory.

like image 72
Mike Dunker Avatar answered Dec 28 '22 08:12

Mike Dunker


There is work planned to provide a tool that will export/import provisional data (such as apps, developer, products). Other aspects of an org's configuration require access to the production Cassandra database, which cannot be given out publicly. We have a provisional tool for in-house use that we are currently hardening. If the consumer tool (when it is available) doesn't provide all of the backup support you need, you will need to log a support ticket for them to run the in-house tool.

like image 27
Mike Malloy Avatar answered Dec 28 '22 06:12

Mike Malloy