Networking in API Gateway
By default, an API gateway resides in an 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.
Note
If the network does not meet the conditions above, the service does not guarantee its operation.
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 in each availability zone. The API gateway will get an IP address from the respective subnet and will have access to all network resources.
To delete the network specified in the API gateway, delete all the functions, containers, and API gateways it is set in and wait from 15 minutes to 24 hours.