Creating a Service Gateway
Create a service gateway in a Virtual Cloud Network (VCN) to allow access to the Oracle Services Network (OSN).
Only one service gateway is needed for each VCN. All subnets within a VCN have access to the service gateway if the security rules and route table rules allow that access.
This task assumes that you already have a VCN with at least one subnet (either private or public).
The service gateway allows access to supported Oracle services within the region to protect your data from the internet. Your applications might require access to public endpoints or services not supported by the service gateway (for example, to download updates or patches). Ensure you have a NAT gateway or other access to the internet if necessary.
The service gateway is then created and displayed on the Service Gateways page in the compartment that you chose. The gateway allows traffic through it by default. At any time, you can block or allow the traffic through it.
Use the network service-gateway create command and required parameters to create a service gateway:
oci network service-gateway create --compartment-id ocid --vcn-id ocid ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateServiceGateway operation to create a service gateway.