Pushing provider organization data
Use the AMU to push the provider organization data to the Management server.
About this task
Pushing the provider organization data uploads the ported OAuth Providers, draft APIs, draft products, configured gateway services, and published products to the Management server.
Procedure
-
Log in to the API Manager user interface as an Owner or Administrator of the provider
organization. Important: You must be logged in as the Owner or Administrator of the provider organization whose data you will push.Syntax:
You can determine the./apicm login -s <RI_instance_host_name> -r provider/default-idp-2 -u <username_on_RI><RI_instance_host_name>by logging in to your Reserved instance. In the browser's address bar, note down the host name from the URL.Example:./apicm login -s manager.e113-eef3fa4e.us-south.apic.test.cloud.ibm.com -r provider/default-idp-2 -u RI_Porg_UserTable 1. loginparameters for Provider organizationsParameters Description <RI_instance_host_name>Required. The API Manager URL endpoint on the Management server for communication with the API Manager user interface. For a Reserved instance, this is the host name of the instance. You can determine the host name by logging in to your Reserved instance. In the browser's address bar, note down the host name from the URL as in the following example:https://<RI_instance_host_name>/manager/--realm provider/identity_providerRequired. For a Reserved instance, use default-idp-2as theidentity_provider..-u <username_on_RI>The username for logging in to the Reserved instance's provider organization; the user must be the owner or an admin of the provider organization. -
Push the data for the provider organization.
In the same directory where you ran the
archive:unpack-v10command, run the following command to push the ported data to your API Manager. See the parameters in Table 2 as well as the usage notes that follow the table.Syntax:./apicm archive:push-v10 <RI_instance_host_name> cloud-v10/provider-orgs/<pOrg_name> [optional flags]Example (optional flags are omitted):./apicm archive:push-v10 manager.e113-eef3fa4e.us-south.apic.test.cloud.ibm.com cloud-v10/provider-orgs/production_OrgTable 2. archive:push-v10parameters for provider organizationsParameters Description <RI_instance_host_name>Required. The API Manager URL endpoint on the Management server for communication with the API Manager user interface. For a Reserved instance, this is the host name of the instance. You can determine the host name by logging in to your Reserved instance. In the browser's address bar, note down the host name from the URL as in the following example:https://<RI_instance_host_name>/manager/cloud-v10/provider-orgs/<pOrg_name>Required. The location of your provider org within the /cloud-v10file hierarchy you created when you ran unpacked the data archive; for example:cloud-v10/provider-orgs/production_Org--catalogs=<list_of_names>Optional. Push data for only the specified catalogs if you don't want to push the entire provider organization. Use this parameter to specify the names of the catalogs you want to push (to specify multiple catalogs, use a comma-separated list): ./apicm archive:push-v10 <api-manager-ui-endpoint> cloud-v10/provider-orgs/<pOrg_name> --catalogs=<catalog_name1,catalog_name2,catalog_name3>--spaces=<list_of_names>Optional. Push data for only the specified spaces if you don't want to push the entire provider organization. The --catalogsparameter must also be specified, and exactly one catalog must be specified. Use this parameter to specify the names of the spaces you want to push (to specify multiple spaces, use a comma-separated list). For example:./apicm archive:push-v10 <api-manager-ui-endpoint> cloud-v10/provider-orgs/<pOrg_name> --catalogs=<catalog_name> --spaces=<space_name1>,<space_name2>,<space_name3>--products=<list_of_name:version_pairs>Optional. Push data for only the specified products if you don't want to push the entire provider organization. The --catalogsparameter must also be specified, and exactly one catalog must be specified. If spaces are enabled on the catalog, then the--spacesparameter must also be specified, and exactly one space must be specified. Use this parameter to specify the names and versions of the products that you want to push (to specify multiple products, use a comma-separated list of name:version pairs as shown in the following examples.Example: catalog with spaces
./apicm archive:push-v10 <api-manager-ui-endpoint> cloud-v10/provider-orgs/<pOrg_name> --catalogs=<catalog_name> --spaces=<space_name> --products=<prod_name1>:<prod_version1>,<prod_name2>:<prod_version2>,<prod_name3>:<prod_version3>Example: catalog without spaces:
./apicm archive:push-v10 <api-manager-ui-endpoint> cloud-v10/provider-orgs/<pOrg_name> --catalogs=<catalog_name> --products=<prod_name1>:<prod_version1>,<prod_name2>:<prod_version2>,<prod_name3>:<prod_version3>--dry-runOptional. Perform a dry run to test the Admin org migration output. This option creates a project directory similar to
cloud-v10, but titled.workdir-<api-manager-ui-endpoint>where you can view how the data will be loaded into your new system. The option also displays the objects that will fail due to existing already or missing dependencies. Use this option to view the resolved URLs for where the data will be loaded, without creating resources on the new system. See Migration troubleshooting../apicm archive:push-v10 <api-manager-ui-endpoint> cloud-v10/provider-orgs/<pOrg_name> --dry-run--no-draftsOptional. Do not push any draft APIs or products (draft objects are objects that have not been published). ./apicm archive:push-v10 <api-manager-ui-endpoint> <path_to_provider_org> --no-draftsThis option can be used with or without the
--catalogsparameter.--drafts-onlyOptional. Only push ported draft APIs and products, and do not push any published APIs or products (draft objects are objects that have not been published). ./apicm archive:push-v10 <api-manager-ui-endpoint> <path_to_provider_org> --drafts-onlyThis option cannot be used with the
--catalogsor--no-draftsparameters.--overwriteOptional. Overwrite any existing draft products, draft APIs, published products and their APIs, and OAuth Providers that are already on the deployment. If you set this parameter to false, these artifacts will be left intact. --move-subscriptionsOptional. When this option is used, the subscriptions associated with v5-compatible-API-based products that were ported to API DataPower Gateway-based products and successfully pushed to the API Connect deployment will have their subscriptions moved to the new products, and the original v5-compatible-API-based products will be retired. This option can also be used on subsequent archive:push-v10commands to move the subscriptions even after the migrated products are published. Using the--catalogs,--spaces, and--productsparameters with the--move-subscriptionsparameters lets you narrow the set of products to have their subscriptions moved.Usage notes:- On Windows: open a command window with Administrator privileges, and omit the "./" from the command.
- Run the
archive:push-v10command in the same directory where you ran thearchive:unpack-v10command, and always push the ported data back to the same deployment where you extracted the data. - The
logincommand obtains a token that expires after 8 hours.If the token expires while the
archive:push-v10command is running, the AMU generates errors. In this case, log in again and re-run thepushcommand. The token is refreshed every time you log in. For more information, see migration_troubleshooting.html#migration_troubleshooting__token_expire. - The
archive:push-v10command only pushes only the following ported objects: OAuth Providers, draft APIs, draft products, configured gateway services, and published products.
-
Test your newly ported products and APIs to make sure they are working as expected.
If necessary make changes and push the updates to your API Connect deployment.