This topic describes how to view route details and how to edit, publish, unpublish, and delete routing rules of a gateway.
View route details
You can view route details from two locations in the Cloud-native API Gateway console:
API page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose API. In the top navigation bar, select a region.
Click the target API. From the drop-down list, select the desired instance or All Instances.
In the Routes, select the target route.
Instances page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose Instance. In the top navigation bar, select a region.
On the Instance page, click the ID of the target gateway instance. In the left-side navigation pane, choose API, and then click the target API.
In the Routes, select the target route.
You can view the route's Basic Information, Match Rule, and Backend Services.
Modify routing rule
You can modify a routing rule from two locations in the Cloud-native API Gateway console:
API page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose API. In the top navigation bar, select a region.
Click the target API. From the drop-down list, select the desired instance or All Instances.
In the Routes, select the target route.
Instances page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose Instance. In the top navigation bar, select a region.
On the Instance page, click the ID of the target gateway instance. In the left-side navigation pane, choose API, and then click the target API.
In the Routes, select the target route.
Next to the route name, click the
icon and select Edit Route. Alternatively, click Edit Route in the upper-right corner of the Routes.On the Edit Route page, modify the route parameters and click Save or Save and Publish.
Publish a routing rule
You can publish a routing rule from two locations in the Cloud-native API Gateway console:
API page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose API. In the top navigation bar, select a region.
Click the target API. From the drop-down list, select the desired instance or All Instances.
In the Routes, select the target route.
Instances page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose Instance. In the top navigation bar, select a region.
On the Instance page, click the ID of the target gateway instance. In the left-side navigation pane, choose API-level, and then click the target API.
In the Routes, select the target route.
Next to the route name, click the
icon and select Publish Route. Alternatively, click Publish Route in the upper-right corner of the Routes.In the Publish dialog box, click OK. The route is successfully published when its status changes to Published in the Routes.
Unpublish a routing rule
After you unpublish a route, it becomes inaccessible on the specified instance. Proceed with caution.
You can unpublish a routing rule from two locations in the Cloud-native API Gateway console:
API page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose API. In the top navigation bar, select a region.
Click the target API. From the drop-down list, select the desired instance or All Instances.
In the Routes, select the target route.
Instances page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose Instance. In the top navigation bar, select a region.
On the Instance page, click the ID of the target gateway instance. In the left-side navigation pane, choose API, and then click the target API.
In the Routes, select the target route.
Next to the route name, click the
icon and select Shutdown. Alternatively, in the upper-right corner of the Routes, click More and select Shutdown.In the dialog box, click Shutdown. The route is successfully unpublished when its status changes to Unpublished in the Routes.
Debug
Prerequisites
The routing rule must be published.
Procedure
You can debug a route from two locations in the Cloud-native API Gateway console:
API page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose API. In the top navigation bar, select a region.
Click the target API. From the drop-down list, select the desired instance or All Instances.
In the Routes, select the target route.
Instances page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose Instance. In the top navigation bar, select a region.
On the Instance page, click the ID of the target gateway instance. In the left-side navigation pane, choose API, and then click the target API.
In the Routes, select the target route.
Next to the route name, click the
icon and select Debug. Alternatively, click Debug in the upper-right corner of the Routes.In the Route Debugging panel, configure the parameters and click Send Request.
Stress testing
Prerequisites
The routing rule must be published.
Procedure
You can perform load testing on a route from two locations in the Cloud-native API Gateway console:
API page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose API. In the top navigation bar, select a region.
Click the target API. From the drop-down list, select the desired instance or All Instances.
In the Routes, select the target route.
Instances page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose Instance. In the top navigation bar, select a region.
On the Instance page, click the ID of the target gateway instance. In the left-side navigation pane, choose API, and then click the target API.
In the Routes, select the target route.
Next to the route name, click the
icon and select Stress Test. Alternatively, in the upper-right corner of the Routes, click More and select Stress Test. For detailed instructions, see Quick start for PTS load testing.
Delete a routing rule
You must unpublish a route before you can delete it.
Deleting a route is irreversible. Proceed with caution.
You can delete a routing rule from two locations in the Cloud-native API Gateway console:
API page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose API. In the top navigation bar, select a region.
Click the target API. From the drop-down list, select the desired instance or All Instances.
In the Routes, select the target route.
Instances page
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, choose Instance. In the top navigation bar, select a region.
On the Instance page, click the ID of the target gateway instance. In the left-side navigation pane, choose API, and then click the target API.
In the Routes, select the target route.
For an unpublished route, click the
icon next to its name and select Delete. Alternatively, in the upper-right corner of the Routes, click More and select Delete.In the dialog box, click OK.