Manage operations in the Cloud-native API Gateway console: specify backend services, add policies, configure consumer authentication, debug operations, and run stress tests.
Specify a backend service
-
Operations added to an API created outside an instance inherit the backend service configuration and cannot be edited.
-
Operations added to an API created within an instance inherit the backend service configuration by default, but you can configure each operation individually.
-
Log on to the Cloud-native API Gateway console. Select a region in the top navigation bar, and then choose Instance in the navigation pane on the left.
-
On the Instance page, click the ID of the desired gateway instance. In the navigation pane on the left, choose APIs, and then click the desired API.
-
On the Operation Details tab for the desired operation, click Edit next to Backend Services.
-
In the Backend Services section, configure the parameters and click OK.
Parameter
Description
Configuration Method
The default Configuration Method is Inherit from API.
-
Configure for Operation Separately: Associates the operation with a specific backend service, overriding the API-level setting.
-
Inherit from API: The operation inherits the backend service associated with its parent API.
Scenario
Select a scenario for the operation.
-
Basic scenarios: Single Service and Mock.
-
Canary release scenarios: By Percentage (Multi-service), By Content (Multi-service), and By Tag (Proportion-based Routing).
NoteTraffic weights for all target services must total 100%.
Backend Services
Associate a backend service within the gateway or VPC. If none exists, click Create Service.
ImportantPort information for a new service may not appear immediately due to asynchronous synchronization. To refresh, expand the Service Name drop-down list and click Refresh.
-
Debug an operation
Prerequisites
You have published the API.
Procedure
-
Steps differ depending on whether the API is managed within or outside an instance:
APIs outside instance
-
Log on to the Cloud-native API Gateway console. Select a region in the top navigation bar, and then choose APIs in the navigation pane on the left.
-
Click the desired API.
APIs within instance
-
Log on to the Cloud-native API Gateway console. Select a region in the top navigation bar, and then choose Instance in the navigation pane on the left.
-
On the Instance page, click the ID of the desired gateway instance. In the navigation pane on the left, choose APIs, and then click the desired API.
-
-
On the Interface list tab, find the desired operation and click Debug.
-
In the Debugging Operation panel, configure the parameters, and then click Send Request.
Edit an operation
Steps differ depending on whether the API is managed within or outside an instance:
APIs outside instance
-
Log on to the Cloud-native API Gateway console. Select a region in the top navigation bar, and then choose APIs in the navigation pane on the left.
-
Click the desired API. On the Interface list tab, find the desired operation and click Edit.
-
In the Edit Operation panel, you can modify Basic Information, Request Definition, Response Definition, Mock, and Consumer certification.
APIs within instance
-
Log on to the Cloud-native API Gateway console. Select a region in the top navigation bar, and then choose Instance in the navigation pane on the left.
-
On the Instance page, click the ID of the desired gateway instance. In the navigation pane on the left, choose APIs, and then click the desired API.
-
On the Interface list tab, find the desired operation and click Edit.
-
In the Edit Operation panel, you can modify Basic Information, Request Definition, Response Definition, and Consumer certification.
Run a stress test
Prerequisites
You have published the API.
Procedure
-
Steps differ depending on whether the API is managed within or outside an instance:
APIs outside instance
-
Log on to the Cloud-native API Gateway console. Select a region in the top navigation bar, and then choose APIs in the navigation pane on the left.
-
Click the desired API.
APIs within instance
-
Log on to the Cloud-native API Gateway console. Select a region in the top navigation bar, and then choose Instance in the navigation pane on the left.
-
On the Instance page, click the ID of the desired gateway instance. In the navigation pane on the left, choose APIs, and then click the desired API.
-
-
On the Interface list tab, find the desired operation, and click . Quick start for PTS stress tests.
Delete an operation
This action cannot be undone. Proceed with caution.
-
Steps differ depending on whether the API is managed within or outside an instance:
APIs outside instance
-
Log on to the Cloud-native API Gateway console. Select a region in the top navigation bar, and then choose APIs in the navigation pane on the left.
-
Click the desired API.
APIs within instance
-
Log on to the Cloud-native API Gateway console. Select a region in the top navigation bar, and then choose Instance in the navigation pane on the left.
-
On the Instance page, click the ID of the desired gateway instance. In the navigation pane on the left, choose APIs, and then click the desired API.
-
-
On the Interface list tab, find the desired operation, click , and click OK to confirm.