Importing the API gateway configuration

Use the REST ImportAPIGWConfig request to import the full API gateway configuration.

About this task

To import the API gateway configuration, use the REST ImportAPIGWConfig request. The ImportAPIGWConfig request imports the objects and files that are included in the response to the ExportAPIGWConfig request. You can also specify to import subscription data. Specify the following parameters.
domain
The target domain of the import action. This parameter is optional. When omitted, the default value of apiconnect is used.
Configuration
The base64-encoded ZIP file that contains the configuration to import. This file is extracted from the response of the ExportAPIGWConfig request. This parameter is required.
subscription
The subscription data to import. The subscription data is extracted from the response of the GetDebugProbeData request. For security, client secrets in the subscription data are reset to dptest. This parameter is optional.

The ImportAPIGWConfig request can be submitted only from the default domain.

Procedure

Submit the REST ImportAPIGWConfig request.
The following example is illustrative.
{
  "ImportAPIGWConfig" :
    {
      "domain": "domain_name",
      "subscription": {
        "collection": "collection_name",
        "organization": {
          "id": "organization_ID",
          "name": "organization_name",
          "title": "organization_title"
        },
        "application": {
          "id": "application_ID",
          "name": "application_name",
          "type": "",
          "enabled": true,
          "state": "development",
          "redirects": [
            "redirect_URL"
          ]
        },
        "client": {
          "id": "client_ID",
          "secret": "*****",
          "title": "client_title",
          "plans": [
            {
              "name": "plan_name",
              "status": "enabled"
            }
          ]
        }
      },
      "Configuration" : "export.zip"
    }
}

Results

The ImportAPIGWConfig request creates the target domain and imports the configuration objects, files, and subscription data specified in the request.