Help Center> API Gateway> User Guide> Old Console> VPC Channel Management> Editing Cloud Server Configurations of a VPC Channel
Updated on 2023-05-06 GMT+08:00

Editing Cloud Server Configurations of a VPC Channel

Scenario

You can add or remove cloud servers and edit cloud server weights for VPC channels to meet service requirements.

Prerequisites

You have created a VPC channel.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region.
  3. Click in the upper left corner and choose API Gateway.
  4. Choose a gateway type in the navigation pane.

    • Shared Gateway: You can create and manage APIs immediately. You will be billed based on the number of API calls.
    • Dedicated Gateways: You can create and manage APIs after purchasing a gateway. You will be billed based on the usage duration of the gateway.

  5. In the navigation pane, choose API Publishing > VPC Channels.
  6. Click the name of the target VPC channel.
  7. Click the Cloud Servers tab.
  8. Add or remove cloud servers and edit cloud server weights.

    • Adding cloud servers
      1. Click Select Cloud Server.
      2. Select the cloud servers you want to add, set cloud server weights, and click OK.

        To ensure a successful health check and service availability, configure the security groups of the backend cloud servers to allow access from 100.125.0.0/16.

    • Removing cloud servers
      1. In the Operation column of the cloud servers you want to remove, click Remove.
      2. Click Yes.
    • Editing the weight of a cloud server
      1. In the Weight column of the target cloud server, click .
      2. Change the weight and click .
    • Editing the weights of multiple cloud servers
      1. Select the cloud servers to be edited, and click Edit Weight.
      2. Change the weights of the selected cloud servers, and click OK.

Editing Cloud Server Configurations of a VPC Channel by Calling an API

You can also edit cloud server configurations of a VPC channel by calling an API provided by APIG. For details, see Adding Backend Instances (Cloud Servers).