Listing Service Gateways
List the service gateways (SGWs) available in a given compartment.
The Console can only show the service gateway attached to a specific VCN (only one SGW is needed in a VCN), but the API and CLI can show all SGWs in a specified compartment.
- In the Console, confirm you're viewing the compartment that contains the VCN or VCNs that you're interested in. For information about compartments and access control, see Access Control.
- Open the navigation menu, click Networking, and then click Virtual cloud networks.
- Click the name of the VCN that has the SGW you're interested in.
- On the left side of the page, click Service Gateways.
A VCN only requires one service gateway.
Use the network service-gateway list command and required parameters to list all service gateways in a specified compartment:
oci network service-gateway list --compartment-id compartment-ocid ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ListServiceGateways operation to list service gateways in a specified compartment.