A Cloud-native API Gateway instance provides service exposure, traffic management, security protection, and API lifecycle management.
Basic configuration
-
Log on to the Cloud-native API Gateway console. In the left navigation pane, click Instance. On the Instances page, click Instance Creation. On the Cloud-native API Gateway purchase page, configure the following parameters:
-
Product Type: Select Pay-as-you-go or Subscription. See billing overview.
-
Pay-as-you-go: Billed hourly. Usage under one hour is rounded up to a full hour, and bills are settled every hour.
-
Subscription: Billed monthly. A yearly subscription equals 12 months.
-
-
Region: Select the region where your backend services reside. The region cannot be changed after creation.
-
Gateway Name: Enter a custom name (up to 64 characters). Use a name that combines environment and business domain, such as test or order-prod.
-
GatewaySpec: Perform a capacity assessment and select a node specification based on your business requirements.
-
Resource Group: Select an existing resource group or use the default. Resource groups let you manage resources, permissions, and monitoring as a unit. To create one, click Create Resource Group.
-
Network Type: You can select Internet, Private Network, or Public + private network.
-
Internet: Public network access incurs traffic fees billed through Cloud Data Transfer (CDT) on the BGP (Multi-ISP) model. Public network traffic.
-
Private Network: No traffic fees are incurred for access over the private network.
-
Public + private network: Public access incurs CDT traffic fees (BGP Multi-ISP model). Private access is free.
-
-
VPC: Select the VPC where the gateway will run. The gateway and backend services must share the same VPC.
-
Availability zone selection: You can select Auto-assign or Manual select.
-
Auto-assign: Select a vSwitches for the gateway nodes. The system deploys nodes across two availability zones automatically.
-
Manual select: Manually select the Availability zone and vSwitches for the gateway nodes.
-
-
-
Click Buy Now, review the configuration on the Confirm Order page, and click Open now.
Gateway instance creation takes 1 to 5 minutes.
-
On the Instance page, verify that the instance status is Running.
Advanced features
Configure advanced features during instance creation to enable log analysis or Gzip compression. Gzip hardware acceleration can only be enabled at creation time. Log service can be enabled at any time.
Enable Gzip hardware acceleration
Gzip hardware acceleration offloads data compression and decompression to dedicated hardware, reducing CPU load and improving processing efficiency.
Steps
-
On the purchase page, complete the Basic configuration and set the following additional parameters. Then, click Open now.
-
Region: Gzip hardware acceleration is available in the following regions: China (Hangzhou), China (Beijing), China (Shanghai), China (Shenzhen), China (Ulanqab), China (Hong Kong), and Singapore.
Within these supported regions, some availability zones may not support this feature. Availability is subject to the options shown on the product purchase page.
-
GatewaySpec: Select a specification of apigw.medium.x1 or higher.
-
Gzip hardware acceleration: Select the checkbox to enable Gzip hardware acceleration.

-
-
After the instance is created, click its name or ID to go to the details page. In the left navigation pane, click Parameters. In the Gateway Engine Parameters section, edit the EnableGzipHardwareAccelerate parameter.
If you did not select the Gzip hardware acceleration checkbox during purchase, you cannot enable this setting.
-
After enabling this feature, clients must be able to process Gzip-compressed data and must include the
Accept-Encoding: gzipheader in their requests.
Performance reference
Enable gateway log delivery
Enable Simple Log Service (SLS) during instance creation to collect, store, and analyze gateway logs.
While completing the Basic configuration, select the Use Simple Log Service (SLS) checkbox. The system automatically provisions SLS and enables the gateway log delivery feature for you.
After you enable log delivery, you can view the gateway logs by navigating to .
Next steps
-
Cloud-native API Gateway supports multiple API types, including REST API, HTTP API, and WebSocket API. You can flexibly configure routing rules and policies for different API types.
-
You can create a service to add backend services to the gateway, allowing it to discover and centrally manage their endpoints.
-
Expose applications in Container Service through an HTTP API.
-
FAQ.