Cloud-native API Gateway allows you to switch API versions in the console.
Prerequisites
An API is created and an operation is added to it. For more information, see Create a REST API and add an operation to it.
The API is published. For more information, see the Publish an API.
Procedure
Log on to the Cloud-native API Gateway console.
In the left-side navigation pane, click API. In the top navigation bar, select a region.
In the API list, click the API that you want to manage. Then, click the Publish History tab.
Find the version to which you want to switch the API and click Switch to this Version in the Actions column.
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.
NoteThe 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.