This topic describes how to view route details and how to edit, publish, unpublish, and delete routing rules of a gateway.
View route details
Cloud-native API Gateway provides two ways to view route details: from outside an instance and from inside an instance:
From outside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select API, and select a region in the top menu bar.
Click the target API. You can select the instance for which you want to view route details from the drop-down list, or select All Instances.

Select the target route from the Route List.
From inside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select Instances, and select a region in the top menu bar.
On the Instances page, click the ID of the target gateway instance. In the left-side navigation pane, select API, and click the target API.
Select the target route from the Route List.
You can view the Basic Information, Matching Rules, and Backend Service of the route.
Edit routing rules
Cloud-native API Gateway provides two ways to edit routing rules: from outside an instance and from inside an instance:
From outside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select API, and select a region in the top menu bar.
Click the target API. You can select the instance for which you want to edit routing rules from the drop-down list, or select All Instances.

Select the target route from the Route List.
From inside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select Instances, and select a region in the top menu bar.
On the Instances page, click the ID of the target gateway instance. In the left-side navigation pane, select API, and click the target API.
Select the target route from the Route List.
Click
Edit Route under Ingress List Edit Ingress next to the route name. Or click in the upper-right corner of the dialog box.On the Edit Route page, modify the route parameters, and then click Save or Save And Publish.
Publish routing rules
Cloud-native API Gateway provides two ways to publish routing rules: from outside an instance and from inside an instance:
From outside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select API, and select a region in the top menu bar.
Click the target API. You can select the instance for which you want to publish routing rules from the drop-down list, or select All Instances.

Select the target route from the Route List.
From inside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select Instances, and select a region in the top menu bar.
On the Instances page, click the ID of the target gateway instance. In the left-side navigation pane, select API, and click the target API.
Select the target route from the Route List.
Click
Publish Route under Ingress List Advertise Routes next to the route name. Or click in the upper-right corner of the dialog box.In the Publish dialog box, click OK. When Published is displayed for the route in the Route List, the route is published.
Unpublish routing rules
After a route is unpublished, the route cannot be accessed in the specified instance. Exercise caution when you perform this operation.
Cloud-native API Gateway provides two ways to unpublish routing rules: from outside an instance and from inside an instance:
From outside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select API, and select a region in the top menu bar.
Click the target API. You can select the instance for which you want to unpublish routing rules from the drop-down list, or select All Instances.

Select the target route from the Route List.
From inside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select Instances, and select a region in the top menu bar.
On the Instances page, click the ID of the target gateway instance. In the left-side navigation pane, select API, and click the target API.
Select the target route from the Route List.
Click
Unpublish under Ingress List More Operations Unpublish next to the route name. Or click under in the upper-right corner of the dialog box.In the dialog box, click Unpublish. When Not Published is displayed for the route in the Route List, the route is unpublished.
Debug
Prerequisites
You have published routing rules.
Procedure
Cloud-native API Gateway provides two ways to debug routes: from outside an instance and from inside an instance:
From outside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select API, and select a region in the top menu bar.
Click the target API. You can select the instance for which you want to debug routes from the drop-down list, or select All Instances.

Select the target route from the Route List.
From inside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select Instances, and select a region in the top menu bar.
On the Instances page, click the ID of the target gateway instance. In the left-side navigation pane, select API, and click the target API.
Select the target route from the Route List.
Click
Debug under Ingress List Debug next to the route name. Or click in the upper-right corner of the dialog box.In the Route Debugging panel, configure the parameters and click Send Request to debug the route.
Stress test
Prerequisites
You have published routing rules.
Procedure
Cloud-native API Gateway provides two ways to stress test routes: from outside an instance and from inside an instance:
From outside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select API, and select a region in the top menu bar.
Click the target API. You can select the instance for which you want to debug routes from the drop-down list, or select All Instances.

Select the target route from the Route List.
From inside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select Instances, and select a region in the top menu bar.
On the Instances page, click the ID of the target gateway instance. In the left-side navigation pane, select API, and click the target API.
Select the target route from the Route List.
Click
Stress Test under Ingress List More Operations Stress Testing PTS pressure testing quick start next to the route name. Or click under in the upper-right corner of the dialog box. For more information, see.
Delete routing rules
If the current route is published, you need to unpublish the route before you can delete it.
After a route is deleted, it cannot be recovered. Exercise caution when you perform this operation.
Cloud-native API Gateway provides two ways to delete routing rules: from outside an instance and from inside an instance:
From outside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select API, and select a region in the top menu bar.
Click the target API. You can select the instance for which you want to delete routing rules from the drop-down list, or select All Instances.

Select the target route from the Route List.
From inside an instance
Log on to the Cloud-native API Gateway console. In the left-side navigation pane, select Instances, and select a region in the top menu bar.
On the Instances page, click the ID of the target gateway instance. In the left-side navigation pane, select API, and click the target API.
Select the target route from the Route List.
Click
Delete under Ingress List More Operations Delete next to the name of the successfully unpublished route, or click under in the upper-right corner of the dialog box.In the dialog box, click OK.