All Products
Search
Document Center

API Gateway:Manage operations

Last Updated:Jun 08, 2026

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

Important
  • 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.

  1. 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.

  2. 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.

  3. On the Operation Details tab for the desired operation, click Edit next to Backend Services.

  4. 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).

    Note

    Traffic 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.

    Important

    Port 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

  1. Steps differ depending on whether the API is managed within or outside an instance:

    APIs outside instance

    1. 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.

    2. Click the desired API.

    APIs within instance

    1. 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.

    2. 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.

  2. On the Interface list tab, find the desired operation and click Debug.

  3. 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

  1. 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.

  2. Click the desired API. On the Interface list tab, find the desired operation and click Edit.

  3. In the Edit Operation panel, you can modify Basic Information, Request Definition, Response Definition, Mock, and Consumer certification.

APIs within instance

  1. 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.

  2. 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.

  3. On the Interface list tab, find the desired operation and click Edit.

  4. 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

  1. Steps differ depending on whether the API is managed within or outside an instance:

    APIs outside instance

    1. 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.

    2. Click the desired API.

    APIs within instance

    1. 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.

    2. 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.

  2. On the Interface list tab, find the desired operation, and click More > Stress Test. Quick start for PTS stress tests.

Delete an operation

Important

This action cannot be undone. Proceed with caution.

  1. Steps differ depending on whether the API is managed within or outside an instance:

    APIs outside instance

    1. 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.

    2. Click the desired API.

    APIs within instance

    1. 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.

    2. 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.

  2. On the Interface list tab, find the desired operation, click More > Delete, and click OK to confirm.