Networking in API Gateway
By default, an API gateway resides in the isolated IPv4 network with a NAT gateway enabled. For this reason, it can only access public IPv4 addresses.
User network
You can specify a cloud network in API gateway settings, if required. In this case, it will have access to the internet and user resources in the specified network, such as databases and VMs.
A cloud network must meet the following conditions:
- Has subnets in all availability zones.
- Has at least one resource with an IP address in the specified cloud network.
If you specify a network in the API gateway settings, this will create a subnet with addresses from the 198.19.0.0/16 range for each availability zone. The API gateway will be assigned an IP address from the respective subnet and will have access to all network resources.
Note
You can only specify a single network for functions, containers, and API gateways that reside in the same cloud.
To delete the network specified in the API gateway, delete all functions, containers, and API gateways it was set in and wait from 15 minutes to 24 hours.