All Products
Search
Document Center

API Gateway:Switch API versions

Last Updated:Jan 23, 2025

Cloud-native API Gateway allows you to switch API versions in the console.

Prerequisites

Procedure

  1. Log on to the Cloud-native API Gateway console.

  2. In the left-side navigation pane, click API. In the top navigation bar, select a region.

  3. In the API list, click the API that you want to manage. Then, click the Publish History tab.

    image

  4. Find the version to which you want to switch the API and click Switch to this Version in the Actions column.

  5. In the dialog box that appears, configure the Publish Description parameter and click Switch.

    The API is switched to the target version and directly published.

    Note

    The latest 10 publishes are retained in the publishing history of each API.

    If you switch the version of an API or operation to a historical one, the historical version takes effect only for the production environment. However, the API or operation definition in the API or operation list will not be overwritten, and you can update the definition and publish it anytime.

What to do next

Find the historical version that you want to view and click View in the Actions column to view the version details.