This page applies to Apigee and Apigee hybrid.
View Apigee Edge documentation.
You may want to download an API proxy configuration bundle (as a zip file) from Apigee to perform one of the following tasks:
- Import an API proxy using the API proxy configuration bundle to another organization, as described in Importing an API proxy from an API proxy bundle.
- Unzip the API proxy to your local system. This is useful for setting up file-based API proxy development in source control or viewing the file-based version of the resources. If you modify the API proxy configuration locally, you can upload your changes as a new revision of your API proxy.
The following sections describe how to download and upload an API proxy configuration bundle. For information about the expanded contents of the zip file, see API proxy configuration directory structure.
Video
Watch the following video to learn more about downloading and uploading an API proxy configuration bundle.
Video | Description |
---|---|
Download API proxy (Apigee) | Download an API proxy using the Apigee UI and API. |
Downloading an API proxy configuration bundle
Download an API proxy configuration bundle, as described in the following sections.
Classic Apigee UI
To download an API proxy configuration bundle using the Apigee UI:
- Open the API proxy in the API proxy editor.
- Click the Develop tab.
- Select the API proxy revision that you want to download in the Revision drop-down.
- Select Revision n > Export revision n, where n specifies the selected revision.
Apigee API
To download an API proxy configuration bundle using the API, see Get API proxy revision.
To view the contents of the API proxy configuration bundle, create a new directory and expand the zip file using a utility such as unzip
,
as shown in the following example:
mkdir myappdir
unzip ./my-app_app_rev3_2019_04_20.zip -d myappdir
For more information about the expanded contents of the zip file, see API proxy configuration directory structure.
Uploading an API proxy configuration bundle
Before you upload an API proxy configuration bundle, re-archive the API proxy configuration bundle directory if you have modified it,
including any new or changed files. You can use a
utility such as zip
, as the following example shows:
zip my-new-proxy.zip -r .
The top-level directory in the zip file must be /apiproxy
. For more information about the required directory structure,
see API proxy configuration directory structure.
Upload an API proxy configuration bundle, as described in the following sections.
Classic Apigee UI
To upload an API proxy configuration bundle and create a new API proxy, see Importing an API proxy from an API proxy bundle
To upload an API proxy configuration bundle and create a new revision of an existing API proxy:
- Open the API proxy in API proxy editor.
- Click the Develop tab.
- Select the API proxy revision that you want to download in the Revision drop-down.
- Select Revision n > Import revision.
- Click Choose File and navigate to the zip file in your local directory and click Open.
- Click Upload
If you get an error, such as
Bundle is invalid. Empty bundle
, then make sure your zip file's top-level directory is/apiproxy
. If it isn't, re-archive your API proxy configuration files from the root of the expanded directory.
After uploading your new API proxy configuration, Apigee increments the revision number and displays the new revision. Apigee does not deploy the new revision automatically after you upload it. To deploy the new revision, see Deploying an API proxy.
Apigee API
To upload an API proxy configuration using the API, see Update an existing API proxy revision