Migrating the API Manager
If you have multiple instances of the WSO2 API Manager and want to move your data and deployment artifacts from one instance to another (such as moving from development to test or production), follow the steps below.
Get a data dump from all the tables in the apimgt schema and dump them to the schema in the new environment.
Open
<APIM_HOME>/repository/conf/datasources/master-datasources.xml
file and provide the datasource configurations for the following databases in the new environment.- User Store
- Registry database
- API Manager Databases
Move all your synapse configurations by copying and replacing
<APIM_HOME>/repository/deployment/server/synapse-config/default
directory to the same directory in the new environment.If you changed the default URLs in
AuthorizeAPI.xml
andTokenAPI.xml
files, do not replace them when copying. They are application-specific APIs.Migrate tenants
- If you have multiple tenants added to your API Manager instance, follow the steps below to migrate tenant configurations:
- Copy the contents from
<APIM_HOME>/repository/tenants
directory to the same directory in the new environment.  - Execute the following steps for all tenants in your system.
Migrate external stores
- Copy the contents from
If you have external stores configured under the
<ExternalAPIStores>
element in<APIM_HOME>/repository/conf/api-manager.xml
file, follow the steps below:Log in to APIM management console and click the Resources -> Browse menu.
Load
/_system/governance/apimgt/externalstores/external-api-stores.xml
resource in the registry browser UI, configure your external stores there and save.
Migrate Google analytics
If you have Google Analytics configured under
<GoogleAnalyticsTracking>
element in<APIM_HOME>/repository/conf/api-manager.xml
file, follow the steps below:Log in to APIM management console and go to Resources -> Browse menu.
Load
/_system/governance/apimgt/statistics/ga-config.xml
resource in the registry browser UI, configure the Google analytics and save.
Migrate workflows
If you have Workflows configured under
<WorkFlowExtensions>
element in<APIM_HOME>/repository/conf/api-manager.xml
file, follow the steps below:Log in to APIM management console and go to Resources -> Browse menu.
Load
/_system/governance/apimgt/applicationdata/workflow-extensions.xml
resource in the registry browser UI, configure your workflows and save.
Upgrading from a Previous Release
See Upgrading from the Previous Release in the following situations:
- The new environment you are migrating to has a different database version. In this case, you must upgrade the older database.
- You want to upgrade from a previous API Manager release to a new one.