Export and import APIs

Updated at:

Mobile Gateway Service lets you export APIs as a .txt file to apply the configuration to other environments or applications. You can also import an API configuration and apply it to the current environment. This topic describes how to export and import APIs.

Export APIs

You can select which APIs to export. The export operation also includes any associated groups and data models.

Note

Only HTTP APIs can be exported.

Follow these steps:

  1. Log on to the mPaaS console. In the navigation pane on the left, click the Mobile Gateway menu.

  2. On the API Management tab, click More > Export API.

  3. In the Selected APIs column, select the APIs to export.

  4. Click the OK button to start the export. The exported APIs are saved in a .txt file.

Import APIs

To ensure system stability, select the Keep import policy.

Procedure

  1. On the API Management tab, click More > Import API.

  2. Verify that the AppID and current environment are correct.

  3. Select an Import Policy. This policy is used when the imported configuration conflicts with an existing configuration.

    • Keep: If the imported configuration conflicts with an existing one, the existing configuration is kept and the imported one is discarded.

    • Overwrite: If the imported configuration conflicts with an existing one, the imported configuration replaces the existing one.

  4. Click Upload File and select the API file to import.

  5. Click the OK button to start the import. After the import is successful, the results are displayed.