VPC-based API calls

Updated at: 2025-01-24 10:22

This topic describes how to call APIs in API Gateway over a virtual private cloud (VPC). The calls may be made from a VPC or Function Compute.

Access API Gateway over a VPC

API Gateway allows you to access API Gateway over the Internet or a VPC. Specifically:

  • Enable VPC-based access for a serverless instance: Serverless instances can be accessed over a VPC. All users of the instance can access the instance from their VPCs that are in the same region as the instance.

  • Enable VPC access for a dedicated instance: When you enable VPC access for a dedicated instance, you can authorize only one VPC in the same region to access the dedicated instance. Other VPCs in the same region cannot access APIs on this instance. This enhances security.

Access API Gateway from Function Compute over an internal network

API Gateway allows you to access it from Function Compute over a VPC in the following scenarios:

  • Scenario 1: API Gateway and Function Compute are deployed in the same region.

  • Scenario 2: API Gateway and Function Compute are deployed in different regions.

Important

This feature is available only for dedicated instances.

Configuration rules:

    Feedback